/* Import Google Fonts */

:root {
    --light-bg: #f8f8f8ef;
    --secondary-bg: #fafafa;
    --accent-1: #131613b4;
    --accent-2: #131613b4;
    --dark-base: #131613b4;
}

/* Utility Classes */
.secondary-bg {
    background-color: var(--secondary-bg);
}

.light-bg {
    background-color: var(--light-bg);
}

body {
    background-color: var(--light-bg);
    color: var(--dark-base);
    
    font-family: 'Lato', 'Open Sans', 'Source Sans Pro', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Enhanced Navbar Styles - Bootstrap Compatible */
        .navbar {
            background: white;
            font-family: 'Lato', 'Open Sans', 'Source Sans Pro', sans-serif;
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(247, 247, 247, 0.945);
            transition: transform 0.3s ease-in-out, background-color 0.3s ease;
            z-index: 1030;
        }

        .navbar.navbar-hidden {
            transform: translateY(-100%);
        }

        .navbar.scrolled {
            background: #fdfdfdf1;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        }

        .navbar-brand {
            color: #131613b4 !important;
            font-weight: 700;
            font-size: 1.5rem;
        }

        .navbar-nav .nav-link {
            font-family: 'Lato', 'Open Sans', 'Source Sans Pro', sans-serif;
            color: #131613b4 !important;
            font-weight: 700; /* Changed from 500 to 700 for bold */
            margin: 0 10px;
            transition: color 0.3s ease;
        }

        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link.active {
            color: #131613b4 !important;
        }

        .navbar-toggler {
            border: none;
            padding: 0.25rem 0.5rem;
        }

        .navbar-toggler:focus {
            box-shadow: none;
        }

        .navbar-toggler-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2819, 22, 19, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        }

        /* Dropdown toggle styles */
        .navbar-nav .dropdown-toggle {
            
            font-family: 'Lato', 'Open Sans', 'Source Sans Pro', sans-serif;
            color: #131613b4 !important;
            font-weight: 700; /* Changed from 500 to 700 for bold */
            margin: 0 10px;
            transition: color 0.3s ease;
        }

        .dropdown-toggle::after {
            transition: transform 0.3s ease;
            margin-left: 0.5em;
        }
       
   
        /* Desktop hover effects - only apply on screens larger than 991px */
    @media (min-width: 992px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        display: block;
    }
    
    .navbar-nav .dropdown:hover .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    .navbar-nav .dropdown:hover .dropdown-toggle {
        color: #131613 !important;
    }
    /* Smooth animation for dropdown items */
    .navbar-nav .dropdown-menu .dropdown-item {
        transition: background-color 0.2s ease, padding-left 0.2s ease;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item:hover {
        background-color: rgba(19, 22, 19, 0.05);
        padding-left: 1.75rem;
    }
    }

        
        /* Desktop dropdown styles */
        @media (min-width: 992px) {
            .navbar-nav .dropdown-menu {
                margin-top: 0.5rem;
            }

            .navbar-nav .dropdown-item {
                padding: 0.5rem 1rem;
                color: #131613b4 !important;
                transition: all 0.3s ease;
            }

            .navbar-nav .dropdown-item:hover,
            .navbar-nav .dropdown-item:focus {
                background-color: rgba(19, 22, 19, 0.05);
                color: #131613 !important;
            }
        }
        

/* Button Styles */
.btn-primary {
    background-color: var(--accent-2);
    border-color: var(--accent-2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-base);
    border-color: var(--dark-base);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--accent-2);
    border-color: var(--accent-2);
}

.btn-outline-primary:hover {
    background-color: var(--accent-2);
    border-color: var(--accent-2);
}

/* Split Hero Section Styles */
.split-hero {
    position: relative;
    height: 100vh;
    margin-top: 76px;
    overflow: hidden;
}

.split-hero-container {
    display: flex;
    height: 100%;
    width: 100%;
}

.split-hero-image {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.hero-split-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    transition: background-color 0.4s ease;
}

.split-hero-image:hover .image-overlay {
    background-color: rgba(207, 191, 178, 0.3); /* Light brown overlay on hover */
}

.split-hero-image:hover .hero-split-img {
    transform: scale(1.05);
}

.split-hero-content {
    flex: 1;
    background-color: var(--accent-1); /* Brown background */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-text-content {
    text-align: center;
    color: white;
}

.hero-text-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

/* Page Break Styles */
.page-break {
    height: 60px;
    background: linear-gradient(to right, var(--secondary-bg), var(--light-bg), var(--secondary-bg));
    position: relative;
}

.page-break::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 2px;
    background-color: var(--accent-1);
}

/* Hero Section Styles (Original) */
.hero-section {
    position: relative;
    font-family: 'Times New Roman', Times, serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(6,11,7,0.7), rgba(48,25,18,0.5));
    z-index: -1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: bold;
    color: var(--light-bg);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--light-bg);
    margin-bottom: 2rem;
}



/* About Page Hero Styles - Mobile Responsive */
.about-hero {
    position: relative;
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Changed from fixed for mobile compatibility */
    margin-top: 76px;
    display: flex;
    align-items: center;
    overflow: hidden; /* Prevents any overflow issues */
}
.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.486);
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
    position: relative;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-bg);
    font-weight: 300;
    z-index: 2;
    position: relative;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .about-hero {
        height: 100vh; /* Slightly shorter on mobile */
        background-size: cover;
        background-position: center center;
        background-attachment: scroll; /* Ensures proper mobile behavior */
        margin-top: 60px; /* Adjust if mobile nav is different height */
    }
    
    .hero-title {
        font-size: 2.5rem; /* Smaller title on mobile */
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem; /* Smaller subtitle on mobile */
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .about-hero {
        height: 45vh; /* Even shorter on small phones */
        margin-top: 60px;
    }
    
    .hero-title {
        font-size: 2rem; /* Even smaller on very small screens */
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Section Title Styles */
.section-title {
    color: var(--accent-2);
    font-weight: bold;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-1);
}

/* Additional mobile fixes for section titles */
@media (max-width: 768px) {
    .section-title {
        margin-bottom: 2rem;
        font-size: 1.8rem;
    }
    
    .section-title::after {
        width: 60px;
        height: 2px;
    }
}
/* Card Styles */
.card {
    border: none;
    box-shadow: 0 8px 25px rgba(95, 94, 94, 0.007);
    transition: all 0.3s ease;
    background-color: white;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(34, 33, 33, 0.15);
}

/* Background image cards for classes */
.card.h-100-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 420px;
    overflow: hidden;
    border: none;
    border-radius: .75rem;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(22, 22, 22, 0.575);
    transition: background 0.3s ease;
    z-index: 0;
}

.card-body.text-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    color: #fff;
}

.card.h-100-bg:hover .card-overlay {
    background: rgba(61, 60, 60, 0.493);
}

.card.h-100-bg:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}


/* About Us Section Styles */
.about-us-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: 'Times New Roman', Times, serif;
    position: relative;
    overflow: hidden;
}

/* About Us Section Styles */
.about-us-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: 'Times New Roman', Times, serif;
    position: relative;
    overflow: hidden;
}

.about-us-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="0.5" fill="%23000" opacity="0.02"/><circle cx="50" cy="10" r="0.3" fill="%23000" opacity="0.01"/><circle cx="10" cy="50" r="0.4" fill="%23000" opacity="0.015"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* Card Base Styles - Completely Invisible Cards */
.values-card,
.mission-card,
.vision-card {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 2.5rem 2rem;
    position: relative;
    height: 100%;
    transition: none;
    backdrop-filter: none;
}



