/* ============================================
   CSS VARIABLES - Colors & Design Tokens
   ============================================ */

:root {
    /* Primary Colors */
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-primary-light: #60a5fa;
    --color-primary-lighter: #bfdbfe;
    --color-primary-lightest: #eff6ff;
    
    /* Text Colors */
    --color-text-primary: #111827;
    --color-text-secondary: #374151;
    --color-text-tertiary: #4b5563;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;
    --color-text-dark: #1f2937;
    
    /* Background Colors */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f9fafb;
    --color-bg-tertiary: #f3f4f6;
    --color-bg-quaternary: #f4f5f7;
    --color-bg-dark: #21212B;
    
    /* Border Colors */
    --color-border-light: #e5e7eb;
    --color-border-medium: #d1d5db;
    --color-border-dark: #9ca3af;
    
    /* Accent Colors */
    --color-accent-yellow: #fbbf24;
    --color-accent-yellow-hover: #f59e0b;
    --color-accent-yellow-text: #78350f;
    --color-accent-green: #22c55e;
    --color-accent-green-dark: #10b981;
    --color-accent-red: #ef4444;
    --color-accent-red-light: #f87171;
    --color-accent-purple: #a855f7;
    
    /* Status Colors */
    --color-success: #10b981;
    --color-success-light: #22c55e;
    --color-error: #ef4444;
    --color-warning: #fbbf24;
    --color-info: #2563eb;
    
    /* Shadow Colors */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    
    /* Spacing (for consistency) */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* ============================================
   Reset and Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--color-bg-primary);
    color: var(--color-text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Free Resources Main - Ensure all fonts are Roboto */
.free-resources-main {
    font-family: 'Roboto', sans-serif;
}

/* ============================================
   Modal Scrollbar Fix - Prevents screen shift when modal opens
   ============================================ */

/* When any modal is active, lock body scroll and compensate for scrollbar */
body.modal-open,
html.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}

/* Alternative approach using :has() selector for better browser support */
body:has(.admin-modal.active),
body:has(.th-modal-overlay.active),
body:has(.sc-modal-overlay.active),
body:has(.ps-modal-overlay.active),
body:has(.bingo-modal-overlay.active),
body:has(.l2-modal-overlay.active),
body:has(.info-modal-overlay.active),
body:has(.resource-info-modal-overlay.active),
body:has([class*="modal-overlay"].active) {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}

/* Navigation */
/* Navigation styles are now in nav.css */

/* ============================================
   Shared Components - Info Banner
   ============================================ */

.info-banner {
    background: var(--color-accent-yellow);
    border-bottom: 1px solid var(--color-accent-yellow-hover);
    padding: 0.75rem var(--spacing-md);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}

.info-banner.hidden {
    display: none;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
}

.banner-emoji {
    font-size: 1.25rem;
    line-height: 1;
}

.banner-text {
    font-size: 0.875rem;
    color: var(--color-accent-yellow-text);
    font-weight: 500;
    text-align: center;
}

.banner-close {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    color: var(--color-accent-yellow-text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-xs);
    transition: background-color var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.banner-close:hover {
    background-color: rgba(120, 53, 15, 0.1);
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: row;
        gap: 0.5rem;
        padding-right: 2rem;
    }
    
    .banner-text {
        font-size: 0.8125rem;
    }
    
    .banner-close {
        right: 0.5rem;
    }
}

/* ============================================
   Shared Components - Buttons
   ============================================ */

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg-primary);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
    font-size: 0.875rem;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-bg-primary);
    color: var(--color-text-secondary);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-medium);
    cursor: pointer;
    transition: background-color var(--transition-base);
    font-size: 0.875rem;
}

.btn-secondary:hover {
    background-color: var(--color-bg-secondary);
}

.btn-primary.full-width {
    width: 100%;
    padding: 0.75rem 1.5rem;
}

/* ============================================
   Shared Components - Back Button
   Used across all pages
   ============================================ */

.back-button,
.page-back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition-base);
    font-family: 'Roboto', sans-serif;
}

.back-button {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-sm) 0.75rem;
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius-sm);
}

.page-back-link {
    padding-left: 0;
}

.back-button:hover,
.page-back-link:hover {
    color: var(--color-primary-hover);
}

.back-button:hover {
    background-color: var(--color-primary-lightest);
}

.page-back-link:hover {
    text-decoration: none;
}

.back-button svg,
.page-back-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Page Container (Used on getstarted.html and orderform.html) */
.pagecontainer {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    background-color: var(--color-bg-primary);
}

/* Page Back Button Container */
.page-back-button-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md) var(--spacing-md) 2rem;
}

@media (max-width: 768px) {
    .page-back-button-container {
        padding: 0 var(--spacing-md) 0 var(--spacing-md);
    }
}

@media (max-width: 640px) {
    .back-button {
        margin-bottom: var(--spacing-md);
        font-size: 0.875rem;
    }
}

/* ============================================
   Shared Layout - Main Content
   ============================================ */

.main-content {
    padding-top: 0;
    background-color: var(--color-bg-primary);
}

/* Free Resources styles have been moved to free-resources.css */

/* ============================================
   Skills Checks / Quick Print Header Styles
   Shared header component styles
   ============================================ */

.sc-page-header {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 1.25rem;
    padding: 1.25rem 2.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    border: none;
    min-height: 80px;
}

