/* Extracted without rule changes so homepage styles can be browser-cached. */

/* Source: base/templates/base.html */
/* Global Responsive Fixes */
    html, body {
      width: 100%;
      overflow-x: hidden;
      position: relative;
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    *, *::before, *::after {
      box-sizing: inherit;
    }

    /* Developer Info Popup */
    .dev-popup-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(3px);
      z-index: 10000;
      display: none;
      align-items: center;
      justify-content: center;
      animation: fadeIn 0.3s ease;
      padding: 10px;
    }

    .dev-popup-overlay.active {
      display: flex !important;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes slideUp {
      from { 
        transform: translateY(30px) scale(0.95);
        opacity: 0;
      }
      to { 
        transform: translateY(0) scale(1);
        opacity: 1;
      }
    }

    .dev-popup {
      background: #ffffff;
      border-radius: 12px;
      width: min(550px, calc(100vw - 20px));
      max-width: calc(100vw - 20px);
      max-height: calc(100vh - 20px);
      overflow-y: auto;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
      position: relative;
      animation: slideUp 0.4s ease-out;
      margin: 10px;
    }

    .dev-popup-close-btn {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: #f3f4f6;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #6b7280;
      font-size: 18px;
      transition: all 0.2s ease;
      z-index: 10;
    }

    .dev-popup-close-btn:hover {
      background: #e5e7eb;
      color: #374151;
      transform: rotate(90deg);
    }

    .dev-popup-header {
      padding: 40px 20px 25px;
      text-align: center;
      background: #ffffff;
    }

    .dev-popup-profile {
      width: 110px;
      height: 110px;
      margin: 0 auto 20px;
      border-radius: 50%;
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(var(--brand-primary-rgb), 0.2);
      border: 4px solid #fff1c7;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    }

    .dev-popup-profile img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }

    .dev-popup-profile i {
      font-size: 48px;
      color: white;
    }

    .dev-popup-greeting {
      font-size: 1rem;
      color: #374151;
      margin: 0 0 8px 0;
      font-weight: 400;
    }

    .dev-popup-name {
      font-size: 1.6rem;
      color: #111827;
      font-weight: 700;
      margin: 0 0 12px 0;
      word-break: break-word;
    }

    .dev-popup-tagline {
      font-size: 0.95rem;
      color: #6b7280;
      margin: 0 0 16px 0;
      line-height: 1.6;
      padding: 0 10px;
    }

    .dev-popup-body {
      padding: 0 20px 25px;
    }

    .dev-popup-message {
      background: #fff5f6;
      border-left: 4px solid var(--brand-primary);
      padding: 16px;
      border-radius: 8px;
      margin-bottom: 20px;
    }

    .dev-popup-message p {
      margin: 0 0 10px 0;
      font-size: 0.95rem;
      color: #374151;
      line-height: 1.6;
      word-break: break-word;
    }

    .dev-popup-message p:last-child {
      margin-bottom: 0;
    }

    .dev-popup-message strong {
      color: var(--brand-primary-text);
      font-weight: 600;
    }

    .dev-contact-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 0;
      border-bottom: 1px solid #f3f4f6;
    }

    .dev-contact-item:last-child {
      border-bottom: none;
    }

    .dev-contact-label {
      font-size: 0.9rem;
      color: #6b7280;
      font-weight: 600;
      min-width: 85px;
      flex-shrink: 0;
    }

    .dev-contact-value {
      font-size: 0.95rem;
      color: #111827;
      font-weight: 500;
      flex: 1;
      word-break: break-word;
      overflow-wrap: break-word;
    }

    .dev-contact-value a {
      color: var(--brand-primary-text);
      text-decoration: none;
      transition: color 0.2s ease;
      word-break: break-all;
    }

    .dev-contact-value a:hover {
      color: var(--brand-primary-text);
      text-decoration: underline;
    }

    .dev-popup-footer {
      padding: 18px 20px;
      background: #fff8e6;
      text-align: center;
      border-top: 1px solid #fff1c7;
    }

    .dev-popup-footer-text {
      font-size: 0.95rem;
      color: #374151;
      margin: 0;
      font-style: italic;
      font-weight: 500;
    }

    .dev-popup-footer-text strong {
      color: var(--brand-primary-text);
    }

    /* PWA Install Button Styles */
    #pwa-install-btn {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
      color: var(--brand-on-primary, #14141b);
      border: none;
      padding: 14px 28px;
      border-radius: 30px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      box-shadow: 0 6px 20px rgba(var(--brand-primary-rgb), 0.4);
      z-index: 9998;
      display: none;
      align-items: center;
      gap: 10px;
      transition: all 0.3s ease;
      animation: pulse 2s infinite;
      font-family: var(--font-sans);
    }

    #pwa-install-btn i {
      font-size: 18px;
    }

    #pwa-install-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(var(--brand-primary-rgb), 0.5);
    }

    #pwa-install-btn:active {
      transform: translateY(-1px);
    }

    @keyframes pulse {
      0%, 100% {
        box-shadow: 0 6px 20px rgba(var(--brand-primary-rgb), 0.4);
      }
      50% {
        box-shadow: 0 6px 30px rgba(var(--brand-primary-rgb), 0.6);
      }
    }

    /* Install banner for iOS */
    .ios-install-banner {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
      color: var(--brand-on-primary, #14141b);
      padding: 16px 20px;
      display: none;
      align-items: center;
      justify-content: space-between;
      z-index: 9997;
      box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
      font-family: var(--font-sans);
    }

    .ios-install-banner.show {
      display: flex;
    }

    .ios-install-content {
      flex: 1;
      padding-right: 10px;
    }

    .ios-install-content h3 {
      margin: 0 0 5px 0;
      font-size: 16px;
      font-weight: 600;
    }

    .ios-install-content p {
      margin: 0;
      font-size: 13px;
      opacity: 0.9;
    }

    .ios-install-close {
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: white;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
      flex-shrink: 0;
    }

    .ios-install-close:hover {
      background: rgba(255, 255, 255, 0.3);
    }

    /* Tablet Responsive - 768px and below */
    @media (max-width: 768px) {
      .dev-popup {
        width: calc(100vw - 20px);
        margin: 10px;
      }

      .dev-popup-header {
        padding: 35px 18px 22px;
      }

      .dev-popup-profile {
        width: 95px;
        height: 95px;
        margin-bottom: 16px;
      }

      .dev-popup-profile i {
        font-size: 42px;
      }

      .dev-popup-name {
        font-size: 1.4rem;
        margin-bottom: 10px;
      }

      .dev-popup-tagline {
        font-size: 0.88rem;
        padding: 0 8px;
      }

      .dev-popup-body {
        padding: 0 18px 20px;
      }

      .dev-popup-message {
        padding: 14px;
      }

      .dev-contact-label {
        min-width: 70px;
        font-size: 0.85rem;
      }

      .dev-contact-value {
        font-size: 0.88rem;
      }

      .dev-popup-footer {
        padding: 16px 18px;
      }

      #pwa-install-btn {
        bottom: 15px;
        right: 15px;
        padding: 12px 24px;
        font-size: 14px;
      }

      #pwa-install-btn i {
        font-size: 16px;
      }
    }

    /* Mobile Responsive - 480px and below */
    @media (max-width: 480px) {
      .dev-popup-overlay {
        padding: 8px;
      }

      .dev-popup {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        margin: 8px;
        border-radius: 10px;
      }

      .dev-popup-close-btn {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 16px;
      }

      .dev-popup-header {
        padding: 30px 15px 18px;
      }

      .dev-popup-profile {
        width: 85px;
        height: 85px;
        margin-bottom: 14px;
        border-width: 3px;
      }

      .dev-popup-profile i {
        font-size: 38px;
      }

      .dev-popup-greeting {
        font-size: 0.9rem;
        margin-bottom: 6px;
      }

      .dev-popup-name {
        font-size: 1.25rem;
        margin-bottom: 8px;
      }

      .dev-popup-tagline {
        font-size: 0.85rem;
        padding: 0 5px;
        line-height: 1.5;
      }

      .dev-popup-body {
        padding: 0 15px 18px;
      }

      .dev-popup-message {
        padding: 12px;
        border-left-width: 3px;
      }

      .dev-popup-message p {
        font-size: 0.82rem;
        line-height: 1.5;
        margin-bottom: 8px;
      }

      .dev-contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
      }

      .dev-contact-label {
        min-width: auto;
        font-size: 0.8rem;
      }

      .dev-contact-value {
        font-size: 0.85rem;
      }

      .dev-popup-footer {
        padding: 14px 15px;
      }

      .dev-popup-footer-text {
        font-size: 0.82rem;
        line-height: 1.4;
      }

      #pwa-install-btn {
        bottom: 80px;
        right: 10px;
        padding: 10px 20px;
        font-size: 13px;
        gap: 8px;
      }

      #pwa-install-btn i {
        font-size: 14px;
      }

      .ios-install-banner {
        padding: 12px 15px;
      }

      .ios-install-content h3 {
        font-size: 14px;
      }

      .ios-install-content p {
        font-size: 12px;
      }

      .ios-install-close {
        width: 28px;
        height: 28px;
        font-size: 16px;
      }
    }

    /* Extra Small Mobile - 360px and below */
    @media (max-width: 360px) {
      .dev-popup-overlay {
        padding: 5px;
      }

      .dev-popup {
        width: calc(100vw - 10px);
        max-width: calc(100vw - 10px);
        margin: 5px;
      }

      .dev-popup-header {
        padding: 25px 12px 15px;
      }

      .dev-popup-profile {
        width: 75px;
        height: 75px;
        margin-bottom: 12px;
      }

      .dev-popup-profile i {
        font-size: 34px;
      }

      .dev-popup-greeting {
        font-size: 0.85rem;
      }

      .dev-popup-name {
        font-size: 1.15rem;
      }

      .dev-popup-tagline {
        font-size: 0.8rem;
      }

      .dev-popup-body {
        padding: 0 12px 15px;
      }

      .dev-popup-message {
        padding: 10px;
      }

      .dev-popup-message p {
        font-size: 0.78rem;
      }

      .dev-contact-label {
        font-size: 0.75rem;
      }

      .dev-contact-value {
        font-size: 0.8rem;
      }

      .dev-popup-footer {
        padding: 12px;
      }

      .dev-popup-footer-text {
        font-size: 0.78rem;
      }

      #pwa-install-btn {
        bottom: 75px;
        right: 8px;
        padding: 9px 18px;
        font-size: 12px;
        gap: 6px;
      }

      #pwa-install-btn i {
        font-size: 13px;
      }

      .ios-install-banner {
        padding: 10px 12px;
      }

      .ios-install-content h3 {
        font-size: 13px;
      }

      .ios-install-content p {
        font-size: 11px;
      }
    }

