/* Navbar Css Starts */
 :root {
          
            --text-primary: #212529;
            --text-secondary: #6c757d;
            --bg-light: #f8f9fa;
            --bg-dark: #212529;
            --text-dark: #f8f9fa;
            --footer-bg: #107ae4;
            --footer-text: #111111;
            --footer-link-color: rgba(255, 255, 255, 0.8);
           --footer-hover-color: rgb(248, 5, 5);
           --primary-color: #1872f9;
      --secondary-color: #7e3af2;
      --accent-color: #0694a2;
      --success-color: #0e9f6e;
      --warning-color: #f59e0b;
      --danger-color: #dc2626;
      --light-color: #f9fafb;
      --dark-color: #1f2a37;
      --text-muted: #6b7280;
      --bg-secondary: #f3f4f6;
      --border-color: #e5e7eb;
      
         /* Common variables */
      --font-family: 'Poppins', sans-serif;
      --heading-font: 'Montserrat', sans-serif;
      --border-radius: 8px;
      --border-radius-sm: 4px;
      --border-radius-lg: 12px;
      --transition: all 0.3s ease;
      --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
      --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
      --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
        }

        /* Dark mode styles */
        [data-bs-theme="dark"] {
            --bg-color: var(--bg-dark);
            --text-color: var(--text-dark);
            --navbar-bg: #343a40;
            --topbar-bg: #2c3034;
            --footer-hover-color:var(--footer-hover);
        }

        [data-bs-theme="light"] {
            --bg-color: var(--bg-light);
            --text-color: var(--text-primary);
            --navbar-bg: #ffffff;
            --topbar-bg: #f8f9fa;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-color);
            transition: background-color 0.3s, color 0.3s;
      }

/* Make header a single fixed element and enable slide-up on scroll */

main{
  margin-top: 120px;
}
/* When scrolled, slide header up -45px so navbar sticks to screen top - DESKTOP ONLY */
@media (min-width: 992px) {
  .site-header.header-scrolled {
    transform: translateY(-45px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  }
}

/* MOBILE: Completely disable header scroll behavior and transitions */
@media (max-width: 991.98px) {
  .site-header {
    transition: none !important;
    transform: none !important;
  }
  
  .site-header.header-scrolled {
    transform: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.1) !important;
  }
}

/* Adjust children positioning: top-bar and navbar are inside fixed header */
.top-bar {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 0;
}

.navbar {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 1;
  background-color: var(--navbar-bg);
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  transition: background-color 0.3s;
  height: 70px; 
  width: 100%;
}

/* Mobile specific adjustments */
@media (max-width: 991.98px) {
  body {
    padding-top: 76px; /* keep existing mobile padding */
  }
  
  .top-bar {
    display: none !important; /* Hide top bar on mobile */
  }
  
  .navbar {
    width: 100%;
    top: 0; /* Navbar goes to top on mobile */
  }
}

/* Ensure body has enough top padding for fixed header in desktop */
@media (min-width: 992px) {
  body {
    padding-top: 135px; /* Account for fixed header (top-bar + navbar) on desktop */
  }
}




        /* Top Bar Styles */
        .top-bar {
            background-color: var(--topbar-bg);
            border-bottom: 1px solid #dee2e6;
            font-size: 0.8rem;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1030;
            padding: 0.5rem 0;
        }

        [data-bs-theme="dark"] .top-bar {
            border-bottom-color: #495057;
        }

        .top-bar a {
            color: var(--text-color) !important;
            text-decoration: none;
            transition: color 0.2s, transform 0.2s;
            white-space: nowrap;
        }

        .top-bar a:hover {
            color: var(--primary-color) !important;
            transform: translateY(-1px);
        }

        .social-icons a {
            font-size: 1rem;
        }

        /* Navbar Styles */
        .navbar {
            background-color: var(--navbar-bg);
            box-shadow: 0 2px 4px rgba(0,0,0,.1);
            transition: background-color 0.3s;
            position: fixed;
          width: 100%;
            left: 0;
            right: 0;
            z-index: 1020;
        }

        .navbar-brand img {
            max-height: 50px;
            width: auto;
        }

        .brand-text {
            font-size: 0.6rem;
            margin-bottom: 0;
            font-weight: 600;
            line-height: 1;
        }

        .nav-link {
            color: var(--text-color) !important;
            font-weight: 500;
            position: relative;
            padding: 0.5rem 0.75rem !important;
            transition: color 0.2s, transform 0.2s;
            white-space: nowrap;
            font-size: 0.95rem;
        }
