/*
Theme Name: NSW Exam Platform
Description: A clean, modern WordPress theme for exam practice platform - Blue color scheme
Version: 1.0
Author: NSW
*/


/* CSS Variables - Blue Color Scheme */
:root {
    --primary-color: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --primary-lighter: #60a5fa;
    --secondary-color: #f59e0b;
    --secondary-light: #fbbf24;
    --secondary-dark: #d97706;
    --success-color: #1e40af;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --hover-color: #1d4ed8;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}
/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Font face Playball-Regular */
@font-face {
	font-family: Playball-Regular;
	src: url(http://localhost/apex1edu/wp-content/themes/nsw-exam-theme/fonts/Playball-Regular.ttf);
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

.site-title01 { 
    font-family: "Playball-Regular", Arial, sans-serif; 
	color: #000000;
	text-align: center
}

.text-center {
    text-align: center !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    min-height: 500px;;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1;
    margin-bottom: 1rem;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
    line-height: 1;
}

/* Login page */

.toggle-icon {
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.btn-white {
    background: white;
    color: #1a1a1a;
    border: 2px solid white;
}

.btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: white;
    color: #1a1a1a;
}

.btn-success {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-color: var(--primary-color);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    border-color: var(--primary-dark);
}

/* Header Styles */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar {
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-link {
    text-decoration: none;
    color: var(--primary-color);
}

.brand-text:hover {
    color: var(--primary-light);
    transition: color 0.2s ease;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-item {
    position: relative;
}

/* Navigation link styles with important flags to override any conflicting CSS */
.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important; /* Force blue color with !important */
}

.nav-link:visited:hover {
    color: var(--primary-color) !important; /* Handle visited link state */
}

.nav-link:active:hover {
    color: var(--primary-color) !important; /* Handle active link state */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 180px;
    padding: 0.5rem 0;
    margin: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    list-style: none;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: none;
}

/* Make sure all navigation links use blue on hover */
.nav-link:hover {
    color: var(--primary-color); /* This should be #1e40af (dark blue) */
}

.dropdown-item:hover {
    color: var(--primary-color);
    background-color: var(--gray-50);
}

.auth-links {
    display: flex;
    gap: 1rem;
}

.auth-link {
    text-decoration: none;
    color: var(--gray-600);
    padding: 8px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.auth-link.register {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    border-color: var(--primary-color);
}

.auth-link.register:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: var(--gray-600);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    min-height: auto;
}

/* Hero Section with Stripe-style Blue Gradient */
.hero-section {
    padding: 20px 0 0px;
    background: linear-gradient(-45deg, #1e40af, #3b82f6, #60a5fa, #1d4ed8, #2563eb, #1e3a8a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.05));
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.06) 0%, transparent 50%);
    animation: floatShapes 20s linear infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatShapes {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #f8fafc;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features-section {
    padding: 50px 0;
    background: var(--gray-50);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    text-align: left;
}
.feature-card h2{
    text-align: center;
}


.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #0667b0 30%, #daac15 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.exam-icon {
    font-size: 62px;
    text-align: center;
    margin-bottom: 1rem;
}


.feature-card h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

/* News Section */
.news-section {
    padding: 50px 0;
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.news-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    text-align: left;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.news-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-title {
    margin-bottom: 1rem;
}

.news-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.news-link:hover {
    color: var(--primary-dark);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: #1a1a1a;
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    background: var(--gray-50);
    padding: 60px 0 30px;
    border-top: 1px solid var(--gray-200);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.footer-section p {
    color: var(--gray-600);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.social-link {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.social-link:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.footer-bottom p {
    color: var(--gray-600);
}

/* Page Hero (for all pages) */
.page-hero {
    padding: 30px 0 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-bottom: 1px solid var(--gray-200);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--gray-600);
    max-width: 650px;
    margin: 0 auto;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 1rem;
}

/* ===========================================
   AUTHENTICATION PAGES STYLES
   =========================================== */

.auth-hero {
    min-height: auto;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    padding: 1.5rem 0 !important;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto !important;;
}

.auth-content {
    background: white;
    padding: 2rem !important;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.auth-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
    margin: 0;
}

.auth-form {
    margin-bottom: 1.5rem !important;
}

.auth-form .form-group {
    margin-bottom: 1.25rem !important;
    position: relative;
}

.auth-form .form-group label {
    display: block;
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.auth-form input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--gray-50);
    color: #1a1a1a;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.auth-form input::placeholder {
    color: var(--gray-400);
}

.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--gray-400);
    pointer-events: none;
}

.form-group.focused .field-icon {
    color: var(--primary-color);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.password-toggle:hover {
    background: var(--gray-100);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.checkbox-group {
    margin: 0;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.auth-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    color: var(--gray-400);
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-200);
    z-index: 1;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.auth-register {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-register p {
    color: var(--gray-600);
    margin: 0;
}

.auth-register a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-register a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Auth Sidebar */
.auth-sidebar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 16px;
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 40%);
    animation: floatShapes 25s linear infinite;
    pointer-events: none;
}

.sidebar-content {
    position: relative;
    z-index: 2;
}

.sidebar-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.benefits-list li:hover {
    background: rgba(255, 255, 255, 0.15);
}

.benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.benefit-text h4 {
    color: white;
    margin-bottom: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.benefit-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Form styling improvements */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input:checked + .checkmark::after {
    display: block;
}

/* Progress and result elements */
.progress-fill {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.score-circle.pass {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.score-circle.fail {
    background: #fee2e2;
    color: #dc2626;
}

/* Quiz and exam elements */


/* Responsive Design */
@media (max-width: 768px) {
    .ays-quiz-container,
    .ays_quiz_container {
        padding: 1.5rem !important;
        margin: 1rem !important;
    }
    
    .ays-quiz-title,
    .ays_quiz_title {
        font-size: 1.5rem !important;
    }
    
    .ays-quiz-button,
    .ays_quiz_button {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
}


/* Responsive Design */
@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .auth-sidebar {
        order: -1;
        padding: 2rem;
    }
    
    .sidebar-content h3 {
        font-size: 1.5rem;
    }
    
    .benefits-list li {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .auth-links {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .features-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .page-title {
        font-size: 2.2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Auth pages mobile */
    .auth-hero {
        padding: 20px 0;
        min-height: auto;
    }
    
    .auth-content {
        padding: 2rem;
        margin: 1rem 0;
    }
    
    .auth-title {
        font-size: 1.8rem;
    }
    
    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .forgot-password {
        align-self: flex-end;
    }
    
    .auth-sidebar {
        padding: 1.5rem;
    }
    
    .benefits-list li {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .benefit-icon {
        width: auto;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 96px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .features-section,
    .news-section,
    .cta-section {
        padding: 20px 0;
    }

    .feature-card,
    .news-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 80px 0 60px;
    }

    /* Auth pages small mobile */
    .auth-content {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .auth-title {
        font-size: 1.6rem;
    }
    
    .auth-form input {
        padding: 12px 14px 12px 40px;
    }
    
    .field-icon {
        left: 12px;
        font-size: 1rem;
    }
}

/* Accessibility */
.nav-link:focus,
.btn:focus,
.auth-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth transitions for better UX */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* ===========================================
   DASHBOARD PAGE STYLES - ENHANCED
   =========================================== */

.dashboard-page {
    background: var(--gray-50);
}

.dashboard-header {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-bottom: 1px solid var(--gray-200);
    padding: 3rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.welcome-section p {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin: 0;
}

.user-actions {
    display: flex;
    gap: 1rem;
}

/* Dashboard Stats */
.dashboard-stats {
    padding: 3rem 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--gray-600);
    font-weight: 500;
    margin: 0;
}

/* Dashboard Content */
.dashboard-content {
    padding: 4rem 0;
    background: var(--gray-50);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.dashboard-section {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.section-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.section-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Rest of dashboard styles... */

/* ===========================================
   CONTACT PAGE STYLES - COMPLETE
   =========================================== */

.contact-content {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Information */
.contact-info h2 {
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.contact-info > p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact-methods {
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(30, 64, 175, 0.05);
    transform: translateX(5px);
}

.method-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 50px;
    text-align: center;
    color: var(--primary-color);
}

.method-details h4 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.method-details p {
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

.method-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.method-details a:hover {
    color: var(--primary-dark);
}

.method-note {
    font-size: 0.85rem;
    color: var(--gray-400);
    font-style: italic;
}

/* Contact Form */
.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h2 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--gray-600);
    margin: 0;
}

.contact-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    background: white;
    color: #1a1a1a;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group.focused label {
    color: var(--primary-color);
}

/* Checkbox Styling */
.checkbox-group {
    margin: 2rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input:checked + .checkmark::after {
    display: block;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.submit-btn {
    min-width: 200px;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 16px 32px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form Messages */
.form-message {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
	margin-top: 1rem;
}

.message-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.form-message h3 {
    color: inherit;
    margin-bottom: 0.5rem;
}

.form-message p {
    color: inherit;
    margin: 0;
}

/* FAQ Links */
.faq-links {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.faq-links h3 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-list li {
    margin-bottom: 0.75rem;
}

.faq-list a {
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
}

.faq-list a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    padding-left: 10px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-content {
        padding: 60px 0;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .method-icon {
        width: auto;
    }
    
    .faq-links {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .contact-method {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .method-icon {
        font-size: 1.5rem;
    }
    
    .submit-btn {
        min-width: 150px;
        font-size: 0.9rem;
    }
}

/* Contact Page Layout Fixes */
.contact-content {
    position: relative;
    z-index: 1;
    clear: both;
    overflow: hidden;
}

.contact-grid {
    position: relative;
    z-index: 2;
}

.contact-form-container,
.contact-info {
    position: relative;
    z-index: 3;
}

/* Ensure main content container is properly positioned */
.main-content {
    position: relative;
    z-index: 1;
    min-height: auto;
    margin-bottom: 0;
}

/* Footer positioning fix */
.site-footer {
    position: relative;
    z-index: 0;
    clear: both;
    margin-top: 0;
}

/* Force proper stacking order */
.contact-page .main-content {
    background: white;
    padding-bottom: 2rem;
}

.site-logo {
    height: 90px;
    width: auto;
    max-width: 580px;
    transition: all 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.02);
}

/* Nested dropdown styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu-menu {
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 1001;
    display: none;
    min-width: 200px;
    padding: 0.5rem 0;
    margin: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    list-style: none;
}

.dropdown-submenu:hover .dropdown-submenu-menu {
    display: block;
}

.dropdown-submenu > .dropdown-item::after {
    content: '▶';
    float: right;
    margin-left: 1rem;
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* Mobile adjustments for nested dropdowns */
@media (max-width: 768px) {
    .dropdown-submenu-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: var(--gray-50);
        margin-left: 1rem;
        border-radius: 4px;
    }
    
    .dropdown-submenu.active .dropdown-submenu-menu {
        display: block;
    }
    
    .dropdown-submenu > .dropdown-item::after {
        content: '▼';
    }
    
    .dropdown-submenu.active > .dropdown-item::after {
        content: '▲';
    }
}

@media (max-width: 768px) {
    .site-logo {
        height: 50px;
        max-width: 240px;
    }
}

/* ============================================
   FLASH NEWS BANNER STYLES - UPDATED VERSION
   Solid Gold Background (#F9BE00) with White Text
   Add these styles to your style.css file
   (Recommended: Add after the Header Styles section)
   ============================================ */

/* Flash News Banner Container */
.flash-news-banner {
    background: #F9BE00; /* Solid gold color - no gradient */
    color: white;
    padding: 18px 0; 
    position: relative;
    overflow: hidden;
    animation: slideDown 0.5s ease-out;
    box-shadow: 0 2px 8px rgba(249, 190, 0, 0.3);
    z-index: 999;
}

/* Animated background effect */
.flash-news-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Flash News Container Layout */
.flash-news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3px 3px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

/* Flash News Icon */
.flash-news-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Flash News Content Area */
.flash-news-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 24px;
}

/* Flash News Slider */
.flash-news-slider {
    position: relative;
    width: 100%;
}

/* Individual Flash News Item */
.flash-news-item {
    display: none;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    animation: fadeInSlide 0.5s ease-out;
}

.flash-news-item.active {
    display: flex;
}

/* Flash News Label */
.flash-news-label {
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Flash News Text */
.flash-news-text {
    font-size: 0.95rem;
    font-weight: 500;
    flex: 1;
    line-height: 1.4;
    color: white;
}

/* Flash News Link */
.flash-news-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.flash-news-link:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateX(3px);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Close Button */
.flash-news-close {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 24px;
    line-height: 1;
    padding: 0;
}

.flash-news-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
    border-color: rgba(255, 255, 255, 0.6);
}

.flash-news-close span {
    display: block;
    margin-top: -2px;
}

/* Alternative Color Schemes (Optional - Uncomment to use) */

/* Blue Style (Your original primary color) */
/*
.flash-news-banner {
    background: #1e40af;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}
*/

/* Orange Style */
/*
.flash-news-banner {
    background: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
*/

/* Green Style */
/*
.flash-news-banner {
    background: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
*/

/* Red/Urgent Style */
/*
.flash-news-banner {
    background: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
*/

/* Dark Gray Style */
/*
.flash-news-banner {
    background: #374151;
    box-shadow: 0 2px 8px rgba(55, 65, 81, 0.3);
}
*/

/* ============================================
   RESPONSIVE DESIGN FOR FLASH NEWS
   ============================================ */

@media (max-width: 968px) {
    .flash-news-container {
        padding: 10px 15px;
        gap: 12px;
    }
    
    .flash-news-icon {
        font-size: 1.5rem;
    }
    
    .flash-news-text {
        font-size: 1.3rem;
    }
    
    .flash-news-link {
        font-size: 1.3rem;
        padding: 3px 10px;
    }
}

@media (max-width: 768px) {
    .flash-news-container {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .flash-news-icon {
        font-size: 1.2rem;
    }
    
    .flash-news-item {
        gap: 8px;
    }
    
    .flash-news-label {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .flash-news-text {
        font-size: 0.85rem;
        flex: 1 1 100%;
    }
    
    .flash-news-link {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    .flash-news-close {
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .flash-news-banner {
        padding: 0;
    }
    
    .flash-news-container {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .flash-news-icon {
        font-size: 1.1rem;
    }
    
    .flash-news-label {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .flash-news-text {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .flash-news-link {
        font-size: 0.75rem;
        padding: 2px 6px;
    }
    
    .flash-news-close {
        width: 26px;
        height: 26px;
        font-size: 18px;
    }
}

/* ============================================
   ANIMATION DEFINITIONS
   ============================================ */

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   END OF FLASH NEWS BANNER STYLES
   ============================================ */

.login-page.main-content {
    min-height: auto !important;
    padding: 1rem 0 !important;
}

/* ============================================
   ABOUT PAGE SPECIFIC STYLES
   ============================================ */

.about-documents {
    padding: 1rem 0 1rem;
    background:  linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}


/* ============================================
   Login PAGE SPECIFIC STYLES
   ============================================ */
/* Password Toggle Styling - Fix alignment issue */
.password-input-wrapper {
    position: relative;
    display: block;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 45px; /* Make space for the icon */
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.password-toggle:hover {
    opacity: 0.7;
}

.toggle-icon {
    font-size: 1.2rem;
    line-height: 1;
    user-select: none;
}

.btn-loading {
    display: none;
}

/* ============================================
   Timetable PAGE SPECIFIC STYLES
   ============================================ */
/* Timetable Page - Remove white space */
.timetable-page {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Page Hero */
.timetable-page .page-hero { 
    padding: 2rem 0 2rem;
    margin-bottom: 0;
}

.timetable-page .page-hero .page-title {
	text-align: center;
    font-size: 2.5rem;
    margin: 0;
}

/* Timetable Documents */
.timetable-documents {
    padding: 1rem 0 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    margin-bottom: 0 !important;
}


.center {
    margin: auto;
    width: 60%;
    text-align: center;
}

.image-container {
    text-align: center;
    margin: 2rem 0;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Remove any white space at bottom */
.no-timetables {
    padding: 2rem 0 1rem;
    margin-bottom: 0;
}

.empty-state {
    padding: 2rem;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .center {
        width: 90%;
    }
    
    .timetable-page .page-hero .page-title {
        font-size: 2rem;
    }
}

/* ============================================
   HOME PAGE (INDEX) STYLES
   ============================================ */

/* Additional styles for fallback content */
.content-section {
    padding: 4rem 0;
    background: white;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-featured-image {
    margin-bottom: 2rem;
    text-align: center;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-body {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.post-excerpt {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.post-excerpt h2 a {
    color: #1a1a1a;
    text-decoration: none;
}

.post-excerpt h2 a:hover {
    color: #635bff;
}

.gold-text {
    color: #F9BE00;
}
.blue-text {
    color: #2469A0;
}

ul li {
    margin-bottom: 10px; /* Adds 10px space below each list item */
    line-height: 1.75; /* Sets line height to 1.75 times the font size */
}

.read-more-link {
    color: #635bff;
    text-decoration: none;
    font-weight: 600;
}

.read-more-link:hover {
    text-decoration: underline;
}

.pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e6e6e6;
}

.pagination .nav-links {
    display: flex;
    justify-content: space-between;
}

.pagination a {
    color: #635bff;
    text-decoration: none;
    font-weight: 600;
}

.pagination a:hover {
    text-decoration: underline;
}

/* Quiz Maker compatibility styles */
.quiz-container,
.ays-quiz-container {
    margin: 2rem 0;
    background: #f8fafc;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid #e6e6e6;
}

/* Flash News Banner Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   COURSES PAGE STYLES
   ============================================ */

/* Course Sections */
.course-section {
    padding: 5rem 0;
}

.primary-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.highschool-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Course Section Header - RENAMED to avoid conflict with page-about.php */
.course-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.course-section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.course-section-subtitle {
    color: #635bff;
    font-size: 2.1rem;
    font-weight: 600;
    margin: 0;
}

/* Section Description */
.section-description {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #000000;
}

/* Exams Grid */
.exams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Exam Card */
.exam-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e6e6e6;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.exam-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Exam Icon */
.exam-icon {
   font-size: 62px;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Exam Card Title */
.exam-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Exam Grades */
.exam-grades {
    text-align: center;
    color: #635bff;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Exam Description */
.exam-description {
    color: #000000;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

/* Exam Features */
.exam-features {
    margin-bottom: 1rem;
}

.exam-features h4 {
    color: #1a1a1a;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.exam-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.exam-features li {
    padding: 0rem 0;
    color: #6b7280;
    font-size: 0.9rem;
    border-bottom: 1px solid #f3f4f6;
}

.exam-features li:last-child {
    border-bottom: none;
}

/* Exam Button */
.exam-btn {
    width: 100%;
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 968px) {
    .exams-grid {
        grid-template-columns: 1fr;
    }
    
    .course-section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .exam-card {
        padding: 2rem;
    }
}


/* ============================================
   QUIZ MAKER PAGES STYLES
   Used by: single-quiz.php, single-ays-quiz-maker.php
   ============================================ */

/* Quiz-specific styling */
.quiz-page {
    background: #fafbfc;
}

.quiz-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 4rem 0 3rem;
}

.quiz-hero .page-title {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.quiz-meta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quiz-meta span {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.quiz-content-section {
    padding: 3rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.quiz-wrapper {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 0 auto 3rem auto;
    max-width: 1200px; /* Constrains width and centers content */
}

.quiz-navigation {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quiz-help {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #635bff;
}

.quiz-help h4 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.quiz-help p {
    color: #6b7280;
    margin: 0;
}

.quiz-help a {
    color: #635bff;
    text-decoration: none;
    font-weight: 600;
}

.quiz-help a:hover {
    text-decoration: underline;
}


/* Override Quiz Maker styles for better integration */
.ays-quiz-container {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 900px !important;
    box-shadow: none !important;
}

.ays-quiz-container * {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Quiz Maker question styling */
.ays-quiz-question-container {
    margin-bottom: 2rem !important;
    padding: 2rem !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    border: 1px solid #e6e6e6 !important;
}

/* Quiz Maker question styling */
.ays-quiz-question-container {
    margin: 0 auto 2rem auto !important;
    padding: 2rem !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    border: 1px solid #e6e6e6 !important;
    max-width: 100% !important;
}

.ays-quiz-answers {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

.ays-quiz-answer-label {
    display: flex !important;
    align-items: center !important;
    padding: 1rem !important;
    background: white !important;
    border: 2px solid #e6e6e6 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.ays-quiz-answer-label:hover {
    border-color: #635bff !important;
    background: #f8f9ff !important;
}

.ays-quiz-answer-label input[type="radio"]:checked + * {
    color: #635bff !important;
    font-weight: 600 !important;
}

/* Quiz navigation buttons */
.ays-quiz-navigation-container {
    text-align: center !important;
    margin-top: 2rem !important;
    padding-top: 2rem !important;
    border-top: 1px solid #e6e6e6 !important;
}

.ays-quiz-navigation-container button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%) !important;
    color: white !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.3) !important;
}

.ays-quiz-navigation-container button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-color) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(99, 91, 255, 0.4) !important;
}

/* Results styling */
.ays-quiz-results-container {
    background: white !important;
    border-radius: 12px !important;
    padding: 3rem !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .quiz-hero {
        padding: 3rem 0 2rem;
    }
    
    .quiz-wrapper {
        padding: 2rem;
    }
    
    .quiz-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .quiz-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .quiz-navigation .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ============================================
   TESTS/EXAMS PAGE STYLES
   ============================================ */

/* Dashboard page styling fix */
.dashboard-page {
    background: var(--gray-50);
}

.dashboard-page .main-content {
    background: var(--gray-50);
}

/* Test Categories */
.test-categories-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.category-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.3);
}

.category-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 600;
    text-align: center;
}

.category-description {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
    flex-grow: 1;
}

.category-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.detail-item {
    font-size: 0.9rem;
    color: var(--gray-600);
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.detail-item:last-child {
    border-bottom: none;
}

.category-btn {
    width: 100%;
    margin-top: auto;
}

/* Test Features */
.test-features-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-item .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    width: auto;
    height: auto;
    background: none;
}

.feature-item h4 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-item p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Recent Tests */
.recent-tests-section {
    padding: 5rem 0;
    background: white;
}

.recent-tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.recent-test-card {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.recent-test-card h4 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.test-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.score-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.score-value.pass {
    color: var(--primary-color);
}

.score-value.fail {
    color: var(--error-color);
}

.score-details {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.test-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.view-all-results {
    text-align: center;
    margin-top: 3rem;
}

.no-tests-message {
    text-align: center;
    padding: 3rem;
    background: var(--gray-50);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.no-tests-message p {
    margin-bottom: 2rem;
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* CTA Section */
.cta-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.cta-stat {
    text-align: center;
}

.cta-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cta-stat span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Button variations */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Test Section */
.test-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.test-section:last-child {
    border-bottom: none;
}

.test-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recent-tests-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .category-card {
        padding: 2rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .category-details {
        padding: 1rem;
    }
    
    .test-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ============================================
   BLOG POST (SINGLE.PHP) STYLES
   ============================================ */

/* Post Hero Section */
.post-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1rem 0 1rem;
    margin-bottom: 3rem;
}

.post-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-categories {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
}

.meta-icon {
    font-size: 1.1rem;
}

/* Post Content Section */
.post-content-section {
    padding: 2rem 0 2rem;
    background: white;
}

.post-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.post-featured-image {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.post-content {
    background: white;
}

.post-body {
    font-size: 1.1rem;
    line-height: 2.5;
    color: #1a1a1a;
}

.post-body p {
    margin-bottom: 2rem;
    color: var(--gray-700);
}

.post-body h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.post-body h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #1a1a1a;
}

.post-body h4 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.post-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.post-body a:hover {
    color: var(--primary-light);
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.post-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray-600);
}

/* Page Links for Multi-page Posts */
.page-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-links-title {
    font-weight: 600;
    margin-right: 0.5rem;
}

.page-links span {
    display: inline-block;
    padding: 6px 12px;
    background: var(--gray-100);
    border-radius: 4px;
    text-decoration: none;
    color: var(--gray-700);
}

.page-links a span {
    background: var(--primary-color);
    color: white;
}

.page-links a span:hover {
    background: var(--primary-light);
}

/* Post Tags */
.post-tags-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.tags-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.post-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.post-tags .tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.post-tags .tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Post Navigation */
.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.post-navigation .nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-navigation .nav-link:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-navigation .nav-next .nav-link {
    text-align: right;
}

.nav-arrow {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
}

/* Back to Posts Button */
.back-to-posts {
    margin-top: 3rem;
    text-align: center;
}

/* Comments Section */
.comments-section {
    padding: 3rem 0;
    background: var(--gray-50);
}

.comments-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-hero {
        padding: 3rem 0 2rem;
        margin-bottom: 2rem;
    }

    .post-title {
        font-size: 1.75rem;
    }

    .post-meta {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .post-content-section {
        padding: 1rem 0 3rem;
    }

    .post-body {
        font-size: 1rem;
    }

    .post-body h2 {
        font-size: 1.5rem;
    }

    .post-body h3 {
        font-size: 1.25rem;
    }

    .post-navigation .nav-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .post-navigation .nav-next .nav-link {
        text-align: left;
    }

    .post-featured-image {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.5rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .post-navigation .nav-link {
        padding: 1rem;
    }

    .nav-title {
        font-size: 0.9rem;
    }
}

/* ============================================
   OVERRIDE WORDPRESS EDITOR STYLES
   These styles ensure your spacing works
   ============================================ */

/* Override WordPress paragraph blocks */
.post-body .wp-block-paragraph,
.post-body p {
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
    line-height: 2 !important;
}

/* Override WordPress heading blocks */
.post-body .wp-block-heading,
.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    margin-top: 3rem !important;
    margin-bottom: 1.5rem !important;
}

/* Override WordPress list blocks */
.post-body .wp-block-list,
.post-body ul,
.post-body ol {
    margin-top: 1.5rem !important;
    margin-bottom: 2rem !important;
    padding-left: 2rem !important;
}

.post-body .wp-block-list li,
.post-body ul li,
.post-body ol li {
    margin-bottom: 0.75rem !important;
}

/* Override WordPress image blocks */
.post-body .wp-block-image,
.post-body figure,
.post-body img {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Override WordPress quote blocks */
.post-body .wp-block-quote,
.post-body blockquote {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
    padding-left: 1.5rem !important;
    border-left: 4px solid var(--primary-color) !important;
}

/* Override WordPress button blocks */
.post-body .wp-block-button {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

/* Override WordPress spacer blocks */
.post-body .wp-block-spacer {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Remove default WordPress margins */
.post-body > *:first-child {
    margin-top: 0 !important;
}

.post-body > *:last-child {
    margin-bottom: 0 !important;
}

/* Override any WordPress font sizes */
.post-body .has-small-font-size {
    font-size: 0.9rem !important;
}

.post-body .has-medium-font-size,
.post-body .has-normal-font-size {
    font-size: 1.1rem !important;
}

.post-body .has-large-font-size {
    font-size: 1.3rem !important;
}

.post-body .has-huge-font-size {
    font-size: 1.5rem !important;
}

/* Ensure proper line height for all text */
.post-body * {
    line-height: inherit !important;
}


/* ============================================
   STUDENT DASHBOARD STYLES
   ============================================ */

.dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Welcome Section */
.dashboard-welcome {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dashboard-welcome h1 {
    margin: 0 0 10px 0;
    color: white;
	font-size: 32px;
    font-weight: 700;
}

.dashboard-welcome p {
    margin: 0;
    font-size: 16px;
	color: white;
    opacity: 0.9;
}

/* Empty State */
.dashboard-empty {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.dashboard-empty h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.dashboard-empty p {
    color: #666;
    margin-bottom: 30px;
}

/* Dashboard Sections */
.dashboard-section {
    margin-bottom: 40px;
}

.dashboard-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

/* Course Cards */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.course-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.course-header h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #333;
}

.course-code {
    display: inline-block;
    background: #e0e7ff;
    color: #4338ca;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.course-meta {
    margin: 20px 0;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.meta-label {
    font-weight: 600;
    margin-right: 8px;
    color: #666;
}

.meta-value {
    color: #333;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active {
    background: #10b981;
    color: white;
}

.course-actions {
    margin-top: 20px;
}

/* Package Cards */
.package-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.package-header h3 {
    margin: 0 0 16px 0;
    font-size: 22px;
    color: #333;
}

.package-progress {
    margin: 16px 0;
}

.progress-text {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.3s ease;
}

.progress-percentage {
    font-size: 14px;
    font-weight: 600;
    color: #10b981;
}

.package-meta {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

/* Tests List */
.tests-list h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.test-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.test-item.test-completed {
    border-color: #10b981;
    background: #f0fdf4;
}

.test-item.test-available {
    border-color: #3b82f6;
    background: #eff6ff;
}

.test-item.test-locked {
    border-color: #d1d5db;
    background: #f9fafb;
    opacity: 0.7;
}

.test-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.test-icon {
    font-size: 24px;
}

.test-details h5 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #333;
}

.test-meta {
    font-size: 13px;
}

.test-meta.completed {
    color: #059669;
    font-weight: 600;
}

.test-meta.available {
    color: #3b82f6;
}

.test-meta.locked {
    color: #6b7280;
}

/* Materials List */
.materials-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.materials-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.materials-list {
    display: grid;
    gap: 16px;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
}

.material-item.available {
    border-color: #10b981;
    background: #f0fdf4;
}

.material-item.unavailable {
    border-color: #d1d5db;
    background: #f9fafb;
    opacity: 0.6;
}

.material-icon {
    font-size: 32px;
}

.material-info {
    flex: 1;
}

.material-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
}

.material-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.meta-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #e0e7ff;
    color: #4338ca;
}

.meta-text {
    font-size: 12px;
    color: #666;
}

.material-status {
    font-size: 13px;
    color: #666;
    margin: 4px 0 0 0;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.button-primary {
    background: #28a745;
    color: white;
}

.button-primary:hover {
    background: #218838;
    transform: translateY(-1px);
}

.button-secondary {
    background: #6c757d;
    color: white;
}

.button-secondary:hover {
    background: #5a6268;
}

.button-disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

.button-small {
    padding: 8px 16px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .test-item,
    .material-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .test-actions,
    .material-actions {
        width: 100%;
    }
    
    .button {
        width: 100%;
    }
}

.type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.type-pdf {
    background: #ef4444;
    color: white;
}

.type-doc {
    background: #3b82f6;
    color: white;
}

.type-video {
    background: #8b5cf6;
    color: white;
}

.type-zip {
    background: #f59e0b;
    color: white;
}

/* Results Modal */
.results-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.results-modal .modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

.result-details {
    margin-top: 20px;
}

.result-details p {
    margin: 10px 0;
    font-size: 16px;
}