/* Source: base/templates/navbar.html */
/* ========== BASE STYLES ========== */
html {
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-sans);
    background: #fff;
    margin: 0;
    padding: 0;
    padding-top: 64px;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 75px;
    }
}

/* ========== FIXED NAVBAR ========== */
.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 24px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid #edeaea;
    min-height: 64px;
    gap: 16px;
}

.main-navbar.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* ========== LOGO ========== */
.navbar-logo-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.navbar-logo-wrapper img {
    height: 38px;
    display: block;
    width: auto;
}

/* ========== SEARCH BAR ========== */
.navbar-search-box {
    position: relative;
    flex: 1 1 380px;
    max-width: 460px;
    min-width: 240px;
    margin: 0 0 0 15px;
}

.navbar-search-box input {
    width: 100%;
    height: 40px;
    padding: 0 40px;
    border: 1.5px solid #e5e5e5;
    border-radius: 25px;
    font-size: 14px;
    background: #f8f8f8;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.navbar-search-box input:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.1);
}

.navbar-search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
}

/* ========== NAV ACTIONS ========== */
.navbar-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ========== BUTTONS ========== */
.navbar-link-btn {
    height: 38px;
    padding: 0 16px;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 700;
    color: #333;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.navbar-link-btn:hover {
    background: #f8f8f8;
    border-color: var(--brand-primary);
    color: var(--brand-primary-text);
}

.navbar-login-btn {
    height: 38px;
    padding: 0 16px;
    box-sizing: border-box;
    background: transparent;
    color: #333;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    border-radius: 25px;
    font-size: 13.5px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar-login-btn:hover {
    background: #f8f8f8;
    color: var(--brand-primary-text);
    border-color: var(--brand-primary);
}

.navbar-signup-btn {
    height: 38px;
    padding: 0 16px;
    box-sizing: border-box;
    background: var(--brand-primary);
    color: var(--brand-on-primary, #14141b);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(var(--brand-primary-rgb), 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.navbar-signup-btn:hover {
    background: var(--brand-primary-dark);
    box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb), 0.3);
}

/* ========== DROPDOWN STYLES ========== */
.navbar-dropdown {
    position: relative;
}

.navbar-dropdown .fa-caret-down {
    margin-left: 5px;
}

.navbar-dropdown-content {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1000;
    display: none;
    border: 1px solid #e5e5e5;
    max-height: 500px;
    overflow-y: auto;
}

.navbar-dropdown.dropdown-open .navbar-dropdown-content {
    display: block;
}

.navbar-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 15px;
    font-weight: 600;
}

.navbar-dropdown-content a:hover {
    background: #fff5f6;
    color: var(--brand-primary-text);
}

.navbar-category-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 16px;
    background: #f5f7fa;
    color: var(--brand-primary-text);
    flex-shrink: 0;
}

.navbar-dropdown-content a:hover .navbar-category-icon {
    background: var(--brand-primary);
    color: var(--brand-on-primary, #14141b);
}

.navbar-dropdown-group {
    padding: 12px 16px 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a8fa3;
}

.navbar-dropdown-group:not(:first-child) {
    margin-top: 6px;
    border-top: 1px solid #f0f0f0;
}

.navbar-dropdown-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.navbar-user-dropdown .navbar-dropdown-content {
    min-width: 220px;
    padding: 6px 0;
}

.navbar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    border: 1px solid #e5e5e5;
}

.navbar-user-profile-btn {
    display: flex;
    align-items: center;
    gap: 7px;
}

/* ========== NOTIFICATION STYLES ========== */
.navbar-notification-wrapper {
    position: relative;
}

