:root {
    /* Quinta Cannae Original Colors (Blue/Green) */
    --primary-color: #233a46; /* Quinta Cannae Dark Blue */
    --accent-color: #00a8cc; /* Water/Fluvial Blue */
    --secondary-color: #4caf50; /* Nature/Healing Green */
    
    /* Discarded Purple Theme
    --primary-color: #512e5f; 
    --accent-color: #af7ac5; 
    --secondary-color: #e8daef; 
    */
    
    --text-color: #333333;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 20px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    z-index: 10;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    padding: 40px;
}

.modal-body h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 5px;
}

.modal-subtitle {
    display: block;
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.modal-body h3 {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 10px;
}

/* Modal Flex Layout */
.modal-grid {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.modal-info {
    flex: 1;
}

.modal-video-wrapper {
    flex: 0 0 320px; /* Fixed width for video column */
}

/* Button visibility control */
.mobile-only-btn {
    display: none;
}

.desktop-only-btn {
    display: block;
}

@media (max-width: 992px) {
    .modal-layout {
        flex-direction: column-reverse; /* Video on top on mobile if needed, or column for standard */
    }
    
    .modal-grid {
        flex-direction: column;
    }
    
    .modal-video-wrapper {
        flex: auto;
        width: 100%;
        max-width: 350px;
        margin: 0 auto 30px;
    }

    .modal-info {
        width: 100%;
    }

    /* Swap button visibility on mobile */
    .mobile-only-btn {
        display: block;
    }
    
    .desktop-only-btn {
        display: none;
    }
}

/* Vertical Video Support */
.video-container-vertical {
    position: relative;
    width: 100%;
    max-width: 320px; /* Optimal for shorts */
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background-color: #000;
}

.video-container-vertical iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-box-vertical {
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    max-width: 350px;
    margin: 0 auto;
    aspect-ratio: 9/16;
}

.video-box-vertical iframe {
    width: 100%;
    height: 100%;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.row.align-items-center {
    align-items: center;
}

.section-padding {
    padding: 100px 0;
    position: relative;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

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

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

.mt-5 {
    margin-top: 3rem;
}

.col-md-5, .col-md-6, .col-md-7 {
    padding: 0 15px;
}

.col-md-5 { width: 41.666%; }
.col-md-6 { width: 50%; }
.col-md-7 { width: 58.333%; }
.col-12 { width: 100%; padding: 0 15px; }

/* Dynamic Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 168, 204, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
    border-radius: 50px;
}

.btn-primary:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
#main-header {
    background-color: transparent;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

#main-header.scrolled {
    background-color: rgba(35, 58, 70, 0.95); /* Original Dark Blue */
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 120px; /* Increased from 80px */
    transition: var(--transition);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    color: var(--white);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-text span:first-child {
    font-size: 1.4rem;
    font-weight: 300;
}

.logo-text span:nth-child(2) {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
}

.logo-subtitle {
    font-size: 0.7rem !important;
    font-weight: 400 !important;
    letter-spacing: 3px;
    color: var(--white);
    margin-top: 2px;
}

.header-social {
    display: flex;
    margin-left: 30px; /* Increased from 20px */
    align-items: center;
    gap: 15px; /* Added gap for spacing between icons */
}

.header-social a {
    color: var(--white);
    font-size: 1.4rem; /* Slightly larger icons */
    margin-left: 0; /* Handled by gap */
    transition: var(--transition);
}

#main-nav {
    display: flex;
    align-items: center;
}

#main-nav ul {
    display: flex;
    align-items: center;
}

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

#main-nav a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
}

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

#main-nav a:hover::after {
    width: 100%;
}

.btn-nav {
    background-color: var(--accent-color);
    padding: 8px 25px !important;
    border-radius: 25px;
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    background-color: var(--white) !important;
    color: var(--accent-color) !important;
    transform: scale(1.05);
}

/* Mobile Menu Icon - Default hidden on desktop */
.mobile-menu-icon {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 20px;
    z-index: 1001;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    /* Header & Navigation */
    .mobile-menu-icon {
        display: block;
    }

    #main-nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    #main-nav ul.active {
        right: 0;
    }

    #main-nav li {
        margin: 20px 0;
    }

    /* Logo Text Size on Tablet */
    .logo-text span:first-child {
        font-size: 1.1rem;
    }
    
    .logo-text span:last-child {
        font-size: 1.1rem;
    }
    
    .logo img {
        height: 80px;
    }
    
    .header-social {
        display: none; /* Hide social icons in header on mobile/tablet to save space */
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        width: 95%;
        padding: 0 10px;
    }

    /* Grid System Stack */
    .col-md-5, .col-md-6, .col-md-7 {
        width: 100%;
        margin-bottom: 30px;
    }

    /* Modality Tag in Hero */
.modality-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    animation: fadeInDown 1s forwards 0.2s;
    opacity: 0;
    transform: translateY(-20px);
}

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