/* Headings */
.values-card h3,
.mission-card h3,
.vision-card h3 {
    color: #1a3d20;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.values-card h3::after,
.mission-card h3::after,
.vision-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    border-radius: 2px;
}

.values-card h3::after {
    background: linear-gradient(90deg, #2c5530, #4a7c59);
}

.mission-card h3::after {
    background: linear-gradient(90deg, #4a7c59, #6b9071);
}

.vision-card h3::after {
    background: linear-gradient(90deg, #6b9071, #8db390);
}

/* Body Text */
.values-card h5,
.mission-card h5,
.vision-card h5 {
    color: #4a5c4e;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 0;
    
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .values-card,
    .mission-card,
    .vision-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .values-card h3,
    .mission-card h3,
    .vision-card h3 {
        font-size: 1.6rem;
    }
    
    .values-card h5,
    .mission-card h5,
    .vision-card h5 {
        font-size: 1rem;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .about-us-section {
        padding: 3rem 0;
    }
    
    .values-card,
    .mission-card,
    .vision-card {
        padding: 1.5rem 1.25rem;
    }
    
    .values-card h3,
    .mission-card h3,
    .vision-card h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .values-card h5,
    .mission-card h5,
    .vision-card h5 {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}


/* Responsive Grid Layout */
@media (max-width: 991px) {
    .about-us-section .row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-us-section .row .col-lg-4:first-child,
    .about-us-section .row .col-lg-4:nth-child(2),
    .about-us-section .row .col-lg-4:last-child {
        grid-column: 1;
        max-width: 100%;
        margin: 0;
    }
    
    .about-us-section .row .col-lg-4:first-child {
        grid-row: 1;
    }
    
    .about-us-section .row .col-lg-4:nth-child(2) {
        grid-row: 2;
    }
    
    .about-us-section .row .col-lg-4:last-child {
        grid-row: 3;
    }
}

/* Classes Section Background */
.classes-section {
    position: relative;
    overflow: hidden;
    background-image: url('../images/classback.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.classes-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(226, 225, 224, 0.363);
    z-index: 0;
    pointer-events: none;
}

.classes-section .container,
.classes-section .card,
.classes-section .card-body {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 3rem;
}

/* Hover Card Styles */
.hover-card {
    position: relative;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    transition: transform 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
}

/* Card Overlay - Initially Semi-Transparent */
.hover-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.4s ease;
    z-index: 1;
}

.hover-card:hover .card-overlay {
    background: rgba(0, 0, 0, 0.75);
}

/* Card Body */
.hover-card .card-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 2rem;
}

/* Card Title - Always Visible */
.hover-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.hover-card:hover .card-title {
    transform: translateY(-10px);
}

/* Card Text - Hidden by Default, Visible on Hover */
.hover-card .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    max-height: 0;
    overflow: hidden;
}

.hover-card:hover .card-text {
    opacity: 1;
    transform: translateY(0);
    max-height: 500px;
}

/* Button - Hidden by Default, Visible on Hover */
.hover-card .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s, background-color 0.3s ease;
}

.hover-card:hover .btn {
    opacity: 1;
    transform: translateY(0);
}

.hover-card .btn-primary {
    background-color: #343638;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hover-card .btn-primary:hover {
    background-color: #343638;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hover-card {
        min-height: 350px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hover-card .card-title {
        font-size: 1.3rem;
    }

    .hover-card .card-text {
        font-size: 0.9rem;
    }

    /* On mobile, show text on tap/touch */
    .hover-card.active .card-overlay {
        background: rgba(0, 0, 0, 0.75);
    }

    .hover-card.active .card-text,
    .hover-card.active .btn {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

@media (max-width: 576px) {
    .hover-card {
        min-height: 300px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hover-card .card-body {
        padding: 1.5rem;
    }

    .hover-card .card-title {
        font-size: 1.2rem;
    }

    .hover-card .card-text {
        font-size: 0.85rem;
    }

    .hover-card .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Touch device support */
@media (hover: none) {
    .hover-card .card-text,
    .hover-card .btn {
        opacity: 0;
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .hover-card:active .card-text,
    .hover-card:active .btn {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }

    .hover-card:active .card-overlay {
        background: rgba(0, 0, 0, 0.75);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .class-card,
  .calendar a {
    transition: none;
  }
  
  .class-card:hover {
    transform: none;
  }
  
  .calendar a:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .class-card {
    border: 2px solid #000;
  }
  
  .card-30 {
    background: #f0f0f0;
  }
  
  .card-30 h4 {
    color: #000;
  }
  
  .calendar a {
    border: 2px solid #000;
  }
}

/* Why Choose P4 Section */
.section-why-choose .card {
    border-radius: 1rem;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    opacity: 0;
    animation: fadeInCard 800ms ease forwards;
    animation-delay: 100ms;
}

.section-why-choose .col-md-4:nth-child(1) .card { animation-delay: 100ms; }
.section-why-choose .col-md-4:nth-child(2) .card { animation-delay: 260ms; }
.section-why-choose .col-md-4:nth-child(3) .card { animation-delay: 420ms; }

/* Four Pillars Section */
.pillar-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(87, 86, 86, 0);
    transition: all 0.3s ease;
    height: 100%;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(99, 97, 97, 0.007);
}

.pillar-icon {
    background: rgba(93, 65, 56, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

/* Team Section Styles */
.team-section {
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.team-content {
    padding: 2rem 0;
}

.team-heading {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

/* Team Description */
.team-description {
    font-family: 'Playfair Display', 'Lato', 'Open Sans', 'Source Sans Pro', sans-serif;
    font-style: italic; /* Italic style for elegance */
    font-weight: 400; /* Regular weight to emphasize italic style */
    font-size: 1.1rem;
    line-height: 1.8; /* Increased for better readability */
    color: #333333; /* Dark grey for consistency */
    margin-bottom: 2rem;
    text-align: justify;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-description {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    .team-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}


.team-contact {
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.contact-text {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    color: white;
}

.team-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-main-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.8), rgba(40, 167, 69, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-image-wrapper:hover .image-overlay {
    opacity: 1;
}

.team-image-wrapper:hover .team-main-img {
    transform: scale(1.05);
}

.overlay-content {
    text-align: center;
}

.overlay-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsive Styles */
@media (max-width: 991px) {
    .team-content {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .team-heading {
        font-size: 1.6rem;
    }
    
    .team-main-img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .team-content {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .team-heading {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .team-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .team-main-img {
        height: 300px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-right: 0.8rem;
    }
    
    .overlay-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.4rem;
    }
    
    .team-heading {
        font-size: 1.3rem;
    }
    
    .team-description {
        font-size: 0.95rem;
    }
    
    .team-main-img {
        height: 250px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        margin-right: 0.6rem;
    }
    
    .contact-text {
        font-size: 0.9rem;
    }
    
    .overlay-text {
        font-size: 1.1rem;
    }
}

/* FAQ Accordion Styles */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.accordion-button {
    background-color: white;
    color: var(--accent-2);
    font-weight: 600;
    border: none;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--accent-1);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 0.25rem rgba(93, 65, 56, 0.25);
}

.accordion-body {
    background-color: white;
    color: var(--dark-base);
    padding: 1.5rem;
}


/* Modern Testimonial Styles */
.testimonial-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: start;
}

/* Updated testimonial card styles with solid colors and unique corners */
.testimonial-card {
    position: relative;
    padding: 2.5rem;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 1rem;
}

/* Unique corner styling with solid light grey, light green, and light yellow colors */
.testimonial-card:nth-child(1) {
    background: #333333; Light grey */
    border-radius: 0 25px 25px 25px; /* Cut top-left */
    clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px);
}

.testimonial-card:nth-child(2) {
    background: #333333;  ; /* Light green */
    border-radius: 25px 0 25px 25px; /* Cut top-right */
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
    transform: translateY(-30px); /* Elevated middle card */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-card:nth-child(3) {
    background: #333333;  /* Light yellow */
    border-radius: 25px 25px 0 25px; /* Cut bottom-right */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

/* Glass effect overlay */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%); /* Kept gradient for glass effect */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.testimonial-card:nth-child(2):hover {
    transform: translateY(-40px) scale(1.02); /* Maintain elevation for middle card */
}

.testimonial-card:hover::before {
    opacity: 1;
}

/* Updated quote styling */
.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative;
    font-style: italic;
    font-weight: 300;
}

.testimonial-quote::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -15px;
    color: rgba(255, 255, 255, 0.3); /* Kept for visibility on solid colors */
    font-family: Georgia, serif;
    line-height: 1;
}

/* Ensure star ratings remain visible */
.star {
    color: #ffffff; /* White stars for contrast */
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); /* Shadow to enhance visibility */
}

/* Updated author section */
.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.star-rating {
    display: flex;
    gap: 2px;
}

.star {
    color: #D4AF37;
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* REMOVE ALL CAROUSEL STYLES - STATIC CARDS ONLY */

/* Remove old testimonial card colors */
.col-md-4:nth-child(1) .testimonial-card,
.col-md-4:nth-child(2) .testimonial-card,
.col-md-4:nth-child(3) .testimonial-card {
    background-color: unset; /* Remove old solid colors */
}

/* Updated responsive design - Remove carousel responsive styles */
@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 2rem;
        min-height: 240px;
    }

    .testimonial-card:nth-child(2) {
        transform: translateY(0); /* Remove elevation on mobile */
    }

    .testimonial-card:nth-child(2):hover {
        transform: translateY(-10px) scale(1.02);
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 1.5rem;
        min-height: 200px;
    }

    .testimonial-quote {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .testimonial-quote::before {
        font-size: 3rem;
        top: -15px;
        left: -10px;
    }
}

/* Enhanced Section Title for Testimonials */
.section-title {
    color: var(--accent-2);
    font-weight: bold;
    margin-bottom: 3rem;
    position: relative;
    font-size: 2.5rem;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #CB8061 0%, #D4AF37 100%);
    border-radius: 2px;
}

/* Updated author section */
.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.star-rating {
    display: flex;
    gap: 2px;
}

.star {
    color: #D4AF37;
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Updated carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #CB8061 0%, #D4AF37 100%);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: -70px;
}

.carousel-control-next {
    right: -70px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
}

/* Remove old testimonial card colors */
.col-md-4:nth-child(1) .testimonial-card,
.col-md-4:nth-child(2) .testimonial-card,
.col-md-4:nth-child(3) .testimonial-card {
    background-color: unset; /* Remove old solid colors */
}

/* Updated responsive design */
@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 2rem;
        min-height: 240px;
    }

    .testimonial-card:nth-child(2) {
        transform: translateY(0); /* Remove elevation on mobile */
    }

    .testimonial-card:nth-child(2):hover {
        transform: translateY(-10px) scale(1.02);
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 1.5rem;
        min-height: 200px;
    }

    .testimonial-quote {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .testimonial-quote::before {
        font-size: 3rem;
        top: -15px;
        left: -10px;
    }
}

/* Enhanced Section Title for Testimonials */
.section-title {
    color: var(--accent-2);
    font-weight: bold;
    margin-bottom: 3rem;
    position: relative;
    font-size: 2.5rem;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #CB8061 0%, #D4AF37 100%);
    border-radius: 2px;
}

/* Updated Instagram Grid - 4 per row with minimal spacing */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Fixed 4 columns */
    gap: 8px; /* Reduced gap for minimal spacing */
    justify-content: center;
    margin-bottom: 2rem;
}

.instagram-post {
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.instagram-post:hover {
    transform: scale(1.03); /* Slightly reduced scale for tighter layout */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on mobile */
        gap: 6px;
    }
    
    .instagram-post:hover {
        transform: scale(1.02);
    }
}

@media (max-width: 480px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
}

/* Keep existing container styles */
.light-bg .container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Optional: Add loading effect for images */
.instagram-post {
    background-color: var(--secondary-bg);
    position: relative;
}

.instagram-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.instagram-post:hover::before {
    transform: translateX(100%);
}

/* Locations Banner */
.locations-banner {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: var(--light-bg);
    padding: 4rem 0;
    text-align: center;
}

/* Location Cards */
.location-card {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(141, 96, 66, 0.973);
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.map-container {
    height: 300px;
    margin: 1rem 0;
    border-radius: 10px;
    overflow: hidden;
}

/* Class Schedule Styles */
.class-schedule {
    background-color: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    color: var(--dark-base);
}

.class-schedule h6 {
    color: var(--accent-2);
    margin-bottom: 1rem;
}

.class-schedule ul {
    margin-bottom: 1rem;
    padding-left: 1.2rem;
}

.class-schedule li {
    margin-bottom: 0.5rem;
}

/* Event Card Styles */
.event-card {
    border-left: 4px solid var(--accent-1);
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Promotion Banner */
.promotion-banner {
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Video Split Section Styles */
.video-split-section {
    background-color: var(--secondary-bg);
}

.video-text-content {
    padding: 2rem;
    background-color: var(--secondary-bg);
    border-radius: 15px;
    margin-right: 1rem;
}

.video-text-content .section-title {
    color: var(--accent-2);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.video-description {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-2);
    margin-bottom: 1.5rem;
}

.video-extra-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--accent-2);
    opacity: 0.9;
}

.video-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Updated Footer Typography */
.footer .brand-title {
    font-family: 'Lato', 'Open Sans', 'Source Sans Pro', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    color: #333333;
    margin-bottom: 0.4rem;
}

.footer .section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--secondary-text, #333333);
    margin-bottom: 1rem;
}

.footer .section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 2px;
    background-color: var(--accent-color, #007bff);
}

.footer .location-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--secondary-text, #333333);
    margin-bottom: 0.8rem;
    white-space: nowrap; /* Prevent wrapping */
}

.footer .social-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary-text, #333333);
    margin-bottom: 0.8rem;
    margin-top: 1rem;
}

.footer .body-text,
.footer p,
.footer a {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: var(--light-text, #666666);
    font-size: 0.85rem;
}

.footer .tagline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--secondary-text, #333333);
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.footer a {
    text-decoration: none !important;
    color: var(--light-text, #666666) !important;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-color, #007bff) !important;
}

/* Footer Row Styling (Excludes Copyright Row) */
.footer .row:not(.copyright-row) {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem;
    width: 100%;
    margin: 0 !important;
    padding: 0 0.25rem;
}

/* Copyright Row Styling */
.footer .copyright-row {
    display: block !important;
    width: 100%;
    margin: 0 !important;
    padding: 0;
}

/* Social Media Styles */
.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: nowrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    color: var(--secondary-text, #333333) !important;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color, #007bff);
    border-color: var(--accent-color, #007bff);
    color: white !important;
    transform: translateY(-2px);
}

/* Contact Info Styling */
.contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap; /* Prevent text wrapping */
    margin-bottom: 0.5rem;
}

.contact-info p i {
    margin-right: 6px;
}

.contact-info a.email-link {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap; /* Ensure email and icon stay on one line */
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--light-text, #666666) !important;
}

.contact-info a.email-link i {
    margin-right: 6px;
}

/* License Section Styling */
.license-section {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
}

.license-section img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 6px;
    display: block;
}

/* Copyright Section */
.footer .row .col-12 {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 0 0.25rem;
}

/* Specific Copyright Styling */
.footer .copyright-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--light-text, #666666);
    white-space: nowrap;
    margin: 0;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .footer {
        min-height: 250px;
        padding: 2rem 0.5rem 1.5rem 0.5rem;
    }

    .footer .row:not(.copyright-row) {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem;
        padding: 0 0.2rem;
    }

    .footer .row .col-md-4 {
        padding: 0 0.2rem !important;
    }

    .footer .brand-title {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .footer .section-title {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .footer .section-title::after {
        width: 20px;
    }

    .footer .location-title {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
        white-space: normal; /* Allow wrapping on mobile */
    }

    .footer .social-title {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }

    .footer .tagline,
    .footer .body-text,
    .footer p,
    .footer a {
        font-family: 'Open Sans', sans-serif;
        font-size: 0.75rem !important;
        line-height: 1.4;
    }

    .contact-info p {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
        white-space: normal; /* Allow wrapping on mobile */
        display: block;
    }

    .contact-info a.email-link {
        font-size: 0.75rem !important;
        white-space: normal; /* Allow wrapping on mobile */
        display: block;
    }

    .footer ul {
        padding-left: 0;
        list-style: none;
        margin: 0;
    }

    .footer ul li {
        margin-bottom: 0.2rem;
    }

    .footer ul li a {
        font-size: 0.75rem;
    }

    .license-section p {
        font-size: 0.7rem;
    }

    .social-links {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .social-links a {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .license-section img {
        width: 60px;
        height: 60px;
    }

    .footer hr {
        margin: 0.8rem 0;
    }
}

@media (max-width: 480px) {
    .footer {
        min-height: 220px;
        padding: 2rem 1rem;
    }

    .footer .row:not(.copyright-row) {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .footer .copyright-row {
        display: block !important;
        width: 100%;
        margin: 0 !important;
        padding: 0;
    }

    .footer .row .col-md-4 {
        padding: 0 0.5rem !important;
        text-align: center;
    }

    .footer .brand-title {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .footer .section-title {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 0.85rem;
        margin-bottom: 0.7rem;
    }

    .footer .section-title::after {
        width: 18px;
    }

    .footer .location-title {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
        white-space: normal;
    }

    .footer .social-title {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }

    .footer .tagline,
    .footer .body-text,
    .footer p,
    .footer a {
        font-family: 'Open Sans', sans-serif;
        font-size: 0.75rem !important;
        line-height: 1.4;
    }

    .footer .copyright-text {
        font-family: 'Open Sans', sans-serif;
        font-weight: 400;
        font-size: 0.85rem !important;
        line-height: 1.5;
        color: var(--light-text, #666666);
        white-space: nowrap;
        margin: 0;
    }

    .contact-info p {
        font-size: 0.75rem !important;
        margin-bottom: 0.4rem !important;
        white-space: normal;
        display: block;
    }

    .contact-info a.email-link {
        font-size: 0.75rem !important;
        white-space: normal;
        display: block;
    }

    .footer ul li a {
        font-size: 0.75rem !important;
    }

    .license-section p {
        font-size: 0.7rem !important;
    }

    .social-links {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .social-links a {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    .license-section img {
        width: 55px;
        height: 55px;
    }

    .footer hr {
        margin: 1rem 0;
    }
}



/* Animation Keyframes */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-in Classes */
.hero-section .fade-in {
    animation: fadeInUp 900ms ease forwards;
    opacity: 0;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Form Styles */
.form-control {
    border: 2px solid rgba(93, 65, 56, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 0.25rem rgba(93, 65, 56, 0.15);
}

.form-select {
    border: 2px solid rgba(93, 65, 56, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 0.25rem rgba(93, 65, 56, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--accent-2);
    margin-bottom: 0.5rem;
}

/* Philosophy Section Updates */
.philosophy-section {
    background-color: var(--light-bg);
}

.philosophy-headline {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--accent-2);
    max-width: 900px;
    margin: 0 auto;
}

/* Pillars Grid Section */
.pillars-grid-section {
    background-color: white;
    padding: 4rem 0;
}

.pillar-item {
    padding: 3rem 2rem;
    text-align: center;
    border-right: 1px solid #f0f0f0;
    transition: all 0.4s ease;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.pillar-item:hover {
    background-color: var(--light-bg);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pillar-item:last-child {
    border-right: none;
}

.pillar-icon-container {
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.pillar-item:hover .pillar-icon-container {
    transform: scale(1.1);
}

.pillar-icon {
    font-size: 3rem;
    color: var(--accent-1);
    background: rgba(10, 10, 10, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.pillar-item:hover .pillar-icon {
    background: var(--accent-1);
    color: white;
}

.pillar-content {
    position: relative;
    width: 100%;
}

.pillar-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.pillar-item:hover .pillar-content h4 {
    color: var(--accent-1);
}

.pillar-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--accent-2);
    text-transform: lowercase;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    max-width: 280px;
    margin: 0 auto;
}

.pillar-item:hover .pillar-description {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pillar-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    color: var(--accent-2);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.05em;
    pointer-events: none;
}

.pillar-item:not(:hover) .pillar-overlay-text {
    opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .pillar-item {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        min-height: 250px;
    }
    
    .pillar-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 767px) {
    .pillar-item {
        padding: 2rem 1.5rem;
        min-height: 220px;
    }
    
    .pillar-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .pillar-content h4 {
        font-size: 1rem;
    }
    
    .pillar-description {
        font-size: 0.8rem;
    }
}

/* CTA Section Updates */
.cta-section {
    background-color: var(--dark-base);
    color: white;
}

.cta-section-brown {
    background-color: var(--accent-1);
    color: white;
}

.cta-headline {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.3;
    color: white;
    margin-bottom: 2rem;
}

.cta-buttons .btn {
    min-width: 180px;
    padding: 1rem 2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Custom CTA Buttons */
.btn-cta-custom {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    min-width: 180px;
    padding: 1rem 2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 0.375rem;
}

.btn-cta-custom:hover {
    background-color: var(--dark-base);
    border-color: var(--dark-base);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 11, 7, 0.3);
}

/* Pink Button Styles */
.btn-pink {
    background-color: #d8acca36;
    border: 2px solid #1b1016;
    color: white;
    min-width: 180px;
    padding: 1rem 2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 0.375rem;
}

.btn-pink:hover {
    background-color: #555254;
    border-color: #1b1016;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(228, 171, 199, 0.799);
}

.new-member-section {
    background-color: var(--dark-base);
    color: white;
}

.new-member-section h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 400;
}

.new-member-section .lead {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}

/* Responsive Hero Section */
@media (max-width: 768px) {
    .split-hero {
        height: 100vh;
    }
    
    .split-hero-container {
        flex-direction: column;
    }
    
    .split-hero-image,
    .split-hero-content {
        flex: 1;
    }
    
    .hero-text-content h1 {
        font-size: 2.5rem;
    }
    
    .video-text-content {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .hero-section {
        height: 60vh;
        min-height: 350px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0;
    }
    
    .hero-content {
        padding: 2.5rem 1rem 1.5rem 1rem;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-content .btn {
        width: 100%;
        margin-bottom: 0.7rem;
    }
    
    .hero-content .btn:last-child {
        margin-bottom: 0;
    }

    .about-hero {
        height: 50vh;
        margin-top: 66px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .team-img {
        height: 250px;
    }
    
    .team-info {
        padding: 1rem;
    }
    
    .pillar-card {
        margin-bottom: 2rem;
    }
    
    .philosophy-headline {
        font-size: 1.5rem;
    }
    
    .pillar-item {
        padding: 2rem 1rem;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .pillar-item:last-child {
        border-bottom: none;
    }
    
    .cta-headline {
        font-size: 1.8rem;
    }
    
    .new-member-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .btn-cta-custom {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .btn-pink {
        width: 100%;
        margin-bottom: 1rem;
    }
}


@media (max-width: 576px) {
    .card-body.text-content { 
        padding: 1rem; 
    }
    
    .contact-info-card {
        margin-bottom: 1.5rem;
    }
    
    .social-media-links .btn {
        width: 100%;
        margin: 0.25rem 0;
        min-width: auto;
    }
    
    .video-text-content .section-title {
        font-size: 2rem;
    }
    
    .video-description {
        font-size: 1rem;
    }
}

/* Enhanced Mobile Responsiveness for About Page */

/* About Hero Section Mobile Fixes */
@media (max-width: 768px) {
    .about-hero {
        height: 50vh;
        min-height: 350px;
        margin-top: 76px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
        text-align: center;
        margin-bottom: 0;
    }
    
    .hero-overlay-dark {
        background: rgba(0,0,0,0.7);
    }
}

@media (max-width: 576px) {
    .about-hero {
        height: 45vh;
        min-height: 300px;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
}

/* Section Spacing Mobile Fixes */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .section-title::after {
        width: 60px;
    }
    
    /* Philosophy Section Mobile */
    .philosophy-headline {
        font-size: 1.4rem;
        line-height: 1.3;
        padding: 0 1rem;
        text-align: center;
    }
    
    .philosophy-section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .philosophy-headline {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .philosophy-section {
        padding: 2rem 0;
    }
}



@media (max-width: 768px) {
    .pillar-item {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .pillar-content h4 {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    .pillar-content p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .pillar-link {
        font-size: 0.8rem;
    }
    
    .pillar-icon {
        width: 60px;
        height: 60px;
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .pillar-item {
        padding: 1.5rem 0.75rem;
    }
    
    .pillar-content h4 {
        font-size: 0.9rem;
    }
    
    .pillar-content p {
        font-size: 0.75rem;
    }
    
    .pillar-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
}

/* Team Section Mobile Improvements */
@media (max-width: 768px) {
    .team-card {
        margin-bottom: 2rem;
        border-radius: 15px;
    }
    
    .team-img {
        height: 280px;
        object-fit: cover;
        object-position: center top;
    }
    
    .team-info {
        padding: 1.25rem;
    }
    
    .team-info h5 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .team-info p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .credentials {
        text-align: center;
    }
    
    .credentials .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        margin: 0.2rem;
    }
}

@media (max-width: 576px) {
    .team-card {
        margin-bottom: 1.5rem;
    }
    
    .team-img {
        height: 250px;
    }
    
    .team-info {
        padding: 1rem;
    }
    
    .team-info h5 {
        font-size: 1rem;
    }
    
    .team-info p {
        font-size: 0.85rem;
    }
    
    .credentials .badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
}

/* CTA Section Mobile Fixes */
@media (max-width: 768px) {
    .cta-section,
    .cta-section-brown,
    .new-member-section {
        padding: 3rem 0;
        text-align: center;
    }
    
    .cta-headline {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .new-member-section h2 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }
    
    .new-member-section .lead {
        font-size: 0.95rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons .btn,
    .btn-cta-custom,
    .btn-pink {
        width: 100%;
        max-width: 280px;
        margin: 0;
        font-size: 0.95rem;
        padding: 0.9rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .cta-headline {
        font-size: 1.5rem;
    }
    
    .new-member-section h2 {
        font-size: 1.5rem;
    }
    
    .new-member-section .lead {
        font-size: 0.9rem;
    }
    
    .cta-buttons .btn,
    .btn-cta-custom,
    .btn-pink {
        max-width: 250px;
        font-size: 0.9rem;
        padding: 0.8rem 1.25rem;
    }
}

/* Container and Padding Mobile Fixes */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Navbar Mobile Fixes */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.4rem 0.75rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.95rem;
        padding: 0.6rem 0;
    }
}

/* Instructors Section Mobile Enhancements */
@media (max-width: 768px) {
    .instructors-section {
        padding: 3rem 0;
    }
    
    .instructor-card {
        height: 380px;
        margin-bottom: 2rem;
    }
    
    .instructor-hover-overlay {
        padding: 1.5rem;
    }
    
    .instructor-info-overlay h4 {
        font-size: 1.5rem;
    }
    
    .instructor-specialty {
        font-size: 1rem;
    }
    
    .instructor-bio {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .cred-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 576px) {
    .instructors-section {
        padding: 2rem 0;
    }
    
    .instructor-card {
        height: 350px;
        margin-bottom: 1.5rem;
    }
    
    .instructor-hover-overlay {
        padding: 1rem;
    }
    
    .instructor-info-overlay h4 {
        font-size: 1.3rem;
        margin-bottom: 0.4rem;
    }
    
    .instructor-specialty {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .instructor-bio {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .instructor-name-tag h5 {
        font-size: 1.1rem;
    }
    
    .instructor-name-tag span {
        font-size: 0.8rem;
    }
}

/* Additional Mobile Utility Classes */
@media (max-width: 768px) {
    .mobile-text-center {
        text-align: center !important;
    }
    
    .mobile-mb-3 {
        margin-bottom: 1rem !important;
    }
    
    .mobile-px-2 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Fix for any overflow issues */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .col-12,
    .col-sm-12,
    .col-md-12,
    .col-lg-12,
    .col-xl-12 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Landscape phone optimization */
@media (max-width: 896px) and (orientation: landscape) {
    .about-hero {
        height: 60vh;
        min-height: 280px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .about-hero {
        height: 40vh;
        min-height: 250px;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        padding: 0 0.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 0.25rem;
    }
    
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .philosophy-headline {
        font-size: 1.1rem;
    }
    
    .pillar-item {
        padding: 1rem 0.5rem;
    }
    
    .pillar-content h4 {
        font-size: 0.85rem;
    }
    
    .pillar-content p {
        font-size: 0.7rem;
    }
    
    .cta-headline {
        font-size: 1.3rem;
    }
    
    .new-member-section h2 {
        font-size: 1.3rem;
    }
}

/* Additional utility classes for consistency */
.stats-counter {
    text-align: left;
}

.icon-shell {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 6px 14px rgba(15, 15, 15, 0.733);
    transition: transform .2s ease;
}

.icon-shell:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(14, 13, 13, 0.623);
}

.icon-emoji {
    font-size: 22px;
    line-height: 1;
}

.item-title {
    color: #0e0d0d;
}

.item-sub {
    color: #9b846f;
}


/* Instructors Section - Updated for 7 Cards (4-3 Layout) */
.instructors-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--secondary-bg) 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.instructors-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(93, 65, 56, 0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

.instructors-section .container {
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Grid Layout for 4-3 arrangement */
.instructors-top-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.instructors-bottom-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 75%;
    margin: 0 auto;
}

.instructor-card-wrapper {
    display: flex;
    justify-content: center;
}

/* Smaller Card Design */
.instructor-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    perspective: 1000px;
    height: 320px; /* Reduced from 450px */
    width: 100%;
    max-width: 280px; /* Constrain maximum width */
    box-shadow: 0 8px 25px rgba(93, 65, 56, 0.12);
}

.instructor-card:hover {
    transform: translateY(-12px) rotateX(3deg);
    box-shadow: 0 20px 40px rgba(93, 65, 56, 0.2);
}

.instructor-img-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.instructor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.6s ease;
    filter: brightness(0.9) contrast(1.1);
}

.instructor-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(transparent 0%, rgba(48, 25, 18, 0.3) 30%, rgba(48, 25, 18, 0.8) 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

.instructor-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(24, 23, 23, 0.95) 0%, rgba(48, 25, 18, 0.95) 100%);
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem; /* Reduced padding */
}

.instructor-card:hover .instructor-hover-overlay {
    opacity: 1;
    transform: scale(1);
}

.instructor-card:hover .instructor-img {
    transform: scale(1.15);
    filter: brightness(1.1) contrast(1.2);
}

.instructor-card:hover .instructor-gradient-overlay {
    opacity: 0;
}

.instructor-info-overlay {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.instructor-card:hover .instructor-info-overlay {
    transform: translateY(0);
}

.instructor-info-overlay h4 {
    font-size: 1.5rem; /* Reduced from 1.8rem */
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--light-bg);
}

.instructor-specialty {
    font-size: 0.95rem; /* Reduced from 1.1rem */
    font-weight: 600;
    color: var(--secondary-bg);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.instructor-bio {
    font-size: 0.85rem; /* Reduced from 0.95rem */
    line-height: 1.4;
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.instructor-credentials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.cred-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.3rem 0.6rem; /* Reduced padding */
    border-radius: 12px;
    font-size: 0.7rem; /* Reduced from 0.8rem */
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.instructor-name-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 1.2rem 1rem 0.8rem; /* Adjusted padding */
    z-index: 1;
    transition: opacity 0.4s ease;
}

.instructor-card:hover .instructor-name-tag {
    opacity: 0;
}

.instructor-name-tag h5 {
    font-size: 1.1rem; /* Reduced from 1.3rem */
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: white;
}

.instructor-name-tag span {
    font-size: 0.8rem; /* Reduced from 0.9rem */
    color: var(--secondary-bg);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Staggered Animation for Instructor Cards */
.instructor-card {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease forwards;
}

.instructors-top-row .instructor-card-wrapper:nth-child(1) .instructor-card { animation-delay: 0.1s; }
.instructors-top-row .instructor-card-wrapper:nth-child(2) .instructor-card { animation-delay: 0.2s; }
.instructors-top-row .instructor-card-wrapper:nth-child(3) .instructor-card { animation-delay: 0.3s; }
.instructors-top-row .instructor-card-wrapper:nth-child(4) .instructor-card { animation-delay: 0.4s; }
.instructors-bottom-row .instructor-card-wrapper:nth-child(1) .instructor-card { animation-delay: 0.5s; }
.instructors-bottom-row .instructor-card-wrapper:nth-child(2) .instructor-card { animation-delay: 0.6s; }
.instructors-bottom-row .instructor-card-wrapper:nth-child(3) .instructor-card { animation-delay: 0.7s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Elements Effect */
.instructor-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-1), var(--secondary-bg), var(--accent-2), var(--secondary-bg));
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
}

.instructor-card:hover::before {
    opacity: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Large Tablet View */
@media (max-width: 1200px) {
    .instructor-card {
        height: 300px;
        max-width: 260px;
    }
    
    .instructor-info-overlay h4 {
        font-size: 1.4rem;
    }
    
    .instructor-specialty {
        font-size: 0.9rem;
    }
    
    .instructor-bio {
        font-size: 0.8rem;
    }
}

/* Tablet View */
@media (max-width: 1024px) {
    .instructors-top-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .instructors-bottom-row {
        grid-template-columns: repeat(2, 1fr);
        max-width: 66%;
        gap: 18px;
    }
    
    .instructor-card {
        height: 280px;
        max-width: 240px;
    }
    
    .instructor-hover-overlay {
        padding: 1.2rem;
    }
    
    .instructor-info-overlay h4 {
        font-size: 1.3rem;
    }
    
    .instructor-specialty {
        font-size: 0.85rem;
    }
    
    .instructor-bio {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .instructors-section {
        padding: 60px 0;
    }
    
    .instructors-top-row,
    .instructors-bottom-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .instructors-bottom-row {
        margin: 0;
    }
    
    .instructor-card {
        height: 260px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .instructor-hover-overlay {
        padding: 1rem;
    }
    
    .instructor-info-overlay h4 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }
    
    .instructor-specialty {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .instructor-bio {
        font-size: 0.7rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }
    
    .instructor-name-tag {
        padding: 1rem 0.8rem 0.6rem;
    }
    
    .instructor-name-tag h5 {
        font-size: 1rem;
    }
    
    .instructor-name-tag span {
        font-size: 0.75rem;
    }
    
    .cred-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Small Mobile View */
@media (max-width: 576px) {
    .instructors-section {
        padding: 40px 0;
    }
    
    .instructors-top-row,
    .instructors-bottom-row {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 300px;
        margin: 0 auto 20px auto;
    }
    
    .instructors-bottom-row {
        margin: 0 auto;
    }
    
    .instructor-card {
        height: 240px;
        max-width: 280px;
        margin: 0 auto 15px auto;
    }
    
    .instructor-hover-overlay {
        padding: 0.8rem;
    }
    
    .instructor-info-overlay h4 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    
    .instructor-specialty {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .instructor-bio {
        font-size: 0.65rem;
        margin-bottom: 0.7rem;
    }
    
    .instructor-name-tag {
        padding: 0.8rem 0.6rem 0.5rem;
    }
    
    .instructor-name-tag h5 {
        font-size: 0.95rem;
    }
    
    .instructor-name-tag span {
        font-size: 0.7rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .instructor-card {
        height: 220px;
        max-width: 260px;
    }
    
    .instructor-hover-overlay {
        padding: 0.6rem;
    }
    
    .instructor-info-overlay h4 {
        font-size: 1rem;
    }
    
    .instructor-specialty {
        font-size: 0.7rem;
    }
    
    .instructor-bio {
        font-size: 0.6rem;
        line-height: 1.2;
        margin-bottom: 0.6rem;
    }
    
    .cred-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
}


@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
    }
}


/* Container holding the three updated cards (adjust selectors if needed) */
#classes-grid .class-card {
  display: block;
  margin-bottom: 1.5rem;
}

/* Card inner split using flexbox with 30/70 */
#classes-grid .card-inner {
  display: flex;
  width: 100%;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0.5rem;
  align-items: stretch;
}

#classes-grid .card-30 {
  flex: 0 0 30%;
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#classes-grid .card-70 {
  flex: 1 1 70%;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#classes-grid .calendar {
  width: 100%;
  min-height: 160px;
  border: 1px dashed #ccc;
  border-radius: 6px;
  padding: 0.75rem;
  text-align: center;
  color: #555;
  /* If you have a specific calendar widget, adjust its width/height here */
}

/* Optional visual tweaks to resemble the previous card styling */
#classes-grid .card-30 h4 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
#classes-grid .card-30 p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

/* Responsive behavior: stack on smaller screens */
@media (max-width: 1024px) {
  #classes-grid .card-inner {
    flex-direction: row;
  }
}
@media (max-width: 768px) {
  #classes-grid .card-inner {
    flex-direction: column;
  }
  #classes-grid .card-30,
  #classes-grid .card-70 {
    flex: none;
    width: 100%;
  }
  #classes-grid .calendar {
    min-height: 120px;
  }
}

/* Services Grid Section */
.services-grid-section {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.services-grid-section .container {
    max-width: 1000px;
    margin: 0 auto;
}

.services-grid-section .row {
    margin-left: -10px;
    margin-right: -10px;
}

.services-grid-section .col-lg-4,
.services-grid-section .col-md-4,
.services-grid-section .col-sm-6 {
    padding-left: 10px;
    padding-right: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 4rem;
    letter-spacing: 0.05em;
}

.service-card {
    background: transparent;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: none;
    box-shadow: none;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(40, 40, 40, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon-container {
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon-container {
    transform: scale(1.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-1);
    background: rgba(10, 10, 10, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.service-content {
    position: relative;
    width: 100%;
}

.service-content h4, 
.service-content h5 {
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
    color: var(--accent-2);
    transition: all 0.3s ease;
}

.service-card:hover .service-content h4, 
.service-card:hover .service-content h5 {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.service-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--accent-2);
    text-transform: lowercase;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    max-width: 280px;
    margin: 10px auto 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 20px);
    width: 100%;
}

.service-card:hover .service-description {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    color: rgba(255, 255, 255, 0.9);
}

.service-overlay-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--accent-2);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.05em;
    pointer-events: none;
}

.service-card:not(:hover) .service-overlay-text {
    opacity: 0.6;
}

/* Shimmer effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .services-grid-section .container {
        max-width: 800px;
    }
    
    .service-card {
        height: 220px;
        padding: 30px 15px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 2.2rem;
    }
    
    .service-content h4, 
    .service-content h5 {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .services-grid-section {
        padding: 40px 0;
    }
    
    .services-grid-section .container {
        max-width: 600px;
    }
    
    .services-grid-section .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .services-grid-section .col-lg-4,
    .services-grid-section .col-md-4,
    .services-grid-section .col-sm-6 {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .service-card {
        height: 200px;
        padding: 25px 15px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    
    .service-content h4, 
    .service-content h5 {
        font-size: 1rem;
    }
    
    .service-description {
        font-size: 0.8rem;
    }
}

/* Animation for cards appearing */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease forwards;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-card:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional utility classes for better mobile centering */
.services-grid-section .container {
    max-width: 100%;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .services-grid-section .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid-section .row {
        width: 100%;
        margin: 0;
    }
    
    .services-grid-section [class*="col-"] {
        padding: 0 15px;
    }
}

/* P4 Studios Floating Chat Widget Styles */
#p4-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

#p4-chat-button {
    background: linear-gradient(135deg, #2e2c2c, #413f3f);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 20px #292827;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#p4-chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px  #141414;
;
}

#p4-chat-popup {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 10000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#p4-chat-popup iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#p4-chat-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

#p4-chat-close:hover {
    background: rgba(255, 255, 255, 1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #p4-chat-popup {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
        right: 20px;
        bottom: 90px;
    }
    
    #p4-chat-button {
        padding: 12px 16px;
        font-size: 14px;
    }
}
/* Base: fixed height for desktop */
.video-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
}
.video-container video {
  width: 100%;
  height: 100%;          /* fill the container height */
  object-fit: cover;
  display: block;
  /* Optional: adjust focal point */
  /* object-position: center center;  or a preferred point like 'center 20%' */
}

/* Web/desktop and tablet: slightly taller to increase height across browsers */
@media (min-width: 769px) {
  .video-container {
    height: 260px; /* keep container height consistent with the new rule, or adjust as needed */
  }
}
/* classes content*/
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.py-6 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.class-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.class-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-inner {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.card-30 {
  flex: 0 0 35%;
  padding: 1.5rem;
  background-color: #f1f5f9;
}

.card-30 h4 {
  margin-top: 0;
  color: #1a202c;
  font-size: 1.5rem;
}

.card-30 p {
  color: #6b4b43;
  font-size: 1rem;
  line-height: 1.5;
}

.card-70 {
  flex: 1 1 65%;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar {
  width: 100%;
  min-height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.calendar a {
  padding: 0.75rem 1.5rem;
  background-color: #0c0c0b;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.calendar a:hover {
  background-color: #0c0c0b;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .card-inner {
    flex-direction: column;
  }
  .card-30, .card-70 {
    flex: 1 1 100%;
  }
}

/* testimonial.css */

/* Hero Section */
.clients-hero {
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}


.clients-hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Clients Section */
.clients {
    
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 3rem;
}

/* Testimonial Cards */
.testimonial-card {
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Unique solid background colors for each card */
.testimonial-card-1 {
    background: #333333; /* Light Grey */
}

.testimonial-card-1::before {
    background: #D3D3D3; /* Matching top border */
}

.testimonial-card-2 {
    background: #90EE90; /* Light Green */
}

.testimonial-card-2::before {
    background: #90EE90; /* Matching top border */
}

.testimonial-card-3 {
    background: #DAA520; /* Dark Yellow */
}

.testimonial-card-3::before {
    background: #DAA520; /* Matching top border */
}

.testimonial-card-4 {
    background: #D3D3D3; /* Light Grey */
}

.testimonial-card-4::before {
    background: #D3D3D3; /* Matching top border */
}

.testimonial-card-5 {
    background: #90EE90; /* Light Green */
}

.testimonial-card-5::before {
    background: #90EE90; /* Matching top border */
}

.testimonial-card-6 {
    background: #DAA520; /* Dark Yellow */
}

.testimonial-card-6::before {
    background: #DAA520; /* Matching top border */
}

/* Testimonial Header */
.testimonial-header {
    font-family: 'Playfair Display', 'Lato', 'Open Sans', 'Source Sans Pro', sans-serif;
    font-style: italic;
    font-weight: 400; /* Regular weight to emphasize italic style */
    font-size: 2rem; /* Slightly larger for prominence */
    color: #333333; /* Dark grey for consistency */
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.client-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.client-info {
    flex: 1;
}

.client-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #030303;
    margin-bottom: 0.2rem;
}

.client-role {
    font-size: 0.9rem;
    color: #3b92df;
    margin-bottom: 0;
}

/* Stars Rating */
.stars {
    margin-bottom: 1rem;
}

.stars i {
    color: #ffc107;
    font-size: 1.1rem;
    margin-right: 0.2rem;
}

/* Testimonial Text */
.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #eff0f1;
    font-style: italic;
    position: relative;
    margin-bottom: 0;
}

.testimonial-text::before {
    font-size: 3rem;
    color: #dee2e6;
    position: absolute;
    top: -10px;
    left: -10px;
    font-family: Georgia, serif;
}

.testimonial-text::after {
    font-size: 3rem;
    color: #dee2e6;
    position: absolute;
    bottom: -20px;
    right: 10px;
    font-family: Georgia, serif;
}

/* Call to Action */
.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .client-photo {
        width: 60px;
        height: 60px;
    }
    
    .client-name {
        font-size: 1.1rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .testimonial-hero {
        background-attachment: scroll;
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
    
    .client-photo {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-header {
        margin-bottom: 1rem;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: fadeInUp 0.6s ease forwards;
}

.testimonial-card:nth-child(1) { 
    animation-delay: 0.1s; 
    background: #333333; 
}

.testimonial-card:nth-child(2) { 
    animation-delay: 0.2s;
    background: #333333; 
}

.testimonial-card:nth-child(3) { 
    animation-delay: 0.3s; 
    background: #333333; 
}

.testimonial-card:nth-child(4) { 
    animation-delay: 0.4s; 
    background: #333333; 
}

.testimonial-card:nth-child(5) { 
    animation-delay: 0.5s; 
    background: #333333; 
}

.testimonial-card:nth-child(6) { 
    animation-delay: 0.6s; 
    background: #333333; 
}

/* Additional hover effects for interactive experience */
.testimonial-card:hover .client-photo {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover .stars i {
    animation: starPulse 0.5s ease;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Scroll reveal effect */
.testimonial-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Loading state for images */
.client-photo {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.client-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Print styles */
@media print {
    .testimonial-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .hero-overlay-dark,
    .btn-primary {
        display: none;
    }
}

.learn-more-btn {
  background: #454647c8;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  display: block;
  font-size: 16px;
  margin: 0 auto;
  width: fit-content;
}

.learn-more-btn:hover {
  background: #454647c8;
}

@media (max-width: 768px) {
  .learn-more-btn {
    padding: 12px 24px;
    font-size: 18px;
    width: 100%;
    text-align: center;
  }
}

/* Training Section Styles */
.training-section {
    background-color: #343638;
    padding: 80px 0;
    position: relative;
}

.training-section .container {
    max-width: 1200px;
}

/* Training Row */
.training-row {
    margin-bottom: 40px;
}

.training-row:last-child {
    margin-bottom: 0;
}

/* Training Card */
.training-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 50px 60px;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.training-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Training Title */
.training-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

/* Training Description */
.training-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Tablet Styles (992px and below) */
@media (max-width: 992px) {
    .training-section {
        padding: 60px 0;
    }

    .training-card {
        padding: 40px 50px;
    }

    .training-title {
        font-size: 0.75rem;
    }

    .training-description {
        font-size: 0.6rem;
    }

    .training-row {
        margin-bottom: 35px;
    }
}

/* Mobile Styles (768px and below) */
@media (max-width: 768px) {
    .training-section {
        padding: 50px 0;
    }

    .training-card {
        padding: 35px 30px;
        border-radius: 15px;
    }

    .training-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .training-description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .training-row {
        margin-bottom: 30px;
    }
}

/* Small Mobile Styles (576px and below) */
@media (max-width: 576px) {
    .training-section {
        padding: 40px 0;
    }

    .training-card {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .training-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
        letter-spacing: 0.3px;
    }

    .training-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .training-row {
        margin-bottom: 25px;
    }
}

/* Extra Small Mobile (480px and below) */
@media (max-width: 480px) {
    .training-section {
        padding: 30px 0;
    }

    .training-card {
        padding: 20px 15px;
    }

    .training-title {
        font-size: 1.2rem;
    }

    .training-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .training-row {
        margin-bottom: 20px;
    }
}

/* Touch device hover effects */
@media (hover: none) {
    .training-card:active {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
    }
}
/* Section Styles training */
.video-insta {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.video-insta .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Row Styles */
.video-insta .row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.video-insta .row:last-child {
    margin-bottom: 0;
}

/* Alternate layout for even rows */
.video-insta .row-reverse {
    flex-direction: row-reverse;
}

/* Column Styles */
.video-insta .video-column {
    flex: 1;
    max-width: 70%;
}

.video-insta .text-column {
    flex: 1;
    max-width: 30%;
}

/* Video Placeholder Styles */
.video-insta .video-link {
    display: block;
    position: relative;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}

.video-insta .video-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.video-insta .video-placeholder {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Standard 16:9 aspect ratio for videos */
    background-color: white;
    overflow: hidden;
}

.video-insta .video-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play Overlay */
.video-insta .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.video-insta .video-link:hover .play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.video-insta .play-icon {
    width: 60px;
    height: 60px;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-insta .video-link:hover .play-icon {
    transform: scale(1.1);
    opacity: 1;
}

/* Text Content Styles */
.video-insta .text-column h2 {
    font-family: 'Playfair Display', 'Lato', 'Open Sans', 'Source Sans Pro', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 2rem;
    color: #333333; /* Dark grey for consistency */
    margin-bottom: 15px;
    line-height: 1.3;
}

.video-insta .text-column p {
    font-family: 'Lato', 'Open Sans', 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    color: #333333; /* Dark grey for consistency */
    line-height: 1.8;
}

/* Tablet Styles */
@media (max-width: 768px) {
    .video-insta {
        padding: 40px 15px;
    }

    .video-insta .row {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }

    .video-insta .row-reverse {
        flex-direction: column;
    }

    .video-insta .video-column,
    .video-insta .text-column {
        max-width: 100%;
    }

    .video-insta .text-column h2 {
        font-size: 1.75rem;
    }

    .video-insta .text-column p {
        font-size: 1rem;
    }

    .video-insta .play-icon {
        width: 45px;
        height: 45px;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .video-insta {
        padding: 40px 15px; /* Increased padding for better breathing room */
    }

    .video-insta .row {
        gap: 25px; /* Slightly increased gap for better separation */
        margin-bottom: 50px; /* More space between rows */
    }

    .video-insta .text-column h2 {
        font-family: 'Playfair Display', 'Lato', 'Open Sans', 'Source Sans Pro', sans-serif;
        font-style: italic;
        font-weight: 400;
        font-size: 1.75rem; /* Slightly larger for prominence */
        color: #333333;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .video-insta .text-column p {
        font-family: 'Lato', 'Open Sans', 'Source Sans Pro', sans-serif;
        font-size: 1rem; /* Increased for better readability */
        color: #333333;
        line-height: 1.7; /* Slightly increased for legibility */
    }

    .video-insta .play-icon {
        width: 40px; /* Smaller for mobile to avoid overwhelming */
        height: 40px;
    }

    .video-insta .video-link {
        border-radius: 10px; /* Slightly softer corners */
        max-width: 100%; /* Ensure it fits the screen */
    }

    .video-insta .video-placeholder {
        padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio for consistency */
    }
}

/* specialists.css */

/* Specialists Section */
.specialists-section {
    background-color: #f8f8f8; /* Light background to match the clean aesthetic */
    padding: 5rem 0;
}

/* Section Title */
.specialists-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333; /* Dark grey color */
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Introductory Paragraph */
.specialists-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333; /* Dark grey for text */
    margin-bottom: 2rem;
}

/* Specialists List */
.specialists-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.specialists-list li {
    font-size: 1rem;
    color: #333333; /* Dark grey for list items */
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.specialists-list li i {
    color: #6c757d; /* Slightly lighter grey for icons to complement dark grey */
    margin-right: 0.5rem;
}

/* Description Paragraphs */
.specialists-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #333333; /* Dark grey for text */
    margin-bottom: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .specialists-section {
        padding: 3rem 0;
    }

    .specialists-section .section-title {
        font-size: 2rem;
    }

    .specialists-intro,
    .specialists-description {
        font-size: 0.95rem;
    }

    .specialists-list li {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .specialists-section .section-title {
        font-size: 1.75rem;
    }

    .specialists-intro,
    .specialists-description {
        font-size: 0.9rem;
    }

    .specialists-list li {
        font-size: 0.85rem;
    }
}