.navbar-notification-btn {
    position: relative;
    height: 38px;
    padding: 0 16px;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 700;
    color: #333;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.navbar-notification-btn:hover {
    background: #f8f8f8;
    border-color: var(--brand-primary);
    color: var(--brand-primary-text);
}

.navbar-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--brand-primary);
    color: var(--brand-on-primary, #14141b);
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.navbar-mobile-notification-btn {
    display: none;
    position: relative;
    background: transparent;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-mobile-notification-btn:hover {
    background: #f8f8f8;
    border-color: var(--brand-primary);
}

.navbar-mobile-notification-btn i {
    font-size: 18px;
    color: #333;
}

.navbar-mobile-notification-btn:hover i {
    color: var(--brand-primary-text);
}

.navbar-notifications-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    width: 380px;
    max-width: 90vw;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    z-index: 10001;
    display: none;
    border: 1px solid #e5e5e5;
    overflow: hidden;
}

.navbar-notifications-dropdown.active {
    display: block;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
    background: #fafafa;
}

.notifications-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.mark-all-read-btn {
    background: none;
    border: none;
    color: var(--brand-primary-text);
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
}

.mark-all-read-btn:hover {
    text-decoration: underline;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background: #f9f9f9;
}

.notification-item.unread {
    background: #fff5f6;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--brand-primary);
    border-radius: 50%;
}

/* ========== ADMIN NOTIFICATION STYLES ========== */
.notification-item.admin-notification {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    border-left: 4px solid #ff9800;
}

.notification-item.admin-notification:hover {
    background: linear-gradient(135deg, #ffeccc 0%, #ffd699 100%);
}

.notification-item.admin-notification .notification-title {
    color: #e65100;
    font-weight: 700;
}

.notification-item.admin-notification .notification-type-badge {
    background: #ff9800;
    color: white;
}

.notification-item.admin-notification::before {
    display: none;
}

/* ========== NOTIFICATION TYPE BADGES ========== */
.notification-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.notification-type-badge.free_live_class {
    background: #e3f2fd;
    color: #1976d2;
}

.notification-type-badge.offer {
    background: #fef3e8;
    color: #f57c00;
}

.notification-type-badge.announcement {
    background: #ff9800;
    color: white;
}

.notification-type-badge.course_update {
    background: #e8f5e9;
    color: #2e7d32;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.notification-message {
    font-size: 13px;
    color: #666;
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 11px;
    color: #999;
    margin: 0;
}

.notifications-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.notifications-empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 10px;
}

.notifications-loading {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

/* Not logged in message */
.notifications-not-logged-in {
    padding: 40px 20px;
    text-align: center;
}

.notifications-not-logged-in i {
    font-size: 48px;
    color: var(--brand-primary-text);
    margin-bottom: 15px;
}

.notifications-not-logged-in p {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 15px;
}

.notifications-login-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--brand-primary);
    color: var(--brand-on-primary, #14141b);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.notifications-login-btn:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-1px);
}

/* ========== SEARCH SUGGESTIONS ========== */
.navbar-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 450px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: -1px;
}

.navbar-search-suggestions.active {
    display: block;
}

.navbar-suggestion-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.navbar-suggestion-item:hover {
    background: #f9f9f9;
}

.navbar-suggestion-thumbnail {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    background: #f0f0f0;
    border: 1px solid #eee;
}

.navbar-suggestion-thumbnail-category {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #14141b 0%, #2c2c38 100%);
    border: none;
    font-size: 22px;
    color: #fff;
}

.navbar-suggestion-content {
    flex: 1;
    min-width: 0;
}

.navbar-suggestion-type {
    font-size: 10.5px;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #e8f0fe;
    color: #1967d2;
}

.navbar-suggestion-type.category {
    background: #f3e8fd;
    color: #7c3aed;
}

.navbar-suggestion-type.live-class {
    background: #fde8ec;
    color: #d6336c;
}

.navbar-suggestion-type.test-series {
    background: rgba(var(--brand-primary-rgb), 0.12);
    color: var(--brand-primary-text);
}

.navbar-suggestion-type.e-library {
    background: #e6f7ee;
    color: #1b8a5a;
}

.navbar-suggestion-type.bundle {
    background: #fff4e0;
    color: #b45309;
}

.navbar-suggestion-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar-suggestion-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 8px;
    align-items: center;
    overflow: hidden;
}