.sc-page-header-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.sc-page-header-primary::before {
    background-image: 
        /* Decorative shapes */
        radial-gradient(circle at 15% 25%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(110, 231, 183, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 10%, rgba(187, 247, 208, 0.06) 0%, transparent 35%);
}

.sc-page-header-secondary {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.sc-page-header-secondary::before {
    background-image: 
        /* Decorative shapes */
        radial-gradient(circle at 15% 25%, rgba(96, 165, 250, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(147, 197, 253, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 10%, rgba(191, 219, 254, 0.06) 0%, transparent 35%);
}

.sc-page-header-alevel {
    background: linear-gradient(135deg, #fb7185 0%, #f87171 100%);
}

.sc-page-header-alevel::before {
    background-image: 
        /* Decorative shapes */
        radial-gradient(circle at 15% 25%, rgba(251, 113, 133, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(248, 113, 113, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 10%, rgba(254, 202, 202, 0.06) 0%, transparent 35%);
}

.sc-page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.25rem;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.sc-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Decorative shapes */
        radial-gradient(circle at 15% 25%, rgba(96, 165, 250, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(147, 197, 253, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 10%, rgba(191, 219, 254, 0.06) 0%, transparent 35%);
    background-size: 
        auto,
        auto,
        auto;
    background-position: 
        15% 25%,
        85% 75%,
        50% 10%;
    background-repeat: 
        no-repeat,
        no-repeat,
        no-repeat;
    pointer-events: none;
    border-radius: 1.25rem;
    opacity: 0.8;
    z-index: 0;
    overflow: hidden;
}

.sc-header-image {
    position: absolute;
    right: 0;
    top: 120%;
    transform: translateY(-50%);
    height: 250%;
    width: auto;
    max-width: 320px;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
    clip-path: inset(0 round 1.25rem);
    overflow: hidden;
}

/* Desktop styles for header */
@media (min-width: 1025px) {
    .sc-header-image {
        max-width: 420px;
        height: 250%;
    }
    
    .sc-header-content {
        padding-right: 440px;
    }
}

/* Tablet styles for header */
@media (min-width: 768px) and (max-width: 1024px) {
    .sc-header-image {
        max-width: 280px;
        height: 200%;
    }
    
    .sc-header-content {
        padding-right: 300px;
    }
}

@media (max-width: 767px) {
    .sc-header-image {
        display: none;
    }
    
    .sc-header-content {
        padding-right: 0;
    }
}

.sc-title-row {
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.sc-header-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    padding-right: 340px;
}

.sc-header-text {
    flex: 1;
    min-width: 0;
}

.sc-page-level {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.25rem 0.5rem;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Ensure sc-page-level works with page-header-section structure */
.page-header-section .sc-page-level {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.25rem 0.5rem;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sc-page-title {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 !important;
    font-family: 'Roboto', sans-serif;
    text-shadow: none;
    line-height: 1.1;
    letter-spacing: -0.03em;
    position: relative;
}

.sc-page-title::after {
    display: none;
}

@media (min-width: 768px) {
    .sc-page-header {
        padding: 1.25rem 2.25rem;
    }
    
    .sc-page-title {
        font-size: 3.5rem !important;
    }
}

/* Mobile: page-header-section and sc-page-header match mathsloops-page-header */
@media (max-width: 767px) {
    .sc-page-header {
        min-height: 88px;
    }
    .page-header-section {
        padding: 1rem 1.25rem !important;
        min-height: 88px;
        margin-bottom: 1.5rem;
    }
    .page-header-section .page-title {
        font-size: 2.75rem !important;
    }
    .page-header-section .sc-page-level,
    .page-header-section .page-subtitle {
        font-size: 0.8125rem;
    }
    .page-header-section .page-header-image,
    .page-header-section .sc-header-image {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .sc-page-header {
        padding: 0.875rem 1rem;
        margin-bottom: 1.25rem;
        min-height: 88px;
    }
    .sc-page-title {
        font-size: 2.25rem !important;
    }
    .sc-page-level {
        font-size: 0.75rem;
        margin-bottom: 0.125rem;
    }
    .page-header-section {
        padding: 0.875rem 1rem !important;
        margin-bottom: 1.25rem;
        min-height: 88px;
    }
    .page-header-section .page-title {
        font-size: 2.25rem !important;
    }
    .page-header-section .sc-page-level,
    .page-header-section .page-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.125rem;
    }
}

/* SAT Resources Box */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ============================================
   Shared Components - Page Header
   ============================================ */

.page-header {
    margin-bottom: 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    text-align: left;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent-yellow);
    border-radius: 2px;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 3rem;
    }
}

.page-header p {
    font-size: 1rem;
    color: var(--color-text-tertiary);
    line-height: 1.6;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .page-header p {
        font-size: 1.125rem;
    }
}

/* Question Generator styles moved to question-generator.css */

/* Printable Resources Section */
.printable-resources {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.printable-resources .section-header {
    margin-bottom: 2rem;
}

.printable-resources .section-header h2 {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

@media (min-width: 768px) {
    .printable-resources .section-header h2 {
        font-size: 2rem;
    }
}

.printable-resources .section-header p {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.printable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 140px));
    gap: 1rem;
    max-width: 1200px;
}

.printable-card-wrapper {
    position: relative;
    aspect-ratio: 1;
    min-width: 0;
    max-width: 140px;
}

.printable-card {
    background-color: var(--color-bg-primary) !important;
    border-radius: var(--radius-xl) !important;
    border: 1px solid var(--color-border-medium) !important;
    padding: 0.65rem;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    box-shadow: none !important;
}

.printable-card:hover {
    border-color: var(--color-border-dark);
    background-color: var(--color-bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm) !important;
}

.printable-icon {
    width: 50px;
    height: 50px;
    background-color: transparent !important;
    border-radius: 0.75rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151 !important;
    margin-bottom: 0.375rem;
    transition: all 0.2s;
}

.printable-icon svg {
    color: var(--color-text-secondary) !important;
    stroke: var(--color-text-secondary) !important;
}

.printable-card:hover .printable-icon {
    background-color: transparent;
    color: var(--color-text-primary) !important;
}

.printable-card:hover .printable-icon svg {
    color: var(--color-text-primary) !important;
    stroke: var(--color-text-primary) !important;
}

.squared-paper-icon {
    width: 70px !important;
    height: 70px !important;
}

.squared-paper-icon svg {
    width: 70px;
    height: 70px;
}

.printable-card:hover .squared-paper-icon .squared-paper-stroke {
    stroke: #111827 !important;
}

.printable-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.printable-card-wrapper .tooltip-wrapper {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    
}

.printable-card-wrapper .info-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.printable-card-wrapper .tooltip-wrapper:hover .info-icon {
    background-color: white;
    color: #2563eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

.printable-card-wrapper .tooltip {
    position: absolute;
    z-index: 100;
    bottom: auto;
    top: 100%;
    left: auto;
    right: 0;
    transform: none;
    margin-top: 0.5rem;
    margin-bottom: 0;
    width: 200px;
    padding: 0.75rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #374151;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
}

.printable-card-wrapper .tooltip::after {
    top: auto;
    bottom: 100%;
    left: auto;
    right: 1rem;
    transform: rotate(45deg);
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    border-top: none;
    border-left: none;
}

.printable-card-wrapper .tooltip-wrapper:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Dark Block */
.dark-block {
    background-color: #21212B;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    color: white;
    position: relative;
}

.new-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #fbbf24;
    color: #78350f;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.dark-block h2 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.dark-block > p {
    font-size: 0.875rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.subscription-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.25rem 1.25rem;
    min-height: 0;
    height: 100%;
}

.subscription-intro {
    margin: 0;
    font-size: 0.9375rem;
    color: #e5e7eb;
}

.subscription-badge {
    top: 1rem;
    right: 1rem;
}

.subscription-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.subscription-features li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9375rem;
    color: #f3f4f6;
    line-height: 1.6;
}

.subscription-features li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-size: 0.875rem;
    color: #60a5fa;
}

.subscription-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    color: #facc15;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.25rem;
}

.subscription-smallprint {
    font-size: 0.75rem;
    color: #cbd5f5;
    margin: 0.75rem 0 0 0;
}

.subscription-price .price-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #f3f4f6;
}

.subscription-price .price-amount {
    font-size: 1.75rem;
    font-weight: 700;
}

.subscription-price .price-note {
    font-size: 0.875rem;
    color: #f3f4f6;
}

.subscription-actions {
    margin-top: auto;
}

.subscription-start {
    width: 100%;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.print-activities-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

/* ============================================
   Shared Components - Popup Modals
   Used across multiple pages (keystages, primary, free-resources, etc.)
   ============================================ */

.popup-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-border-light);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-base);
    cursor: pointer;
    margin-bottom: var(--spacing-sm);
}

.popup-trigger:hover {
    background-color: rgba(96, 165, 250, 0.1);
}

.popup-trigger svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary-light);
    flex-shrink: 0;
}

.popup-trigger span {
    flex: 1;
}

.popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    overflow: hidden;
}

body.modal-open {
    overflow: hidden;
}

body.modal-open nav {
    right: var(--scrollbar-width, 15px);
}

.popup-modal.active {
    display: flex;
}

.popup-content {
    background-color: var(--color-bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.popup-header h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-text-primary);
    margin: 0;
}

.popup-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-base), color var(--transition-base);
}

.popup-close:hover {
    background-color: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}

/* Close Button (Used in getstarted.html popup) */
.close-btn {
    position: absolute;
    top: 14px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 35px;
    color: #6b7280;
    cursor: pointer;
    transition: 0.25s ease;
}

.close-btn:hover {
    color: rgb(63, 63, 63);
    transition: 0.25s ease;
    scale: 1.3;
}

/* Popup Overlay and Popup (Used in getstarted.html) */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.popup {
    background-color: var(--color-bg-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    position: relative;
    font-family: 'Roboto', sans-serif;
}

.popup h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 0.5rem 0;
    font-family: 'Roboto', sans-serif;
}

.popup p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin: 0 0 1.5rem 0;
    font-family: 'Roboto', sans-serif;
}

.popup form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popup form input {
    padding: 0.75rem;
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}

.popup form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.popup .signup-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);
    color: var(--color-bg-primary);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: background-color var(--transition-base);
}

.popup .signup-btn:hover {
    background-color: var(--color-primary-hover);
}

@media (max-width: 768px) {
    .popup {
        width: 90vw;
        padding: 1.5rem;
    }
}

.popup-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: visible;
    padding-right: 0;
}

#popup-number-line .popup-links,
#popup-data-handling .popup-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

#popup-blank-clocks .popup-links,
#popup-grid-paper .popup-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
}

#popup-blank-clocks .popup-links h4,
#popup-grid-paper .popup-links h4 {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

#popup-blank-clocks .popup-links h4:first-child,
#popup-grid-paper .popup-links h4:first-child {
    margin-top: 0;
}

/* Grid layout for times tables modal */
#popup-times-tables .popup-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

/* Grid layout for column methods modal - long list */
#popup-column-methods .popup-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

/* Grid layout for column addition modal */
#popup-column-addition .popup-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

/* Grid layout for geometry template modal - responsive columns */
#popup-2d-shapes .popup-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

#popup-2d-shapes .popup-links h4 {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

#popup-2d-shapes .popup-links h4:first-child {
    margin-top: 0;
}