@media screen and (max-width: 1230.98px) {
    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.5rem !important;
    }
  
}
        .nav-link:hover, .nav-link.active {
            color: var(--primary-color) !important;
            transform: translateY(-1px);
        }

        /* Active link indicator */
        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0.75rem;
            right: 0.75rem;
            height: 2px;
            background-color: var(--primary-color);
            border-radius: 2px;
        }

        /* Dropdown styles */
        .dropdown-menu {
            border: none;
            box-shadow: 0 4px 6px rgba(0,0,0,.1);
        }

        .dropdown-item {
            padding: 0.5rem 1rem;
            transition: background-color 0.2s, transform 0.2s;
        }

        .dropdown-item:hover {
            background-color: rgba(13, 110, 253, 0.1);
            transform: translateX(5px);
        }

        /* Mobile menu toggler animation */
        .navbar-toggler {
            border: none;
            padding: 0.25rem;
            width: 30px;
            height: 30px;
            position: relative;
        }

        .navbar-toggler span {
            display: block;
            height: 2px;
            width: 100%;
            background-color: var(--text-color);
            margin: 5px 0;
            transition: all 0.3s;
            transform-origin: center;
        }

        .navbar-toggler[aria-expanded="true"] span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .navbar-toggler[aria-expanded="true"] span:nth-child(2) {
            opacity: 0;
        }

        .navbar-toggler[aria-expanded="true"] span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
        }

        /* Desktop Hover Behavior */
        @media (min-width: 992px) {
            .nav-item.dropdown:hover .dropdown-menu {
                display: block;
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }
            
            .dropdown-menu {
                display: block;
                opacity: 0;
                visibility: hidden;
                transform: translateY(-10px);
                transition: all 0.3s ease;
            }
            
            .hamburger {
                display: none;
            }
        }

        /* Mobile Styles */
        @media (max-width: 991.98px) {
            .top-bar {
                display: none !important; /* Hide top bar on mobile */
            }
            
            .navbar {
              width: 100%;
                top: 0; /* Navbar goes to top on mobile */
            }
            
            body {
                padding-top: 76px; /* Adjust for navbar only on mobile */
            }
            
            .navbar-collapse {
                position: fixed;
                top: var(--header-height, 60px);
                right: -100%;
                bottom: 0;
                height: calc(100vh - var(--header-height, 80px));
                width: 280px;
                max-width: 90%;
                padding: 1rem;
                background-color: var(--navbar-bg);
                box-shadow: -5px 0 15px rgba(0,0,0,.12);
                transition: right 0.28s ease;
                z-index: 1065; /* above content */
                overflow-y: auto; /* only menu scrolls */
                -webkit-overflow-scrolling: touch;
                touch-action: pan-y;
            }
            
            .navbar-collapse.show {
                right: 0;
            }
            
            /* Prevent body/page scrolling when mobile menu open */
            .no-scroll,
            html.no-scroll {
                overflow: hidden;
                height: 100%;
                touch-action: none;
            }
            
            /* Backdrop for mobile menu */
            .navbar-backdrop {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: rgba(0,0,0,0.45);
                z-index: 1060; /* below menu but above page content */
                display: none;
            }
            .navbar-backdrop.show {
                display: block;
            }
            
            /* ensure links inside menu close it when tapped */
            .navbar-collapse .nav-link,
            .navbar-collapse .dropdown-item {
                -webkit-tap-highlight-color: transparent;
            }
            
            .navbar-nav {
                margin-top: 1rem;
                text-align: left;
                width: 100%;
            }
            
            .nav-item {
                width: 100%;
                text-align: left;
            }
            
            .nav-link {
                text-align: left;
                justify-content: flex-start;
                display: flex;
                align-items: center;
            }
            
            /* FIX: Ensure dropdown menus work properly on mobile */
            .dropdown-menu {
                position: static !important;
                transform: none !important;
                border: none;
                background-color: rgba(0,0,0,0.05);
                box-shadow: none;
                text-align: left;
                margin-left: 1rem;
                width: calc(100% - 2rem);
                display: none; /* Hide by default */
            }
            
            [data-bs-theme="dark"] .dropdown-menu {
                background-color: rgba(255,255,255,0.05);
            }
            
            .dropdown-menu.show {
                display: block !important; /* Show when toggled */
            }
            
            .dropdown-toggle::after {
                float: none;
                margin-top: 0.5rem;
                margin-left: 0.5rem;
            }
            
            /* Mobile top bar integration */
            .mobile-top-bar {
                border-bottom: 1px solid #dee2e6;
                padding-bottom: 1rem;
                margin-bottom: 1rem;
                text-align: left;

            }
            
            [data-bs-theme="dark"] .mobile-top-bar {
                border-bottom-color: #495057;
            }
            
            .mobile-top-bar a {
                display: block;
                padding: 0.5rem 0;
                color: var(--text-color) !important;
                text-decoration: none;
                text-align: left;
                transition: color 0.2s, transform 0.2s;
            }
            
            .mobile-top-bar a:hover {
                color: var(--primary-color) !important;
                transform: translateX(5px);
            }
            
            /* Mobile menu logos */
            .mobile-logos {
                display: flex;
                justify-content: center;
                gap: 1rem;
                margin-bottom: 1rem;
                padding-bottom: 1rem;
                border-bottom: 1px solid #dee2e6;
            }
            
            [data-bs-theme="dark"] .mobile-logos {
                border-bottom-color: #495057;
            }
            
            .mobile-logo {
                text-align: center;
            }
            
            .mobile-logo img {
                max-height: 30px;
            }
            
            /* Backdrop for mobile menu */
            .navbar-backdrop {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: rgba(0,0,0,.5);
                z-index: 1040;
                display: none;
            }
            
            .navbar-backdrop.show {
                display: block;
            }
            
            /* Stack brand logos horizontally on mobile */
            .navbar-brand-container {
                flex-direction: row;
                align-items: center;
            }
            
            .navbar-brand {
                margin-right: 0.5rem !important;
                margin-bottom: 0;
            }
            
            /* Dark mode toggle positioning on mobile */
            .navbar-toggler-container {
                display: flex;
                align-items: center;
                gap: 0.5rem;
            }
        }

        /* Medium devices (tablets) */
        @media (min-width: 768px) and (max-width: 991.98px) {
            .nav-link {
                padding: 0.5rem 0.5rem !important;
                font-size: 0.9rem;
            }
            
            .navbar-brand img {
                max-height: 30px;
            }
        }

        /* Extra small devices */
        @media (max-width: 575.98px) {
            .navbar-brand img {
                max-height: 35px;
                width: 30px;
            }
            
            .brand-text {
                font-size: 0.5rem;
            }
            
            .container-fluid {
                padding-left: 10px;
                padding-right: 10px;
            }
            
            /* Ensure logos stay side by side on mobile */
            .navbar-brand-container {
                flex-wrap: nowrap;
            }
            
            .navbar-brand {
                flex-shrink: 0;
            }
        }

        /* Animation classes */
        .bi-animate {
            transition: transform 0.2s;
        }

        a:hover .bi-animate, .btn:hover .bi-animate {
            transform: translateY(-1px);
        }

        /* Theme toggle button */
        .theme-toggle {
            border: none;
            background: transparent;
            font-size: 1.25rem;
            cursor: pointer;
            padding: 0.25rem 0.5rem;
            border-radius: 0.25rem;
            transition: background-color 0.2s, transform 0.2s, color 0.2s;
            color: var(--text-color);
        }

        .theme-toggle:hover {
            background-color: rgba(0,0,0,.1);
            transform: scale(1.1);
            color: var(--primary-color);
        }

        [data-bs-theme="dark"] .theme-toggle:hover {
            background-color: rgba(255,255,255,.1);
        }

          /* Ensure proper spacing for navbar content */
        .navbar-content {
            display: flex;
            align-items: center;
            width: 100%;
        }

         /* Hover effects for all interactive elements */
        .btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .dropdown-toggle:hover .bi-animate {
            transform: translateY(-1px);
        }
        /*Navbar Css Ends*/

