/* General Reset and Body */


body {
    font-family: Arial, sans-serif;
    /* Prevent horizontal scrollbar on small screens due to potential overflows */
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background: #eee;
    padding: 5px 15px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.top-bar div {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Header */
header {
    background: linear-gradient(to right, #1e40af, #9333ea);
    padding: 10px 20px;
    color: white;
    padding-right: 10px;
    position: relative;
    min-height: 80px; /* Adjust if your logo is taller on mobile */
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1001;
    width: 100%;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-right: 10px;
   
}

.logo img {
    max-height: 120px;
    height: auto;
    width: auto;
}

/* Navigation for Desktop */
nav {
    flex-grow: 1;
    text-align: right;
    position: relative;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-end;
    margin-top: 0;
    align-items: center;
    padding-right: 5px;
}

.nav-item {
    position: relative;
}

.nav-links a, .nav-links .dropdown-toggle {
    color: white;
    text-decoration: none;
    padding: 8px 10px;
    display: inline-block;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
    background: transparent; /* Ensure default background is transparent */
}

.nav-links a:hover,
.nav-links .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Glowing border animation for desktop */
@media (min-width: 769px) {
    .nav-links a:hover::after,
    .nav-links .dropdown-toggle:hover::after {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border: 2px solid transparent;
        border-radius: 7px;
        box-shadow: 0 0 8px #ffffff, 0 0 12px #9333ea;
        animation: drawBorder 2s linear infinite;
    }

    @keyframes drawBorder {
        0% { border-color: transparent; border-top-color: #ffffff; }
        25% { border-color: transparent; border-top-color: #ffffff; border-right-color: #ffffff; }
        50% { border-color: transparent; border-right-color: #ffffff; border-bottom-color: #ffffff; }
        75% { border-color: transparent; border-bottom-color: #ffffff; border-left-color: #ffffff; }
        100% { border-color: transparent; border-left-color: #ffffff; border-top-color: #ffffff; }
    }
}

/* Dropdown Menu for Desktop */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1e3a8a;
    display: none;
    flex-direction: column;
    min-width: 180px;
    z-index: 1000;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
}

.nav-item:nth-child(n+4) .dropdown-menu {
    left: auto;
    right: 0;
}

.dropdown-menu a {
    padding: 12px 15px;
    color: white;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    background: transparent; /* Ensure default background for dropdown items is transparent */
}
.dropdown-menu a:last-child {
    border-bottom: none;
}


.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (min-width: 769px) {
    .nav-item:hover .dropdown-menu {
        display: flex;
    }
}

/* Hamburger Icon for Desktop - hidden */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: white;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Hamburger animation when active (desktop context, but applied via JS) */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Header Text */
.header-info-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 40px;
    
}

.login-container {
    margin-left: auto; /* pushes Login to far right */
}

.login-button {
    background-color: #ffd700;
    color: #1a4a72;
    padding: 6px 14px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-button:hover {
    background-color: #ffeb3b;
}



/* MOBILE SPECIFIC STYLES - FINAL VERSION WITH HEIGHT LIMIT */
/* MOBILE SPECIFIC STYLES - FINAL VERSION WITH HEIGHT LIMIT */
@media (max-width: 768px) {
    /* Header adjustments for mobile */
    header {
        padding: 10px 15px;
        min-height: 80px; /* Ensure sufficient header height */
        width: auto;
    }
    /* @media (max-width: 768px) {
    header {
        position: fixed;
        padding: 10px 15px;
        min-height: 80px;
        width: 430px;
    }
}
   @media (max-width: 480px) {
    header {
        position: fixed;
        padding: 10px 15px;
        min-height: 80px;
        width: 450px;
    }
} */
    .logo img {
        height: 60px;
        max-height: 60px;
    }

    /* Hamburger: Always display on mobile */
    .menu-toggle {
        display: grid;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1100;
        background-color: #750e0e;
        padding: 5px;
    }

    /* Main Navigation Links Container (Hidden by default on mobile) */
    .nav-links {
        display: none;
        width: 100vw;
        flex-direction: column;
        align-items: stretch;
        background: #1e40af;
        max-height: 100vh; /* Allow it to be at most full viewport height */
        padding-top: 40px; /* Adjust to match header height */
        padding-bottom: 20px; /* Bottom padding for scrolling comfort */
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
        box-sizing: border-box;
        overflow-y: auto; /* Enable vertical scrolling */
    }

    /* Main Navigation Links Container (Visible when active) */
    .nav-links.active {
        display: grid;
        justify-content: flex-start;
        transform: translateX(0);
    }

    /* Individual Nav Items */
    .nav-links .nav-item {
        width: 100%;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: transparent;
    }
    .nav-links .nav-item:last-child {
        border-bottom: none;
    }

    /* Individual Nav Links and Dropdown Toggles */
    .nav-links a,
    .nav-links .dropdown-toggle {
        font-size: 16px;
        width: 100vw;
        text-align: left;
        display: block;
        box-sizing: border-box;
        white-space: normal;
        background: transparent;
        border-radius: 0;
    }

    /* Active menu item */
    .nav-links .nav-item.open > .dropdown-toggle,
    .nav-links a:active,
    .nav-links a:focus {
        background: rgba(255, 255, 255, 0.15);
        outline: none;
    }

    /* Dropdown Menus */
    .dropdown-menu {
        position: static;
        width: 100%;
        background: #2b4cb9;
        padding: 0;
        display: none;
        box-sizing: border-box;
        max-width: 100%;
    }

    /* Dropdown Menu Links */
    .dropdown-menu a {
        font-size: 14px;
        padding: 12px 35px;
        width: 100%;
        box-sizing: border-box;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: transparent;
        border-radius: 0;
    }
    .dropdown-menu a:last-child {
        border-bottom: none;
    }

    /* Dropdown Visible when parent .nav-item has 'open' class */
    .nav-item.open .dropdown-menu {
        display: grid;
        flex-direction: column;
    }
}

  /* Hide Login on mobile */
@media (max-width: 768px) {
  .loginsection {
    display: none;
  }
}
/* Mobile Login item */
@media (max-width: 768px) {
  .mobile-login a {
    display: block;
    width: 100%;
    text-align: center;
    background: #ffd700;  /* gold like your desktop button */
    color: #1a4a72;
    font-weight: bold;
    padding: 12px;
    border-radius: 0;
  }

  .mobile-login a:hover {
    background: #ffeb3b;
  }
}
/* Hide nav Login on desktop */
@media (min-width: 769px) {
  .mobile-login {
    display: none !important;
  }
}

/* Hide top Login on mobile */
@media (max-width: 768px) {
  .loginsection {
    display: none !important;
  }
}

/* SAT 30 Glow */


/* No glow by default */
.nav-item.sat30 .dropdown-toggle {
  box-shadow: none;
  transition: box-shadow 0.3s ease;
  border-radius: 6px;
}

/* 🔴 Red glow only on hover */
.nav-item.sat30:hover .dropdown-toggle {
  box-shadow: 0 0 12px 4px rgba(255, 0, 0, 0.85);
}
/* ❌ Disable white glow for SAT-30 */
.nav-item.sat30 .dropdown-toggle:hover::after {
  content: none !important;
  box-shadow: none !important;
  animation: none !important;
}

/* 🔴 Red glow only for SAT-30 */
.nav-item.sat30:hover .dropdown-toggle {
  box-shadow: 0 0 12px 4px rgba(255, 0, 0, 0.85) !important;
  border-radius: 6px;
}