@media (min-width: 768px) {
    #popup-2d-shapes .popup-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Grid layout for measurement & money modal - long list */
#popup-measurement-money .popup-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

/* Grid layout for place value modal - long list */
#popup-place-value .popup-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

@media (max-width: 768px) and (min-width: 481px) {
    /* 2 columns for blank templates at intermediate sizes */
    #popup-number-line .popup-links,
    #popup-data-handling .popup-links,
    #popup-times-tables .popup-links,
    #popup-column-methods .popup-links,
    #popup-measurement-money .popup-links,
    #popup-place-value .popup-links,
    #popup-column-addition .popup-links,
    #popup-blank-clocks .popup-links,
    #popup-grid-paper .popup-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 2d-shapes already uses 2 columns by default, so keep it */
    
    .popup-content {
        max-width: 95%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Stack all blank resources modal options on mobile */
    #popup-number-line .popup-links,
    #popup-data-handling .popup-links,
    #popup-times-tables .popup-links,
    #popup-column-methods .popup-links,
    #popup-measurement-money .popup-links,
    #popup-place-value .popup-links,
    #popup-column-addition .popup-links,
    #popup-2d-shapes .popup-links,
    #popup-blank-clocks .popup-links,
    #popup-grid-paper .popup-links {
        grid-template-columns: 1fr;
    }
    
    .popup-content {
        max-width: 100%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    #popup-number-line .popup-links,
    #popup-data-handling .popup-links,
    #popup-times-tables .popup-links,
    #popup-column-methods .popup-links,
    #popup-measurement-money .popup-links,
    #popup-place-value .popup-links,
    #popup-column-addition .popup-links,
    #popup-2d-shapes .popup-links,
    #popup-blank-clocks .popup-links,
    #popup-grid-paper .popup-links {
        grid-template-columns: 1fr;
    }
    
    .popup-content {
        max-width: 100%;
        padding: 1.5rem;
    }
}

.popup-links h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: var(--spacing-md) 0 var(--spacing-sm) 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border-light);
}

.popup-links h4:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.popup-links a {
    display: block;
    padding: 0.875rem var(--spacing-md);
    background-color: var(--color-bg-tertiary);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    text-decoration: none;
    text-align: left;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
}

.popup-links a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg-primary);
}

/* Bottom Row */
.bottom-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .bottom-row {
        grid-template-columns: 2fr 1fr;
    }
}

/* Quick Access Section */
.quick-access-section {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.quick-access-section .section-header {
    margin-bottom: 1rem;
    margin-top: 0;
}

.quick-access-section .section-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin: 0;
}

@media (min-width: 768px) {
    .quick-access-section .section-header h2 {
        font-size: 1.875rem;
    }
}

.quick-access-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.quick-access-card {
    background-color: var(--color-bg-quaternary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border-medium);
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    z-index: 1;
}

.quick-access-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-icon {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: color var(--transition-base);
}

.quick-access-card:hover .card-icon {
    background-color: transparent;
    color: var(--color-text-primary);
}

.card-icon svg {
    width: 20px;
    height: 20px;
}

.quick-access-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.quick-access-card p {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
}

/* ============================================
   Shared Components - Tooltips
   Used across multiple pages
   ============================================ */

.tooltip-wrapper {
    position: relative;
    display: inline-block;
    z-index: 100;
}

.info-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--color-bg-tertiary);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-base);
}

.info-icon:hover {
    color: var(--color-text-secondary);
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: var(--spacing-sm);
    width: 256px;
    padding: 0.75rem;
    background-color: var(--color-bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-light);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    z-index: 9999;
    pointer-events: none;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--color-bg-primary);
    border-right: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    transform: translateX(-50%) rotate(45deg);
}

.tooltip-wrapper:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Starters & Challenges Section */
.starters-section {
    display: flex;
    flex-direction: column;
    gap: 2.9rem;
    position: relative;
    z-index: 0;
}

.starters-card {
    background-color: var(--color-bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    padding: 1.75rem;
    transition: box-shadow var(--transition-base), border-color var(--transition-base);
    position: relative;
    z-index: 0;
}

.starters-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-border-medium);
}

.starters-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.125rem;
    position: relative;
}


.starters-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-bg-tertiary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.starters-icon svg {
    width: 24px;
    height: 24px;
}

.starters-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.starters-card > p {
    font-size: 0.9375rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.starters-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.starter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1rem;
    background-color: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.625rem;
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    text-align: center;
}

.starter-btn > span {
    flex: 1;
    text-align: center;
}

.starter-btn .starter-btn-tooltip {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

.starter-btn:hover {
    background-color: #fbbf24;
    border-color: #fbbf24;
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.starter-btn-tooltip .info-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    z-index: 10;
}

.starter-btn:hover .starter-btn-tooltip .info-icon {
    background-color: rgba(255, 255, 255, 0.9);
    color: #374151;
}

.starter-btn-tooltip:hover .info-icon {
    background-color: white;
    color: #111827;
}

.starter-btn-tooltip .tooltip {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
    background-color: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    max-width: 250px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    line-height: 1.4;
    text-align: left;
    pointer-events: none;
}

.starter-btn-tooltip .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background-color: #1f2937;
    border-right: 1px solid #1f2937;
    border-bottom: 1px solid #1f2937;
    border-top: none;
    border-left: none;
}

.starter-btn-tooltip:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* SAT Resources Box */
.sat-resources-box {
    background-color: #f4f5f7;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.sat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.sat-icon {
    width: 40px;
    height: 40px;
    background-color: #2563eb;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.sat-resources-box.coming-soon .sat-icon {
    background-color: #9ca3af;
}

.sat-icon svg {
    width: 24px;
    height: 24px;
}

.sat-resources-box h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.sat-header-text p {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: #4b5563;
}

.blank-templates-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blank-templates-box .sat-icon {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.blank-templates-note {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0;
}

.blank-templates-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.125rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 600;
    border-radius: 0.75rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blank-templates-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px -8px rgba(37, 99, 235, 0.4);
}

.blank-templates-btn svg {
    flex-shrink: 0;
}

.blank-templates-modal {
    max-width: 960px;
    padding: 1.75rem 1.5rem 1.75rem;
}

.blank-templates-modal-intro {
    font-size: 0.8125rem;
    color: #4b5563;
    margin: 0 0 0.85rem 0;
}

.blank-templates-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    padding-right: 0.75rem;
    overflow-y: auto;
}

.blank-template-section {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.blank-template-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.3rem 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.template-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    background-color: #f5f6f8;
    color: #1f2937;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    line-height: 1.35;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
    width: 100%;
    min-height: 2.25rem;
}

.template-link:hover {
    background-color: #e8eefc;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.template-link.locked {
    position: relative;
    background-color: #eef1f5;
    color: #9ca3af;
    border-color: #d8dce2;
    cursor: not-allowed;
    overflow: hidden;
    pointer-events: none;
    padding-left: 2.4rem;
}

.template-link.locked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-color: #9ca3af;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 11h-1V8a4 4 0 0 0-8 0v3H7a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2Zm-3 0H10V8a2 2 0 0 1 4 0Zm-2 5a1.5 1.5 0 0 1-1.5-1.5A1.5 1.5 0 0 1 12 13a1.5 1.5 0 0 1 1.5 1.5A1.5 1.5 0 0 1 12 16Z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 11h-1V8a4 4 0 0 0-8 0v3H7a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2Zm-3 0H10V8a2 2 0 0 1 4 0Zm-2 5a1.5 1.5 0 0 1-1.5-1.5A1.5 1.5 0 0 1 12 13a1.5 1.5 0 0 1 1.5 1.5A1.5 1.5 0 0 1 12 16Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.template-link.locked:hover {
    background-color: #eef1f5;
    border-color: #d8dce2;
    color: #9ca3af;
}

.template-link,
.template-link.locked {
    font-weight: 500;
}

.template-link.locked::-moz-focus-inner {
    border: 0;
}

.blank-templates-modal .template-link.locked {
    padding: 0.55rem 0.75rem;
}

.blank-templates-modal .template-link.locked::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
}

.blank-templates-modal .template-link.locked::after {
    z-index: 2;
}

.blank-templates-modal .template-link.locked,
.blank-templates-modal .template-link.locked::before {
    pointer-events: none;
}

button.template-link {
    font-family: inherit;
    text-align: left;
}

.blank-templates-modal .blank-templates-sections::-webkit-scrollbar {
    width: 6px;
}

.blank-templates-modal .blank-templates-sections::-webkit-scrollbar-thumb {
    background-color: rgba(15, 23, 42, 0.2);
    border-radius: 999px;
}

/* Teaching Support Section */
.teaching-support-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.teaching-support-section .section-header {
    margin-bottom: 2rem;
}

.teaching-support-section .section-header h2 {
    font-size: 1.75rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .teaching-support-section .section-header h2 {
        font-size: 2rem;
    }
}

