/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0a2342; /* Deep Blue */
    --secondary-color: #2ca58d; /* Teal Green Accent */
    --text-color: #333333;
    --light-gray-color: #f4f7f6;
    --white-color: #ffffff;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Lato', sans-serif;
}

/* --- Base Setup --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1.2rem; }
a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #248b75; text-decoration: underline; }

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    font-family: var(--heading-font);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #248b75;
    text-decoration: none;
    transform: translateY(-2px);
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav { display: flex; }
.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav li { margin-left: 30px; }
.main-nav a {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    border-bottom-color: var(--secondary-color);
    text-decoration: none;
}

.hamburger { display: none; cursor: pointer; }
.hamburger div { width: 25px; height: 3px; background-color: var(--primary-color); margin: 5px 0; transition: all 0.3s ease; }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(10, 35, 66, 0.85), rgba(10, 35, 66, 0.85)), url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&q=80&w=1632') no-repeat center center/cover;
    color: var(--white-color);
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    color: var(--white-color);
    margin-bottom: 1rem;
    font-size: 3.5rem;
}

.hero p {
    font-size: 1.3rem;
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.9;
}

/* --- General Section Styling --- */
.section { padding: 80px 0; }
.section-bg { background-color: var(--light-gray-color); }

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 { margin-bottom: 15px; }
.section-title p { max-width: 600px; margin: 0 auto; color: #6c757d; font-size: 1.1rem; }

/* --- Features Grid (Homepage) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: var(--white-color);
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-item svg { width: 50px; height: 50px; margin-bottom: 20px; color: var(--secondary-color); }
.feature-item h3 { margin-bottom: 15px; }

/* --- Comparison Table --- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th, .comparison-table td {
    padding: 18px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.comparison-table th {
    background-color: var(--primary-color);
    color: var(--white-color);
    font-family: var(--heading-font);
    font-size: 1.1rem;
}
.comparison-table td:first-child { font-weight: bold; color: var(--primary-color); }
.comparison-table tr:nth-child(even) { background-color: var(--light-gray-color); }
.comparison-table tr:hover { background-color: #e9ecef; }

/* --- Process Steps --- */
.process-steps { display: grid; grid-template-columns: 1fr; gap: 30px; }
.step { background: var(--white-color); padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.07); display: flex; align-items: center; }
.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-right: 25px;
    line-height: 1;
}
.step-content h3 { margin: 0 0 10px 0; }

/* --- Blog Cards --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.article-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover { transform: translateY(-8px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.article-card img { width: 100%; height: 220px; object-fit: cover; }
.article-card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.article-card-content h3 { margin-top: 0; }
.article-card-content p { flex-grow: 1; }
.article-card-content .btn { margin-top: auto; align-self: flex-start; }

/* --- Content Page Styling (for simple text pages) --- */
.content-page { padding: 80px 0; }
.content-page h1 { margin-bottom: 30px; }
.content-page ul { list-style-type: disc; padding-left: 25px; line-height: 1.8; }
.content-page li { margin-bottom: 12px; }
.content-page h2 { margin-top: 40px; }

/* --- Contact Form --- */
.contact-form { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 5px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
}
.form-group textarea { resize: vertical; min-height: 150px; }

/* --- Footer --- */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px 0;
    font-size: 0.95rem;
}

.footer a { color: var(--white-color); }
.footer h4 { color: var(--white-color); font-size: 1.2rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-about p { margin-bottom: 20px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }
    .main-nav.active { transform: translateX(0); }
    .main-nav ul { flex-direction: column; }
    .main-nav li { margin: 15px 0; margin-left: 0; }
    .main-nav a { color: var(--white-color); }
    .hamburger { display: block; z-index: 1001; }
    .hamburger.active div:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.active div:nth-child(2) { opacity: 0; }
    .hamburger.active div:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .comparison-table { font-size: 0.9rem; }
    .comparison-table th, .comparison-table td { padding: 12px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero { padding: 80px 0; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
}

/* --- FAQ Accordion --- */
.faq-item { 
    margin-bottom: 10px; 
    border: 1px solid #e0e0e0; 
    border-radius: 5px; 
    overflow: hidden; 
}
.faq-question {
    width: 100%;
    background-color: var(--white-color);
    border: none;
    text-align: left;
    padding: 20px;
    font-family: var(--heading-font);
    font-size: 1.2rem;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
    position: relative;
    transition: background-color 0.3s ease;
}
.faq-question:hover { 
    background-color: var(--light-gray-color); 
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.8rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after { 
    transform: rotate(45deg); 
}
.faq-answer { 
    padding: 0 20px; 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s ease-out, padding 0.4s ease-out; 
}
.faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 500px; /* A large enough value to show any answer */
}