.navbar-suggestion-category {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar-suggestion-dot {
    flex-shrink: 0;
}

.navbar-suggestion-price {
    color: var(--brand-primary-text);
    font-weight: 600;
    flex-shrink: 0;
}

.navbar-suggestion-price.is-free {
    color: #21b56c;
}

.navbar-suggestion-arrow {
    flex-shrink: 0;
    color: #ccc;
    font-size: 12px;
}

.navbar-no-suggestions,
.navbar-search-loading {
    padding: 24px 16px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.navbar-no-suggestions i,
.navbar-search-loading i {
    margin-right: 6px;
    color: #999;
}

.navbar-view-all-results {
    padding: 12px 16px;
    text-align: center;
    border-top: 2px solid #e5e5e5;
    background: #f9f9f9;
    color: var(--brand-primary-text);
    font-weight: 600;
    cursor: pointer;
    font-size: 13.5px;
}

.navbar-view-all-results:hover {
    background: #f0f0f0;
}

/* ========== CONTACT PHONE ========== */
.navbar-phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #212121;
    background: #f6f6f6;
    border-radius: 20px;
    height: 40px;
    box-sizing: border-box;
    padding: 0 14px;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.2;
    transition: opacity 0.3s ease;
}

.navbar-phone-link:hover {
    opacity: 0.8;
}

.navbar-phone-link i {
    font-size: 18px;
    color: #25D366;
}

.navbar-phone-link i.fa-phone {
    color: var(--brand-primary-text);
}

/* ========== MOBILE MENU ========== */
.navbar-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

.navbar-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.navbar-mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.navbar-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    will-change: transform;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.navbar-mobile-menu.active {
    transform: translateX(0);
}

.navbar-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.navbar-mobile-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.navbar-mobile-items {
    padding: 15px;
}

.navbar-mobile-items a,
.navbar-mobile-items button {
    display: block;
    padding: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #333;
    background: #f8f8f8;
    border-radius: 8px;
    text-align: left;
    border: none;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
}

.navbar-mobile-items a:hover,
.navbar-mobile-items button:hover {
    background: #f0f0f0;
    color: var(--brand-primary-text);
}

/* ========== MOBILE CATEGORY SLIDER ========== */
.mobile-category-slider-section {
    margin: 20px 0;
    padding: 0;
}

.mobile-category-slider-header {
    margin: 0 0 12px 0;
    padding: 0 12px;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-category-slider-header i {
    color: var(--brand-primary-text);
    font-size: 14px;
}

.mobile-category-slider-wrapper {
    position: relative;
    padding: 0 12px;
}

.mobile-category-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 5px 0 15px 0;
}

.mobile-category-slider::-webkit-scrollbar {
    display: none;
}

.mobile-category-card {
    flex: 0 0 auto;
    width: 140px;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #14141b;
    background-image: linear-gradient(135deg, #14141b 0%, #2c2c38 100%);
    border-radius: 12px;
    padding: 15px 12px;
    text-align: center;
    text-decoration: none;
    color: white;
    scroll-snap-align: start;
    box-shadow: 0 4px 12px rgba(20, 20, 27, 0.25);
    transform: translateZ(0);
}

.mobile-category-card:nth-child(2n) {
    background-color: #f093fb;
    background-image: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.mobile-category-card:nth-child(3n) {
    background-color: #4facfe;
    background-image: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.mobile-category-card:nth-child(4n) {
    background-color: #43e97b;
    background-image: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.mobile-category-card:nth-child(5n) {
    background-color: #fa709a;
    background-image: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.mobile-category-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
}

.mobile-category-card-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mobile-slider-scroll-indicator {
    text-align: center;
    color: #999;
    font-size: 11px;
    margin-top: 5px;
    padding: 0 12px;
}

.mobile-whatsapp-contact {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 56px !important;
    height: 56px !important;
    padding: 0 !important;
    margin: 20px auto 10px auto !important;
    background: #f8f8f8 !important;
    color: #25D366 !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    font-size: 28px !important;
    border: 2px solid #e5e5e5 !important;
    transition: all 0.3s ease !important;
}

.mobile-whatsapp-contact:hover {
    background: #25D366 !important;
    color: white !important;
    border-color: #25D366 !important;
}

/* ========== RESPONSIVE ========== */
/* Mid-width desktops: collapse labels to icons so every navbar item stays on one line */
@media (max-width: 1366px) {
    .navbar-phone-text {
        display: none;
    }

    .navbar-logo-wrapper img {
        height: 32px;
    }

    .navbar-search-box {
        min-width: 150px;
    }

    .navbar-phone-link {
        width: 40px;
        padding: 0;
        justify-content: center;
    }
}

@media (max-width: 1200px) {
    .navbar-notification-btn > span:not(.navbar-notification-badge) {
        display: none;
    }

    .navbar-notification-btn {
        width: 38px;
        padding: 0;
        justify-content: center;
    }

    .navbar-search-box {
        min-width: 120px;
    }

    .navbar-logo-wrapper img {
        height: 44px;
    }
}

@media (max-width: 1024px) {
    .main-navbar {
        padding: 0 16px;
        gap: 10px;
    }
    
    body {
        padding-top: 64px;
    }
    
    .navbar-search-box {
        max-width: 450px;
        min-width: 110px;
        margin: 0 0 0 4px;
    }

    .navbar-link-btn,
    .navbar-login-btn,
    .navbar-signup-btn {
        padding: 0 12px;
        font-size: 13px;
    }

    .navbar-actions-wrapper {
        gap: 6px;
    }
    
    .navbar-phone-text {
        display: none;
    }
    
    .navbar-logo-wrapper img {
        height: 24px;
    }
}

@media (min-width: 769px) and (max-width: 860px) {
    .navbar-logo-wrapper img {
        height: 19px;
    }

    .main-navbar,
    .navbar-actions-wrapper {
        gap: 5px;
    }

    .navbar-search-box {
        min-width: 90px;
    }

    .navbar-phone-link {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-navbar {
        padding: 10px 12px;
        gap: 8px;
    }
    
    body {
        padding-top: 60px;
    }
    
    /* Hide desktop-only items */
    .navbar-dropdown,
    .navbar-link-btn:not(.navbar-user-profile-btn),
    .navbar-login-btn,
    .navbar-signup-btn,
    .navbar-notification-wrapper,
    .navbar-phone-link {
        display: none !important;
    }
    
    /* Show mobile notification button */
    .navbar-mobile-notification-btn {
        display: flex !important;
    }
    
    /* Show mobile menu elements */
    .navbar-mobile-toggle,
    .navbar-mobile-overlay,
    .navbar-mobile-menu {
        display: block;
    }
    
    /* Keep user dropdown visible */
    .navbar-user-dropdown {
        display: block !important;
    }
    
    .navbar-user-profile-btn {
        padding: 6px;
        font-size: 0;
        border: none;
        min-width: 36px;
    }
    
    .navbar-user-avatar {
        width: 32px;
        height: 32px;
        margin-right: 0;
    }
    
    .navbar-user-profile-btn .fa-caret-down {
        display: none;
    }
    
    /* Center search bar in mobile */
    .navbar-search-box {
        flex: 1 1 auto;
        margin: 0 auto;
        max-width: none;
        min-width: 0;
    }
    
    .navbar-search-box input {
        font-size: 13px;
        padding: 9px 35px;
    }
    
    .navbar-search-box i {
        left: 12px;
        font-size: 16px;
    }

    /* Search suggestions dropdown on mobile */
    .navbar-search-suggestions {
        left: 0;
        right: 0;
        border-radius: 0 0 10px 10px;
        max-height: calc(100vh - 120px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    }

    .navbar-suggestion-item {
        padding: 9px 12px;
        gap: 10px;
    }

    .navbar-suggestion-thumbnail,
    .navbar-suggestion-thumbnail-category {
        width: 42px;
        height: 42px;
        border-radius: 8px;
    }

    .navbar-suggestion-thumbnail-category {
        font-size: 18px;
    }

    .navbar-suggestion-name {
        font-size: 13px;
    }

    .navbar-suggestion-type {
        font-size: 9.5px;
        padding: 1px 6px;
    }

    .navbar-suggestion-meta {
        font-size: 11px;
    }

    .navbar-suggestion-arrow {
        display: none;
    }

    .navbar-view-all-results {
        padding: 10px 12px;
        font-size: 13px;
    }

    .navbar-actions-wrapper {
        gap: 6px;
    }
    
    .navbar-logo-wrapper img {
        height: 21px;
    }
    
    .navbar-user-dropdown .navbar-dropdown-content {
        right: 0;
        left: auto;
        min-width: 200px;
    }

    .navbar-mobile-notification-btn .navbar-notifications-dropdown {
        right: 0;
        left: auto;
        width: 340px;
    }
}

@media (max-width: 480px) {
    .navbar-logo-wrapper img {
        height: 45px;
    }
    
    .navbar-search-box input {
        font-size: 12px;
        padding: 8px 30px;
    }
    
    .navbar-mobile-menu {
        width: 260px;
    }

    .navbar-notifications-dropdown {
        width: 320px !important;
    }

    .mobile-category-card {
        width: 120px;
        padding: 12px 10px;
    }
}

/* Scrollbar */
.navbar-dropdown-content::-webkit-scrollbar,
.navbar-search-suggestions::-webkit-scrollbar,
.notifications-list::-webkit-scrollbar {
    width: 6px;
}

.navbar-dropdown-content::-webkit-scrollbar-thumb,
.navbar-search-suggestions::-webkit-scrollbar-thumb,
.notifications-list::-webkit-scrollbar-thumb {
    background: #c7c7c7;
    border-radius: 3px;
}

/* Source: base/templates/modal.html */
/* ===== COUPON MODAL ===== */
.coupon-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.coupon-modal.is-open { 
    display: block; 
}

.coupon-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 20, 31, 0.55);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.coupon-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 92vw);
    margin: 8vh auto 0 auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
    padding: 24px;
    border: 1px solid #e6e6f2;
    animation: couponModalIn 0.3s ease-out;
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes couponModalIn {
    from { 
        transform: translateY(-20px); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

/* Modal Header */
.coupon-modal__header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid #f0f0f6;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.coupon-modal__icon {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #ff4458 100%);
    color: var(--brand-on-primary, #14141b);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb), 0.3);
}

.coupon-modal__header-text {
    flex: 1;
    min-width: 0;
}

.coupon-modal__title {
    margin: 0 0 4px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1c2a;
    line-height: 1.2;
}

.coupon-modal__subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: #6a6e87;
    line-height: 1.3;
}

.coupon-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #555;
    font-size: 18px;
    border-radius: 8px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    z-index: 10;
}

.coupon-modal__close:hover {
    background: #f1f2f7;
    color: var(--brand-primary-text);
    transform: rotate(90deg);
}

.coupon-modal__close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Login Required Message */
.coupon-login-message {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border-radius: 12px;
    border: 2px dashed #e0e4f0;
}

.coupon-login-message__icon {
    font-size: 56px;
    color: var(--brand-primary-text);
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.coupon-login-message__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1c2a;
    margin: 0 0 12px 0;
}

.coupon-login-message__text {
    font-size: 0.95rem;
    color: #6a6e87;
    line-height: 1.6;
    margin: 0 0 24px 0;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.coupon-login-message__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: var(--brand-on-primary, #14141b);
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb), 0.3);
    transition: all 0.2s ease;
}

.coupon-login-message__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--brand-primary-rgb), 0.4);
    color: #fff;
}

.coupon-login-message__button:active {
    transform: translateY(0);
}

.coupon-login-message__signup {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #6a6e87;
}

.coupon-login-message__signup a {
    color: var(--brand-primary-text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.coupon-login-message__signup a:hover {
    color: var(--brand-primary-text);
    text-decoration: underline;
}

/* Form Styles */
.coupon-form__label {
    display: block;
    color: #313969;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.coupon-form__row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 12px;
}

.coupon-form__input {
    flex: 1;
    border: 2px solid #e0e4f0;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
    background: #f7f9fe;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    color: #1a1c2a;
}

.coupon-form__input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.1);
    background: #fff;
}

.coupon-form__input::placeholder {
    color: #a0a4b8;
}

.coupon-form__apply {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: var(--brand-on-primary, #14141b);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb), 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 15px;
}

.coupon-form__apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--brand-primary-rgb), 0.4);
}

