/* Basic Resets & Global Styles */
:root {
    --primary-color: #007bff; /* A nice blue for brand color */
    --secondary-color: #6c757d;
    --background-light: #f8f9fa;
    --text-dark: #343a40;
    --text-light: #ffffff;
    --border-color: #dee2e6;
    --accent-color: #28a745; /* Green for success/CTA */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --header-height: 80px;
    --offcanvas-width: 300px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden; /* Prevent horizontal scroll from off-canvas */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.2;
}

section {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* For scroll effects */
}

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

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

.section-heading {
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-heading::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Header & Navigation */
.header {
    background-color: var(--text-light);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1100; /* Above off-canvas */
    padding: 0;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Off-canvas Menu */
.off-canvas-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: var(--offcanvas-width);
    height: 100%;
    background-color: var(--primary-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.7, 0, 0.3, 1);
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
}

.off-canvas-menu.is-open {
    right: 0;
}

.off-canvas-menu ul {
    list-style: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Make it fill space */
}

.off-canvas-menu ul li {
    margin-bottom: 20px;
}

.off-canvas-menu ul li a {
    color: var(--text-light);
    font-size: 1.4rem;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.off-canvas-menu ul li a:hover,
.off-canvas-menu ul li a.active {
    color: var(--accent-color);
}

.off-canvas-menu .menu-cta {
    padding: 20px;
    margin-top: auto; /* Push to bottom */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--background-light) 0%, #e0f2f7 100%);
    padding: 100px 0;
    min-height: calc(100vh - var(--header-height)); /* Full height minus header */
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-text h1 {
    font-size: 3.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
}

.hero-text h1 span {
    color: var(--accent-color);
}

.hero-text p {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    
}

.hero-illustration {
    width: 100%;
    max-width: 600px;
    height: 300px; /* Placeholder for actual illustration */
    background-color: #d1ecf1; /* Light blue placeholder */
    margin-top: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInSlideUp 1s forwards 0.5s;
    background-image: url(../images/hero.gif);
}

@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Page */
.about-hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/page-hero.jpg') no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 120px 0;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    min-width:100% ;
}

.about-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.about-hero p {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    padding: 100px 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out; /* For scroll effects */
}
/*
.about-section:nth-child(even) {
    background-color: var(--background-light);
}
.about-section:nth-child(odd) {
    background-color: var(--text-light);
}
*/
.about-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-video {
    text-align: center;
    margin: 50px 0;
}

.about-video iframe {
    width: 100%;
    max-width: 800px;
    height: 450px; /* 16:9 aspect ratio */
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}



/* Blog Preview */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.blog-preview-card {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}
.blog-preview-img  {
    min-height: 300px;
}

.blog-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}




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

.blog-preview-card h3 a {
    color: inherit;
}

