/*
Theme Name: Aspirant Zone
Theme URI: https://aspirantzone.com
Author: Aspirant Zone Team
Author URI: https://aspirantzone.com
Description: A responsive, modern educational platform theme for test series and exam preparation.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: aspirant-zone
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Base Styles & Variables --- */
:root {
    --primary-color: #2563eb; /* Modern Tailwind Blue */
    --primary-hover: #1d4ed8;
    --secondary-color: #f8fafc;
    --accent-color: #f59e0b; /* Amber */
    --accent-hover: #d97706;
    --text-color: #1e293b;
    --light-text: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}

/* --- Layout --- */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.site-logo img {
    display: block;
    max-height: 40px;
    width: auto;
    transition: transform 0.2s ease;
}

.site-logo a:hover img {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    gap: 28px;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-color);
    font-size: 15px;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--secondary-color);
    transform: skewY(-2deg);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: var(--white);
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.search-box {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.search-box input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    font-size: 16px;
    color: var(--text-color);
    outline: none;
}

.search-box button {
    padding: 18px 36px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
}

.search-box button:hover {
    background-color: var(--accent-hover);
}

/* --- Sections & Cards --- */
.section-title {
    margin: 0px 0 30px;
    font-size: 32px;
    color: var(--text-color);
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.exam-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.exam-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
    border-color: #cbd5e1;
}

.exam-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
    color: var(--text-color);
}

.exam-card p {
    color: var(--light-text);
    font-size: 15px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.btn-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-card:hover {
    background-color: var(--primary-hover);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Category Specific Card styling */
.category-card {
    border-top: 4px solid var(--primary-color);
}
.sub-exam-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    transition: transform 0.2s;
}
.sub-exam-list li a:hover {
    transform: translateX(4px);
    color: var(--primary-color) !important;
}

/* --- Layout with Sidebar --- */
.content-area {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.main-content {
    flex: 3;
    min-width: 0; /* Prevents flex flex-wrap issues */
}

.sidebar {
    flex: 1;
    min-width: 320px;
}

/* Ads Placeholder Enhancement */
.ad-placeholder {
    background: #e2e8f0;
    border: 2px dashed #94a3b8;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}
.ad-horizontal { min-height: 100px; width: 100%; }
.ad-sidebar { min-height: 600px; }

/* Sidebar Widgets */
.widget {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.widget h4 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 18px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.widget ul li {
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}
.widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget ul li a {
    color: var(--light-text);
    font-weight: 500;
}

.widget ul li a:hover {
    color: var(--primary-color);
}

/* --- Quiz Engine (Highly User-Friendly) --- */
.test-series-interface {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.quiz-main-section {
    flex: 1;
    min-width: 0;
}

.quiz-sidebar {
    width: 300px;
    position: sticky;
    top: 90px;
}

@media (max-width: 992px) {
    .test-series-interface {
        flex-direction: column;
    }
    .quiz-sidebar {
        width: 100%;
        position: static;
    }
}

#quiz-header {
    background: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 70px; /* Below the main site header */
    z-index: 99;
    border: 1px solid var(--primary-color);
}

#timer { 
    font-size: 18px;
    font-weight: 700;
    color: var(--danger-color);
    background: #fef2f2;
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Question Palette Styling */
.question-palette {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    align-self: start;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    margin-top: 15px;
}

.palette-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.palette-item.current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.palette-item.answered {
    background: var(--success-color);
    color: var(--white);
    border-color: var(--success-color);
}

/* Mobile Ad Specifics */
.ad-mobile-top {
    display: none;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .ad-mobile-top {
        display: block;
    }
    #quiz-header {
        top: 60px;
        padding: 10px;
    }
    #timer {
        font-size: 14px;
        padding: 5px 12px;
    }
    .question-palette {
        order: 2; /* Move palette below question on mobile */
    }
}

#question-count { color: var(--light-text); }
#timer { 
    color: var(--danger-color);
    background: #fef2f2;
    padding: 6px 12px;
    border-radius: 20px;
}

#question-box {
    background: var(--white);
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

#current-question-text {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.4;
    font-weight: 600;
}

#options-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quiz-option-btn {
    padding: 4px 8px;
    text-align: left;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
    color: var(--text-color);
    font-family: inherit;
    font-weight: 500;
    position: relative;
    padding-left: 32px;
    border-radius: 4px;
}

.quiz-option-btn::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    transition: all 0.2s;
}

.quiz-option-btn:hover {
    background: #f1f5f9;
}

.quiz-option-btn.selected {
    background: #eff6ff;
    color: var(--primary-color);
}

.quiz-option-btn.selected::before {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: inset 0 0 0 3px #eff6ff;
}

#quiz-navigation {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

#results-box {
    background: var(--white);
    padding: 20px;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
    border: none;
}

.result-icon {
    font-size: 64px;
    color: var(--success-color);
    margin-bottom: 20px;
}

#score-text {
    font-size: 36px;
    color: var(--text-color);
    font-weight: 800;
    margin: 20px 0;
}

/* --- Footer --- */
.site-footer {
    background-color: #0f172a; /* Dark Slate */
    color: #cbd5e1;
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
}

.footer-col h4 {
    margin-bottom: 24px;
    color: var(--white);
    font-size: 18px;
}

.footer-col p {
    font-size: 15px;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #94a3b8;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--white);
}

/* --- Modal / Pop-up Styling --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85); /* Dark slate with blur effect */
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 24px;
    text-align: center;
}

.modal-header h2 {
    color: var(--white);
    margin: 0;
    font-size: 24px;
}

.modal-body {
    padding: 30px;
}

.instruction-list {
    margin: 20px 0;
    padding: 0;
}

.instruction-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--light-text);
}

.instruction-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 3px;
}

.modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
}

.modal-footer .btn-card {
    flex: 1;
    font-size: 16px;
    padding: 14px;
}

@media (max-width: 992px) {
    .content-area { flex-direction: column; }
    .sidebar { width: 100%; min-width: 100%; }
    .hero h1 { font-size: 36px; }
}

@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 20px; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 28px; }
    .search-box { flex-direction: column; border-radius: var(--radius-md); }
    .search-box input, .search-box button { border-radius: var(--radius-md); margin-bottom: 10px; width: 100%; }
    .search-box button { margin-bottom: 0; }
    .exam-grid { grid-template-columns: 1fr; }
    
    #question-box { padding: 24px; }
    #current-question-text { font-size: 18px; }
    .quiz-option-btn { padding: 14px 20px 14px 44px; font-size: 15px; }
    .quiz-option-btn::before { left: 14px; }
}