.coupon-form__apply:active {
    transform: translateY(0);
}

.coupon-form__apply:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.coupon-form__helper {
    font-size: 0.85rem;
    color: #6a6e87;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.coupon-form__helper::before {
    content: 'ℹ️';
    font-size: 14px;
}

.coupon-form__message {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 6px;
    display: none;
}

.coupon-form__message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.coupon-form__message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Large Modal */
.coupon-modal__dialog--large {
    max-width: 650px;
}

/* Coupon List */
.coupon-list {
    max-height: 420px;
    overflow-y: auto;
    padding: 16px;
    margin: 0 -16px;
}

.coupon-list::-webkit-scrollbar {
    width: 8px;
}

.coupon-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.coupon-list::-webkit-scrollbar-thumb {
    background: #c7c7c7;
    border-radius: 4px;
}

.coupon-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.coupon-item {
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.coupon-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.coupon-item.expired {
    opacity: 0.5;
    background: #f5f5f5;
}

.coupon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.coupon-code {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-primary-text);
    background: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    border: 2px solid var(--brand-primary);
    letter-spacing: 1px;
}

.coupon-discount {
    font-size: 14px;
    font-weight: 700;
    color: #28a745;
    margin-top: 12px;
}

.coupon-description {
    color: #555;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.coupon-details {
    font-size: 12px;
    color: #777;
    line-height: 1.6;
}

.coupon-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-expired {
    background: #f8d7da;
    color: #721c24;
}

.no-coupons {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-coupons i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #ddd;
}

.no-coupons h4 {
    font-size: 20px;
    color: #555;
    margin-bottom: 10px;
}

.no-coupons p {
    font-size: 14px;
    color: #888;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    .coupon-modal__dialog {
        margin: 3vh auto 0 auto;
        padding: 18px;
        width: 96vw;
        max-height: 80vh;
        border-radius: 12px;
    }

    .coupon-modal__dialog--large {
        max-width: 80vw;
    }

    .coupon-modal__header {
        gap: 12px;
        padding-bottom: 14px;
        margin-bottom: 16px;
    }

    .coupon-modal__icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .coupon-modal__title {
        font-size: 1.15rem;
    }

    .coupon-modal__subtitle {
        font-size: 0.8rem;
    }

    .coupon-modal__close {
        width: 32px;
        height: 32px;
        font-size: 16px;
        top: 10px;
        right: 10px;
    }

    .coupon-form__label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .coupon-form__row {
        gap: 8px;
    }

    .coupon-form__input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .coupon-form__apply {
        padding: 10px 18px;
        font-size: 14px;
    }

    .coupon-form__helper {
        font-size: 0.8rem;
        margin-top: 6px;
    }

    .coupon-login-message {
        padding: 30px 16px;
    }

    .coupon-login-message__icon {
        font-size: 48px;
        margin-bottom: 16px;
    }

    .coupon-login-message__title {
        font-size: 1.3rem;
    }

    .coupon-login-message__text {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .coupon-login-message__button {
        padding: 11px 28px;
        font-size: 0.95rem;
    }

    .coupon-login-message__signup {
        font-size: 0.85rem;
        margin-top: 16px;
    }

    .coupon-list {
        max-height: 55vh;
        padding: 12px;
        margin: 0 -12px;
    }

    .coupon-item {
        padding: 14px;
        margin-bottom: 12px;
    }

    .coupon-code {
        font-size: 15px;
        padding: 5px 12px;
    }

    .coupon-discount {
        font-size: 13px;
    }

    .coupon-description {
        font-size: 13px;
    }

    .coupon-details {
        font-size: 11px;
    }

    .coupon-status {
        padding: 3px 8px;
        font-size: 9px;
        top: 10px;
        right: 10px;
    }

    .no-coupons {
        padding: 40px 16px;
    }

    .no-coupons i {
        font-size: 48px;
        margin-bottom: 16px;
    }

    .no-coupons h4 {
        font-size: 18px;
    }

    .no-coupons p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .coupon-modal__dialog {
        margin: 2vh auto 0 auto;
        padding: 16px;
        width: 80vw;
        max-height: 92vh;
    }

    .coupon-modal__header {
        gap: 10px;
        padding-bottom: 12px;
        margin-bottom: 14px;
    }

    .coupon-modal__icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .coupon-modal__title {
        font-size: 1.05rem;
    }

    .coupon-modal__subtitle {
        font-size: 0.75rem;
    }

    .coupon-form__row {
        flex-direction: column;
        gap: 10px;
    }

    .coupon-form__apply {
        width: 100%;
        padding: 11px 20px;
    }

    .coupon-login-message {
        padding: 24px 14px;
    }

    .coupon-login-message__icon {
        font-size: 42px;
        margin-bottom: 14px;
    }

    .coupon-login-message__title {
        font-size: 1.2rem;
    }

    .coupon-login-message__text {
        font-size: 0.85rem;
    }

    .coupon-login-message__button {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .coupon-list {
        max-height: 58vh;
        padding: 10px;
        margin: 0 -10px;
    }

    .coupon-item {
        padding: 12px;
        margin-bottom: 10px;
    }

    .coupon-code {
        font-size: 14px;
        padding: 4px 10px;
    }

    .coupon-discount {
        font-size: 12px;
    }

    .coupon-description {
        font-size: 12px;
    }

    .coupon-details {
        font-size: 10px;
    }

    .no-coupons {
        padding: 30px 12px;
    }

    .no-coupons i {
        font-size: 40px;
    }

    .no-coupons h4 {
        font-size: 16px;
    }

    .no-coupons p {
        font-size: 12px;
    }
}

@media (max-width: 375px) {
    .coupon-modal__dialog {
        padding: 14px;
    }

    .coupon-modal__icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .coupon-modal__title {
        font-size: 1rem;
    }

    .coupon-form__input {
        font-size: 13px;
        padding: 9px 11px;
    }

    .coupon-form__apply {
        font-size: 13px;
        padding: 10px 18px;
    }
}

/* Source: adminpanel/templates/components/banner_slider.html */
.banner-slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff7e2;
    /* Track the 1920x300 artwork's ratio on wide screens; below ~1090px keep a 170px
       floor and let the sides crop (banner art keeps key content in the middle). */
    height: clamp(170px, 15.625vw, 300px);
    display: block;
    line-height: 0;
}