.teaching-support-section .section-header p {
    font-size: 1rem;
    color: #6b7280;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
}

@media (min-width: 768px) {
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .support-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.support-card {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s;
}

.support-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.support-card-header {
    background-color: #f4f5f7;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.support-card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.support-card-body {
    padding: 1.5rem;
}

.support-card-body p {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.support-link:hover {
    color: #1d4ed8;
}

.sat-resources-box.coming-soon h3 {
    color: #6b7280;
}

.coming-soon-text {
    font-size: 0.875rem;
    color: #9ca3af;
    font-style: italic;
    margin: 0;
}

/* Home Page Welcome Title */
.home-welcome-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: #111827;
    margin: 1.5rem 0 1.5rem 0;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1.1;
}

.home-welcome-small {
    font-size: 0.875rem;
    font-weight: 500;
    color: #9ca3af;
    display: block;
    margin-bottom: 0.125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-welcome-main {
    font-size: 4.5rem;
    font-weight: 700;
    color: #111827;
    display: block;
    letter-spacing: -0.03em;
}

.home-welcome-subtext {
    font-size: 20px;
    color: var(--color-text-muted);
    text-align: center;
    margin: 0.5rem auto 3rem auto;
    font-family: 'Roboto', sans-serif !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.home-subtext-link {
    color: #6b7280;
    text-decoration: underline;
    text-decoration-thickness: 0.5px;
    text-underline-offset: 2px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.home-subtext-link:hover {
    color: #4b5563;
    text-decoration: underline;
}

/* Subscription Expiration Banner */
.subscription-expiry-banner {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    padding: 3px 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
    position: sticky;
    top: 74px;
    z-index: 999;
    margin-top: 0;
    transition: box-shadow 0.3s ease;
}

.subscription-expiry-banner.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.subscription-expiry-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

.subscription-expiry-message {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    text-align: center;
}

.subscription-expiry-message strong {
    font-weight: 600;
    color: #ffffff;
}

.subscription-expiry-link {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.subscription-expiry-link:hover {
    opacity: 0.8;
}

.subscription-expiry-close {
    position: absolute;
    right: 2rem;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    opacity: 0.8;
    width: 20px;
    height: 20px;
}

.subscription-expiry-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .subscription-expiry-banner {
        padding: 3px 0;
        top: 74px;
    }
    
    .subscription-expiry-content {
        padding: 0 1rem;
        gap: 0.5rem;
    }
    
    .subscription-expiry-message {
        font-size: 12px;
    }
    
    .subscription-expiry-close {
        right: 1rem;
    }
    
    .subscription-expiry-close svg {
        width: 14px;
        height: 14px;
    }
}

/* Home Featured Section */
.home-featured-section {
    margin: 2rem 0;
}

.home-featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.home-featured-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    letter-spacing: -0.01em;
}

.home-featured-whatsnew-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #111827;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.home-featured-whatsnew-link:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.home-featured-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .home-featured-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 630px) {
    .home-featured-cards {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .home-featured-card {
        max-width: 400px;
        width: 100%;
    }
}

.home-featured-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.home-featured-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.home-featured-card-image {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.home-featured-card-image img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.home-featured-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.home-featured-badge {
    display: inline-block;
    background-color: #fbbf24;
    color: #78350f;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.1875rem 0.4375rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-family: 'Roboto', sans-serif;
    width: fit-content;
    margin-bottom: 0.25rem;
}

.home-featured-card-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.3;
}

.home-featured-card-content p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
}

/* Home Quick Links Section */
.home-quick-links-section {
    margin: 3rem 0;
}

.home-quick-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.home-quick-link-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1.25rem;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 0.875rem;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.home-quick-link-btn:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.home-quick-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: transparent;
    border-radius: 0;
    flex-shrink: 0;
    padding: 0;
    transition: all 0.2s ease;
}

.home-quick-link-btn:hover .home-quick-link-icon {
    background-color: transparent;
}

.home-quick-link-icon img,
.home-quick-link-icon svg {
    width: 18px;
    height: 18px;
    object-fit: contain;
    color: #6b7280;
    transition: all 0.2s ease;
}

.home-quick-link-btn:hover .home-quick-link-icon img,
.home-quick-link-btn:hover .home-quick-link-icon svg {
    color: #4b5563;
}


.home-quick-link-btn span {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .home-quick-links {
        flex-direction: column;
        align-items: center;
        gap: 0.625rem;
    }
    
    .home-quick-link-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
        max-width: 280px;
        width: 100%;
        justify-content: center;
    }
    
    .home-quick-link-icon {
        width: 28px;
        height: 28px;
    }
    
    .home-quick-link-icon img,
    .home-quick-link-icon svg {
        width: 16px;
        height: 16px;
    }
    
}

@media (max-width: 640px) {
    .home-quick-link-btn {
        padding: 0.5rem 0.875rem;
    }
}

@media (max-width: 768px) {
    .home-welcome-title {
        margin-bottom: 0;
        font-size: 3.5rem;
    }
    
    .home-welcome-small {
        font-size: 0.8125rem;
    }
    
    .home-welcome-main {
        font-size: 3.5rem;
        letter-spacing: -0.03em;
    }
    
    .home-welcome-subtext {
        font-size: 1rem;
        margin: 1.25rem auto 3rem auto;
        line-height: 1.7;
    }
}

@media (max-width: 640px) {
    .home-welcome-title {
        margin-bottom: 0;
        font-size: 3rem;
    }
    
    .home-welcome-small {
        font-size: 0.75rem;
    }
    
    .home-welcome-main {
        font-size: 3rem;
        letter-spacing: -0.03em;
    }
    
    .home-welcome-subtext {
        font-size: 0.9375rem;
        margin: 1rem auto 2.5rem auto;
        font-family: 'Roboto', sans-serif !important;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .home-welcome-title {
        margin-top: 0;
    }
}

/* Home Page Level Buttons */
.home-level-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 2rem 0;
    padding: 0;
}

@media (max-width: 1024px) {
    .home-level-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.home-level-button {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.home-level-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Primary Button - Green */
.home-primary-button {
    background: #22c55e;
}

.home-primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(110, 231, 183, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 10%, rgba(187, 247, 208, 0.06) 0%, transparent 35%),
        repeating-linear-gradient(0deg, rgba(16, 185, 129, 0.05) 0px, rgba(16, 185, 129, 0.05) 1px, transparent 1px, transparent 20px),
        repeating-linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0px, rgba(16, 185, 129, 0.05) 1px, transparent 1px, transparent 20px);
    background-size: auto, auto, auto, 20px 20px, 20px 20px;
    pointer-events: none;
    border-radius: 1.25rem;
}

/* Secondary Button - Blue */
.home-secondary-button {
    background: #729fff;
}

.home-secondary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(147, 197, 253, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 10%, rgba(191, 219, 254, 0.06) 0%, transparent 35%),
        repeating-linear-gradient(0deg, rgba(59, 130, 246, 0.05) 0px, rgba(59, 130, 246, 0.05) 1px, transparent 1px, transparent 20px),
        repeating-linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0px, rgba(59, 130, 246, 0.05) 1px, transparent 1px, transparent 20px);
    background-size: auto, auto, auto, 20px 20px, 20px 20px;
    pointer-events: none;
    border-radius: 1.25rem;
    opacity: 0.8;
}

/* GCSE Button - Yellow */
.home-gcse-button {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
}

.home-gcse-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(251, 191, 36, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(253, 224, 71, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 10%, rgba(254, 240, 138, 0.06) 0%, transparent 35%),
        repeating-linear-gradient(0deg, rgba(251, 191, 36, 0.05) 0px, rgba(251, 191, 36, 0.05) 1px, transparent 1px, transparent 20px),
        repeating-linear-gradient(90deg, rgba(251, 191, 36, 0.05) 0px, rgba(251, 191, 36, 0.05) 1px, transparent 1px, transparent 20px);
    background-size: auto, auto, auto, 20px 20px, 20px 20px;
    pointer-events: none;
    border-radius: 1.25rem;
    opacity: 0.8;
}

.home-gcse-button .home-level-title,
.home-gcse-button .home-level-year-text {
    color: var(--color-text-primary);
}

/* A Level Button - Purple */
.home-alevel-button {
    background: #a855f7;
}

