/* 
    File: wwwroot\css\layout.css
*/
@import url("https://fonts.googleapis.com/css2?family=Times+New+Roman&display=swap");

/* Global Styles */
html {
  overflow-x: hidden;
}

body {
  font-family: "Times New Roman", Times, serif;
  margin: 0;
  padding: 0;
  background-color: #f0f2f5;
  color: #333;
  overflow-x: hidden;
}

/*announcement */
.announcement-bar {
  background-color: #6ec1e4;
  display: flex;
  align-items: center;
  font-size: 1.2vw;
  justify-content: flex-end;
  flex-direction: row;
  height: 24px;
}

.social-icons {
  background-color: #6ec1e4;
  color: #ffffff;
  /* White text */
  border: none;
  padding: 1vh 1.5vw;
  /* Adjust padding */
  font-size: 1vw;
  cursor: pointer;
  border-radius: 0;
  /* Remove rounded corners */
}

.social-icons a {
  color: #fff;
  width: 30vw;
  height: auto;
  gap: 1;
}

.social-icons a:hover {
  color: #002d57;
  /* Hover color */
}

.buttons {
  display: flex;
  gap: 0;
  /* Remove gap between buttons */
}

.btn-info {
  background-color: #3cb4e8;
  /* Background color for Request Information button */
  color: #ffffff;
  /* White text */
  border: none;
  padding: 1vh 1.5vw;
  /* Adjust padding */
  font-size: 1vw;
  cursor: pointer;
  border-radius: 0;
  /* Remove rounded corners */
  text-transform: uppercase;
}

.btn-info:hover {
  background-color: #35a2ce;
  /* Darker blue on hover */
}

.btn-language {
  background-color: #89ae43;
  /* Background color for English button */
  color: #ffffff;
  /* White text */
  border: none;
  padding: 1vh 1.5vw;
  /* Adjust padding */
  font-size: 1vw;
  cursor: pointer;
  border-radius: 0;
  /* Remove rounded corners */
  text-transform: uppercase;
}

.btn-language:hover {
  background-color: #0b6d71;
  /* Darker teal on hover */
}

/* General styles for the header */
header {
  background-color: #ffffff;
  color: black;
  padding: 1vh 1vw;
  position: relative;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.header-desktop {
  z-index: 9999;
}

/* Desktop header styles */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2vw;
}

.logo img {
  height: auto;
  width: auto;
  max-height: 14vh;
  max-width: 20vw;
  object-fit: contain;
}

/* ========================================= */
/* NEW MAIN NAVIGATION STYLES               */
/* ========================================= */

/* Main Navigation */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu>li {
  position: relative;
}

.nav-menu>li>a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 0.8rem;
  text-decoration: none;
  color: #4a4a4a;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.nav-menu>li>a:hover {
  color: #065287;
}

.nav-menu>li>a i {
  font-size: 0.65rem;
  transition: transform 0.3s ease;
}

.nav-menu>li.has-dropdown:hover>a i {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-menu > li.has-dropdown {
  position: relative;
}

/* Create a bridge between menu item and dropdown */
.nav-menu > li.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 5px;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: max(100%, 280px);
  width: max-content;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 10000;
  list-style: none;
  margin: 0;
  margin-top: 5px;
  pointer-events: none;
  /* Ensure it's hidden by default */
  display: none;
}

/* CSS hover is overridden by JavaScript for better control */
.has-dropdown:hover > .dropdown-menu {
  /* Handled by JavaScript */
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  color: #4a4a4a;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  width: 100%;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
  color: #065287;
}

/* Header Actions (User Icon) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #4a4a4a;
  transition: color 0.3s ease;
}

.user-icon-link i {
  font-size: 1.5rem;
}

.user-icon-link:hover {
  color: #065287;
}

/* User Dropdown */
.user-dropdown {
  position: relative;
}

/* Create a bridge between user icon and dropdown - no gap for smooth hover */
.user-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
  z-index: 9998;
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: max(100%, 220px);
  width: max-content;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10000;
  list-style: none;
  margin: 0;
  margin-top: 0;
  pointer-events: none;
}

/* CSS hover is overridden by JavaScript for better control */
.user-dropdown:hover .user-dropdown-menu {
  /* Handled by JavaScript */
}

