/* ====================================
   MegaMiracles Insurance Website Styles
   ==================================== */

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

:root {
    --primary-color: #2e7d32;
    --primary-hover: #1b5e20;
    --secondary-color: #4caf50;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --bg-grey: #e0e0e0;
    --border-color: #dddddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    font-weight: 300;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-light);
}

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

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-accept {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-accept:hover {
    background-color: var(--primary-hover);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(51, 51, 51, 0.98);
    color: var(--text-white);
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.cookie-banner.show {
    display: block;
}

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

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Header & Navigation */
.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: 1rem 0;
}

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

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

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-weight: 400;
    color: var(--text-dark);
    transition: var(--transition);
}

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

.btn-nav {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: 5px;
}

.btn-nav:hover {
    background-color: var(--primary-hover);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

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

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.9), rgba(27, 94, 32, 0.9)), 
                url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1600') center/cover;
    color: var(--text-white);
    padding: 120px 0;
    text-align: center;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

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

.page-header p {
    font-size: 1.1rem;
    font-weight: 300;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Services Grid */
.services {
    background-color: var(--bg-light);
}

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

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

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.service-link:hover {
    color: var(--primary-hover);
}

/* About Preview */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-features {
    margin: 1.5rem 0;
}

.about-features li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--text-white);
}

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

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 300;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.95), rgba(27, 94, 32, 0.95)),
                url('https://images.unsplash.com/photo-1521791136064-7986c2920216?w=1600') center/cover;
    color: var(--text-white);
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    color: var(--text-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* Mission & Values */
.mission-values {
    background-color: var(--bg-light);
}

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

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

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Why Choose Us */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.why-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.why-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.why-list h4 {
    margin-bottom: 0.5rem;
}

.why-list p {
    color: var(--text-light);
    margin: 0;
}

.why-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

.team-member {
    text-align: center;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.member-image {
    margin-bottom: 1.5rem;
}

.member-image img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Resources */
.resources-grid {
    display: grid;
    gap: 3rem;
}

.resource-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.resource-image {
    position: relative;
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-content {
    padding: 2rem;
}

.resource-category {
    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: 1rem;
}

.resource-list {
    margin: 1rem 0;
    padding-left: 1rem;
}

.resource-list li {
    padding: 0.3rem 0;
    color: var(--text-light);
}

/* Tools Section */
.tools-section {
    background-color: var(--bg-light);
}

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

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

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

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

/* Download Section */
.download-section {
    background-color: var(--bg-light);
}

.download-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.download-features {
    margin: 1.5rem 0;
}

.download-features li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-light);
}

.download-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.blog-content h2 a,
.blog-content h3 a {
    color: var(--text-dark);
    transition: var(--transition);
}

.blog-content h2 a:hover,
.blog-content h3 a:hover {
    color: var(--primary-color);
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--text-white);
    text-align: center;
    padding: 60px 0;
}

.newsletter-content h2 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 2rem auto 0;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 15px 30px;
}

/* Article Styles */
.article-header {
    background-color: var(--bg-light);
    padding: 40px 0;
}

.article-breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

.article-category {
    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: 1rem;
}

.article-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.article-content {
    padding: 60px 0;
}

.article-image {
    margin-bottom: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
}

.article-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-body h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-body ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-body ul li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.article-cta {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    margin: 3rem 0;
    text-align: center;
}

.article-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.article-share {
    margin-bottom: 2rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-buttons a {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--bg-light);
    border-radius: 5px;
    transition: var(--transition);
}

.share-buttons a:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.related-articles {
    background-color: var(--bg-light);
    padding: 60px 0;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.contact-form-container,
.contact-info {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    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 select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.error-message {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.success-message {
    background-color: #4caf50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-top: 1rem;
    text-align: center;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-light);
    margin: 0;
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

.contact-social {
    margin-top: 2rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-hover);
}

/* Map Section */
.map-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

/* Legal Pages */
.legal-content {
    padding: 60px 0;
}

.legal-text {
    max-width: 900px;
    margin: 0 auto;
}

.legal-text h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-text h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-text ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-text ul li {
    margin-bottom: 0.5rem;
    list-style: disc;
    color: var(--text-light);
}

.contact-box {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    font-style: italic;
    color: var(--text-light);
}

/* FAQ Page */
.faq-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.faq-category {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.faq-category h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.faq-list {
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

.faq-cta {
    max-width: 800px;
    margin: 4rem auto;
    text-align: center;
    padding: 3rem;
    background-color: var(--bg-light);
    border-radius: 10px;
}

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

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

.footer-col h3,
.footer-col h4 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.footer-col p {
    font-weight: 300;
    color: #cccccc;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #cccccc;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    font-size: 1.5rem;
}

.footer-contact li {
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555555;
    color: #cccccc;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-grid,
    .why-grid,
    .download-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-card {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .services-grid,
    .stats-grid,
    .values-grid,
    .tools-grid,
    .blog-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}