/*
Theme Name: PracticeTestVault Modern
Theme URI: https://practicetestvault.com/
Author: PracticeTestVault
Description: A modern, SEO-optimized theme for practice tests and exams to mimic and beat ExamEdge.
Version: 1.0.1
*/

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --text: #374151;
    --text-dark: #111827;
    --text-light: #6b7280;
    --bg: #f3f4f6;
    --white: #ffffff;
    --border: #e5e7eb;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    margin-top: 0;
    font-weight: 700;
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--primary-dark);
}

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    font-size: 28px;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
    align-items: center;
}
.main-nav a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
}
.main-nav a:hover {
    color: var(--primary);
}
.btn-primary {
    background: var(--primary);
    color: var(--white) !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.3);
}

/* Hero Section */
.hero {
    background: var(--text-dark);
    color: var(--white);
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.15), transparent 40%),
                radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.1), transparent 40%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.hero h1 {
    font-size: 64px;
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
}
.hero h1 span {
    color: var(--primary);
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 22px;
    color: #9ca3af;
    margin-bottom: 48px;
}
.hero-search {
    background: var(--white);
    padding: 8px;
    border-radius: 64px;
    display: flex;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
}
.hero-search input[type="search"] {
    flex: 1;
    border: none;
    padding: 16px 24px;
    font-size: 18px;
    outline: none;
    background: transparent;
    color: var(--text-dark);
    border-radius: 64px 0 0 64px;
}
.btn-search-submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 64px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-search-submit:hover {
    background: var(--primary-dark);
}

/* Stats/Trust Bar */
.trust-bar {
    background: var(--white);
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    margin-top: -40px;
    position: relative;
    z-index: 10;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.trust-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}
.trust-item h4 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 4px;
}
.trust-item p {
    color: var(--text-light);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0;
}

/* Features */
.features-section {
    padding: 100px 0;
    background: var(--white);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}
.feature-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg);
    border-radius: 16px;
    transition: transform 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
}
.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.feature-icon svg {
    width: 32px;
    height: 32px;
}

/* Categories */
.categories {
    padding: 100px 0;
    background: var(--bg);
}
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-header h2 {
    font-size: 40px;
    margin-bottom: 16px;
}
.section-header p {
    font-size: 18px;
    color: var(--text-light);
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}
.category-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    position: relative;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    border-color: var(--primary-light);
}
.category-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}
.category-card a {
    color: var(--text-dark);
}
.category-card a::after {
    content: '';
    position: absolute;
    inset: 0;
}
.category-card p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

/* Footer */
.site-footer {
    background: var(--text-dark);
    color: #9ca3af;
    padding: 80px 0 24px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}
.footer-widget h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 24px;
}
.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-widget li {
    margin-bottom: 12px;
}
.footer-widget a {
    color: #9ca3af;
    transition: color 0.3s;
}
.footer-widget a:hover {
    color: var(--white);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #374151;
    padding-top: 32px;
    font-size: 14px;
}

/* Exam Pages */
.exam-list {
    display: grid;
    gap: 20px;
}
.single-exam-landing {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    overflow: hidden;
}
.single-exam-landing header {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 60px 40px;
    text-align: center;
    border-bottom: 1px solid #bfdbfe;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 40px; }
    .hero p { font-size: 18px; }
    .hero-search { flex-direction: column; border-radius: 16px; padding: 16px; }
    .hero-search input[type="search"] { border-radius: 8px; margin-bottom: 16px; }
    .btn-search-submit { padding: 16px; border-radius: 8px; }
    .trust-grid { flex-direction: column; gap: 32px; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
    .main-nav { display: none; } /* Add mobile menu later if needed */
}
