 /* ===== Global Styles ===== */
    :root {
      /* Light Theme (Default) */
      --primary: #4361ee;
      --primary-dark: #3a56d4;
      --primary-light: #5f7cfc;
      --secondary: #3f37c9;
      --accent: #f72585;
      --accent-dark: #d81168;
      --light: #f8f9fa;
      --medium-light: #e9ecef;
      --dark: #212529;
      --dark-muted: #495057;
      --white: #ffffff;

      /* Color scheme independent variables */
      --shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
      --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.08);
      --transition: all 0.3s ease-in-out;
      --radius: 10px;

      /* Define Theme Specific Variables */
      --bg-color: var(--white);
      --text-color: var(--dark-muted);
      --heading-color: var(--dark);
      --card-bg: var(--white);
      --card-border: var(--medium-light);
      --header-bg: rgba(255, 255, 255, 0.95);
      --header-shadow: var(--shadow);
      --footer-bg: var(--dark);
      --footer-text: var(--medium-light);
      --footer-heading: var(--white);
      --link-color: var(--primary);
      --link-hover-color: var(--accent);
      --input-bg: var(--medium-light);
      --input-text: var(--dark-muted);
      --focus-ring-color: var(--primary-light);
    }

    body.dark-mode {
       /* Dark Theme Variables */
      --primary: #5f7cfc;
      --primary-dark: #4361ee;
      --primary-light: #8ba2ff;
      --secondary: #7069fa;
      --accent: #ff5d9e;
      --accent-dark: #f72585;
      --light: #343a40;
      --medium-light: #495057;
      --dark: #f8f9fa;
      --dark-muted: #ced4da;
      --white: #1b1f23;

      --bg-color: #121212;
      --text-color: var(--dark-muted);
      --heading-color: var(--dark);
      --card-bg: #1f1f1f;
      --card-border: #333;
      --header-bg: rgba(27, 31, 35, 0.9);
      --header-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
      --footer-bg: var(--white);
      --footer-text: var(--dark-muted);
      --footer-heading: var(--dark);
      --link-color: var(--primary);
      --link-hover-color: var(--accent);
      --input-bg: var(--medium-light);
      --input-text: var(--dark);
      --focus-ring-color: var(--primary-light);

      --shadow: 0 6px 12px rgba(255, 255, 255, 0.05);
      --shadow-sm: 0 4px 6px rgba(255, 255, 255, 0.04);
    }

    /* ===== Base & Accessibility ===== */
    html {
        scroll-behavior: smooth;
    }

    body {
      font-family: 'Poppins', sans-serif;
      line-height: 1.7;
      color: var(--text-color);
      background-color: var(--bg-color);
      margin: 0;
      padding: 0;
      font-weight: 400;
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
      transition: background-color 0.3s ease, color 0.3s ease;
    }

   
    *:focus-visible {
        outline: 3px solid var(--focus-ring-color);
        outline-offset: 2px;
        box-shadow: 0 0 0 4px rgba(var(--focus-ring-color), 0.3);
        border-radius: 3px;
    }
    *:focus {
        outline: none;
    }
    body.dark-mode input:focus-visible,
    body.dark-mode textarea:focus-visible,
    body.dark-mode select:focus-visible {
        outline-color: var(--accent);
        box-shadow: 0 0 0 4px rgba(var(--accent), 0.4);
    }

    h1, h2, h3, h4, h5, h6 {
        color: var(--heading-color);
        font-weight: 600;
        line-height: 1.3;
    }

    a {
      text-decoration: none;
      color: var(--link-color);
      transition: var(--transition);
    }

    a:hover {
      color: var(--link-hover-color);
    }

    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 15px;
      box-sizing: border-box;
    }

    .visually-hidden {
        position: absolute !important;
        height: 1px; width: 1px;
        overflow: hidden;
        clip: rect(1px, 1px, 1px, 1px);
        white-space: nowrap;
    }

    /* ===== Utility Classes ===== */
    .btn {
        display: inline-block;
        padding: 12px 30px;
        font-weight: 600;
        border-radius: var(--radius);
        transition: var(--transition);
        cursor: pointer;
        text-align: center;
        border: 2px solid transparent;
        box-shadow: var(--shadow-sm);
        font-size: 1rem;
        background-color: var(--primary);
        color: var(--white);
    }
    
    body.dark-mode .btn-primary {
        color: #111;
    }

    .btn-primary {
        background: linear-gradient(45deg, var(--primary), var(--primary-light));
        color: var(--white);
    }

    .btn-primary:hover {
        background: linear-gradient(45deg, var(--primary-dark), var(--primary));
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

    .section-padding {
        padding: 6rem 0;
    }

    .section-title {
        text-align: center;
        margin-bottom: 2rem;
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--heading-color);
        position: relative;
        padding-bottom: 1rem;
    }
    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        border-radius: 2px;
    }

    /* ===== Header Styles ===== */
    .header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;
      background-color: var(--bg-color);
      box-shadow: var(--shadow-sm);
      transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
      padding: 1rem 0;
    }

    .header.scrolled {
        background-color: var(--header-bg);
        padding: 0.75rem 0;
        box-shadow: var(--header-shadow);
        backdrop-filter: blur(5px);
    }

    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .logo-img {
      width: 45px;
      height: 45px;
      border-radius: 50%;
    }

    .logo-text {
      font-size: 1.75rem;
      font-weight: 700;
      color: var(--heading-color);
      margin: 0;
    }

    .logo-text span {
      color: var(--primary);
    }

    /* ===== Navigation ===== */
    .nav-menu {
      display: flex;
      list-style: none;
      margin: 0;
      padding: 0;
      align-items: center;
    }

    .nav-item {
      margin-left: 1.5rem;
    }

    .nav-link {
      font-weight: 500;
      color: var(--text-color);
      position: relative;
      font-size: 1rem;
      border-radius: 4px;
    }

    .nav-link::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      border-radius: 1.5px;
      transition: width 0.3s ease;
    }

    .nav-link:hover,
    .nav-link[aria-current="page"] {
      color: var(--heading-color);
    }

    .nav-link:hover::after,
    .nav-link[aria-current="page"]::after {
      width: 100%;
    }

    /* ===== Dark Mode Toggle ===== */
    .dark-mode-toggle {
        position: fixed;
        bottom: 25px;
        left: 25px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: var(--primary);
        color: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 999;
        box-shadow: var(--shadow);
        transition: var(--transition);
        border: none;
        font-size: 1.25rem;
    }
    
    .dark-mode-toggle:hover {
        transform: scale(1.1);
        background-color: var(--accent);
    }
    
    .dark-mode-toggle i {
        font-size: 1.25rem;
        transition: var(--transition);
    }
    
    body.dark-mode .dark-mode-toggle {
        color: #111;
    }
    
    body.dark-mode .dark-mode-toggle:hover {
        color: var(--white);
    }

    /* ===== Mobile Menu ===== */
    .mobile-menu-btn {
      display: none;
      background: none;
      border: none;
      font-size: 2rem;
      color: var(--heading-color);
      cursor: pointer;
      z-index: 1100;
      padding: 5px;
      border-radius: 4px;
    }

    /* ===== Login Page Styles ===== */
    .login-section {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding: 100px 0 60px;
        background-color: var(--bg-color);
    }

    .login-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        width: 100%;
    }

    .login-card {
        background-color: var(--card-bg);
        border-radius: var(--radius);
        box-shadow: var(--shadow-sm);
        padding: 2.5rem;
        transition: var(--transition);
        border: 1px solid var(--card-border);
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }

    .login-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow);
    }

    .login-title {
        text-align: center;
        margin-bottom: 2rem;
        color: var(--heading-color);
    }

    .login-icon {
        font-size: 3rem;
        color: var(--primary);
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-label {
        display: block;
        margin-bottom: 0.5rem;
        color: var(--heading-color);
        font-weight: 500;
    }

    .form-control {
        width: 100%;
        padding: 12px 8px;
        border: 1px solid var(--card-border);
        border-radius: var(--radius);
        background-color: var(--input-bg);
        color: var(--input-text);
        font-family: inherit;
        font-size: 1rem;
        transition: var(--transition);
    }

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(var(--primary), 0.1);
    }

    .remember-forgot {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .remember-me {
        display: flex;
        align-items: center;
    }

    .remember-me input {
        margin-right: 8px;
    }

    .forgot-password {
        color: var(--primary);
        font-size: 0.9rem;
    }

    .login-btn {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .divider {
        display: flex;
        align-items: center;
        margin: 1.5rem 0;
        color: var(--text-color);
        font-size: 0.9rem;
    }

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background-color: var(--card-border);
        margin: 0 10px;
    }

    .social-login {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .social-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        border-radius: var(--radius);
        font-weight: 500;
        transition: var(--transition);
        border: 1px solid var(--card-border);
        background-color: var(--card-bg);
        color: var(--text-color);
    }

    .social-btn:hover {
        background-color: var(--medium-light);
    }

    .social-btn i {
        margin-right: 10px;
        font-size: 1.2rem;
    }

    .google-btn {
        color: #DB4437;
    }

    .facebook-btn {
        color: #4267B2;
    }

    .register-link {
        text-align: center;
        margin-top: 1.5rem;
        font-size: 0.95rem;
    }

    .register-link a {
        color: var(--primary);
        font-weight: 500;
    }

    .admin-login-link {
        text-align: center;
        margin-top: 1rem;
        font-size: 0.9rem;
    }

    .admin-login-link a {
        color: var(--accent);
        font-weight: 500;
    }

    /* ===== Footer ===== */
    .footer {
      background-color: var(--footer-bg);
      color: var(--footer-text);
      padding: 3rem 0 1.5rem;
      font-size: 0.95rem;
      transition: background-color 0.3s ease, color 0.3s ease;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
      margin-bottom: 2rem;
    }

    .footer-col h3 {
        color: var(--footer-heading);
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        position: relative;
        padding-bottom: 0.5rem;
    }
    
    .footer-col h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background-color: var(--primary);
    }

    .footer-logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1.5rem;
    }
    
    .footer-logo-img {
         width: 40px;
         height: 40px;
         border-radius: 50%;
    }

    .footer-logo-text {
      font-size: 1.75rem;
      font-weight: 700;
      color: var(--footer-heading);
      margin: 0;
    }

    .footer-logo-text span {
      color: var(--primary);
    }

    .footer-col p {
        color: var(--footer-text);
        line-height: 1.8;
    }

    .footer-col ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .footer-col li {
        margin-bottom: 0.8rem;
    }
    
    .footer-col a {
        color: var(--footer-text);
        transition: var(--transition);
    }
    
    .footer-col a:hover {
        color: var(--primary);
        padding-left: 5px;
    }

    .social-links a {
        color: var(--footer-text);
        font-size: 1.5rem;
        margin-right: 1rem;
        transition: var(--transition);
        border-radius: 4px;
    }
    
    .social-links a:hover {
        color: var(--primary);
        transform: scale(1.1);
    }

    .copyright {
      text-align: center;
      padding-top: 2rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      color: var(--footer-text);
      font-size: 0.9rem;
    }
    
    body.dark-mode .copyright {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    /* Back to Top Button */
    .back-to-top {
        position: fixed;
        bottom: 25px;
        right: 25px;
        background: var(--primary);
        color: var(--white);
        width: 45px;
        height: 45px;
        line-height: 45px;
        text-align: center;
        border-radius: 50%;
        font-size: 1.5rem;
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
        border: 2px solid transparent;
    }
    
    body.dark-mode .back-to-top {
         color: #111;
    }
    
    .back-to-top.active {
        opacity: 1;
        visibility: visible;
    }
    
    .back-to-top:hover {
        background: var(--accent);
        color: var(--white);
        transform: scale(1.1);
    }
    
    body.dark-mode .back-to-top:hover {
         color: var(--white);
    }

    /* ===== Responsive Styles ===== */
    @media (max-width: 992px) {
        .section-padding {
            padding: 4rem 0;
        }
        .section-title {
            font-size: 2.2rem;
        }
    }

    @media (max-width: 768px) {
        body {
            position: relative;
        }
        .mobile-menu-btn {
            display: block;
            padding: 10px;
        }

        .nav-menu {
            position: fixed;
            top: 0;
            left: -80%;
            width: 80%;
            max-width: 250px;
            height: 100vh;
            background-color: var(--bg-color);
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-start;
            padding: 6rem 1.5rem 2rem;
            gap: 1rem;
            transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1), background-color 0.3s ease;
            box-shadow: var(--shadow);
            z-index: 1050;
            overflow-y: auto;
        }

        .nav-menu.active {
            left: 0;
        }
        
        .nav-item {
            margin-left: 0;
            width: 100%;
            margin-bottom: 0.5rem;
        }
        
        .nav-link {
            font-size: 1.1rem;
            padding: 0.8rem;
            display: block;
            width: 100%;
            border-radius: var(--radius);
        }
        
        .nav-link::after {
            display: none;
        }
        
        .nav-link:hover, .nav-link[aria-current="page"] {
            color: var(--primary);
            background-color: var(--medium-light);
            padding-left: 10px;
        }

        .login-card {
            padding: 2rem;
        }
    }
    .newsletter-form input[type='email'] {
        padding: 10px;
        flex-grow: 1;
        border: none;
        border-radius: var(--radius) 0 0 var(--radius);
        background-color: var(--input-bg);
        color: var(--input-text);
    }
    
    .newsletter-form button {
        border-radius: 0 var(--radius) var(--radius) 0;
        padding: 10px 15px;
        color: var(--white);
        border: 2px solid transparent;
    }
    
    body.dark-mode .newsletter-form button {
        color: #111;
    }

    @media (max-width: 576px) {
        .container {
            padding: 0 15px;
        }
        .section-padding {
            padding: 3rem 0;
        }
        .section-title {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
        }
        .login-card {
            padding: 1.5rem;
        }
        .back-to-top {
            width: 40px;
            height: 40px;
            line-height: 40px;
            font-size: 1.2rem;
            bottom: 15px;
            right: 15px;
        }
        .dark-mode-toggle {
            bottom: 15px;
            left: 15px;
            width: 40px;
            height: 40px;
            font-size: 1.2rem;
        }
    }

    /* Reduced Motion Accessibility */
    @media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto;
      }
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
        transition-delay: 0ms !important;
      }
    }

    /* Animations */
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    