.banner-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.banner-slide.active {
    display: block;
}

.banner-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    vertical-align: top;
    font-size: 0;
    line-height: 0;
}

.banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.banner-prev, .banner-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -20px;
    padding: 12px 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    background: rgba(0,0,0,0.6);
    border: none;
    user-select: none;
    transition: all 0.3s ease;
    z-index: 20;
    text-align: center;
}

.banner-next {
    right: 15px;
    border-radius: 5px 0 0 5px;
}

.banner-prev {
    left: 15px;
    border-radius: 0 5px 5px 0;
}

.banner-prev:hover, .banner-next:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.05);
}

/* New Dots Styling */
.banner-dots {
    position: absolute;
    bottom: 17px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 14;
}

.banner-dot {
    cursor: pointer;
    width: 12px;
    height: 12px;
    background: #e0e0ec;
    border-radius: 50%;
    border: none;
    transition: background 0.22s;
    outline: none;
    padding: 0;
}

.banner-dot.active {
    background: var(--brand-primary);
}

.banner-dot:hover {
    background: var(--brand-primary);
}

/* Keep the banner flush while allowing the following section to own its spacing. */
.banner-slider-container::after {
    content: "";
    display: block;
    clear: both;
    height: 0;
    margin: 0;
    padding: 0;
}

.banner-slider-container + * {
    margin-top: 0;
}

/* Mobile Responsive: height tracks the recommended 750x400 mobile banner crop
   instead of a tiny fixed strip, so the full image shows without harsh cropping. */
@media (max-width: 768px) {
    .banner-slider-container {
        height: auto;
        aspect-ratio: 750 / 400;
    }

    /* Arrows would sit on the banner headline; autoplay + dots handle navigation here */
    .banner-prev, .banner-next {
        display: none;
    }

    .banner-dots {
        bottom: 12px;
        gap: 6px;
    }

    .banner-dot {
        height: 10px;
        width: 10px;
    }
}

@media (max-width: 480px) {
    .banner-prev, .banner-next {
        padding: 8px 12px;
        font-size: 14px;
        margin-top: -15px;
    }

    .banner-dots {
        bottom: 10px;
        gap: 5px;
    }

    .banner-dot {
        height: 8px;
        width: 8px;
    }
}

/* Source: base/templates/video_course.html */
.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
  }

  .course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(var(--brand-primary-rgb), 0.15);
  }

  /* Updated image wrapper and element styles */
  .course-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
  }

  .course-img-elem {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .premium-badge-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 8px;
    pointer-events: none;
  }

  .badge-lock {
    background: rgba(var(--brand-primary-rgb), 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: auto;
  }

  .badge-free {
    background: rgba(40, 167, 69, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: auto;
  }

  .badge-purchased {
    background: rgba(0, 123, 255, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    pointer-events: auto;
  }

  .course-body {
    padding: 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow: hidden;
  }

  .course-title {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: #162033;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .course-category {
    font-size: 11px;
    color: var(--brand-primary-text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .course-category i {
    margin-right: 3px;
  }

  .course-instructor-info {
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
  }

  .instructor-name {
    font-size: 12px;
    color: #162033;
    font-weight: 600;
  }

  .instructor-headline {
    font-size: 11px;
    color: #707793;
    line-height: 1.2;
  }

  .course-description {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .course-meta-info {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #707793;
    border-top: 1px solid #f0f0f0;
    padding-top: 6px;
  }

  .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .meta-item i {
    font-size: 11px;
    color: var(--brand-primary-text);
  }

  .course-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
  }

  .stars {
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .star {
    color: #ffc107;
    font-size: 14px;
  }

  .rating-value {
    color: #162033;
    font-weight: 600;
  }

  .rating-count {
    color: #707793;
    opacity: 0.8;
  }

  .course-pricing {
    font-weight: 700;
    font-size: 16px;
    color: #162033;
    display: flex;
    align-items: center;
    gap: 4px;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
  }

  .rupee {
    font-size: 13px;
  }

  .price-amount {
    font-size: 18px;
    font-weight: 700;
  }

  .rupee-free {
    font-size: 16px;
    font-weight: 700;
    color: #28a745;
  }

  .purchased-text {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .purchased-text i {
    font-size: 16px;
  }

  .old-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 12px;
    margin-left: 6px;
    font-weight: 600;
  }

  .course-labels {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
  }

  .badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .badge-enrolled {
    background: #059669;
    color: #fff;
  }

  .badge-bestseller {
    background: #ffc107;
    color: #000;
  }

  .badge-featured {
    background: #17a2b8;
    color: #fff;
  }

  .badge-free-label {
    background: #28a745;
    color: #fff;
  }

  .badge i {
    font-size: 9px;
  }

  /* Responsive adjustments for tablets */
  @media (max-width: 1024px) {
    .section-header .main-heading {
      font-size: 26px;
    }
    
    .section-header p {
      font-size: 15px;
    }
    
    .slide-arrow2 {
      display: none !important;
    }
  }

  /* Responsive adjustments for mobile */
  @media (max-width: 768px) {
    .section-header .main-heading {
      font-size: 23px;
    }
    
    .section-header p {
      font-size: 6px;
    }

    .course-body {
      padding: 12px;
      gap: 6px;
    }

    .course-title {
      font-size: 14px;
    }

    .course-description {
      -webkit-line-clamp: 1;
    }

    .course-meta-info {
      font-size: 11px;
    }

    .badge-purchased,
    .badge-lock,
    .badge-free {
      font-size: 11px;
      padding: 5px 10px;
    }
  }

/* Source: base/templates/live_class.html */
/* ─── Toast ─────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 20px; right: 20px;
  padding: 16px 20px; background: #10b981; color: white;
  border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.15);
  z-index: 9999; animation: slideIn .3s ease; font-weight: 500;
}
.toast.error   { background: #ef4444; }
.toast.warning { background: #f59e0b; }
.toast.fade-out{ animation: slideOut .3s ease; }
@keyframes slideIn { from{transform:translateX(400px);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes slideOut{ from{transform:translateX(0);opacity:1} to{transform:translateX(400px);opacity:0} }

/* ─── Section Header ────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 35px; padding: 0 20px; }
.main-heading   { font-size: 32px; font-weight: 800; color: #1a1a1a; margin-bottom: 12px; line-height: 1.3; }
.section-description { font-size: 16px; font-weight: 500; color: #666; max-width: 700px; margin: 0 auto; line-height: 1.6; }

/* ─── Card Shell ────────────────────────────────────── */
.course-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  border: 1px solid #efefef;
  transition: transform .3s ease, box-shadow .3s ease;
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,.13);
}

/* ─── Thumbnail ─────────────────────────────────────── */
.lc-thumb {
  position: relative;
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
  flex-shrink: 0;
}
.lc-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.45) 100%);
}
.lc-live-badge {
  position: absolute; top: 10px; right: 10px;
  background: #ff0844;
  color: #fff;
  padding: 4px 10px 4px 8px;
  border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .6px;
  display: flex; align-items: center; gap: 5px;
  box-shadow: 0 2px 8px rgba(255,8,68,.4);
  z-index: 2;
}
.lc-dot {
  width: 7px; height: 7px;
  background: #fff; border-radius: 50%;
  animation: blink 1.2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.lc-free-badge {
  position: absolute; top: 10px; left: 10px;
  background: #10b981; color: #fff;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .6px;
  box-shadow: 0 2px 8px rgba(16,185,129,.4);
  z-index: 2;
}

/* ─── Card Body ─────────────────────────────────────── */
.lc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 14px;
}
.lc-link-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

/* Title — always 2 lines */
.lc-title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  line-height: 1.35em;
  height: 2.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 10px;
}

