/* Responsive Styles */

@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 52px;
        color: white;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .about-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 280px;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-xl);
        padding: 20px 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        z-index: 999;
        border-radius: 12px;
        margin-top: 15px;
    }
    
    .nav-menu.active {
        max-height: 80vh;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        overflow-y: auto;
    }
    
    .nav-item {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-link {
        padding: 15px 0;
        width: 100%;
        color: white !important;
        justify-content: center;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        margin: 0;
        border-radius: 0;
        display: none;
        padding: 0;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 12px 30px;
        color: white !important;
    }
    
    .dropdown-menu a:hover {
        background: rgba(0, 0, 0, 0.3);
        color: white !important;
    }
    
    .header-top-bar {
        display: none;
    }
    
    .header-main {
        padding: 20px 0;
        background: transparent !important;
        position: relative;
    }
    
    .navbar {
        position: relative;
    }
    
    .header {
        position: absolute;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .header:not(.scrolled) {
        background: transparent !important;
    }
    
    .header-top-bar {
        background: transparent !important;
    }
    
    .navbar {
        background: transparent !important;
    }
    
    .header-main,
    .header-main .container,
    .header .container {
        background: transparent !important;
    }
    
    .container {
        background: transparent !important;
    }
    
    /* Ensure hero section extends to top */
    body > .header {
        background: transparent !important;
    }
    
    .header .logo img {
        filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(1352%) hue-rotate(1deg) brightness(103%) contrast(101%);
    }
    
    .header .logo span {
        color: var(--primary-color);
    }
    
    .logo-tagline {
        display: none !important;
    }
    
    .logo img {
        height: 40px !important;
    }
    
    .header .nav-link {
        color: white;
    }
    
    .header .hamburger span {
        background: white;
    }
    
    .header .hamburger {
        background: var(--primary-color) !important;
        backdrop-filter: blur(10px);
        border-radius: 8px;
        padding: 10px;
    }
    
    .header.scrolled {
        position: fixed;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .header.scrolled .header-main {
        background: transparent !important;
    }
    
    .header.scrolled .header-main .container {
        background: transparent !important;
    }
    
    .header.scrolled .header-top-bar {
        background: transparent !important;
    }
    
    .header.scrolled .navbar {
        background: transparent !important;
    }
    
    .header.scrolled .hamburger {
        background: var(--primary-color);
        backdrop-filter: blur(10px);
    }
    
    .header.scrolled .logo img {
        filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(1352%) hue-rotate(1deg) brightness(103%) contrast(101%) !important;
    }
    
    .header.scrolled .logo span {
        color: var(--primary-color) !important;
    }
    
    .header.scrolled .nav-link {
        color: white !important;
    }
    
    .header.scrolled .hamburger span {
        background: white !important;
    }
    
    .hero-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
        position: relative;
        top: 0;
        min-height: auto;
        z-index: 0;
    }
    
    .hero-slider {
        min-height: auto;
        position: relative;
        width: 100%;
    }
    
    .hero-slide {
        position: relative;
        width: 100%;
        min-height: auto;
    }
    
    .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        min-height: 100%;
    }
    
    .hero-section .container {
        position: relative;
        z-index: 2;
    }
    
    .trusted-section,
    .about-section,
    .services-section,
    .blog-section,
    .why-choose-section,
    .pricing-section,
    .testimonials-section,
    .journey-section,
    .stats-section,
    .blog-section-2,
    .cta-section,
    .cta-section-2 {
        padding-top: 40px;
    }
    
    .page-header {
        padding-top: 100px !important;
    }
    
    .hero-title {
        font-size: 36px;
        color: white;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-content {
        padding-top: 140px;
        padding-bottom: 30px;
    }
    
    .hero-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 15px;
        margin-top: 20px;
    }
    
    .hero-feature-item {
        font-size: 12px;
        gap: 8px;
    }
    
    .hero-feature-item i {
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .hero-feature-item span {
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-description {
        font-size: 15px;
    }
    
    .about-features-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .blog-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .journey-timeline {
        grid-template-columns: 1fr;
    }
    
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    /* Contact Form Responsive */
    .contact-form-container {
        padding: 30px 20px !important;
        margin: 0 15px !important;
        max-width: 100% !important;
    }
    
    .contact-form {
        width: 100% !important;
    }
    
    .contact-form-row {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
    }
    
    .contact-input,
    .contact-textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
        padding: 14px 15px !important;
        min-width: 0 !important;
    }
    
    .contact-input::placeholder,
    .contact-textarea::placeholder {
        font-size: 14px !important;
        white-space: normal;
        word-wrap: break-word;
        max-width: 100%;
    }
    
    .contact-submit-btn {
        width: 100% !important;
        max-width: 100% !important;
        justify-self: stretch !important;
    }
    
    /* Contact Map Responsive */
    .contact-map-container {
        margin-top: 40px !important;
        padding: 0 15px;
    }
    
    .contact-map-wrapper {
        height: 400px !important;
        border-radius: 12px !important;
    }
    
    .contact-map-container h2 {
        font-size: 24px !important;
        margin-bottom: 20px !important;
    }
    
    .stats-content h2 {
        font-size: 56px;
    }
    
    .stats-content h3 {
        font-size: 28px;
    }
    
    .trusted-features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-note {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Preloader Responsive */
    .preloader-wrapper {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    .preloader {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        position: relative !important;
        width: auto !important;
        height: auto !important;
    }
    
    .loader {
        margin: 0 auto 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    .loader i {
        font-size: 50px !important;
    }
    
    .loader-text {
        text-align: center !important;
        width: 100% !important;
        color: white !important;
    }
    
    /* About Page Responsive */
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .worldwide-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-grid-about {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .team-grid-about {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .locations-grid-about {
        grid-template-columns: 1fr;
    }
    
    /* Insurance & Refunds Page Mobile Styles */
    .page-header h1 {
        font-size: 32px !important;
        line-height: 1.2 !important;
        padding: 0 15px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .page-header p {
        font-size: 16px !important;
        padding: 0 15px !important;
        word-wrap: break-word !important;
    }
    
    /* Section Badge Mobile */
    .section-badge {
        font-size: 11px !important;
        padding: 6px 16px !important;
        white-space: normal !important;
        display: inline-block !important;
        word-break: break-word !important;
        text-align: center !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Section Title Mobile */
    .section-title {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* Section Description Mobile */
    .section-description {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Service Cards Mobile */
    .service-card {
        padding: 25px 20px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .service-card h3 {
        font-size: 20px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .service-card p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .service-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 24px !important;
    }
    
    /* Mission Vision Cards Mobile */
    .mission-vision-card {
        padding: 25px 20px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .mission-vision-card h3 {
        font-size: 18px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .mission-vision-card p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .mission-vision-card > div[style*="font-size: 40px"] {
        font-size: 32px !important;
        margin-bottom: 15px !important;
    }
    
    /* How It Works Cards Mobile */
    .how-it-works-card {
        padding: 25px 20px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .how-it-works-number {
        font-size: 36px !important;
        width: 60px !important;
        height: 60px !important;
        line-height: 60px !important;
        flex-shrink: 0 !important;
    }
    
    .how-it-works-card h3 {
        font-size: 18px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .how-it-works-card p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* About Intro Badge Mobile */
    .about-intro-badge {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .badge-number {
        font-size: 36px !important;
        margin-bottom: 10px !important;
        line-height: 1 !important;
    }
    
    .about-intro-badge h4 {
        font-size: 16px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* About Intro Left Mobile */
    .about-intro-left {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .about-intro-left h3 {
        font-size: 22px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .about-intro-left p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Partners Number Mobile */
    .partners-number {
        font-size: 36px !important;
        line-height: 1 !important;
    }
    
    .about-partners-box {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        padding: 25px 20px !important;
    }
    
    .about-partners-box h3 {
        font-size: 20px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .about-partners-box p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Info Boxes Mobile */
    div[style*="background: white; padding: 40px"] {
        padding: 25px 20px !important;
    }
    
    div[style*="background: white; padding: 50px"] {
        padding: 30px 20px !important;
    }
    
    div[style*="background: rgba"] {
        padding: 20px 15px !important;
    }
    
    /* Headings in Info Boxes */
    h3[style*="color: #1f2937"] {
        font-size: 20px !important;
        line-height: 1.3 !important;
        flex-wrap: wrap !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    h4[style*="color: #1f2937"] {
        font-size: 16px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    h5[style*="color: #1f2937"] {
        font-size: 15px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Text in Info Boxes */
    p[style*="color: #4b5563"],
    p[style*="color: #6b7280"] {
        font-size: 14px !important;
        line-height: 1.6 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Lists Mobile */
    ul[style*="padding-left: 25px"],
    ul[style*="padding-left: 20px"] {
        padding-left: 20px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    ul[style*="padding-left: 25px"] li,
    ul[style*="padding-left: 20px"] li {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 10px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* List items with flex display */
    li[style*="display: flex"] {
        flex-wrap: wrap !important;
    }
    
    li[style*="display: flex"] span {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Grid Adjustments Mobile */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(250px"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    div[style*="grid-template-columns: repeat(auto-fit, minmax(300px"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Icon Sizes Mobile */
    i[style*="font-size: 24px"] {
        font-size: 20px !important;
    }
    
    i[style*="font-size: 28px"] {
        font-size: 24px !important;
    }
    
    i[style*="font-size: 40px"] {
        font-size: 32px !important;
    }
    
    i[style*="font-size: 48px"] {
        font-size: 36px !important;
    }
    
    /* Section Padding Mobile */
    section[style*="padding: 100px 0"] {
        padding: 50px 0 !important;
    }
    
    section[style*="padding: 100px 0; background"] {
        padding: 50px 0 !important;
    }
    
    /* General Text Wrapping for Insurance Page */
    .container {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Ensure all divs with text wrap properly */
    div {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Button text wrapping */
    .btn-primary,
    .btn-secondary,
    .btn-pricing {
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 28px;
        color: white;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .hero-section {
        min-height: auto !important;
    }
    
    .hero-slider {
        min-height: auto !important;
        position: relative;
    }
    
    .hero-content {
        padding-top: 80px;
        padding-bottom: 20px;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 12px;
        margin-top: 15px;
    }
    
    .hero-feature-item {
        font-size: 11px;
        gap: 6px;
    }
    
    .hero-feature-item i {
        font-size: 14px;
    }
    
    .hero-badge-mobile {
        margin-bottom: 25px !important;
        margin-top: 0 !important;
    }
    
    .btn-primary,
    .btn-cta {
        width: 100%;
        text-align: center;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-content {
        padding-left: 0;
        padding-top: 80px;
    }
    
    .testimonial-quote {
        top: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stats-content h2 {
        font-size: 42px;
    }
    
    .timeline-year {
        font-size: 42px;
    }
    
    .price {
        font-size: 42px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: auto !important;
    }
    
    .hero-slider {
        min-height: auto !important;
        position: relative;
    }
    
    .hero-title {
        font-size: 24px;
        color: white;
    }
    
    .hero-content {
        padding-top: 70px;
        padding-bottom: 15px;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 10px;
        margin-top: 12px;
    }
    
    .hero-feature-item {
        font-size: 10px;
        gap: 5px;
    }
    
    .hero-feature-item i {
        font-size: 13px;
    }
    
    .hero-feature-item span {
        line-height: 1.3;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 8px 20px;
        visibility: hidden;
        display: none;
        margin-bottom: 0;
    }
    
    .hero-badge-mobile {
        display: inline-block !important;
        visibility: visible !important;
        position: relative;
        z-index: 10;
        margin-top: 30px !important;
        margin-bottom: 0 !important;
        width: auto;
        text-align: left;
    }
    
    .section-badge {
        font-size: 12px;
        padding: 8px 20px;
    }
    
    /* Insurance & Refunds Page Small Mobile */
    .page-header h1 {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }
    
    .page-header p {
        font-size: 14px !important;
    }
    
    .section-badge {
        font-size: 10px !important;
        padding: 6px 14px !important;
        white-space: normal !important;
        text-align: center !important;
        display: inline-block !important;
        max-width: 100% !important;
    }
    
    .service-card {
        padding: 20px 15px !important;
    }
    
    .service-card h3 {
        font-size: 18px !important;
    }
    
    .service-card p {
        font-size: 13px !important;
    }
    
    .service-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }
    
    .mission-vision-card {
        padding: 20px 15px !important;
    }
    
    .mission-vision-card h3 {
        font-size: 16px !important;
    }
    
    .mission-vision-card p {
        font-size: 13px !important;
    }
    
    .how-it-works-card {
        padding: 20px 15px !important;
    }
    
    .how-it-works-number {
        font-size: 32px !important;
        width: 50px !important;
        height: 50px !important;
        line-height: 50px !important;
    }
    
    .how-it-works-card h3 {
        font-size: 16px !important;
    }
    
    .how-it-works-card p {
        font-size: 13px !important;
    }
    
    .badge-number {
        font-size: 32px !important;
    }
    
    .partners-number {
        font-size: 32px !important;
    }
    
    div[style*="background: white; padding: 40px"],
    div[style*="background: white; padding: 50px"] {
        padding: 20px 15px !important;
    }
    
    div[style*="background: rgba"] {
        padding: 15px 12px !important;
    }
    
    h3[style*="color: #1f2937"] {
        font-size: 18px !important;
    }
    
    h4[style*="color: #1f2937"] {
        font-size: 14px !important;
    }
    
    p[style*="color: #4b5563"],
    p[style*="color: #6b7280"] {
        font-size: 13px !important;
    }
    
    ul[style*="padding-left"] li {
        font-size: 13px !important;
    }
    
    section[style*="padding: 100px 0"],
    section[style*="padding: 100px 0; background"] {
        padding: 40px 0 !important;
    }
}