.home-alevel-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(147, 51, 234, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(196, 181, 253, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 10%, rgba(221, 214, 254, 0.06) 0%, transparent 35%),
        repeating-linear-gradient(0deg, rgba(147, 51, 234, 0.05) 0px, rgba(147, 51, 234, 0.05) 1px, transparent 1px, transparent 20px),
        repeating-linear-gradient(90deg, rgba(147, 51, 234, 0.05) 0px, rgba(147, 51, 234, 0.05) 1px, transparent 1px, transparent 20px);
    background-size: auto, auto, auto, 20px 20px, 20px 20px;
    pointer-events: none;
    border-radius: 1.25rem;
}

.home-level-button-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.home-level-year-text {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.95;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.025em;
}

.home-level-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.home-level-image-wrapper {
    position: absolute;
    bottom: -2.5rem;
    right: -2rem;
    z-index: 1;
    width: 240px;
    height: 140px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.home-level-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom right;
    opacity: 1;
    pointer-events: none;
    filter: drop-shadow(-16px 16px 0 rgba(0, 0, 0, 0.25));
}

@media (max-width: 768px) {
    .home-level-button {
        padding: 1.75rem 1.5rem;
        min-height: 160px;
    }
    
    .home-level-title {
        font-size: 2rem;
    }
    
    .home-level-image-wrapper {
        width: 200px;
        height: 120px;
        bottom: -0.75rem;
        right: -1.5rem;
    }
}

@media (max-width: 640px) {
    .home-level-buttons {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .home-level-button {
        padding: 1.5rem 1.25rem;
        min-height: 140px;
    }
    
    
    .home-level-title {
        font-size: 1.75rem;
    }
    
    .home-level-year-text {
        font-size: 0.8125rem;
    }
    
    .home-level-image-wrapper {
        width: 160px;
        height: 100px;
        bottom: -0.5rem;
        right: -1rem;
    }
}

/* ============================================
   Starters & Challenges Section
   Used on multiple pages (index.html, primary.html, etc.)
   ============================================ */

.primary-starters-challenges-section {
    margin: 3rem auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
    width: 100%;
    max-width: 1280px;
    scroll-margin-top: 30vh;
    scroll-padding-top: 30vh;
}

.primary-starters-challenges-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .primary-starters-challenges-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }
    
    .primary-qg-reversed {
        direction: rtl;
    }
    
    .primary-qg-reversed > * {
        direction: ltr;
    }
}

.primary-starters-challenges-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: -0.5rem;
}

.primary-starters-challenges-container:not(.primary-qg-reversed) .primary-starters-challenges-text {
    padding-left: 1.5rem;
}

.primary-qg-reversed .primary-starters-challenges-text {
    padding-right: 1.5rem;
}

.primary-starters-challenges-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 550px;
}

.primary-starters-challenges-container:not(.primary-qg-reversed) .primary-starters-challenges-cards {
    justify-self: start;
}

.primary-qg-reversed .primary-starters-challenges-cards {
    justify-self: end;
}

.primary-starters-challenges-title-icon {
    width: 4.5rem;
    height: 4.5rem;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(37%) sepia(96%) saturate(2000%) hue-rotate(220deg) brightness(95%) contrast(95%);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .primary-starters-challenges-title-icon {
        width: 5.5rem;
        height: 5.5rem;
    }
}

@media (max-width: 767px) {
    .primary-starters-challenges-title-icon {
        filter: brightness(0) saturate(100%) invert(37%) sepia(96%) saturate(2000%) hue-rotate(220deg) brightness(95%) contrast(95%) !important;
        -webkit-filter: brightness(0) saturate(100%) invert(37%) sepia(96%) saturate(2000%) hue-rotate(220deg) brightness(95%) contrast(95%) !important;
    }
}

.primary-starters-challenges-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .primary-starters-challenges-text h2 {
        font-size: 3rem;
    }
}

.primary-starters-challenges-text p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .primary-starters-challenges-text p {
        font-size: 1.125rem;
    }
}

.primary-starters-challenges-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem 1.5rem;
}

.primary-starters-challenges-features li {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-primary);
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
    padding-left: 1.5rem;
    position: relative;
}

.primary-starters-challenges-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.primary-starters-challenge-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--color-bg-primary);
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.primary-starters-challenge-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: var(--color-border-medium);
}

.primary-starters-challenge-icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-bg-tertiary);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.primary-starters-challenge-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.primary-starters-challenge-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.primary-starters-challenge-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.3;
}

.primary-starters-challenge-details {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.4;
}

.sample-banner {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.3125rem 0.75rem;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
    line-height: 1.2;
}

.primary-starters-section-full {
    margin: 2rem 0;
}

.primary-starters-section-full .primary-starters-sidebar-card {
    max-width: 100%;
}

/* ============================================
   Subscription & Pricing Section
   Used on multiple pages (index.html, freeresources.html, getstarted.html, etc.)
   ============================================ */

.subscription-section {
    width: 100%;
    background: var(--color-bg-secondary);
    padding: 80px 0 100px 0;
}

/* Add extra padding above subscription section on index page only */
.prelogin-main > .subscription-section {
    padding: 60px 0 100px 0;
}

/* Get Started Page Styles */
.get-started-hero {
    padding: 1.25rem 1rem;
    text-align: center;
    background-color: var(--color-bg-primary);
}

.get-started-container {
    max-width: 800px;
    margin: 0 auto;
}

.get-started-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 0.625rem 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.2;
}

.get-started-subtitle {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

@media (min-width: 768px) {
    .get-started-hero {
        padding: 1.75rem 1.5rem;
    }
    
    .get-started-title {
        font-size: 2.375rem;
    }
    
    .get-started-subtitle {
        font-size: 1rem;
    }
}

/* Remove extra padding on getting started page */
.get-started-hero ~ .subscription-section {
    padding: 0 0 32px 0;
    background: var(--color-bg-primary);
}

.pricing-header {
    font-size: 2.75rem;
    padding-top: 0;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    color: #0E2431;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.subscription-section .cta-button {
    background-color: #3161ff;
    color: var(--color-bg-primary);
    border: 2px solid #3161ff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.subscription-section .cta-button:hover {
    background-color: #3e5bbf;
    border: 2px solid #3e5bbf;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.pricing-section {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    max-width: 960px;
    margin: 10px auto 24px auto;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card.popular {
    border: 2px solid #6366f1;
}

.badge {
    position: absolute;
    top: -14px;
    left: 20px;
    background-color: var(--color-accent-yellow);
    color: var(--color-accent-yellow-text);
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.3s ease-in-out;
    font-family: 'Roboto', sans-serif;
}

.card:hover .badge {
    transform: translateY(-5px);
    transition: transform 0.3s ease-in-out;
}

.plan-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    color: #0E2431;
}

.plan-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
}

.price {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    color: #0E2431;
}

.pricing-info {
    max-width: 960px;
    margin: 2rem auto 0;
    padding: 0 2rem;
    text-align: center;
}

