/* 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);
    }
}


/* Insurance Overview Grid */
.insurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.insurance-card {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.insurance-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.insurance-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.insurance-card p {
    font-size: 1rem;
    color: var(--secondary-color);
}

/* Animated Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.stat-item {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0; /* Hidden by default for animation */
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stat-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.stat-item .number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    color: var(--text-light);
}

.stat-item .label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Testimonials Slider */
.testimonials-slider {
    position: relative;
    overflow: hidden;
    margin-top: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0;
    border-radius: 10px;
}

.slides-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    min-width: 100%; /* Each card takes full width of slider */
    flex-shrink: 0;
    text-align: center;
    padding: 0 50px;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--accent-color);
}

.testimonial-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

.testimonial-card .author {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.slider-nav button {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-nav button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* 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-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-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 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 */

/* 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);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.team-member {
    background-color: var(--background-light);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--primary-color);
}

.team-member h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.team-member .role {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: block;
}

.team-member .social-icons a {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0 8px;
}

.team-member .social-icons a:hover {
    color: var(--accent-color);
}

/* Our Insurance Page */
.insurance-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* 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.6); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.is-open {
    display: flex;
}

.modal-content {
    background-color: var(--background-light);
    margin: auto;
    padding: 40px;
    border-radius: 10px;
    max-width: 700px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal.is-open .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-content h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.modal-content ul {
    list-style: none;
    margin-bottom: 20px;
}

.modal-content ul li {
    background-color: var(--text-light);
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.modal-content ul li i {
    color: var(--accent-color);
    margin-right: 10px;
}

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

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

/* FAQ Page */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.faq-topic {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.faq-topic h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
}

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

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

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s ease;
}

.accordion-header:hover {
    color: var(--primary-color);
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding-bottom: 0;
}

.accordion-content.is-open {
    max-height: 200px; /* Adjust as needed, sufficiently large */
    padding-bottom: 15px;
}

.accordion-content p {
    padding: 10px 0;
    font-size: 1rem;
    color: var(--secondary-color);
    line-height: 1.6;
}

.chatbot-search {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    margin-top: 80px;
}

.chatbot-search h3 {
    color: var(--text-light);
    font-size: 2rem;
    margin-bottom: 20px;
}

.chatbot-search p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.chatbot-search .search-input {
    width: 100%;
    max-width: 500px;
    padding: 15px 20px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

/* Blog Page */
.blog-filters {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px;
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.blog-filters button {
    background-color: var(--background-light);
    color: var(--primary-color);
    padding: 10px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
}

.blog-filters button:hover,
.blog-filters button.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.blog-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-post-card {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.blog-post-content {
    padding: 25px;
}

.blog-post-content .meta {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.blog-post-content .meta span {
    margin-right: 15px;
}

.blog-post-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.blog-post-content p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}


/* Floating TOC */
.floating-toc {
    position: sticky;
    top: calc(var(--header-height) + 30px); /* Stick below header */
    height: fit-content;
    background-color: var(--text-light);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Minimal shadow */
    border: 1px solid var(--border-color);
}

.floating-toc h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.floating-toc nav ul {
    list-style: none;
}

.floating-toc nav li {
    margin-bottom: 12px;
}

.floating-toc nav a {
    display: block;
    padding: 8px 10px;
    color: var(--text-dark);
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
    font-size: 0.95rem;
}

.floating-toc nav a:hover {
    background-color: var(--background-light);
    color: var(--primary-color);
}

.floating-toc nav a.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 0%;
    height: 5px;
    background-color: var(--accent-color);
    z-index: 1001;
    transition: width 0.1s linear; /* Smooth fill */
}


/* CTA Page */
.cta-page {
    min-height: calc(100vh - var(--header-height) - 100px); /* Adjust based on footer height */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 50px 20px;
    margin-bottom: 0; /* Remove default section margin */
}

.cta-form-container {
    background-color: var(--text-light);
    padding: 60px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 700px;
}

.cta-form-container h1 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-form-container p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.cta-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cta-form label {
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    display: block;
}

.cta-form input[type="text"],
.cta-form input[type="email"],
.cta-form input[type="tel"],
.cta-form select,
.cta-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1rem;
    background-color: var(--background-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-form input[type="text"]:focus,
.cta-form input[type="email"]:focus,
.cta-form input[type="tel"]:focus,
.cta-form select:focus,
.cta-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.cta-form textarea {
    min-height: 120px;
    resize: vertical;
}

.cta-form .btn {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    margin-top: 20px;
}

/* Scroll Fade In Animation (General for sections) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .main-nav {
        display: none; /* Hide desktop nav */
    }
    .hamburger {
        display: flex; /* Show hamburger */
    }

    .hero-text h1 {
        font-size: 3rem;
    }
    .hero-text p {
        font-size: 1.1rem;
    }
    .hero-illustration {
        height: 250px;
    }

    .blog-single {
        grid-template-columns: 1fr; /* Stack TOC and content */
        gap: 30px;
    }
    .floating-toc {
        position: static; /* No longer sticky */
        top: auto;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .section-heading {
        font-size: 2rem;
    }

    .hero {
        padding: 80px 0;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    .hero-illustration {
        height: 200px;
    }

    .insurance-grid, .stats-grid, .blog-preview-grid, .team-grid, .insurance-services-grid, .faq-grid, .blog-masonry-grid {
        grid-template-columns: 1fr; /* Single column layout for most grids */
        gap: 20px;
    }

    .testimonial-card {
        padding: 0 20px;
    }
    .testimonial-card p {
        font-size: 1rem;
    }

    .modal-content {
        padding: 30px 20px;
    }
    .modal-content h3 {
        font-size: 1.8rem;
    }
    .close-button {
        font-size: 2rem;
    }

    .about-video iframe {
        height: 250px;
    }
    .about-hero {
        height: 300px;
        padding: 80px 0;
    }
    .about-hero h1 {
        font-size: 2.5rem;
    }
    .about-hero p {
        font-size: 1rem;
    }

    .blog-content {
        padding: 25px;
    }
    .blog-content h1 {
        font-size: 2rem;
    }
    .blog-content p {
        font-size: 1rem;
    }
    .blog-content blockquote {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .reading-progress-bar {
        top: var(--header-height); /* Ensure it stays below main header */
    }

    .cta-form-container {
        padding: 40px 25px;
    }
    .cta-form-container h1 {
        font-size: 2.5rem;
    }
    .cta-form-container p {
        font-size: 1.1rem;
    }
    .cta-form input, .cta-form select, .cta-form textarea {
        font-size: 1rem;
        padding: 12px;
    }
    .cta-form .btn {
        padding: 15px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 15px;
    }
    .logo {
        font-size: 1.5rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
    .hero-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .hero-illustration {
        height: 150px;
        margin-top: 30px;
    }

    .section-heading {
        font-size: 1.8rem;
    }

    .off-canvas-menu {
        width: 100%; /* Full screen for very small devices */
    }
    .off-canvas-menu ul li a {
        font-size: 1.2rem;
    }

    .footer-nav ul {
        flex-direction: column;
    }
    .footer-nav ul li {
        margin: 0 0 10px;
    }
}

/**************Contact Page****************/

/* Main CTA Page Container */
.cta-page-main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 40px; /* Space between sections */
}

/* Section Styling */
.contact-info-section,
.contact-form-section {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-top: 50px;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: 600;
}

/* Section 1: Contact Info */
.contact-rows {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Space between rows */
}

.contact-row {
    display: flex;
    gap: 25px; /* Space between columns */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.contact-box {
    flex: 1; /* Allows boxes to grow and shrink */
    min-width: 280px; /* Minimum width before wrapping */
    background-color: var(--background-light);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.contact-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.contact-box .icon-primary {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 1.5em;
}

.contact-box p,
.contact-box address {
    margin: 0;
    font-size: 1.1em;
    color: var(--secondary-color);
}

.contact-box a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.contact-box a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Section 2: Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between form groups */
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    color: var(--text-dark);
    background-color: var(--background-light);
    box-sizing: border-box; /* Include padding in element's total width/height */
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing only */
    min-height: 120px;
}

.submit-button {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 15px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
    align-self: flex-start; /* Align button to the left */
    margin-top: 15px;
}

.submit-button:hover {
    background-color: darken(var(--accent-color), 10%); /* This won't work in plain CSS, use a slightly darker hex */
    background-color: #218838; /* A darker green */
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

/* Confirmation Message */
.confirmation-message {
    text-align: center;
    background-color: #e6ffed; /* Light green background */
    color: var(--text-dark);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--accent-color);
    display: none; /* Hidden by default, shown by JS */
}

.confirmation-message .icon-accent {
    font-size: 3.5em;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.confirmation-message h3 {
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 2em;
}

.confirmation-message p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.confirmation-message .link-primary {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.confirmation-message .link-primary:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cta-page-main {
        margin: 20px auto;
        padding: 15px;
        gap: 25px;
    }

    .section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .contact-info-section,
    .contact-form-section {
        padding: 20px;
    }

    .contact-row {
        flex-direction: column; /* Stack contact boxes on small screens */
    }

    .contact-box {
        flex: none; /* Remove flex grow/shrink */
        width: 100%; /* Take full width */
        min-width: unset; /* Override min-width */
    }

    .submit-button {
        width: 100%; /* Full width button on small screens */
        align-self: center; /* Center the button */
    }
}

/********Blog Page******//* Main Blog Container */
.blog-main {
    max-width: 900px;
    margin: 40px auto; /* Center the blog post */
    background-color: var(--text-light); /* White background for the article */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* Blog Header (Title and Meta) */
.blog-header {
    text-align: center;
    margin-bottom: 30px;
}

.blog-title {
    color: var(--primary-color);
    font-size: 2.8em;
    margin-bottom: 10px;
    line-height: 1.2;
}

.blog-meta {
    color: var(--secondary-color);
    font-size: 0.9em;
    font-style: italic;
}

/* Blog Image Section */
.blog-image-container {
    margin: 30px 0;
    text-align: center;
}

.blog-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: block; /* Removes extra space below image */
    margin: 0 auto; /* Center image */
}

.image-caption {
    font-style: italic;
    color: var(--secondary-color);
    margin-top: 15px;
    font-size: 0.85em;
}

/* Blog Content Section */
.blog-content h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-top: 35px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.blog-content p {
    margin-bottom: 1.2em;
    font-size: 1.05em;
}

.blog-content ul {
    list-style-type: square;
    margin-left: 25px;
    margin-bottom: 1.5em;
    padding-left: 0;
}

.blog-content li {
    margin-bottom: 0.8em;
    font-size: 1.05em;
}

/* Comment Section */
.comment-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

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

.comment-form .form-group {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-dark);
    font-size: 1em;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: calc(100% - 24px); /* Account for padding and border */
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding in width */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.comment-form textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 120px;
}

.submit-button {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: block; /* Make button full width if needed, or inline-block for its size */
    margin: 25px auto 0 auto; /* Center the button */
    min-width: 200px;
}

.submit-button:hover {
    background-color: #218838; /* A slightly darker green */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Comment Success Message */
.comment-success-message {
    background-color: #d4edda; /* Light green for success */
    color: #155724; /* Dark green text for success */
    border: 1px solid #c3e6cb; /* Green border for success */
    padding: 15px;
    border-radius: 6px;
    margin-top: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .blog-main {
        margin: 20px auto;
        padding: 20px;
    }

    .blog-title {
        font-size: 2em;
    }

    .blog-content h2 {
        font-size: 1.6em;
    }

    .comment-section h2 {
        font-size: 1.8em;
    }

    .submit-button {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .blog-main {
        padding: 15px;
        border-radius: 0; /* Remove rounded corners on very small screens */
        box-shadow: none;
    }

    .blog-title {
        font-size: 1.6em;
    }

    .blog-content h2 {
        font-size: 1.4em;
    }
}