/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.8;
  color: #2c3e50;
  background: linear-gradient(to bottom, #ffffff, #f0f2f5);
  padding: 0 20px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Header Section */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(230, 230, 230, 0.5);
  padding-bottom: 40px;
  margin-bottom: 60px;
  animation: fadeIn 1.2s ease-in-out;
}

.title-section {
  max-width: 60%;
}

.product-title {
  font-size: 4rem;
  font-weight: 900;
  color: #0056b3;
  margin-bottom: 15px;
  letter-spacing: -1px;
  animation: slideIn 1.5s ease-in-out;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.product-subtitle {
  font-size: 1.5rem;
  color: #6c757d;
  animation: fadeUp 1.5s ease-in-out;
}

.product-image img {
  max-width: 60%;
  height: auto;
  object-fit: cover; /* Ensures the image fits nicely without distortion */
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
  transform: scale(1);
  animation: zoomIn 1.8s ease-in-out;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}


.product-image img:hover {
  transform: scale(1.05);
}

/* Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Section Styling */
section {
  margin-bottom: 80px;
}

section h2 {
  font-size: 2.5rem;
  color: #0056b3;
  margin-bottom: 25px;
  border-left: 8px solid #0056b3;
  padding-left: 20px;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.1);
}

section p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Lists */
ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  position: relative;
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 20px;
  padding-left: 35px;
  line-height: 1.5;
}

ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #0056b3;
  font-size: 1.5rem;
  transform: scale(1.2);
}

/* Interactive List Hover */
ul li:hover {
  transform: translateX(10px);
  color: #0056b3;
  transition: all 0.3s ease;
}

/* Buttons */
.download-button,
.back-link {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 30px;
  background: linear-gradient(45deg, #0056b3, #003d8f);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  transition: background 0.4s ease-in-out, transform 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.download-button:hover,
.back-link:hover {
  background: linear-gradient(45deg, #003d8f, #0056b3);
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid rgba(230, 230, 230, 0.5);
  margin-top: 60px;
  color: #6c757d;
  font-size: 1rem;
}

/* Language Toggle */
.language-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: Arial, sans-serif;
}

.language-toggle .dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  background-color: #007bff;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease-in-out;
}

.dropdown-btn:hover {
  background-color: #0056b3;
}

.arrow-down {
  border: solid white;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.dropdown-menu {
  display: none;
  position: absolute;
  bottom: 100%; /* Dropdown opens upwards */
  right: 0;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
  min-width: 150px;
  z-index: 1000;
}

.dropdown-menu .dropdown-item {
  padding: 10px 15px;
  border: none;
  background-color: white;
  color: #333;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font-size: 14px;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown:hover .arrow-down {
  transform: rotate(-135deg);
}

/* RTL and LTR Support */
body.ltr {
  direction: ltr;
  text-align: left;
}

body.ltr .header {
  flex-direction: row;
}

body.rtl {
  direction: rtl;
  text-align: right;
}

body.rtl .header {
  flex-direction: row-reverse;
}
/* Global RTL Styles */
body.rtl {
  direction: rtl; /* Switch to right-to-left direction */
  text-align: right; /* Align text to the right */
}

body.rtl .container {
  padding-right: 20px;
  padding-left: 0; /* Shift padding to match RTL */
}

/* Header Adjustments */
body.rtl .header {
  flex-direction: row-reverse; /* Reverse the order of header elements */
}

body.rtl .title-section {
  text-align: right;
}

body.rtl .product-title {
  text-align: right;
}

body.rtl .product-subtitle {
  text-align: right;
}

/* List Adjustments */
body.rtl ul li {
  padding-right: 35px; /* Add padding to the right */
  padding-left: 0;
}

body.rtl ul li::before {
  content: "✔"; /* Keep the same icon */
  right: 0;
  left: unset; /* Move the icon to the right */
}

/* Section Headings */
body.rtl section h2 {
  border-right: 8px solid #0056b3; /* Adjust border to the right */
  border-left: none;
  padding-right: 20px;
  padding-left: 0;
  text-align: right;
}

/* Buttons */
body.rtl .download-button,
body.rtl .back-link {
  text-align: center; /* Keep buttons center-aligned */
}

body.rtl .download-button:hover,
body.rtl .back-link:hover {
  transform: translateY(-8px); /* Hover effect stays consistent */
}

/* Footer Adjustments */
body.rtl .footer {
  text-align: right;
}

/* Language Toggle */
body.rtl .language-toggle {
  left: 20px; /* Move the toggle to the left */
  right: unset;
}

/* Dropdown Adjustments */
body.rtl .dropdown-menu {
  right: unset;
  left: 0; /* Open dropdown to the left */
  text-align: right;
}

body.rtl .dropdown-menu .dropdown-item {
  text-align: right;
}
/* Global Responsive Styles */
@media screen and (max-width: 768px) {
  /* General Body Adjustments */
  body {
    padding: 0 10px; /* Reduce padding for smaller screens */
  }

  /* Header Section */
  .header {
    flex-direction: column-reverse; /* Reverse the order for better stacking */
    text-align: center; /* Center align for mobile */
  }

  .title-section {
    max-width: 100%;
    text-align: center;
  }

  .product-title {
    font-size: 2.5rem; /* Reduce title size */
    margin-bottom: 10px;
  }

  .product-subtitle {
    font-size: 1.2rem;
  }

  .product-image img {
    margin: 20px auto; /* Center the image */
    width: 100%;
    max-width: 350px; /* Limit size for smaller devices */
  }

  /* Section Adjustments */
  section h2 {
    font-size: 2rem;
    padding-right: 10px; /* Adjust padding for mobile */
  }

  section p {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Lists */
  ul li {
    font-size: 1rem; /* Reduce font size */
    padding-right: 20px; /* Adjust padding for icons */
  }

  ul li::before {
    font-size: 1.2rem; /* Adjust icon size */
  }

  /* Buttons */
  .download-button,
  .back-link {
    padding: 10px 20px;
    font-size: 1rem;
    width: 100%; /* Full-width buttons for mobile */
    text-align: center;
    margin-top: 20px;
  }

  /* Footer */
  .footer {
    font-size: 0.9rem; /* Reduce font size for footer */
  }

  /* Language Toggle */
  .language-toggle {
    bottom: 10px; /* Adjust position for smaller screens */
    left: unset;
    right: 10px; /* Keep it visible on smaller devices */
  }

  .dropdown-btn {
    padding: 8px 10px;
    font-size: 12px; /* Smaller font size for mobile */
  }

  .dropdown-menu .dropdown-item {
    padding: 8px 10px; /* Reduce padding for items */
    font-size: 12px;
  }
}

/* Arabic (RTL) Mobile Adjustments */
@media screen and (max-width: 768px) {
  body.rtl {
    text-align: right;
  }

  body.rtl .header {
    flex-direction: column-reverse; /* Stack header items properly */
    text-align: center;
  }

  body.rtl ul li {
    padding-right: 20px;
    padding-left: 0; /* Ensure alignment with RTL */
  }

  body.rtl ul li::before {
    right: 10px;
    left: unset;
  }

  body.rtl .language-toggle {
    left: 10px;
    right: unset; /* Keep toggle accessible on smaller devices */
  }
}
#brainAneurysm1{
  font-size: 42px;
}