/* Floating Animation */

    @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

   /* Footer Styles Starts */
    footer {
      background-color: var(--footer-bg) !important;
      color: var(--footer-text) !important;
    }

    footer .text-light {
      color: var(--footer-text) !important;
    }

    footer .footer-links a {
      color: var(--footer-link-color) !important;
      transition: var(--transition);
    }

    footer .footer-links a:hover {
      color: var(--footer-hover) !important;
      padding-left: 5px;
    }

    footer .small {
      color: var(--footer-text) !important;
    }

    footer .h5, footer .h6 {
      color: var(--footer-text) !important;
    }

    footer .text-uppercase {
      color: var(--footer-text) !important;
    }

    footer .footer-bottom {
      background-color: var(--footer-bg) !important;
      border-top: 1px solid var(--border-color) !important;
    }
  /* Footer Styles Ends */

/*Bottom To Top Button CSS Starts */
   /*Bottom To Top Button CSS Starts */
.back-to-top {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--box-shadow);
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    border: none;
    outline: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    opacity: 0.9;
    transform: translateY(-3px);
}
/*Bottom To Top Button CSS Ends*/



    /* News Ticker starts */
    .news-ticker {
      background-color: var(--bg-secondary);
      padding: 12px 0;
      border-top: 1px solid var(--border-color);
      border-bottom: 1px solid var(--border-color);
      overflow: hidden;
      position: relative;
    }

    .ticker-container {
      width: 100%;
      overflow: hidden;
      position: relative;
    }

    .ticker-content {
      display: inline-flex;
      white-space: nowrap;
      animation: ticker-scroll 20s linear infinite;
    }

    .ticker-item {
      margin-right: 5rem;
      font-weight: 500;
      display: flex;
      align-items: center;
    }

    .ticker-item .badge {
      margin-right: 8px;
      font-size: 0.7rem;
    }

    .ticker-content:hover {
      animation-play-state: paused;
    }

    @keyframes ticker-scroll {
      0% { transform: translateX(100%); }
      100% { transform: translateX(-100%); }
    }
 /* News Ticker ends */