.user-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  color: #4a4a4a;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  width: 100%;
}

.user-dropdown-menu li a:hover {
  background-color: #f5f5f5;
  color: #065287;
}

.user-dropdown-menu li a i {
  font-size: 0.9rem;
  width: 1rem;
}

/* ========================================= */
/* END NEW MAIN NAVIGATION STYLES           */
/* ========================================= */

/* Responsive: Hide desktop, show mobile on smaller screens */
@media (max-width: 992px) {
  .header-desktop {
    display: none;
  }

  .header-mobile {
    display: block;
  }
}

/* Menu Hover */
.menu-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
  margin-right: 2vw;
}

.menu {
  margin-right: 0;
}

.menu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.menu li {
  position: relative;
}

.menu a {
  display: block;
  text-decoration: none;
  color: #000000;
  font-weight: 400;
  margin-left: 0;
  padding-left: 1.2vw;
  padding-right: 1.2vw;
  font-size: 1vw;
}

.menu a:hover {
  color: #065287;
}

/* Dropdown menu hover effect with slow fade-in animation */
.menu .dropdown:hover>.dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  box-shadow: 0 2vh 4vh 0 rgba(0, 0, 0, 0.3);
  pointer-events: auto;
}

/* Multi-column dropdown menu with immediate fade-in animation */
.menu .dropdown-content {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: -10vw;
  background-color: #ffffff;
  box-shadow: 0 1vh 2vh 0 rgba(0, 0, 0, 0.1);
  z-index: 1010;
  width: 40vw;
  /* Adjust width dynamically to fit content */
  padding: 2vh;
  column-count: 2;
  /* Number of columns */
  column-gap: 1vw;
  /* Space between columns */
  transform: translateY(-30px) scale(0.85);
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out,
    transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
  pointer-events: none;
  border: 1px solid #e0e0e0;
}