.school-pricing-info {
    font-size: 16px;
    color: rgb(95, 95, 95);
    margin-bottom: 0.5rem;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

.school-pricing-info .pricestar {
    font-size: 0.9rem;
    vertical-align: baseline;
    margin-left: 2px;
}

.pricestar {
    font-size: 1.1rem;
    line-height: 1;
    vertical-align: super;
    margin-left: 2px;
    position: relative;
    top: -0.3em;
}

.price .peryear {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

ul.features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

ul.features li {
    margin: 0.375rem 0;
    font-size: 0.9375rem;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

ul.features li::before {
    content: "✓";
    margin-right: 0.5rem;
    font-weight: 900;
    color: #10b981;
}

ul.features li.unavailable::before {
    content: "✗";
    color: #ef4444;
}

.cta-button {
    background-color: var(--color-accent-yellow);
    color: var(--color-accent-yellow-text);
    border: none;
    padding: 9px 28px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cta-button:hover {
    background-color: var(--color-accent-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease-in-out;
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid #d1d5db;
    color: #525252;
    transition: 0.3s ease-in-out;
}

.cta-button.secondary:hover {
    background-color: #efefef;
    color: #525252;
    border: 2px solid #848484;
    transition: 0.3s ease-in-out;
}

.note2 {
    color: rgb(95, 95, 95);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
    margin-top: 0.5rem;
}

/* Responsive styles for subscription section */
@media (max-width: 800px) {
    .subscription-section {
        padding: 1rem 0.75rem 1rem 0.75rem !important;
    }

    .pricing-header {
        font-size: 2rem;
        margin-bottom: 2rem !important;
    }

    .pricing-section {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin: 0 auto 1rem auto !important;
    }

    .card {
        width: 100%;
        max-width: 350px;
        padding: 1.125rem;
    }

    .plan-title {
        font-size: 1.375rem;
        margin-bottom: 0.375rem;
    }

    .plan-desc {
        font-size: 0.8125rem;
        margin-bottom: 0.875rem;
        line-height: 1.4;
    }

    .price {
        font-size: 1.875rem;
        margin-bottom: 0.625rem;
    }

    ul.features {
        margin-bottom: 0.875rem;
    }

    ul.features li {
        margin: 5px;
        font-size: 0.8125rem;
    }

    .note2 {
        max-width: 80vw;
    }
}

@media (max-width: 640px) {
    .subscription-section {
        padding: 0.75rem 0.5rem 0.75rem 0.5rem !important;
    }

    .pricing-header {
        font-size: 1.75rem;
        margin-bottom: 2rem !important;
    }

    .pricing-section {
        margin: 0 auto 1rem auto !important;
    }

    .card {
        padding: 1rem;
    }

    .plan-title {
        font-size: 1.25rem;
    }

    .price {
        font-size: 1.625rem;
    }
}

@media (max-width: 480px) {
    .pricing-header {
        font-size: 1.5rem;
        padding-top: 10px;
    }
}

@media (max-width: 768px) {
    .pricing-info {
        padding: 0 0 20px 0;
    }
}

/* ============================================
   Free Trial Section
   Used on multiple pages (index.html, freeresources.html, etc.)
   ============================================ */

.free-trial-section {
    width: 100%;
    background-color: var(--color-bg-primary);
    padding: 60px 20px;
}

.free-trial-container {
    max-width: 1200px;
    margin: 0 auto;
}

.free-trialbox {
    height: auto;
    width: 100%;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px;
}

.free-trialbox h2 {
    font-size: 50px;
    line-height: 53px;
    font-weight: 600;
    color: #0e0e0e;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#blue-text {
    color: var(--color-primary);
    font-weight: 800;
}

.free-trial-text {
    font-size: 20px;
    color: #4e4e4e;
    text-align: center;
    max-width: 600px;
    font-family: 'Roboto', sans-serif;
}

.freetrial-ctas {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.free-cta-button {
    background-color: var(--color-bg-primary);
    border: 2px solid #8b8b8b;
    color: #4e4e4e;
    padding: 9px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    text-decoration: none;
    display: inline-block;
}

.free-cta-button:hover {
    background-color: var(--color-bg-primary);
    border: 2px solid #3e5bbf;
    color: #3e5bbf;
    transition: background-color 0.3s ease-in-out;
}

/* Responsive styles for free trial section */
@media (max-width: 800px) {
    .free-trialbox {
        padding: 20px;
    }

    .free-trialbox h2 {
        font-size: 40px;
        line-height: 40px;
    }

    .free-trial-text {
        font-size: 16px;
    }

    .cta-button,
    .free-cta-button {
        font-size: 16px;
        padding: 9px 28px;
    }
}

/* ============================================
   Trial Form Section
   Used on multiple pages (freeresources.html, contactus.html, freetrial.html)
   ============================================ */

.trial-form-section {
    padding: 60px 2rem;
    background: var(--color-bg-primary);
}

.trial-form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.trial-form-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0E2431;
    font-family: 'Roboto', sans-serif;
}

.trial-form-section > .trial-form-container > p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
}

.trial-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-border-light);
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.01em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
}

.form-group input::placeholder {
    color: var(--color-border-dark);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: var(--color-bg-primary);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-border-dark);
    font-family: 'Roboto', sans-serif;
    font-style: italic;
}

.checkbox-group {
    margin-bottom: 1.25rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.875rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #10b981;
    flex-shrink: 0;
    border-radius: 4px;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #10b981;
    border-color: #10b981;
}

.checkbox-group span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-border-light);
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-group span a {
    color: #007aff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkbox-group span a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.trial-submit-btn {
    width: 100%;
    background: var(--color-primary);
    color: var(--color-bg-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.trial-submit-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(37, 99, 235, 0.4);
}

.trial-processing-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.05);
    border-left: 3px solid #2563eb;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--color-text-tertiary);
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
}

/* Trial Form Error Styling */
.trial-form .form-group.field-error input,
.trial-form .form-group.field-error input:focus {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
    animation: errorPulse 0.5s ease;
}

.trial-form .checkbox-group.field-error {
    outline: 2px solid #dc2626 !important;
    outline-offset: 2px;
    border-radius: 6px;
    padding: 8px;
    background-color: rgba(220, 38, 38, 0.05) !important;
}

.trial-form .field-error-message {
    color: #dc2626 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-top: 6px !important;
    display: block !important;
    animation: fadeIn 0.3s ease;
    font-family: 'Roboto', sans-serif !important;
}

@keyframes errorPulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
    }
}

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

/* Trial Form Success State */
.trial-form-card.success-state {
    position: relative;
}

.trial-form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    animation: fadeIn 0.5s ease;
}

.trial-form-card.success-state .trial-form-success {
    display: flex;
}

.trial-form-card.success-state .trial-form {
    display: none;
}

.trial-form-card.success-state .trial-form-badge {
    display: none;
}

.trial-form-card.success-state .trial-form-title {
    display: none;
}

.trial-form-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3), 0 4px 10px rgba(34, 197, 94, 0.2);
    animation: scaleIn 0.5s ease;
}

.trial-form-success-icon svg {
    width: 45px;
    height: 45px;
    stroke: #ffffff;
    stroke-width: 3;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.trial-form-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-bg-primary);
    margin-bottom: 0.75rem;
    font-family: 'Roboto', sans-serif;
}

.trial-form-success p {
    font-size: 1rem;
    color: var(--color-border-light);
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
    max-width: 400px;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.trial-processing-note svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

/* ============================================
   Free Trial Register Section
   Used on multiple pages (freetrial.html, freeresources.html, contactus.html)
   ============================================ */

/* Two Column Layout: Marketing + Form */
.trial-register-section {
    min-height: auto;
    position: relative;
    background: var(--color-bg-primary);
    padding: 0;
    overflow: visible;
}

.trial-register-container {
    display: flex;
    max-width: 1400px;
    margin: 10px auto 0 auto;
    position: relative;
    padding: 0 0 40px 0;
    min-height: auto;
}

/* Left Column: Marketing Content */
.trial-marketing-column {
    flex: 1.5;
    padding: 80px 60px 40px 60px;
    background: var(--color-bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.trial-marketing-heading {
    font-size: 3.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: 'Roboto', sans-serif;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.trial-heading-highlight {
    color: var(--color-primary);
}

.trial-marketing-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    max-width: 650px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

.trial-schools-only-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-accent-yellow-text);
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
}

.trial-schools-only-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-accent-yellow-hover);
}

.trial-schools-only-notice strong {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.trial-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.trial-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    padding: 0.25rem 0;
}

.trial-feature-item svg {
    color: #10b981;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Resources Dropdown */
.trial-resources-dropdown {
    position: relative;
    display: inline-block;
    width: fit-content;
}

.trial-resources-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 24px;
    background: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.trial-resources-btn:hover {
    background: var(--color-border-light);
    border-color: var(--color-border-medium);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.trial-resources-btn .dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.trial-resources-dropdown.show .trial-resources-btn .dropdown-arrow {
    transform: rotate(180deg);
}

.trial-resources-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--color-bg-primary);
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.trial-resources-dropdown.show .trial-resources-dropdown-menu {
    display: block;
}

.trial-resources-dropdown-menu .dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.trial-resources-dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

.trial-resources-dropdown-menu .dropdown-item:hover {
    background: var(--color-bg-secondary);
    color: var(--color-primary);
}

/* Right Column: Form */
.trial-form-column {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    min-width: 0;
    z-index: 1;
    overflow: visible;
}

.trial-form-card {
    position: relative;
    z-index: 1;
    background: #21212B;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.trial-form-badge {
    position: absolute;
    top: -14px;
    right: 20px;
    background-color: var(--color-accent-yellow);
    color: var(--color-accent-yellow-text);
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trial-form-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-bg-primary);
    font-family: 'Roboto', sans-serif;
    letter-spacing: -0.01em;
}

.trial-form-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
}

/* Responsive styles for free trial page */
@media (max-width: 968px) {
    .trial-hero-heading {
        font-size: 2.5rem;
    }

    .trial-register-container {
        flex-direction: column;
    }

    .trial-marketing-column {
        padding: 40px 40px;
        flex: 1;
    }

    .trial-form-column {
        padding: 40px 20px;
    }

    .trial-form-card {
        padding: 2rem;
    }

    .trial-register-section::after,
    .trial-register-section::before {
        display: none;
    }
}

