/* CSS Variables */
:root {
    --primary-color: #00695c;
    --primary-dark: #004d40;
    --primary-light: #4db6ac;
    --secondary-color: #0277bd;
    --accent-color: #00897b;
    --text-dark: #1a1a1a;
    --text-light: #546e7a;
    --text-white: #ffffff;
    --bg-light: #f5f9f8;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --border-radius: 8px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--text-white);
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-white);
    color: var(--text-white);
}

.btn-secondary:hover {
    background-color: var(--text-white);
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.features h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.categories h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.category-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Latest Articles Section */
.latest-articles,
.test-preview {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.latest-articles h2,
.test-preview h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.article-card:hover {
    box-shadow: var(--shadow);
}

.article-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.article-card h3 a {
    color: var(--primary-color);
}

.article-card h3 a:hover {
    color: var(--primary-dark);
}

.article-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Tests Grid */
.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.test-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.test-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.test-number {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.test-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.test-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--text-white);
    text-align: center;
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--text-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.footer-section p {
    color: #b0bec5;
    font-size: 0.95rem;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #b0bec5;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #37474f;
    color: #78909c;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .features h2,
    .categories h2,
    .latest-articles h2,
    .test-preview h2,
    .cta h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .features,
    .categories,
    .latest-articles,
    .test-preview,
    .cta {
        padding: 50px 0;
    }

    .features-grid,
    .categories-grid,
    .articles-grid,
    .tests-grid {
        grid-template-columns: 1fr;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--text-white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Articles Page */
.articles-page {
    padding: 60px 0;
}

.articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.article-item {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.article-content h3 a {
    color: var(--primary-color);
}

.article-content h3 a:hover {
    color: var(--primary-dark);
}

.article-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.article-meta {
    font-size: 0.85rem;
    color: #90a4ae;
}

/* Tests Page */
.tests-page {
    padding: 60px 0;
}

.tests-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.test-item {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.test-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.test-item .test-number {
    margin-bottom: 15px;
}

.test-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.test-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.test-item .btn {
    width: 100%;
}

/* Single Article Page */
.single-article {
    padding: 60px 0;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.article-container h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.article-container .article-meta {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-container .article-body {
    line-height: 1.8;
    color: var(--text-dark);
}

.article-container .article-body h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 30px 0 15px;
}

.article-container .article-body p {
    margin-bottom: 20px;
}

.article-container .article-body ul,
.article-container .article-body ol {
    margin: 20px 0;
    padding-left: 25px;
}

.article-container .article-body li {
    margin-bottom: 10px;
}

.article-container .article-image {
    margin: 30px 0;
    border-radius: var(--border-radius);
    height: 300px;
}

.article-nav {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.article-nav a {
    color: var(--primary-color);
    font-weight: 500;
}

.article-nav a:hover {
    color: var(--primary-dark);
}

/* Single Test Page */
.test-page {
    padding: 60px 0;
}

.test-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.test-container h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.test-container .test-info {
    color: var(--text-light);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.question-card {
    margin-bottom: 30px;
    padding: 25px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
}

.question-card .question-number {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.question-card .question-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.option-label:hover {
    border-color: var(--primary-color);
    background-color: #e0f2f1;
}

.option-label input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.option-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 30px;
    font-size: 1.1rem;
}

.result-card {
    margin-top: 40px;
    padding: 30px;
    background-color: #e0f2f1;
    border-radius: var(--border-radius);
    text-align: center;
}

.result-card h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.result-card .score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.result-card .message {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* About Page */
.about-page {
    padding: 60px 0;
}

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

.about-content {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-content h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 30px 0 15px;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-dark);
}

.about-content ul {
    padding-left: 25px;
    margin-bottom: 20px;
}

.about-content ul li {
    margin-bottom: 10px;
    list-style: disc;
}

/* Contact Page */
.contact-page {
    padding: 60px 0;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.contact-form > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

/* AdSense Placeholder - Must be visible and meet requirements */
.adsense-placeholder {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    margin: 30px 0;
    border-radius: var(--border-radius);
}

.adsense-placeholder::before {
    content: "Advertisement";
    display: block;
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.adsense-placeholder.ins-ads {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #a5d6a7;
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    color: var(--text-light);
}

.breadcrumb-list li a {
    color: var(--primary-color);
}

.breadcrumb-list li a:hover {
    text-decoration: underline;
}

.breadcrumb-list li::after {
    content: ' /';
    margin-left: 10px;
    color: var(--text-light);
}

.breadcrumb-list li:last-child::after {
    content: '';
}

.breadcrumb-list li:last-child {
    color: var(--text-dark);
    font-weight: 500;
}