/* Fast hover-out transition */
.menu .dropdown:not(:hover)>.dropdown-content {
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out,
    transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.menu .dropdown-content a {
  padding: 1vh;
  /* Add uniform padding */
  color: #000000;
  text-decoration: none;
  display: block;
  width: 100%;
  /* Ensure full width for each text box */
  background-color: transparent;
  /* Default background */
  box-sizing: border-box;
  /* Include padding in width calculation */
  font-size: 1vw;
}

.menu .dropdown-content a:hover {
  background-color: #f0f0f0;
  /* Highlight on hover */
  color: #065287;
  /* Ensure text remains visible on hover */
}

/* Accounts Hover */
.account-container {
  display: flex;
  align-items: center;
  margin-left: 0;
  margin-right: 0;
}

.account-container a {
  margin-left: 0;
}

.auth-links ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.auth-links li {
  margin-right: 1.5vw;
}

/* Add padding between login and signup buttons */
.auth-links li:not(.dropdown):not(.language-switcher) {
  margin-right: 1.2vw;
}

.auth-links a {
  display: block;
  padding: 0.8vh 1.5vw;
  text-decoration: none;
  color: #000000;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Style for dropdown button (user name) */
.auth-links .dropbtn {
  color: #000000;
  cursor: pointer;
  padding: 0.8vh 1.5vw;
  display: block;
  text-decoration: none;
}

/* Style login and signup buttons as blue rounded buttons */
.auth-links li:not(.dropdown):not(.language-switcher) a {
  background-color: #065287;
  color: #ffffff;
  font-weight: 500;
  padding: 0.6vh 1.2vw;
  border-radius: 8px;
}

.auth-links li:not(.dropdown):not(.language-switcher) a:hover {
  background-color: #054a6f;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(6, 82, 135, 0.3);
}

/* Language switcher flag icon */
.language-switcher {
  margin-right: 1.5vw;
}

.flag-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5vh 0.8vw;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.flag-link:hover {
  background-color: #f0f0f0;
}

.flag-icon {
  font-size: 0.75rem;
  font-weight: 600;
  color: #065287;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile flag icon size */
@media (max-width: 992px) {
  .flag-icon {
    font-size: 0.75rem;
  }
}

.auth-links .dropdown {
  position: relative;
  display: inline-block;
  z-index: 9999;
}

.auth-links .dropdown-content {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 12vw;
  box-shadow: 0 1vh 2vh 0 rgba(0, 0, 0, 0.1);
  z-index: 9999;
  border-radius: 4px;
  overflow: hidden;
  transform: translateY(-30px) scale(0.85);
  transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out,
    transform 1.2s ease-in-out, box-shadow 0.8s ease-in-out;
  pointer-events: none;
  border: 1px solid #e0e0e0;
}

.auth-links .dropbtn {
  color: #000000;
}

/* Fast hover-out transition for auth-links */
.auth-links .dropdown:not(:hover) .dropdown-content {
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out,
    transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.auth-links .dropdown-content {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block !important;
  width: 100%;
  flex-direction: column;
}

.auth-links .dropdown-content li {
  margin: 0;
  padding: 0;
  display: block !important;
  width: 100%;
  float: none;
}

.auth-links .dropdown-content a {
  color: #000000;
  padding: 1vh 2.5vw;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid #e0e0e0;
}

.auth-links .dropdown-content li:last-child a {
  border-bottom: none;
}

.auth-links .dropdown-content a:hover {
  background-color: #f0f0f0;
  color: #065287;
}

/* Show dropdown on hover for auth-links with slow fade-in */
.auth-links .dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  box-shadow: 0 2vh 4vh 0 rgba(0, 0, 0, 0.3);
  pointer-events: auto;
}

.auth-links .dropdown:hover .dropbtn {
  color: #002d57;
}

/* Footer styles */
.footer {
  background-color: #065287;
  color: white;
  padding: 3vh 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 80vw;
  margin: 0 auto;
  padding: 0 2vw;
}

.footer-column {
  flex: 1;
  margin: 0 4vw;
}

.footer-logo img {
  height: auto;
  width: auto;
  max-height: 15vh;
  max-width: 15vw;
  margin-top: 3vh;
  padding-top: 1vh;
  object-fit: contain;
}

.footer-logo p {
  max-width: 20vw;
}

.footer-links h3,
.footer-contact h3 {
  margin-bottom: 1vh;
  font-size: 1vw;
  font-weight: bold;
}

.footer-links ul {
  list-style-type: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5vh;
}

.footer-links a {
  text-decoration: none;
  color: white;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 90vw;
  margin: 2vh auto 0;
  padding: 0 2vw;
  border-top: 0.2vw solid #0077ca;
  padding-top: 1vh;
}

.creator-info {
  font-size: 0.8vw;
  color: white;
}

.footer-social {
  display: flex;
  gap: 1vw;
}

.footer-social a {
  color: white;
  text-decoration: none;
  font-size: 1.3vw;
}

.footer-social a:hover {
  color: #0077ca;
}

.footer-social i {
  font-size: 1.5vw;
}

/* ========================================= */
/* NEW FOOTER STYLES                          */
/* ========================================= */
.footer-new {
  background-color: #a51c30;
  color: #ffffff;
}

.footer-main {
  padding: 60px 5% 50px;
}

.footer-container-new {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.footer-column-new {
  display: flex;
  flex-direction: column;
}

.footer-logo-col {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer-logo-img {
  max-width: 220px;
  height: auto;
}

.footer-heading {
  font-size: 1.55rem;
  font-weight: 400;
  margin: 0 0 20px 0;
  color: #ffffff;
  font-family: 'Georgia', serif;
  letter-spacing: 0.5px;
}

.footer-heading-contact {
  font-size: 1.3rem;
  font-weight: 600;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 12px;
}

.footer-list a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.15rem;
  transition: opacity 0.3s ease;
}

.footer-list a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #ffffff;
}

.footer-address p {
  margin: 0 0 5px 0;
}

.footer-address a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-address a:hover {
  opacity: 0.8;
}

.footer-tel {
  margin-top: 10px !important;
}

.footer-bottom-new {
  background-color: #a51c30;
  padding: 20px 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 0.75rem;
  color: #ffffff;
}

.footer-social-new {
  display: flex;
  gap: 20px;
}

.footer-social-new a {
  color: #ffffff;
  font-size: 1rem;
  transition: opacity 0.3s ease;
}

.footer-social-new a:hover {
  opacity: 0.7;
}

/* New Footer Responsive */
@media (max-width: 992px) {
  .footer-container-new {
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
  }

  .footer-logo-col {
    grid-column: span 2;
    justify-content: center;
  }

  .footer-logo-img {
    max-width: 200px;
  }
}

@media (max-width: 576px) {
    .footer-main {
        padding: 40px 5% 30px;
    }

    .footer-container-new {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo-col {
        grid-column: span 1;
        display: flex !important;
        justify-content: center !important;
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-logo-img {
        max-width: 150px !important; /* Reduced size as requested */
        height: auto;
        margin: 0 auto;
    }

    .footer-heading {
        font-size: 1.2rem;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-copyright {
        font-size: 0.7rem;
    }
}

.menu .dropdown {
  position: relative;
}

.menu .dropdown:hover>.dropdown-content {
  display: block;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 500px;
  max-height: 90%;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
  overflow-y: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #333;
  text-shadow: 0px 0px 5px #ccc;
  direction: rtl;
}

.form-group {
  margin-bottom: 12px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #444;
  direction: rtl;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #007bff;
  box-shadow: 0px 0px 5px rgba(0, 123, 255, 0.5);
}

.modal-content .btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-content .btn:hover {
  background: linear-gradient(135deg, #0056b3, #003580);
  box-shadow: 0px 0px 10px rgba(0, 91, 187, 0.7);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  color: #aaa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-btn:hover {
  color: #333;
  transform: scale(1.2);
}

/* ------------------------------------- */
/* MOBILE HEADER AND MENU                */
/* ------------------------------------- */
.header-mobile {
  display: none;
  /* Hidden on large screens by default */
  background-color: #ffffff;
  color: #000;
  position: relative;
  z-index: 9998;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    height: 70px;
}

.logo-mobile {
    flex: 1;
    display: flex;
    justify-content: center; /* Centers the logo */
}

.logo-mobile img {
    height: auto;
    width: auto;
    object-fit: contain;
    margin: 0 !important;
}

.mobile-menu-icon {
    font-size: 1.8rem;
    cursor: pointer;
    color: #000;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 30px; /* Fixed width to match user icon side */
}

.mobile-user-icon {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    width: 30px; /* Fixed width to balance header */
}

.mobile-user-icon .user-icon-link {
    color: #4a4a4a;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.mobile-user-icon .user-icon-link:hover {
  color: #065287;
}

.mobile-menu {
  display: none;
  background-color: #ffffff;
  padding: 1rem 0;
  position: relative;
  z-index: 9997;
  border-top: 1px solid #e0e0e0;
}

.mobile-nav-links ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-links>ul>li {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-links > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    color: #333333 !important; /* Forces dark text on the white dropdown background */
    background-color: #ffffff; /* Ensures background is white, not blue */
    text-decoration: none;
    font-size: 1.1rem; /* Slightly larger text for mobile tapping */
    letter-spacing: 0.5px;
    font-weight: 500;
}

.mobile-nav-links > ul > li > a:hover {
    color: #065287 !important;
    background-color: #f5f5f5;
}

.mobile-nav-links>ul>li>a i {
  font-size: 0.65rem;
  transition: transform 0.3s ease;
}

.mobile-dropdown.active>a i {
  transform: rotate(180deg);
}

/* Mobile Dropdown Menu */
.mobile-dropdown-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  width: 100%;
}

.mobile-dropdown-menu li a {
  display: block;
  padding: 0.75rem 2.5rem;
  color: #4a4a4a;
  text-decoration: none;
  font-size: 1.1rem;
  border-bottom: 1px solid #eeeeee;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.mobile-dropdown-menu li a:hover {
  color: #065287;
  background-color: #f0f0f0;
}

/* The nested dropdown content on mobile with slow fade-in */
.mobile-menu .dropdown-content {
  opacity: 0;
  visibility: hidden;
  display: none;
  background-color: #f5f5f5;
  margin-right: 2vw;
  margin-top: 0.5vh;
  padding: 0.5vh 1vw;
  z-index: 9999;
  border-radius: 4px;
  overflow: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  border: 1px solid #e0e0e0;
}

.mobile-menu .dropdown-content a {
  color: #000;
}

.mobile-menu .dropdown-content a:hover {
  background-color: #e0e0e0;
  color: #065287;
}

/* --- ADDED FOR CLICK-TO-OPEN ON MOBILE --- */
/* Whenever a parent .dropdown has .active, show the .dropdown-content. */
.dropdown.active>.dropdown-content {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Adjust column count for larger screens */
@media (min-width: 1200px) {
  .menu .dropdown-content {
    column-count: 3;
    /* Increase column count for larger screens */
  }
}

/* Ensure proper alignment of dropdown */
.menu .dropdown {
  position: relative;
}

.menu .dropdown:hover>.dropdown-content {
  display: block;
}

/* MEDIA QUERIES */
@media (max-width: 475px) {
  body {
    font-family: "Noto Kufi Arabic", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    direction: rtl;
    /* RTL layout */
    text-align: right;
  }

  body,
  h2,
  h1,
  h3,
  h4,
  h5,
  h6,
  address,
  p,
  label,
  input,
  textarea,
  select,
  button,
  table,
  th,
  td,
  .btn,
  .form-control {
    font-family: "Noto Kufi Arabic", sans-serif !important;
  }

  .header-desktop {
    display: none;
  }

    .header-mobile {
        display: block;
        height: auto;
    }

    .logo {
        width: auto;
        margin-top: 0;
    }

    .logo-mobile img {
        max-height: 60px !important;
        margin-top: 0;
    }

    .mobile-menu-icon {
        font-size: 1.8rem;
        cursor: pointer;
        color: #000;
        margin-top: 0;
    }

  .btn-language {
    background-color: #89ae43;
    color: #ffffff;
    border: none;
    padding: 1vh 1.5vw;
    font-size: 3.1vw;
    cursor: pointer;
    border-radius: 0;
    text-transform: uppercase;
  }

  .btn-language:hover {
    background-color: #0b6d71;
  }

  .btn-info {
    background-color: #3cb4e8;
    color: #ffffff;
    border: none;
    padding: 1vh 1.5vw;
    font-size: 3.1vw;
    cursor: pointer;
    border-radius: 0;
    text-transform: uppercase;
  }

  .btn-info:hover {
    background-color: #35a2ce;
  }

  .social-icons {
    background-color: #6ec1e4;
    color: #ffffff;
    border: none;
    padding: 1vh 1.5vw;
    font-size: 3.1vw;
    cursor: pointer;
    border-radius: 0;
  }

  .social-icons a {
    color: #fff;
    width: 35vw;
    height: auto;
    gap: 1;
  }

  .social-icons a:hover {
    color: #002d57;
  }

  .announcement-bar {
    background-color: #002d57;
    display: flex;
    align-items: center;
    font-size: 1.2vw;
    justify-content: flex-start;
    flex-direction: row;
  }

    .footer-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 15px;
        flex-direction: column;
        box-sizing: border-box;
    }

    .footer-logo {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }

    .footer-logo img {
        max-height: 80px; /* Reduced size */
        max-width: 100%;
        margin: 20px auto 0 auto; /* Centered */
        object-fit: contain;
        display: block;
    }

  .footer-links h3,
  .footer-contact h3 {
    margin-bottom: 3vh;
    font-size: 6vw;
    font-weight: bold;
    margin-right: 10px;
  }

  .footer-links a {
    text-decoration: none;
    color: white;
    font-size: 1.8vh;
    margin-right: 1.5vh;
  }

  .fotter_mobile {
    margin-right: 1.8vh;
  }

  .footer-social i {
    font-size: 5.5vw;
  }

  .creator-info {
    font-size: 2.5vw;
    color: white;
  }

  .address_mobile {
    text-align: center;
    font-size: 3vw;
    margin-right: 1vw;
    text-decoration: none;
    /* Removes underline */
    color: white;
    /* Ensures the color is black (or any preferred color) */
  }

  .address_mobile a,
  .address_mobile p {
    text-decoration: none !important;
    /* Ensures underline is removed */
    color: white !important;
    /* Forces black color */
  }

  .address_mobile p {
    pointer-events: none;
    /* Prevents phone numbers from being recognized as links */
  }

  .footer-links ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
  }
}