@media (max-width: 600px) {
    .trial-hero-section {
        padding: 60px 1rem;
    }

    .trial-hero-heading {
        font-size: 2rem;
    }

    .trial-hero-description {
        font-size: 1rem;
    }

    .trial-marketing-column {
        padding: 40px 20px;
    }
    
    .trial-marketing-heading {
        font-size: 3rem;
    }

    .trial-feature-item {
        font-size: 1rem;
    }

    .trial-form-column {
        padding: 20px;
    }

    .trial-form-card {
        padding: 1.5rem;
    }

    .trial-form-title {
        font-size: 1.5rem;
    }

    .free-resources-section {
        padding: 40px 1rem;
    }

    .free-resources-links {
        flex-direction: column;
    }

    .free-resource-link {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Free Resources Section
   Used on multiple pages (freetrial.html, etc.)
   ============================================ */

.free-resources-section {
    background: #f9f9f9;
    padding: 80px 2rem;
    margin: 0;
}

.free-resources-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.free-resources-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--color-text-primary);
    font-family: 'Roboto', sans-serif;
    letter-spacing: -0.01em;
}

.free-resources-section p {
    font-size: 1.25rem;
    color: var(--color-text-tertiary);
    margin-bottom: 3rem;
    line-height: 1.7;
    font-family: 'Roboto', sans-serif;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.free-resources-links {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.free-resource-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 16px 32px;
    background: var(--color-bg-primary);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    min-width: 200px;
    justify-content: center;
}

.free-resource-link:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.free-resource-link svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

/* ============================================
   Explore Free Resources Section
   Used on multiple pages (index.html, etc.)
   ============================================ */

.explore-free-resources-section {
    max-width: 1280px;
    margin: 3rem auto 6rem auto;
    padding: 3rem 1rem;
    background-color: var(--color-bg-primary);
}

.explore-free-resources-container {
    max-width: 1200px;
    margin: 0 auto;
}

.explore-free-resources-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: center;
    margin: 0 0 3rem 0;
    font-family: 'Roboto', sans-serif;
    position: relative;
    display: inline-block;
    width: 100%;
}

.explore-free-resources-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: var(--color-accent-yellow);
    border-radius: 2px;
    opacity: 0.9;
}

.explore-free-resources-grid-wrapper {
    position: relative;
    margin-bottom: 0rem;
}

.explore-free-resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.explore-grid-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
}

.explore-resource-card {
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: none;
    transition: transform 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0;
    text-decoration: none;
    color: inherit;
}

.explore-resource-card:hover {
    transform: translateY(-2px);
}

.explore-resource-image {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    padding-top: 1.25rem;
    background-color: var(--color-bg-secondary);
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.explore-resource-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: capitalize;
    white-space: nowrap;
    z-index: 10;
}

.explore-resource-badge.primary {
    background-color: #047857;
    color: var(--color-bg-primary);
}

.explore-resource-badge.secondary {
    background-color: #2563eb;
    color: var(--color-bg-primary);
}

.explore-resource-badge.gcse {
    background-color: #fcd34d;
    color: var(--color-text-primary);
}

.explore-resource-badge.alevel {
    background-color: #dc2626;
    color: var(--color-bg-primary);
}

.explore-resource-image img {
    max-width: 90%;
    width: auto;
    height: auto;
    min-height: 200px;
    object-fit: contain;
    object-position: top center;
}

.explore-resource-content {
    padding: 0.75rem 0;
}

.explore-resource-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.explore-resource-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.explore-resource-meta span:nth-child(even) {
    color: #000000;
    font-weight: 700;
}

.explore-free-resources-link {
    text-align: center;
    margin-top: 3rem;
}

.explore-free-resources-link a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    text-decoration: none;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    font-family: 'Roboto', sans-serif;
}

.explore-free-resources-link a:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    color: var(--color-text-primary);
}

.explore-free-resources-link .arrow-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: var(--color-bg-secondary);
    border: 1px solid #e5e7eb;
}

@media (max-width: 1200px) {
    .explore-free-resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Show 6 cards (3+3 rows), hide cards 7-8 */
    .explore-resource-card:nth-child(n+7) {
        display: none;
    }
}

@media (max-width: 1024px) {
    .explore-free-resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Show 4 cards (2+2 rows), hide cards 5-8 */
    .explore-resource-card:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 640px) {
    .explore-free-resources-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .explore-free-resources-grid {
        grid-template-columns: 1fr;
    }
    
    .explore-free-resources-title {
        font-size: 2rem;
    }
}

/* ============================================
   Quote Section
   Used on multiple pages (index.html, etc.)
   ============================================ */

.quote2 {
    width: 100%;
    max-width: 1200px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 100px auto;
    position: relative;
    overflow: hidden;
    background: var(--color-bg-primary);
    border-radius: 0;
    padding: 100px 20px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.quote2::before {
    display: none;
}

.quote2-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    z-index: 2;
    position: relative;
    margin: 0;
}

.quote2-text {
    text-align: center;
    font-size: 36px;
    line-height: 48px;
    color: var(--color-text-muted);
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    margin: 0 0 20px 0;
    padding: 0;
    max-width: 850px;
}

.prom2 {
    color: #787a80;
    font-weight: 600;
}

.quote2-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 12px;
}

.quote2-name {
    font-size: 18px;
    font-weight: 700;
    color: #4b5563;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

#reviewlink {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    z-index: 3;
}

.quote2:hover #reviewlink {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#reviewlink-text {
    color: #202020;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 20px;
    background-color: #f5f5f5;
    border-radius: 25px;
    font-family: 'Roboto', sans-serif;
    transition: background-color 0.3s ease;
}

#reviewlink-text:hover {
    background-color: #e0e0e0;
}

.quote2 .blue-line {
    display: none;
}

.fill {
    margin: 60px auto;
    font-family: 'Roboto', sans-serif;
    color: #000000;
    padding: 40px;
    background-color: var(--color-bg-primary);
}

/* Quote2 Responsive */
@media (max-width: 900px) {
    .quote2 {
        min-height: 400px;
        padding: 50px 30px;
    }

    .quote2-text {
        font-size: 28px;
        line-height: 36px;
    }
}

@media (max-width: 600px) {
    .quote2 {
        min-height: auto;
        padding: 40px 20px;
        margin: 40px auto;
    }

    .quote2-text {
        font-size: 22px;
        line-height: 30px;
        margin-bottom: 30px;
    }

    .quote2-name {
        font-size: 16px;
    }

    #reviewlink {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        opacity: 1;
        margin-top: 20px;
    }

    .quote2:hover #reviewlink {
        transform: none;
    }
}

/* ============================================
   Testimonials/Reviews Section
   Used on multiple pages (index.html, etc.)
   ============================================ */

.testimonials {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 0;
    padding-bottom: 40px;
}

.testimonials::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #f9f9f9;
    z-index: -1;
    pointer-events: none;
}

.reviewcontainer {
    max-width: 1100px;
    margin: auto;
    padding: 2rem 2rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro {
    display: none;
}

#reviewheader {
    font-size: 3rem;
    line-height: 3.5rem;
    margin: 0 0 3rem;
    max-width: 600px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #0E2431;
}

#reviewheader img {
    display: inline-block;
    width: 0.65em;
    height: 0.65em;
    vertical-align: baseline;
    margin: 0 0.02em;
}

#reviewheader::after {
    content: '...';
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 9px 10px;
}

.reviewcard {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    text-align: left;
    transition: transform 0.5s ease-in-out;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.reviewcard:hover {
    transform: rotate(1deg);
}

.reviewcard.rotate2:hover {
    transform: rotate(-1deg);
}

.reviewcard.popquote {
    grid-row: span 2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
    background: #fff;
    justify-content: flex-end;
}

.reviewcard.toprowquote {
    grid-column: span 2;
    padding-top: 20px;
}

.reviewcard.blue {
    grid-row: span 2;
    background: #007aff;
    color: #fff;
    text-align: center;
    align-items: flex-end;
    justify-content: flex-end;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.reviewcard p {
    padding: 20px 20px 0;
    font-size: 18px;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.reviewcard #large-q {
    padding: 30px 30px 20px;
    font-size: 25px;
    line-height: 30px;
    font-weight: 500;
    color: #000;
    font-family: 'Roboto', sans-serif;
}

.reviewcard .highlight {
    color: #1a73e8;
    font-weight: bold;
}

.qmark {
    font-size: 30px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1;
    vertical-align: top;
}

.reviewcard .userrev {
    margin: 0 20px 10px 0;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    text-align: right;
    font-family: 'Roboto', sans-serif;
}

.ontop {
    z-index: 100;
}

.reviewcard.blue #globe {
    width: 90%;
    height: auto;
    position: absolute;
    bottom: -10px;
    right: 0;
}

.globe-text {
    display: flex;
    gap: 10px;
    margin-right: 10px;
}

#pindrop {
    width: 50px;
    height: auto;
}