/* Make header a single fixed element and enable slide-up on scroll */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
  /* keep pointer events normal */
}

/* When scrolled, slide header up 40px so navbar sticks to screen top */
.site-header.header-scrolled {
  transform: translateY(-45px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Adjust children positioning: top-bar and navbar are inside fixed header (no longer fixed themselves) */
.top-bar {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 0;
}

.navbar {
  position: relative;
  top: auto; /* previously top:40px when independent */
  left: auto;
  right: auto;
  z-index: 1;
  /* keep visual styles */
  background-color: var(--navbar-bg);
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  transition: background-color 0.3s, transform 0.28s ease;
}

/* Desktop: ensure dropdown hover still works while header is fixed */
@media (min-width: 992px) {
  .site-header.header-scrolled .top-bar {
    /* top-bar moved up — keep it hidden visually when scrolled */
    visibility: visible;
  }
}

/* Mobile: header still fixed; adjust body padding for the header height */
@media (max-width: 991.98px) {
  body {
    padding-top: 76px; /* keep existing mobile padding */
  }
}

/* Ensure body has enough top padding for fixed header in desktop */
body {
  padding-top: 0; /* Account for fixed header (top-bar + navbar) */
}
/* Add this to your existing nav.css file */

/* Footer Styles - Consistent Blue Theme */
footer {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
    color: white !important;
    padding-top: 3rem;
    margin-top: auto;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: #ffffff !important;
    padding-left: 5px;
    transform: translateX(5px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: white;
    color: #0d6efd;
    transform: translateY(-3px);
}

.footer-title {
    color: white !important;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: white;
}

/* Dark mode override to keep blue footer */
[data-bs-theme="dark"] footer {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
}

[data-bs-theme="dark"] .footer-links a {
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-bs-theme="dark"] .footer-links a:hover {
    color: #ffffff !important;
}
/* ================= Accessibility ================= */

/* Skip to content */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: #0d6efd;
  color: #fff;
  padding: 8px 14px;
  z-index: 10000;
  border-radius: 4px;
  text-decoration: none;
}
.skip-link:focus-visible {
  top: 10px;
}

/* Keyboard focus */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #0d6efd;
  outline-offset: 3px;
  border-radius: 4px;
}
