/* Basic Resets and Global Styles */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f7faff;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Colors */
:root {
    --primary-color: #3d52d5;
    --secondary-color: #f0f3ff;
    --dark-blue: #0d1b3f;
    --text-color: #555;
    --light-text-color: #888;
    --hot-pink: #ff4967;
    --green: #28a745;
    --orange: #fd7e14;
    --yellow: #ffc107;
}

/* Header */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.breadcrumbs {
    color: var(--light-text-color);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--light-text-color);
}

.breadcrumbs a.active {
    color: var(--text-color);
    font-weight: 500;
}

.main-nav a {
    margin-left: 25px;
    color: var(--text-color);
    font-weight: 500;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 992px) {
    .main-nav, .breadcrumbs {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
     .main-header .container {
        justify-content: space-between;
    }
    .logo {
        flex-grow: 1;
    }
}
 
/* Hero Section */
.hero-section {
    background-color: var(--secondary-color);
    padding: 60px 0;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background-color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary-color);
    border: 1px solid #e0e6ff;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 40px;
    color: var(--dark-blue);
    margin: 20px 0 10px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.5;
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 32px;
    }
}

/* Popular Tests Section */
.popular-tests-section {
    padding: 60px 0;
    background-color: #f7faff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 24px;
    color: var(--dark-blue);
    margin: 0;
}

.section-header .view-all {
    color: var(--primary-color);
    font-weight: 500;
}

.popular-tests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.popular-test-card {
    background-image: linear-gradient(135deg, #4a62e4, #3d52d5);
    color: #fff;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 150px;
}

.popular-test-card.hot::before {
    content: 'HOT';
    position: absolute;
    top: -1px;
    right: 20px;
    background-color: var(--hot-pink);
    color: #fff;
    padding: 10px 8px 3px;
    border-radius: 0 0 5px 5px;
    font-size: 12px;
    font-weight: bold;
}

.popular-test-card .card-content {
    margin-bottom: 20px;
}

.popular-test-card h3 {
    margin: 0 0 5px;
    font-size: 20px;
    font-weight: 600;
}

.popular-test-card span {
    font-size: 14px;
    opacity: 0.8;
}

.btn-start {
    background-color: #fff;
    color: var(--primary-color);
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-start:hover {
    background-color: #f0f3ff;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .popular-tests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .popular-tests-grid {
        grid-template-columns: 1fr;
    }
}

/* All Tests Section */
.all-tests-section {
    padding: 60px 0;
    background-color: #fff;
}

.test-category {
    background-color: #fff;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #eaf0ff;
    padding: 25px;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eaf0ff;
}

.category-icon {
    min-width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}
.category-icon svg {
    width: 28px;
    height: 28px;
}
.math-icon { background-color: #e6f3ff; color: #3d52d5; }
.english-icon { background-color: #e5f9f0; color: #28a745; }
.history-icon { background-color: #f3e8ff; color: #6f42c1; }
.physics-icon { background-color: #fff0e9; color: #fd7e14; }


.category-title h3 {
    margin: 0;
    font-size: 18px;
    color: var(--dark-blue);
    font-weight: 600;
}

.category-title p {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--light-text-color);
}

.category-year {
    margin-left: auto;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.test-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.test-card-item {
    border: 1px solid #eaf0ff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.test-card-item:hover {
    border-color: #d8e2fc;
    transform: translateY(-3px);
}

.card-main-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-main-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-blue);
}

.tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}
.tag-green { background-color: #e5f9f0; color: #28a745; }
.tag-orange { background-color: #ffe8d9; color: #fd7e14; }
.tag-yellow { background-color: #fff8e5; color: #ffc107; }

.card-meta {
    font-size: 13px;
    color: var(--light-text-color);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-meta span {
    display: flex;
    align-items: center;
}

.card-meta svg {
    margin-right: 8px;
    opacity: 0.7;
    position: relative;
    top: -1px;
}

.card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    flex-grow: 1;
}
.btn-primary:hover {
    background-color: #3548b9;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .test-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .category-year {
        margin-left: 0;
        background: #f7faff;
        padding: 5px 10px;
        border-radius: 6px;
    }
    .all-tests-section .section-header {
        text-align: center;
        justify-content: center;
    }
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.cta-section .container {
    max-width: 700px;
}

.cta-section h2 {
    font-size: 32px;
    margin: 0 0 15px;
    font-weight: 700;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-buttons .btn {
    margin: 0 10px;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
}

.btn-cta-primary {
    background-color: #fff;
    color: var(--primary-color);
}
.btn-cta-primary:hover {
    background-color: var(--secondary-color);
}

.btn-cta-secondary {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}
.btn-cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

@media (max-width: 576px) {
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}

/* Footer */
.main-footer {
    background-color: var(--dark-blue);
    color: #fff;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col .logo {
    color: #fff;
    font-size: 28px;
    margin-bottom: 15px;
    display: inline-block;
    font-weight: 700;
}

.footer-about {
    opacity: 0.7;
    line-height: 1.6;
    font-size: 14px;
    max-width: 250px;
}

.footer-col h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
    opacity: 0.9;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a, .footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col p {
    margin: 0 0 10px;
}

.footer-col ul a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col .logo {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-about {
        margin-left: auto;
        margin-right: auto;
    }
} 