/* --- CSS Variables (Your Brand's Color Palette) --- */
:root {
    --primary-color: #0056b3;
    --primary-hover: #004494;
    --secondary-color: #007bff;
    --accent-color: #ffc107;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --text-color: #333;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 6px 16px rgba(0,0,0,0.12);
}

/* --- Global & SEO Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

h1, h2, h3 {
    color: var(--dark-gray);
    margin-bottom: 20px;
    font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

/* --- Header & Logo --- */
.site-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--medium-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 45px; /* Adjust this to your logo's size */
    margin-right: 10px;
}

.logo .logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-gray);
    text-decoration: none;
}
.logo:hover {
    text-decoration: none;
}

.main-nav a {
    margin-left: 25px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.main-nav a.btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px; /* Modern pill shape */
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-nav a.btn:hover {
    background: var(--primary-hover);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* --- Hero Section (Homepage) --- */
.hero {
    text-align: center;
    padding: 100px 20px;
    /* You must add a 'hero-bg.jpg' image to your 'images' folder */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: var(--white);
}

.hero h1 {
    font-size: 3.8rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    background: var(--accent-color);
    color: var(--dark-gray);
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0 10px;
    transition: all 0.3s ease;
    border: none;
}

.hero .btn:hover {
    background: #ffca2c;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255,193,7,0.4);
}

/* --- Section Styling --- */
.section {
    padding: 80px 0;
}
.section-bg {
    background-color: var(--light-gray);
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    margin: 10px auto 0;
}

/* --- Card & Grid Layouts (For Features, Steps, etc.) --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.card h3 {
    font-size: 1.4rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

/* --- AdSense-Friendly Page Layout (Content + Sidebar) --- */
.page-container {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}
.main-content {
    flex: 3; /* Content takes up 3/4 of the space */
}
.sidebar {
    flex: 1; /* Sidebar takes 1/4 */
    border-left: 1px solid var(--medium-gray);
    padding-left: 30px;
}
.sidebar-widget {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.sidebar-widget h3 {
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.ad-placeholder {
    width: 100%;
    min-height: 250px;
    background: var(--medium-gray);
    border: 2px dashed var(--dark-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-weight: bold;
    border-radius: 5px;
    margin: 20px 0;
}

/* --- FAQ Page Styles --- */
.faq-item {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question:hover {
    background: var(--light-gray);
}
.faq-question::after {
    content: '+'; /* Plus sign */
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.faq-question.active::after {
    transform: rotate(45deg); /* Turns '+' to 'x' */
}
.faq-answer {
    padding: 0 20px 20px 20px;
    display: none; /* Hidden by default */
    line-height: 1.8;
}

/* --- Testimonials --- */
.testimonial {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    font-style: italic;
    font-size: 1.1rem;
    position: relative;
    box-shadow: var(--shadow);
}
.testimonial::before {
    content: '“';
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 10px;
}
.testimonial-author {
    font-style: normal;
    font-weight: bold;
    color: var(--dark-gray);
    margin-top: 20px;
    display: block;
}

/* --- Footer --- */
.site-footer {
    background: var(--dark-gray);
    color: #aaa;
    padding: 60px 0;
    margin-top: 80px;
    font-size: 0.95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    color: #ccc;
}
.footer-grid h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}
.footer-grid a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}
.footer-grid a:hover {
    color: var(--white);
    text-decoration: underline;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 30px;
    margin-top: 40px;
}

/* --- Mobile Responsive --- */
.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--dark-gray);
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .page-container {
        flex-direction: column;
    }
    .sidebar {
        border-left: none;
        border-top: 1px solid var(--medium-gray);
        padding-left: 0;
        padding-top: 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* Hide nav links */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 76px; /* Height of your header */
        left: 0;
        background: var(--white);
        box-shadow: var(--shadow);
    }
    .main-nav.active {
        display: flex; /* Show nav links */
    }
    .main-nav a {
        margin: 0;
        padding: 15px 20px;
        border-bottom: 1px solid var(--medium-gray);
    }
    .main-nav a.btn {
        margin: 10px 20px;
        text-align: center;
    }
    .mobile-nav-toggle {
        display: block; /* Show hamburger icon */
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
}