/* Reset animation when slide changes (handled in JS) */
.carousel-slide.active .modality-tag {
    animation: none; /* Reset first */
    animation: fadeInDown 1s forwards 0.2s;
}

/* Hero Text */
    .hero-content h1 {
        font-size: 2.2rem; /* Reduced size */
        word-wrap: break-word; /* Prevent overflow */
        padding: 0 10px; /* Add padding to prevent edge touching */
    }
    
    .section-header h2 {
        font-size: 1.8rem; /* Further reduced size */
        word-wrap: break-word;
        overflow-wrap: break-word; /* Ensure wrapping */
        line-height: 1.3;
        display: block; /* Change from inline-block to block */
        width: 100%; /* Ensure full width control */
    }

    .hero-content p {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    /* Logo Text Size on Mobile */
    .logo-text span:first-child {
        font-size: 0.9rem;
    }
    
    .logo-text span:last-child {
        font-size: 0.9rem;
    }
    
    .logo img {
        height: 60px;
    }
    
    /* Types Section */
    .types-container {
        display: flex; /* Back to flex */
        flex-direction: column; /* Column direction */
        height: auto !important; /* Force auto height */
        min-height: 800px; /* Give it explicit minimum height */
        margin-top: 30px;
        gap: 20px;
    }
    
    .type-card {
        height: 400px !important; /* Force explicit height */
        flex: 0 0 400px; /* Don't grow, don't shrink, fixed base */
        width: 100%;
        margin-bottom: 20px;
        display: block;
        position: relative;
        overflow: hidden;
        background-color: #ccc; /* Debug color */
    }
    
    .type-card:hover {
        /* No hover effects that change layout on mobile */
    }
    
    .type-content h3 {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }

    .type-content .subtitle {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }

    .type-details {
        max-height: 500px !important;
        opacity: 1 !important;
        margin-top: 15px;
    }
    
    .type-overlay {
        background: linear-gradient(to top, rgba(35, 58, 70, 0.95) 0%, rgba(35, 58, 70, 0.8) 50%, rgba(35, 58, 70, 0.4) 100%) !important;
    }

    /* Contact Form & Map */
    .contact-info, .contact-form-wrapper {
        margin-bottom: 30px;
        padding: 30px 20px;
    }

    .map-container iframe {
        height: 300px;
    }

    /* Footer */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-social a {
        margin: 0 10px;
    }
}
.hero {
    height: 100vh;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* background-attachment: fixed; Removed for smoother transitions on some devices */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    z-index: 3;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 1s forwards 0.5s;
    position: relative;
    padding: 0 20px;
}

/* Reset animation when slide changes (handled in JS) */
.carousel-slide.active .hero-content {
    animation: none; /* Reset first */
    animation: fadeInUp 1s forwards 0.5s;
}

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

.hero-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-buttons .btn {
    margin: 0 10px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* Wave Divider */
.custom-shape-divider-bottom-1680000000 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 5;
}

.custom-shape-divider-bottom-1680000000 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.custom-shape-divider-bottom-1680000000 .shape-fill {
    fill: var(--light-bg);
}

/* Section Header */
.section-header {
    margin-bottom: 70px;
    position: relative;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header.text-white h2 {
    color: var(--white);
}

.divider {
    height: 5px;
    width: 80px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    margin: 20px auto 0;
    border-radius: 5px;
}

.divider.white {
    background: var(--white);
}

/* Utilities */
.h-100 {
    height: 100%;
}

.d-flex {
    display: flex;
}

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

.row-eq-height {
    align-items: stretch;
}

.text-content-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.orders-love {
    background-color: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--accent-color);
    flex-grow: 1; /* Fills remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.orders-list {
    list-style: none;
    margin-top: 15px;
}

.orders-list li {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.orders-list li strong {
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.orders-list li span {
    font-size: 0.95rem;
    padding-left: 30px;
    color: #555;
}

/* Contact Social */
.info-social h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
}

/* Contact Social Icons */
.contact-social h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 168, 204, 0.3);
}

.social-icons a:hover {
    transform: translateY(-5px) rotate(360deg);
    background-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(35, 58, 70, 0.4);
}

/* Modality Badges in Terapia */
.modality-badge {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.badge-item {
    background: rgba(76, 175, 80, 0.1);
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--secondary-color);
}