/* Meta row */
.lc-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.lc-lang-pill,
.lc-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.lc-lang-pill { background: #ede9fe; color: #6d28d9; }
.lc-date-pill { background: #f0fdf4; color: #15803d; }

/* Pricing */
.lc-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.lc-price-now  { font-size: 20px; font-weight: 800; color: #7c3aed; }
.lc-price-old  { font-size: 13px; color: #aaa; text-decoration: line-through; }
.lc-price-free { font-size: 20px; font-weight: 800; color: #10b981; }

/* ─── Upcoming Session Label ────────────────────────── */
.lc-session-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: #e11d48;
  margin-bottom: 6px;
}
.lc-label-dot {
  font-size: 7px;
  color: #e11d48;
  animation: blink 1.2s infinite;
}

/* ─── Session Pill ──────────────────────────────────── */
.lc-session-block {
  height: 34px;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.lc-session-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.lc-session-none {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #9ca3af;
  font-weight: 400;
  font-style: italic;
}
.lc-sdate   { color: #be123c; font-weight: 700; }
.lc-sdivider{ color: #fca5a5; }
.lc-stime   { color: #555; }

/* ─── CTA Button ────────────────────────────────────── */
.lc-cta { margin-top: auto; }
.lc-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
  letter-spacing: .3px;
}
.lc-btn:hover { opacity: .88; transform: translateY(-1px); }
.lc-btn-enroll   { background: linear-gradient(135deg, #14141b 0%, #2c2c38 100%); color: #fff; }
.lc-btn-free     { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #fff; }
.lc-btn-enrolled { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #fff; }

/* ─── Arrows ────────────────────────────────────────── */
.slide-arrow2 { transition: all .3s ease; }
.slide-arrow2:active { transform: translateY(-50%) scale(.95); }
.slide-arrow2:hover  { opacity: 1 !important; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .main-heading { font-size: 26px; }
  .lc-thumb     { height: 140px; }
  .lc-title     { font-size: 14px; }
}

/* Source: base/templates/test_series.html */
/* Section Header Styles */
.section-header {
  text-align: center;
  margin-bottom: 35px;
  padding: 0 20px;
}

.main-heading {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-description {
  font-size: 16px;
  font-weight: 500;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Test Series Purchase Badge (Enrolled) - Renamed to avoid conflicts */
.ts-enrolled-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.ts-purchased-card {
  border: 2px solid #10b981 !important;
}

.ts-purchased-card .course-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(16, 185, 129, 0.1);
  pointer-events: none;
  border-radius: 8px 8px 0 0;
}

/* Test Series Price Label on Image - Renamed to avoid conflicts */
.ts-price-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  z-index: 2;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.ts-free-label {
  background: rgba(16, 185, 129, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ts-paid-label {
  background: rgba(220, 38, 38, 0.95);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Test Series Specific Styles */
.test-series-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  z-index: 2;
}

.course-header-logo {
  margin-bottom: 10px;
}

.course-header-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.ts-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 22px;
  border: 1.5px solid var(--brand-primary, #FCBC00);
  border-radius: 999px;
  color: var(--brand-primary-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.ts-view-all-btn:hover {
  background: var(--brand-primary, #FCBC00);
  color: var(--brand-on-primary, #14141b);
}

.ts-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.ts-subject-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.ts-subject-chip i {
  font-size: 10px;
}

.test-series-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.test-series-info .info-item {
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
}

.test-series-info .info-item i {
  color: #999;
  font-size: 12px;
}

.view-test-btn {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #14141b 0%, #2c2c38 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.view-test-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--brand-primary-rgb), 0.4);
}

.view-test-btn.ts-purchased-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.view-test-btn.ts-purchased-btn:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Course Card Styles (shared) */
.course-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.course-img {
  transition: transform 0.3s ease;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  position: relative;
}

.course-card:hover .course-img {
  transform: scale(1.05);
}

.slide-arrow2 {
  transition: all 0.3s ease;
}

.slide-arrow2:active {
  transform: translateY(-50%) scale(0.95);
}

.slide-arrow2:hover {
  opacity: 1 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-heading {
    font-size: 26px;
  }
  
  .section-description {
    font-size: 14px;
  }
  
  .test-series-info {
    grid-template-columns: 1fr;
  }
  
  .ts-enrolled-badge {
    font-size: 11px;
    padding: 5px 10px;
  }
  
  .ts-price-label {
    font-size: 12px;
    padding: 5px 12px;
  }
}

/* Source: base/templates/e_library.html */
/* Fixed Card Size for Consistency */
  .elibrary-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    height: 520px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .elibrary-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(var(--brand-primary-rgb), 0.15);
  }

  /* Updated image wrapper and element styles */
  .elibrary-img-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
  }

  .elibrary-img-elem {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .premium-badge-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 8px;
    pointer-events: none;
  }

  .badge-lock {
    background: rgba(var(--brand-primary-rgb), 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(var(--brand-primary-rgb), 0.3);
    pointer-events: auto;
  }

  .badge-free {
    background: rgba(40, 167, 69, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    pointer-events: auto;
  }

  .badge-purchased {
    background: rgba(0, 123, 255, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    pointer-events: auto;
  }

  .elibrary-card .course-body {
    padding: 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
    overflow: visible;
    min-height: 0;
  }

  .elibrary-card .course-title {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: #162033;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 40px;
  }

  .elibrary-card .course-category {
    font-size: 11px;
    color: var(--brand-primary-text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 16px;
  }

  .elibrary-card .course-category i {
    margin-right: 3px;
  }

  .elibrary-card .course-instructor-info {
    border-top: 1px solid #f0f0f0;
    padding-top: 7px;
    min-height: 40px;
  }

  .elibrary-card .instructor-name {
    font-size: 12px;
    color: #162033;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .elibrary-card .instructor-headline {
    font-size: 11px;
    color: #707793;
    line-height: 1.2;
  }

  .elibrary-card .course-description {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 34px;
  }

  .elibrary-card .course-meta-info {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #707793;
    border-top: 1px solid #f0f0f0;
    padding-top: 6px;
    flex-wrap: wrap;
    min-height: 28px;
  }

  .elibrary-card .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .elibrary-card .meta-item i {
    font-size: 11px;
    color: var(--brand-primary-text);
  }

  .elibrary-card .course-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    min-height: 20px;
  }

  .elibrary-card .stars {
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .elibrary-card .star {
    color: #ffc107;
    font-size: 14px;
  }

  .elibrary-card .rating-value {
    color: #162033;
    font-weight: 600;
  }

  .elibrary-card .rating-count {
    color: #707793;
    opacity: 0.8;
  }

  .elibrary-card .course-pricing {
    font-weight: 700;
    font-size: 16px;
    color: #162033;
    display: flex;
    align-items: center;
    gap: 4px;
    border-top: 1px solid #f0f0f0;
    padding-top: 7px;
    min-height: 36px;
  }

  .elibrary-card .rupee {
    font-size: 13px;
  }

  .elibrary-card .price-amount {
    font-size: 18px;
    font-weight: 700;
  }

  .elibrary-card .rupee-free {
    font-size: 16px;
    font-weight: 700;
    color: #28a745;
  }

  .elibrary-card .purchased-text {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .elibrary-card .purchased-text i {
    font-size: 16px;
  }

  .elibrary-card .old-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 12px;
    margin-left: 6px;
    font-weight: 600;
  }

  .elibrary-card .course-labels {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
    min-height: 24px;
    padding-bottom: 2px;
  }

  .elibrary-card .badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1.2;
  }

  .elibrary-card .badge-enrolled {
    background: #059669;
    color: #fff;
  }

  .elibrary-card .badge-bestseller {
    background: #ffc107;
    color: #000;
  }

  .elibrary-card .badge-featured {
    background: #17a2b8;
    color: #fff;
  }

  .elibrary-card .badge-free-label {
    background: #28a745;
    color: #fff;
  }

  .elibrary-card .badge i {
    font-size: 9px;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .elibrary-card {
      height: 490px;
    }

    .elibrary-img-wrapper {
      height: 160px;
    }

    .elibrary-card .course-body {
      padding: 12px;
      gap: 6px;
    }

    .elibrary-card .course-title {
      font-size: 14px;
      max-height: 36px;
    }

    .elibrary-card .course-description {
      -webkit-line-clamp: 2;
      max-height: 34px;
    }

    .elibrary-card .course-meta-info {
      font-size: 11px;
      min-height: 26px;
    }

    .badge-purchased,
    .badge-lock,
    .badge-free {
      font-size: 11px;
      padding: 5px 10px;
    }
  }

  @media (max-width: 480px) {
    .elibrary-card {
      height: 460px;
    }

    .elibrary-img-wrapper {
      height: 140px;
    }

    .elibrary-card .course-body {
      padding: 10px;
      gap: 5px;
    }
  }

/* Source: base/templates/product_bundle.html */
/* Inherit all base styles from video courses */
  .bundle-section .course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
  }

  .bundle-section .course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(var(--brand-primary-rgb), 0.15);
  }

  /* Updated image wrapper and element styles */
  .bundle-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
  }

  .bundle-img-elem {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .bundle-section .premium-badge-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 8px;
    pointer-events: none;
  }

  .bundle-section .badge-lock {
    background: rgba(var(--brand-primary-rgb), 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: auto;
  }

  .bundle-section .badge-free {
    background: rgba(40, 167, 69, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: auto;
  }

  .bundle-section .badge-purchased {
    background: rgba(0, 123, 255, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    pointer-events: auto;
  }

  .bundle-section .course-body {
    padding: 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow: hidden;
  }

  .bundle-section .course-title {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: #162033;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .bundle-section .course-category {
    font-size: 11px;
    color: var(--brand-primary-text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .bundle-section .course-category i {
    margin-right: 3px;
  }

  .bundle-section .bundle-contents {
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bundle-section .course-description {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .bundle-section .course-meta-info {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #707793;
    border-top: 1px solid #f0f0f0;
    padding-top: 6px;
  }

  .bundle-section .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .bundle-section .meta-item i {
    font-size: 11px;
    color: var(--brand-primary-text);
  }

  /* Bundle specific details */
  .bundle-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 11px;
    color: #707793;
    border-top: 1px solid #f0f0f0;
    padding-top: 6px;
  }

  .detail-item {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .detail-item i {
    font-size: 10px;
    color: var(--brand-primary-text);
  }

  .bundle-section .course-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
  }

  .bundle-section .stars {
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .bundle-section .star {
    color: #ffc107;
    font-size: 14px;
  }

  .bundle-section .rating-value {
    color: #162033;
    font-weight: 600;
  }

  .bundle-section .rating-count {
    color: #707793;
    opacity: 0.8;
  }

  .bundle-section .course-pricing {
    font-weight: 700;
    font-size: 16px;
    color: #162033;
    display: flex;
    align-items: center;
    gap: 4px;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
  }

  .bundle-section .rupee {
    font-size: 13px;
  }

  .bundle-section .price-amount {
    font-size: 18px;
    font-weight: 700;
  }

  .bundle-section .rupee-free {
    font-size: 16px;
    font-weight: 700;
    color: #28a745;
  }

  .bundle-section .purchased-text {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .bundle-section .purchased-text i {
    font-size: 16px;
  }

  .bundle-section .old-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 12px;
    margin-left: 6px;
    font-weight: 600;
  }

  .bundle-section .course-labels {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
  }

  .bundle-section .badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .bundle-section .badge-enrolled {
    background: #059669;
    color: #fff;
  }

  .bundle-section .badge-discount {
    background: #10b981;
    color: #fff;
  }

  .bundle-section .badge-bundle {
    background: #14141b;
    color: #fff;
  }

  .bundle-section .badge-free-label {
    background: #28a745;
    color: #fff;
  }

  .bundle-section .badge i {
    font-size: 9px;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .bundle-section .course-body {
      padding: 12px;
      gap: 6px;
    }

    .bundle-section .course-title {
      font-size: 14px;
    }

    .bundle-section .course-description {
      -webkit-line-clamp: 1;
    }

    .bundle-section .course-meta-info {
      font-size: 11px;
    }

    .bundle-section .badge-purchased,
    .bundle-section .badge-lock,
    .bundle-section .badge-free {
      font-size: 11px;
      padding: 5px 10px;
    }

    .bundle-details {
      grid-template-columns: 1fr;
      gap: 4px;
    }
  }