.blog-preview-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-preview-card .tags span {
    background-color: var(--background-light);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 60px 0 30px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-logo {
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
   margin-bottom: 20px;
    align-items: center;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-nav ul li {
    margin: 0 15px 10px;
}

.footer-nav ul li a {
    color: var(--text-light);
    opacity: 0.8;
}

.footer-nav ul li a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.social-links {
    margin-bottom: 30px;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0 10px;
    opacity: 0.7;
}

.social-links a:hover {
    color: var(--accent-color);
    opacity: 1;
}

/* Page Specific Styles */



/********Newsletter******/
/* Main Section Styling */
         /* CSS Variables for colors */
        :root {
            --primary-color: #007bff; /* A nice blue for brand color */
            --secondary-color: #6c757d;
            --background-light: #f8f9fa;
            --text-dark: #343a40;
            --text-light: #ffffff;
            --border-color: #dee2e6;
            --accent-color: #28a745; /* Green for success/CTA */
        }

        /* Basic Reset & Body Styling */
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: var(--background-light);
            color: var(--text-dark);
            line-height: 1.6;
        }

        /* Main Section Styling */
        .newsletter-main-section {
            max-width: 800px;
            margin: 40px auto;
            padding: 30px;
            background-color: var(--text-light);
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .newsletter-main-section h1 {
            color: var(--primary-color);
            text-align: center;
            margin-bottom: 30px;
            font-size: 2.2em;
        }

        /* Form Container Styling */
        .form-section {
            margin-bottom: 40px;
            padding: 25px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background-color: #fff;
        }

        .form-section h2 {
            color: var(--text-dark);
            margin-top: 0;
            font-size: 1.6em;
            border-bottom: 1px dashed var(--border-color);
            padding-bottom: 15px;
            margin-bottom: 25px;
        }

        /* Form Group Styling */
        .form-group {
            margin-bottom: 20px;
        }

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

        .form-group input[type="text"],
        .form-group input[type="email"],
        .form-group input[type="date"] {
            width: calc(100% - 22px); /* Account for padding and border */
            padding: 12px 10px;
            border: 1px solid var(--border-color);
            border-radius: 5px;
            font-size: 1em;
            box-sizing: border-box; /* Include padding and border in the element's total width and height */
        }

        .form-group input[type="text"]:focus,
        .form-group input[type="email"]:focus,
        .form-group input[type="date"]:focus {
            border-color: var(--primary-color);
            outline: none;
            box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
        }

        /* Checkbox Styling */
        .form-group.checkbox-group {
            display: flex;
            align-items: center;
            margin-top: 25px;
            margin-bottom: 25px;
        }

        .form-group.checkbox-group input[type="checkbox"] {
            margin-right: 10px;
            min-width: 18px; /* Ensure checkbox is visible */
            min-height: 18px;
            cursor: pointer;
        }

        .form-group.checkbox-group label {
            margin-bottom: 0;
            font-weight: normal;
            color: var(--text-dark);
            cursor: pointer;
        }
        .form-group.checkbox-group label a {
            color: var(--primary-color);
            text-decoration: none;
        }
        .form-group.checkbox-group label a:hover {
            text-decoration: underline;
        }


        /* Button Styling */
        .btn-submit {
            display: block;
            width: 100%;
            padding: 15px 20px;
            background-color: var(--accent-color);
            color: var(--text-light);
            border: none;
            border-radius: 5px;
            font-size: 1.1em;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .btn-submit:hover {
            background-color: #218838; /* Darker accent color */
        }

        /* Unsubscribe Section Styling */
        .unsubscribe-section {
            text-align: center;
            padding-top: 20px;
            border-top: 1px dashed var(--border-color);
            margin-top: 30px;
        }

        .unsubscribe-section p {
            font-size: 0.95em;
            color: var(--secondary-color);
        }

        .unsubscribe-section a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: bold;
            transition: color 0.3s ease;
        }

        .unsubscribe-section a:hover {
            text-decoration: underline;
            color: var(--primary-color);
        }

        /* Confirmation Message Styling */
        .confirmation-message {
            display: none; /* Hidden by default */
            margin-top: 20px;
            padding: 15px;
            border-radius: 5px;
            font-weight: bold;
            text-align: center;
            animation: fadeIn 0.5s ease-out;
        }

        .confirmation-message.success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .confirmation-message.error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Modal (Pop-up) Styling */
        .modal {
            display: none; /* Hidden by default */
            position: fixed; /* Stay in place */
            z-index: 1000; /* Sit on top */
            left: 0;
            top: 0;
            width: 100%; /* Full width */
            height: 100%; /* Full height */
            overflow: auto; /* Enable scroll if needed */
            background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background-color: var(--text-light);
            margin: auto;
            padding: 30px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            width: 90%;
            max-width: 450px;
            position: relative;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            animation: slideIn 0.3s ease-out;
        }

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

        .modal-content h3 {
            color: var(--primary-color);
            margin-top: 0;
            margin-bottom: 20px;
            text-align: center;
            font-size: 1.8em;
        }

        .close-button {
            color: var(--secondary-color);
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .close-button:hover,
        .close-button:focus {
            color: var(--text-dark);
            text-decoration: none;
        }

        .modal .form-group input[type="email"] {
            width: calc(100% - 22px);
            margin-bottom: 20px;
        }

        .modal .btn-submit {
            background-color: var(--secondary-color); /* Use secondary for unubscribe button */
        }
        .modal .btn-submit:hover {
            background-color: #5a6268; /* Darker secondary */
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .newsletter-main-section {
                margin: 20px auto;
                padding: 20px;
            }
            .newsletter-main-section h1 {
                font-size: 1.8em;
            }
            .form-section h2 {
                font-size: 1.4em;
            }
            .form-group input {
                font-size: 0.95em;
                padding: 10px;
            }
            .btn-submit {
                padding: 12px 15px;
                font-size: 1em;
            }
            .modal-content {
                width: 95%;
                padding: 20px;
            }
        }