:root {
    --color-primary: #0A2647;
    --color-secondary: #144272;
    --color-accent: #2C74B3;
    --color-light: #f4f4f9;
    --color-white: #ffffff;
    --color-text: #333;
    --font-heading: 'Work Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 16px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--color-light);
    color: var(--color-text);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
}

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

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

/* Header & Nav */
header {
    background: var(--color-white);
    box-shadow: var(--shadow);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav .logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: var(--color-secondary);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--color-accent);
}

/* Burger Menu Button */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
    background: none;
    border: none;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    text-align: center;
    padding: 6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 38, 71, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #205a8d;
    transform: translateY(-2px);
}

/* Articles Section */
.articles-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.articles-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.articles-grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Classic Card Style */
.article-card--classic {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card--classic:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.article-card--classic img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-card--classic .card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card--classic h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.article-card--classic p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    color: #666;
}

.article-card--classic .read-more {
    background: none;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    align-self: flex-start;
    transition: background-color 0.3s, color 0.3s;
}

.article-card--classic .read-more:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* Testimonials */
.testimonials-section {
    background-color: var(--color-secondary);
    color: var(--color-light);
    padding: 4rem 5%;
    text-align: center;
}

.testimonials-section h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.testimonials-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial {
    background: var(--color-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    flex: 1;
}

.testimonial img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 3px solid var(--color-accent);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial span {
    font-weight: 600;
    color: var(--color-accent);
}

/* Newsletter */
.newsletter-section {
    padding: 4rem 5%;
    text-align: center;
}

.newsletter-section h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.newsletter-section p {
    margin-bottom: 2rem;
    color: #666;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
}

.newsletter-form button {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
     background-color: #205a8d;
}

/* Footer */
footer {
    background: var(--color-primary);
    color: var(--color-light);
    padding: 2rem 5%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.footer-content a {
    color: var(--color-light);
    transition: color 0.3s;
}

.footer-content a:hover {
    color: var(--color-accent);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    max-width: 800px;
    width: 90%;
    position: relative;
    animation: slide-down 0.4s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.modal-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes slide-down {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Generic Page Styles (About, Contact, FAQ, etc.) */
.page-header {
    background: var(--color-secondary);
    color: var(--color-white);
    text-align: center;
    padding: 3rem 1rem;
}

.page-header h1 {
    color: var(--color-white);
    font-size: 2.8rem;
}

.about-content, .privacy-policy-content {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.about-content h2, .privacy-policy-content h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-policy-content ul {
    padding-left: 20px;
    margin-bottom: 1rem;
}

.features-section {
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

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

.feature-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.feature-card img {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-section {
    padding: 3rem 1rem;
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-body);
}

/* FAQ Section */
.faq-section {
    padding: 3rem 1rem;
}

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

.faq-item {
    background: var(--color-white);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--color-primary);
    position: relative;
    padding-right: 40px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust as needed */
}

/* Responsive */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .testimonials-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        gap: 0;
        overflow-y: auto;
    }
    
    nav ul.active {
        transform: translateX(0);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    nav ul li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    .modal-content {
        padding: 1.5rem;
    }
}