/* Enhanced Visual Effects */
.shadow-lg {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.rounded-img {
    border-radius: var(--border-radius);
    transition: transform 0.5s ease;
}

.image-box:hover .rounded-img {
    transform: scale(1.02);
}

/* Depth and Polish */
.btn {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.video-box, .video-box-vertical, .expect-card, .type-card, .benefit-item {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.video-box:hover, .video-box-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* Terapia Section */
.modality-badge {
    display: inline-block;
    background-color: #e8daef; /* Lilac tint */
    color: #512e5f; /* Deep purple */
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.modality-badge i {
    margin-right: 8px;
}

.terapia-list {
    list-style: none;
    margin-top: 30px;
}

.terapia-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.terapia-list i {
    color: var(--accent-color);
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

.mt-3 {
    margin-top: 30px;
}
/* Video Box */
.video-box {
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.video-container {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.lead {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.8;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    text-align: center;
    perspective: 1000px;
}

.benefit-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.benefit-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.benefit-item:hover::after {
    height: 100%;
    opacity: 0.05;
    z-index: -1;
}

.benefit-item i {
    font-size: 3rem;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}

/* NEW DYNAMIC TYPES SECTION */
.types-container {
    display: flex;
    height: 600px;
    gap: 20px;
    margin-top: 40px;
}

.type-card {
    flex: 1;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--card-shadow);
    min-width: 0; /* Flexbox fix */
    background-color: var(--primary-color); /* Fallback background color */
}

.type-card:hover {
    flex: 3;
}

.type-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s;
}

.type-card:hover .type-bg {
    transform: scale(1.1);
}

.type-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: var(--white);
    transition: background 0.5s;
}

.type-card:hover .type-overlay {
    background: linear-gradient(to top, rgba(35, 58, 70, 0.95), rgba(35, 58, 70, 0.6));
}

.type-content h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: var(--transition);
    white-space: nowrap;
}

.type-content .subtitle {
    display: block;
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
}

.type-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.7s ease;
}

.type-card:hover .type-content h3 {
    transform: translateY(0);
}

.type-card:hover .subtitle {
    opacity: 1;
    transform: translateY(0);
}

.type-card:hover .type-details {
    max-height: 500px;
    opacity: 1;
    margin-top: 20px;
}

.type-details p {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.type-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.type-features i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Modality Badge Small */
.modality-badge-sm {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--white);
    background: rgba(0, 168, 204, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    border: 1px solid var(--accent-color);
    backdrop-filter: blur(5px);
}

/* Service Modality Header (Global pill) */
.service-modality-header {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0 10px;
}

.modality-pill {
    background-color: rgba(0, 168, 204, 0.1);
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modal Badges (Inside Modal) */
.modal-modality-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.badge-pill {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.badge-pill.online {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.badge-pill.in-person {
    background-color: #e8f5e9;
    color: #388e3c;
    border: 1px solid #c8e6c9;
}

.badge-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Expectations Section */
.expectations-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.expect-card {
    background: rgba(255, 255, 255, 0.05); /* Original subtle background */
    border-radius: var(--border-radius);
    padding: 40px 30px;
    flex: 1 1 300px;
    max-width: 350px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.expect-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.expect-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.expect-card:hover::before {
    transform: scaleX(1);
}

.expect-card:hover::before {
    transform: scaleX(1);
}

.expect-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 168, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.expect-icon i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.expect-card:hover .expect-icon {
    background: var(--accent-color);
    transform: rotateY(360deg);
}

.expect-card:hover .expect-icon i {
    color: var(--white);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    font-family: var(--font-heading);
}

.expect-content h4 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 15px;
}

.expect-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Contact Section */
.contact-info {
    padding: 40px;
    background: linear-gradient(135deg, var(--light-bg), #fff);
    border-radius: var(--border-radius);
    height: 100%;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px; /* Reduced from 50px */
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

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

input, select, textarea {
    width: 100%; /* Full width */
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid #eee;
    background-color: #f9f9f9;
    font-size: 1rem; /* Increased font size */
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    background-color: #fff;
    border-color: var(--accent-color);
    box-shadow: none;
}

/* Animations Class */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .col-md-5, .col-md-6, .col-md-7 {
        width: 100%;
        margin-bottom: 30px;
    }

    .types-container {
        flex-direction: column;
        height: auto;
    }
    
    .type-card {
        height: 400px;
    }
    
    .type-card:hover {
        flex: 1; /* Disable expansion on mobile */
    }
    
    .type-details {
        max-height: none;
        opacity: 1;
        margin-top: 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-info, .contact-form-wrapper {
        margin-bottom: 30px;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366; /* WhatsApp Green */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: var(--white);
    color: var(--accent-color);
    transform: scale(1.1);
}

.whatsapp-float i {
    margin-top: 2px; /* Slight adjustment for visual centering */
}

/* Footer */
#main-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 70px 0 30px;
    margin-top: 50px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 50px;
}

.footer-logo-section {
    flex: 1 1 300px;
    margin-bottom: 30px;
    padding-right: 40px;
}

.footer-logo-img {
    height: 80px;
    margin-bottom: 20px;
}

.footer-links, .footer-contact {
    flex: 1 1 200px;
    margin-bottom: 30px;
}

.footer-links h4, .footer-contact h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 20px;
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-social a {
    color: var(--white);
    font-size: 1.2rem;
    margin-left: 20px;
    transition: var(--transition);
}

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

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-social a {
        margin: 0 10px;
    }
}