#h3quote {
    font-size: 50px;
    line-height: 55px;
    font-weight: 500;
    text-align: right;
    margin-bottom: 25px;
    padding: 5px;
    font-family: 'Roboto', sans-serif;
}

.signup-btn:hover {
    background-color: #3e5bbf;
}

/* Testimonials Responsive */
@media (max-width: 1000px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviewcard.popquote,
    .reviewcard.toprowquote {
        grid-column: span 1;
    }

    .reviewcard.blue {
        grid-column: 2;
        grid-row: 3 / span 2;
    }

    #reviewheader {
        font-size: 3rem;
    }

    .reviewcard #large-q {
        font-size: 28px;
        line-height: 35px;
    }
}

@media (max-width: 800px) {
    .grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 1rem;
    }

    #reviewheader {
        font-size: 1.8rem;
        line-height: 2.2rem;
        margin-bottom: 40px;
        margin-top: 30px;
    }

    .reviewcard {
        min-height: 200px;
        height: auto;
        padding: 1.25rem;
    }

    .reviewcard.popquote,
    .reviewcard.toprowquote,
    .reviewcard.blue {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 200px;
        height: auto;
    }

    .reviewcard.popquote {
        padding: 1.25rem;
    }

    .reviewcard.toprowquote {
        padding: 1.25rem;
        padding-top: 1.25rem;
    }

    .reviewcard.blue {
        padding: 1.25rem;
    }

    .reviewcard #large-q {
        padding: 0;
        font-size: 18px;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .reviewcard p {
        padding: 0;
        font-size: 16px;
        margin-bottom: 1rem;
    }

    .reviewcard .userrev {
        margin: 0;
        margin-top: auto;
        padding-top: 1rem;
        font-size: 14px;
    }

    .reviewcard2 {
        background: #fff;
        border: 1px solid transparent;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: -1;
    }
}

@media (max-width: 600px) {
    .reviewcard {
        min-height: 180px;
        padding: 1rem;
    }

    .reviewcard.popquote,
    .reviewcard.toprowquote,
    .reviewcard.blue {
        min-height: 180px;
        padding: 1rem;
    }

    .reviewcard #large-q {
        font-size: 18px;
        line-height: 1.5;
    }

    .reviewcard p {
        font-size: 15px;
    }

    .reviewcard .userrev {
        font-size: 13px;
    }

    .testimonials {
        padding-bottom: 0px;
    }

    .popup {
        width: 90vw;
    }
}

/* ============================================
   Blank Templates Section
   Used on multiple pages (index.html, etc.)
   ============================================ */

.primary-printable-resources {
    margin-top: 3.5rem;
    margin-bottom: 2.5rem;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    position: relative;
}

.primary-printable-section-header {
    margin-bottom: 2rem;
    position: relative;
    padding-top: 0;
}

.primary-printable-new-badge {
    display: inline-block;
    background-color: var(--color-accent-yellow);
    color: var(--color-accent-yellow-text);
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.1875rem 0.4375rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 0.5rem;
}

.primary-printable-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    font-family: 'Roboto', sans-serif;
    letter-spacing: -0.01em;
}

/* Ensure homepage blank templates heading isn't overridden by other h2 styles */
#blank-resources-section .primary-printable-section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    font-family: 'Roboto', sans-serif;
    letter-spacing: -0.01em;
    text-align: left;
}

@media (min-width: 768px) {
    .primary-printable-section-header h2 {
        font-size: 1.75rem;
    }
    
    #blank-resources-section .primary-printable-section-header h2 {
        font-size: 2.25rem;
    }
}

.primary-printable-section-header p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    font-family: 'Roboto', sans-serif;
    margin-top: 0.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    .primary-printable-section-header p {
        font-size: 1rem;
    }
}

.primary-printable-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 100%;
}

@media (min-width: 630px) {
    .primary-printable-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .primary-printable-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.primary-printable-link-card,
a.primary-printable-link-card,
.primary-printable-link-card.popup-trigger,
a.primary-printable-link-card.popup-trigger {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 1rem;
    background: var(--color-bg-primary) !important;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb !important;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.2s ease;
    width: 100%;
    height: 100%;
    min-height: 56px;
    margin-bottom: 0;
}

.primary-printable-link-card:hover,
a.primary-printable-link-card:hover {
    border-color: var(--color-primary) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 0.5px #2563eb !important;
}

.primary-printable-link-card:focus,
a.primary-printable-link-card:focus,
.primary-printable-link-card:focus-visible,
a.primary-printable-link-card:focus-visible {
    outline: 2px solid var(--color-primary) !important;
    outline-offset: 2px !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 0.5px #2563eb !important;
}

.primary-printable-link-icon,
.primary-printable-link-card .primary-printable-link-icon,
.primary-printable-link-card.popup-trigger .primary-printable-link-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-tertiary) !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
}

.primary-printable-link-icon img,
.primary-printable-link-icon svg {
    width: 28px !important;
    height: 28px !important;
    filter: grayscale(100%);
    transition: filter 0.2s ease;
}

.primary-printable-link-card:hover .primary-printable-link-icon,
a.primary-printable-link-card:hover .primary-printable-link-icon {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
}

.primary-printable-link-card:hover .primary-printable-link-icon img,
.primary-printable-link-card:hover .primary-printable-link-icon svg,
a.primary-printable-link-card:hover .primary-printable-link-icon img,
a.primary-printable-link-card:hover .primary-printable-link-icon svg {
    filter: grayscale(0%) !important;
    color: var(--color-primary) !important;
}

.primary-printable-link-content,
.primary-printable-link-card .primary-printable-link-content,
.primary-printable-link-card.popup-trigger .primary-printable-link-content {
    flex: 1;
}

#blank-resources-section .frame {
    text-align: left;
}

#blank-resources-section .primary-printable-section-header h2 {
    text-align: left;
}

.primary-printable-view-all-wrap {
    margin-top: 2rem;
    text-align: center;
}

.primary-printable-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.primary-printable-view-all:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.primary-printable-link-content h3,
.primary-printable-link-card .primary-printable-link-content h3,
.primary-printable-link-card.popup-trigger .primary-printable-link-content h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.3;
}

.primary-printable-link-content p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* ============================================
   Stats Bar Section
   Used on multiple pages (freetrial.html, contactus.html, etc.)
   ============================================ */

.stats-bar-section {
    background: var(--color-bg-primary);
    padding: 60px 2rem;
}

.stats-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: 'Roboto', sans-serif;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

/* Stats Bar Responsive */
@media (max-width: 968px) {
    .stats-bar-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .stats-bar-section {
        padding: 3rem 1.5rem;
    }

    .stats-bar-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .stats-bar-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ============================================
   FAQ Section
   Used on multiple pages (index.html, freetrial.html, getstarted.html, contactus.html, primaryoverview.html, secondaryoverview.html, aleveloverview.html)
   ============================================ */

.faq-section {
    padding: 60px 20px;
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
}

.faq-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.faq-heading p {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #4d4d4d;
    margin: 0 0 10px 0;
}

.faq-heading h2 {
    font-size: 60px;
    line-height: 65px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 13px 20px;
    font-size: 1rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    font-family: 'Roboto', sans-serif;
    color: #2d2d2d;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.2rem;
    color: #2d2d2d;
    transition: transform 0.3s ease;
}

.faq-item.expanded .faq-question::after {
    content: '−';
    color: #007BFF;
}

.faq-answer {
    padding: 0 20px 16px;
    font-size: 0.95rem;
    color: #555;
    display: none;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

.faq-item.expanded .faq-answer {
    display: block;
}

/* FAQ Responsive */
@media (max-width: 768px) {
    .faq-container {
        grid-template-columns: 1fr;
    }

    .faq-heading {
        margin-bottom: 20px;
    }

    .faq-heading h2 {
        font-size: 60px;
        line-height: 60px;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 40px 15px;
    }

    .faq-question {
        font-size: 0.9rem;
        padding: 14px 16px;
    }

    .faq-answer {
        font-size: 0.875rem;
        padding: 0 16px 14px;
    }
}

