:root {
    --soft-white: #F7F7F7;
    --navy-blue: #363F5E;
    --deep-purple: #3E2371;
    --mustard-gold: #D0A44C;
    --decorative-gold: #D8A631;
    --warm-gold: #D8A631;
    --forest-green: #3E2371;
    --charcoal-gray: #595959;
    --body-gray: #595959;
    --pure-white: #FFFFFF;
}

/* Floating Animation for Career Page */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

* {
    font-family: 'Playfair Display', serif;
}

/* Enhanced About Section Responsive Styles */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem !important;
    }
    
    /* Mobile grid adjustments */
    #about [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }
    
    /* Careers page mobile adjustments */
    #careers-page [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    #careers-page [style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    #careers-page [style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    #careers-page [style*="grid-template-columns: repeat(auto-fit, minmax(350px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    #careers-page [style*="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    #about [style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    #about [style*="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    #about [style*="grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    #about [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    /* Mobile padding adjustments */
    #about [style*="padding: 3rem"] {
        padding: 2rem 1rem !important;
    }
    
    #about [style*="padding: 2.5rem"] {
        padding: 1.5rem !important;
    }
    
    /* Mobile font size adjustments */
    #about h3[style*="font-size: 2.5rem"] {
        font-size: 1.8rem !important;
    }
    
    #about h3[style*="font-size: 2.2rem"] {
        font-size: 1.6rem !important;
    }
    
    /* Mobile button adjustments */
    #about [style*="display: flex"][style*="gap: 1.5rem"] {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
    }
}

@media (max-width: 480px) {
    #about [style*="padding: 1rem 2rem"] {
        padding: 0.5rem 1rem !important;
    }
    
    #about [style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* Enhanced Text Contrast for About Section */
#about {
    /* Ensure minimum contrast ratios */
}

#about .section-title {
    /* Fallback for gradient text on browsers that don't support it */
    color: var(--deep-purple) !important;
}

/* Improve readability of gold text on dark backgrounds */
#about [style*="color: var(--gold)"] {
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Ensure white text has enough contrast on colored backgrounds */
#about [style*="color: white"] {
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Improve contrast for light text */
#about [style*="color: rgba(255,255,255"] {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Enhanced Call-to-Action Section Contrast */
#about [style*="Ready to Join Our Family"] {
    text-shadow: 0 2px 4px rgba(0,0,0,0.7) !important;
}

/* Ensure CTA buttons are always visible */
#about button {
    min-height: 48px; /* Touch-friendly size */
}

/* Basic Dropdown Structure */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    top: calc(100% + 5px);
    left: 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Add invisible bridge to prevent dropdown from disappearing */
.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
    z-index: 999;
    pointer-events: auto;
    border: none;
    background: transparent;
}

.dropdown:hover::before {
    display: block;
}

.dropdown-content a {
    color: var(--deep-purple);
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-content a:hover {
    background-color: var(--gold);
    color: var(--deep-purple);
}

/* Enhanced Homes Dropdown with Thumbnails */
.homes-dropdown {
    width: 220px !important;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0 !important;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15), 0 5px 15px rgba(0,0,0,0.08) !important;
    border: 1px solid rgba(208,164,76,0.2);
}

.homes-dropdown-item {
    display: flex !important;
    align-items: center;
    padding: 0.6rem 1rem !important;
    margin: 0.2rem 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    border-bottom: none !important;
    background: transparent;
}

.homes-dropdown-item:hover {
    background: linear-gradient(135deg, var(--gold) 0%, #f4d03f 100%) !important;
    transform: translateX(5px);
    color: var(--deep-purple) !important;
    box-shadow: 0 4px 12px rgba(208,164,76,0.3);
}

.dropdown-thumbnail {
    width: 45px !important;
    height: 45px !important;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 0.75rem;
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: #f5f5f5;
    background-image: linear-gradient(45deg, #f5f5f5 25%, transparent 25%), 
                      linear-gradient(-45deg, #f5f5f5 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #f5f5f5 75%), 
                      linear-gradient(-45deg, transparent 75%, #f5f5f5 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
}

/* Stronger specificity for dropdown thumbnails */
.nav-menu .dropdown .homes-dropdown .homes-dropdown-item .dropdown-thumbnail {
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
}

.homes-dropdown-item:hover .dropdown-thumbnail {
    border-color: var(--deep-purple);
    transform: scale(1.05);
}

.homes-dropdown .home-name {
    font-weight: 500 !important;
    font-size: 0.75rem !important;
    color: var(--deep-purple) !important;
    font-family: 'Playfair Display', serif !important;
    flex: 1;
    text-transform: capitalize !important;
}

/* Stronger specificity for dropdown home names */
.nav-menu .dropdown .homes-dropdown .homes-dropdown-item .home-name {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

.homes-dropdown-item:hover .home-name {
    color: var(--deep-purple);
}

/* Ensure dropdown stays visible when moving to it */
.dropdown {
    padding-bottom: 5px;
}

.homes-dropdown {
    margin-top: -5px !important;
    padding-top: 10px !important;
}

/* Our Homes Page Images */
.home-image {
    width: 180px; /* Approximately the width of "Shedfield Lodge" text */
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
    object-fit: cover;
    max-height: 120px; /* Maintain aspect ratio while limiting height */
    cursor: pointer;
}

.home-image:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
    border-color: var(--deep-purple);
    opacity: 0.95;
}

.home-image:active {
    transform: translateY(-1px) scale(1.01);
    transition: all 0.1s ease;
}

/* Responsive adjustments for home images */
@media (max-width: 768px) {
    .home-image {
        width: 150px;
        max-height: 100px;
    }
}

@media (max-width: 480px) {
    .home-image {
        width: 120px;
        max-height: 80px;
    }
}

/* About Page Home Images - Five Distinctive Homes Section */
.about-home-image {
    width: 175px; /* 25% larger - increased from 140px */
    height: auto;
    border-radius: 6px;
    margin: 1rem auto 0.5rem auto; /* Center the image with auto left/right margins */
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
    object-fit: cover;
    max-height: 113px; /* 25% larger - increased from 90px */
    cursor: pointer;
    display: block; /* Ensure block display for margin auto to work */
}

.about-home-image:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    border-color: var(--deep-purple);
    opacity: 0.95;
}

.about-home-image:active {
    transform: translateY(-1px) scale(1.01);
    transition: all 0.1s ease;
}

/* Responsive adjustments for about page images */
@media (max-width: 768px) {
    .about-home-image {
        width: 150px; /* 25% larger - increased from 120px */
        max-height: 94px; /* 25% larger - increased from 75px */
    }
}

@media (max-width: 480px) {
    .about-home-image {
        width: 125px; /* 25% larger - increased from 100px */
        max-height: 81px; /* 25% larger - increased from 65px */
    }
}

/* Individual Care Home Page Images */
.care-home-page-image {
    width: 320px;
    height: 220px;
    border-radius: 8px;
    margin: 0;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
    object-fit: cover;
    flex-shrink: 0;
}

.care-home-page-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-color: var(--deep-purple);
}

/* Responsive adjustments for care home headers */
@media (max-width: 768px) {
    .care-home-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .care-home-text {
        text-align: center;
    }
    
    .care-home-page-image {
        width: 240px;
        height: 180px;
    }
    
    .care-home-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .care-home-page-image {
        width: 220px;
        height: 165px;
    }
    
    .care-home-title {
        font-size: 2rem;
    }
}

/* Care Home Fullscreen Overlay Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Enhanced hover effect for care home page images */
.care-home-page-image {
    position: relative;
}

.care-home-page-image::after {
    content: '🔍 Click to view fullscreen';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: 'Playfair Display', serif;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.care-home-page-image:hover::after {
    opacity: 1;
}

/* Fullscreen Overlay Text Styling */
.fullscreen-tagline,
.fullscreen-subtitle {
    font-family: 'Playfair Display', serif !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.fullscreen-tagline {
    font-style: italic;
}

.fullscreen-subtitle {
    font-weight: 600 !important;
}

/* Enhanced dropdown animation */
.dropdown:hover .homes-dropdown {
    animation: dropdownFadeIn 0.3s ease-out;
}

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

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .homes-dropdown {
        width: 200px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .dropdown-thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .homes-dropdown .home-name {
        font-size: 0.7rem !important;
    }
    
    .homes-dropdown-item {
        padding: 0.5rem 0.8rem !important;
    }
}

/* Dropdown Arrow Animation */
.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.fa-chevron-down {
    transition: transform 0.3s ease;
}

/* Add subtle loading state for thumbnails */
.dropdown-thumbnail {
    position: relative;
}

.dropdown-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
    animation: shimmer 1.5s infinite;
    opacity: 0;
    pointer-events: none;
}

.dropdown-thumbnail:not([src]) + .dropdown-thumbnail::after {
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* KYN-Style Coming Soon Section */

/* Care Village Button */
.care-village-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--mustard-gold) 0%, #f4d03f 100%);
    color: var(--deep-purple);
    text-decoration: none;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 3px solid var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.care-village-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, var(--gold) 0%, var(--mustard-gold) 100%);
}

.care-village-btn i {
    font-size: 1.2rem;
}

/* Coming Soon Section Styling */
.coming-soon-projects {
    margin-top: 4rem;
}

.projects-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--deep-purple);
    margin-bottom: 3rem;
    font-weight: 400;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--gold);
}

.project-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--mustard-gold) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.project-icon i {
    font-size: 2rem;
    color: var(--deep-purple);
}

.project-name {
    font-size: 1.5rem;
    color: var(--deep-purple);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-description {
    color: var(--mustard-gold);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-details {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* FORCE Coming Soon section styling - Ultra High Priority */
section#coming-soon {
    background: white !important;
    position: relative !important;
    overflow: visible !important;
    min-height: auto !important;
    padding: 4rem 0 !important;
    display: block !important;
}

section#coming-soon .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

section#coming-soon .section-title {
    text-align: center !important;
    font-size: 3rem !important;
    color: var(--deep-purple) !important;
    margin-bottom: 1rem !important;
    font-weight: 400 !important;
    display: block !important;
}

section#coming-soon .section-subtitle {
    text-align: center !important;
    font-size: 1.2rem !important;
    color: #666 !important;
    margin-bottom: 3rem !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.6 !important;
    display: block !important;
}

/* ULTRA HIGH PRIORITY - Force Coming Soon Grid Layout */
section#coming-soon .coming-soon-projects {
    margin-top: 2rem !important;
    display: block !important;
}

section#coming-soon .projects-title {
    text-align: center !important;
    font-size: 2.5rem !important;
    color: var(--deep-purple) !important;
    margin-bottom: 3rem !important;
    font-weight: 400 !important;
    display: block !important;
}

section#coming-soon .projects-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 3rem !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

section#coming-soon .project-card {
    background: #ffffff !important;
    padding: 3rem 2rem !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    border: 3px solid var(--gold) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-height: 300px !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

section#coming-soon .project-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25) !important;
    border-color: var(--mustard-gold) !important;
}

section#coming-soon .project-icon {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--gold) 0%, var(--mustard-gold) 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 2rem auto !important;
    flex-shrink: 0 !important;
}

section#coming-soon .project-icon i {
    font-size: 2.5rem !important;
    color: var(--deep-purple) !important;
    display: block !important;
}

section#coming-soon .project-name {
    font-size: 1.8rem !important;
    color: var(--deep-purple) !important;
    margin-bottom: 1rem !important;
    font-weight: 600 !important;
    display: block !important;
    font-family: 'Playfair Display', serif !important;
}

section#coming-soon .project-description {
    color: var(--mustard-gold) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    margin-bottom: 1.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    display: block !important;
}

section#coming-soon .project-details {
    color: #555 !important;
    line-height: 1.7 !important;
    font-size: 1rem !important;
    display: block !important;
    text-align: center !important;
}

/* Responsive design for Coming Soon projects */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    section#coming-soon .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 1rem !important;
        max-width: 400px !important;
    }
    
    .projects-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    #coming-soon .projects-title {
        font-size: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .project-card {
        padding: 2rem 1.5rem;
    }
    
    #coming-soon .project-card {
        padding: 2rem 1.5rem !important;
    }
    
    .project-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    #coming-soon .project-icon {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 1rem !important;
    }
    
    .project-icon i {
        font-size: 1.8rem;
    }
    
    #coming-soon .project-icon i {
        font-size: 1.8rem !important;
    }
}
.kyn-villages-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kyn-villages-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.villages-hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.kyn-villages-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(54, 63, 94, 0.6) 0%, rgba(208, 164, 76, 0.3) 100%);
    z-index: 2;
}

.kyn-villages-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.kyn-villages-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    color: var(--warm-gold);
    opacity: 0;
    animation: fadeInUp 1.2s ease 0.5s forwards;
}

.kyn-villages-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 500;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInUp 1.2s ease 0.8s forwards;
}

.kyn-villages-description {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1.2s ease 1.1s forwards;
}

.kyn-villages-description p {
    font-size: 1.25rem;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.95);
}

.kyn-villages-cta {
    opacity: 0;
    animation: fadeInUp 1.2s ease 1.4s forwards;
}

.kyn-villages-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--warm-gold) 0%, #f4d03f 100%);
    color: var(--navy-blue);
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(208, 164, 76, 0.4);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.kyn-villages-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(208, 164, 76, 0.6);
    color: var(--navy-blue);
}

.kyn-villages-features {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.kyn-feature-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--navy-blue);
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: bounceIn 1s ease-out 1.8s forwards;
}

.kyn-feature-item i {
    color: var(--warm-gold);
}

.kyn-feature-item:nth-child(2) {
    animation-delay: 2.1s;
}

.kyn-feature-item:nth-child(3) {
    animation-delay: 2.4s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design for KYN Villages Section */
@media (max-width: 768px) {
    .kyn-villages-content {
        padding: 0 1rem;
    }
    
    .kyn-villages-description p {
        font-size: 1.1rem;
    }
    
    .kyn-villages-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .kyn-feature-item {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .kyn-feature-item {
        position: relative;
        display: none; /* Hide floating badges on very small screens */
    }
    
    .kyn-villages-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

body {
    font-family: 'Playfair Display', serif;
    background-color: var(--soft-white);
    color: var(--body-gray);
    line-height: 1.6;
}

/* KYN-inspired Typography */
.hero-title {
    font-size: 4.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--deep-purple);
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--deep-purple);
    text-align: center;
    margin-bottom: 2rem;
}

.elegant-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--body-gray);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}


.hero-section .hero-title,
.hero-section .elegant-text,
.kyn-hero .hero-title,
.kyn-hero .elegant-text {
    color: #ffffff;
    text-shadow: 0 2px 16px rgba(0,0,0,0.28);
}

.hero-section .elegant-text,
.kyn-hero .elegant-text {
    color: rgba(255,255,255,0.96);
}

/* Mobile Typography */
@media (max-width: 768px) {
    .hero-title { 
        font-size: 3rem; 
        margin-bottom: 2rem;
    }
    .section-title { 
        font-size: 2rem; 
    }
    .elegant-text { 
        font-size: 1.1rem; 
        padding: 0 1rem;
    }
}

/* KYN-inspired Layout */
.kyn-section {
    padding: 8rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.kyn-hero {
    padding: 12rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .kyn-section {
        padding: 4rem 0;
    }
    .kyn-hero {
        padding: 6rem 0;
        min-height: 80vh;
    }
}

/* Navigation - KYN Style */
.kyn-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #F5F5F0;
    z-index: 1000;
    padding: 1rem 0;
}

/* Extend nav below its edge to prevent subpixel rendering line */
.kyn-nav::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, #F5F5F0, rgba(245,245,240,0));
    pointer-events: none;
    z-index: 999;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}


.nav-logo a {
    display: inline-flex;
    align-items: center;
}

.nav-logo img {
    height: 95px;
    width: auto;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-logo a:hover img,
.nav-logo a:focus-visible img {
    transform: scale(1.03);
    opacity: 0.95;
}

/* Horizontal Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-item {
    color: var(--navy-blue);
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-item:hover {
    color: var(--mustard-gold);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.nav-link {
    color: var(--navy-blue);
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--mustard-gold);
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--pure-white);
    min-width: 180px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    z-index: 1001;
    margin-top: 0.5rem;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
}

.dropdown-content a {
    color: var(--navy-blue);
    padding: 1rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border-bottom: 1px solid rgba(54, 63, 94, 0.1);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: var(--soft-white);
    color: var(--mustard-gold);
}

.dropdown {
    transition: all 0.2s ease;
}

.enquire-btn {
    background: none;
    border: 1px solid var(--navy-blue);
    color: var(--navy-blue);
    padding: 1rem 2rem;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.enquire-btn:hover {
    background: var(--navy-blue);
    color: var(--pure-white);
}

/* Video Background - Refined */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-video.active {
    opacity: 0.3;
}

/* Watch Video Button - KYN Style */
.watch-video {
    position: absolute;
    left: 3rem;
    bottom: 3rem;
    background: none;
    border: none;
    color: var(--navy-blue);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.watch-video:hover {
    color: var(--mustard-gold);
}

/* Our Homes Section - KYN Grid Style */
.homes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .homes-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.home-card {
    text-align: left;
    padding: 2rem 0;
}

.home-location {
    font-size: 0.9rem;
    color: var(--mustard-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.home-name {
    font-size: 2rem;
    color: var(--deep-purple);
    margin-bottom: 1rem;
    font-weight: 400;
}

.home-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--body-gray);
    margin-bottom: 2rem;
}

.view-home-btn {
    color: var(--navy-blue);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    cursor: pointer;
}

.view-home-btn:hover {
    color: var(--mustard-gold);
}

/* Our Care Section Styling */
.care-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 5rem;
}

@media (max-width: 768px) {
    .care-types-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.care-type-card {
    background: var(--pure-white);
    padding: 2.5rem;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.care-type-title {
    font-size: 1.5rem;
    color: var(--deep-purple);
    margin-bottom: 1rem;
    font-weight: 500;
}

.care-type-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--body-gray);
}

/* Testimonial Section - Enhanced */
.testimonial-section {
    background: var(--pure-white);
    padding: 8rem 0;
}

.testimonials-by-home {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.testimonial-home-section {
    margin-bottom: 4rem;
}

.testimonial-home-title {
    font-size: 2rem;
    color: var(--deep-purple);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.testimonial-home-title:hover {
    color: var(--warm-gold);
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(216, 166, 49, 0.6);
    box-shadow: 0 4px 20px rgba(216, 166, 49, 0.3);
    background: rgba(216, 166, 49, 0.1);
}

.testimonial-home-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--warm-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.testimonial-home-title:hover::after {
    width: 80%;
}

.testimonial-home-location {
    text-align: center;
    color: var(--mustard-gold);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.testimonial-card {
    background: var(--soft-white);
    padding: 2rem;
    border-left: 4px solid var(--mustard-gold);
    position: relative;
}

.testimonial-rating {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.star {
    color: var(--mustard-gold);
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--body-gray);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    text-align: right;
    color: var(--navy-blue);
    font-size: 0.95rem;
    font-weight: 500;
}

.testimonial-relation {
    text-align: right;
    color: var(--mustard-gold);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.testimonial-date {
    text-align: right;
    color: rgba(89, 89, 89, 0.7);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Professional Endorsements Styling */
.professional-endorsements-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(89, 89, 89, 0.1);
}

.professional-endorsements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.professional-endorsement-card {
    background: var(--soft-white);
    border: 1px solid rgba(89, 89, 89, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.professional-endorsement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.professional-endorsement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--forest-green), var(--warm-gold));
    border-radius: 12px 12px 0 0;
}

.professional-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(89, 89, 89, 0.1);
}

.professional-header h4 {
    color: var(--forest-green);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.5px;
}

.professional-title {
    color: rgba(89, 89, 89, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    font-style: italic;
}

.professional-testimonial {
    color: var(--charcoal-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    font-style: italic;
    position: relative;
}

.professional-testimonial::before {
    content: '"';
    font-size: 3rem;
    color: var(--warm-gold);
    position: absolute;
    top: -1rem;
    left: -1rem;
    font-family: Georgia, serif;
}

.professional-footer {
    border-top: 1px solid rgba(89, 89, 89, 0.1);
    padding-top: 1rem;
}

.professional-author {
    font-weight: 600;
    color: var(--forest-green);
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
}

.professional-facility {
    color: var(--warm-gold);
    font-weight: 500;
    margin: 0 0 0.3rem 0;
    font-size: 0.9rem;
}

.professional-date {
    color: rgba(89, 89, 89, 0.7);
    font-size: 0.8rem;
    margin: 0;
}

@media (max-width: 768px) {
    .professional-endorsements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .professional-endorsement-card {
        padding: 2rem;
    }

    .professional-header h4 {
        font-size: 1.1rem;
    }

    .professional-testimonial {
        font-size: 0.95rem;
    }
}

/* Leave a Review Form Styling */
.leave-review-section {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--soft-white), rgba(89, 89, 89, 0.02));
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.review-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.review-form {
    background: var(--pure-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(89, 89, 89, 0.1);
}

.review-form h3 {
    color: var(--forest-green);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    text-align: center;
    letter-spacing: 0.5px;
}

.review-form-group {
    margin-bottom: 1.5rem;
}

.review-form-group.half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.review-form label {
    display: block;
    color: var(--forest-green);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.review-form input,
.review-form select,
.review-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(89, 89, 89, 0.2);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--soft-white);
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--warm-gold);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
    background: var(--pure-white);
}

.review-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.rating-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.rating-star {
    font-size: 1.8rem;
    color: rgba(89, 89, 89, 0.3);
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.rating-star:hover,
.rating-star.active {
    color: var(--warm-gold);
}

.review-submit-btn {
    background: linear-gradient(135deg, var(--forest-green), #2d5a2d);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.review-submit-btn:hover {
    background: linear-gradient(135deg, #2d5a2d, var(--forest-green));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(89, 89, 89, 0.3);
}

.review-success-message {
    display: none;
    background: linear-gradient(135deg, var(--forest-green), #2d5a2d);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .leave-review-section {
        margin-top: 5rem;
        padding: 2rem 1rem;
    }

    .review-form {
        padding: 2rem;
    }

    .review-form h3 {
        font-size: 1.5rem;
    }

    .review-form-group.half {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .rating-star {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-home-title {
        font-size: 1.6rem;
        padding: 0.4rem 0.8rem;
    }

    .testimonial-home-title:hover {
        transform: translateY(-1px);
        text-shadow: 0 0 15px rgba(216, 166, 49, 0.5);
    }
}

/* Facebook Icon Styling */
.facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1877f2;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(24, 119, 242, 0.3);
}

.facebook-link:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
    color: white;
    text-decoration: none;
}

.facebook-link i {
    font-size: 1.2rem;
}

.social-links-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(89, 89, 89, 0.02);
    border-radius: 8px;
}

.social-links-container h4 {
    color: var(--forest-green);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .facebook-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* WhatsApp Integration Styling */
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25d366;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-link:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    color: white;
    text-decoration: none;
}

.whatsapp-link i {
    font-size: 1.2rem;
}

.social-links-container .whatsapp-link {
    margin-top: 0.5rem;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.floating-whatsapp:hover {
    background: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    color: white;
    text-decoration: none;
}

.floating-whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    animation: whatsapp-pulse 2s infinite;
    z-index: -1;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* WhatsApp tooltip */
.floating-whatsapp .tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.floating-whatsapp .tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #333;
}

.floating-whatsapp:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .whatsapp-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .floating-whatsapp {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .floating-whatsapp .tooltip {
        display: none;
    }
}

/* Section Slideshow Styles (smooth crossfade + gentle motion) */
.section-slideshow-container {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.section-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Use stacked slides so opacity transitions can run (no display:none) */
.section-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 700ms ease, transform 1200ms ease;
    pointer-events: none;
}

.section-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Subtle "ken burns" on the active image */
@keyframes eoKenBurns {
    0%   { transform: scale(1.06); }
    100% { transform: scale(1.00); }
}

.section-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    will-change: transform;
}

.section-slide.active img {
    animation: eoKenBurns 8s ease-out both;
}

.slideshow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(89, 89, 89, 0.3), rgba(89, 89, 89, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: white;
    z-index: 2;
}

.slideshow-overlay h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slideshow-overlay p {
    font-size: 1rem;
    margin: 0;
    max-width: 80%;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.slideshow-dots {
    text-align: center;
    margin-top: 1rem;
}

.slideshow-dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(89, 89, 89, 0.3);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slideshow-dot.active {
    background-color: var(--warm-gold);
}

.slideshow-dot:hover {
    background-color: var(--forest-green);
}

@media (max-width: 768px) {
    .section-slideshow-container {
        height: 450px;
        margin: 1.5rem 0;
    }

    .slideshow-overlay h3 {
        font-size: 1.4rem;
    }

    .slideshow-overlay p {
        font-size: 0.9rem;
        max-width: 90%;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .section-slide,
    .slide,
    .room-slide {
        transition: none !important;
    }
    .section-slide.active img,
    .slide.active img {
        animation: none !important;
    }
}

/* Opening Sequence */
.initial-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--soft-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10500;
    opacity: 1;
    transition: opacity 1s ease-out;
    cursor: pointer;
}

.initial-animation-container.fade-out {
    opacity: 0;
    pointer-events: none;
}

.initial-logo {
    opacity: 0;
    transform: translateY(20px);
    animation: logoFadeIn 1.5s ease-out 1.2s forwards;
}

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

.initial-title {
    color: var(--deep-purple);
    font-size: 3.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: titleFadeIn 1s ease-out 0.3s forwards;
}

@keyframes titleFadeIn {
    to {
        opacity: 1;
    }
}

.initial-subtitle {
    color: var(--navy-blue);
    font-size: 1.3rem;
    max-width: 80%;
    text-align: center;
    opacity: 0;
    animation: subtitleFadeIn 1s ease-out 0.8s forwards;
}

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

/* Audio Overlay */
#audioOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 11000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.audio-overlay-content {
    background-color: var(--pure-white);
    padding: 3rem;
    border-radius: 0;
    text-align: center;
    max-width: 500px;
    margin: 2rem;
}

.audio-overlay-content h3 {
    color: var(--deep-purple);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 400;
}

.audio-overlay-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Page System */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Care Home Detail Pages */
.care-home-detail {
    padding: 0 0 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Restore top padding only for the content below the hero */
.care-home-detail > div[style*="padding"] {
    padding-top: 2.5rem !important;
}

.care-home-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 1rem 0;
    justify-content: space-between;
}

.care-home-title {
    font-size: 3rem;
    color: var(--deep-purple);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.care-home-location {
    font-size: 1.2rem;
    color: var(--mustard-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.care-home-text {
    flex: 1;
    text-align: left;
    max-width: 350px;
}

.care-home-image-container {
    flex-shrink: 0;
}

.back-btn {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--navy-blue);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    cursor: pointer;
}

.back-btn:hover {
    color: var(--mustard-gold);
}

.back-btn i {
    margin-right: 0.5rem;
}

.detail-section {
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.detail-section h3 {
    font-size: 1.8rem;
    color: var(--deep-purple);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.detail-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.detail-section ul {
    list-style: none;
    padding: 0;
}

.detail-section li {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.detail-section li::before {
    content: "•";
    color: var(--mustard-gold);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.manager-profile {
    background: var(--pure-white);
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    border-radius: 12px;
}

.manager-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 4px solid var(--warm-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.manager-photo-name {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--deep-purple);
    text-align: center;
    letter-spacing: 0.05em;
}

.manager-content {
    flex: 1;
}

.manager-name {
    font-size: 1.5rem;
    color: var(--deep-purple);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.manager-title {
    font-size: 1rem;
    color: var(--mustard-gold);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-info {
    background: var(--navy-blue);
    color: var(--pure-white);
    padding: 2.5rem;
    margin: 2rem 0;
}

.contact-info h3 {
    color: var(--decorative-gold);
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info a {
    color: var(--decorative-gold);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Mobile Navigation Styles */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-item, .nav-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .kyn-nav {
        background: #F5F5F0;
        padding: 0.7rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo img {
        height: 75px;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-item, .nav-link {
        font-size: 0.8rem;
    }
    
    .dropdown-content {
        min-width: 150px;
    }
    
    .dropdown-content a {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .enquire-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }

    .watch-video {
        left: 1.5rem;
        bottom: 1.5rem;
    }

    .care-home-title {
        font-size: 2.5rem;
    }

    .manager-profile,
    .contact-info,
    .care-type-card {
        padding: 2rem;
    }

    .manager-profile {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .manager-photo-section {
        align-self: center;
        margin-bottom: 1rem;
    }

    .manager-image {
        width: 100px;
        height: 100px;
        align-self: center;
    }

    .detail-section {
        padding: 0 1rem;
    }

    /* Village Presentation Responsive */
    .village-presentation {
        flex-direction: column !important;
        height: auto !important;
    }
    
    .village-images {
        width: 100% !important;
        height: 50vh !important;
    }
    
    .village-content {
        width: 100% !important;
        padding: 2rem 1.5rem !important;
    }
    
    .content-slide h2 {
        font-size: 2rem !important;
    }
    
    .content-slide h3 {
        font-size: 1.4rem !important;
    }
    
    .content-slide p {
        font-size: 1rem !important;
    }

    /* Interactive Gallery Responsive */
    .village-gallery {
        height: 70vh !important;
    }
    
    .text-overlay h1 {
        font-size: 2.5rem !important;
    }
    
    .text-overlay h2 {
        font-size: 1.5rem !important;
    }
    
    .text-overlay p {
        font-size: 1rem !important;
        max-width: 90% !important;
    }
    
    .feature-badge {
        font-size: 0.8rem !important;
        padding: 0.6rem 1rem !important;
        position: relative !important;
        margin: 0.5rem !important;
    }
}

/* Gallery Animations */
@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 30px rgba(208,164,76,0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-item, .nav-link {
        font-size: 0.75rem;
    }
    
    .enquire-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Slideshow Styles (smooth crossfade + swipe friendly) */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto 2rem;
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 496px;
    overflow: hidden;
    background: #1a1a1a;
    touch-action: pan-y; /* allow vertical scroll, enable horizontal swipe detection */
}

/* Stacked slides so opacity transitions can run */
.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 700ms ease, transform 1200ms ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    will-change: transform;
}

.slide.active img {
    animation: eoKenBurns 8s ease-out both;
}

.slideshow-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

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

.slide-dot.active {
    background: var(--mustard-gold);
}

.slide-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slideshow-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(54, 63, 94, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.slideshow-arrows:hover {
    background: var(--navy-blue);
}

.prev-arrow { left: 1rem; }
.next-arrow { right: 1rem; }


.care-home-video-btn {
    display: inline-block;
    background: var(--navy-blue);
    color: var(--pure-white);
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    margin: 1rem 0 2rem;
}

.care-home-video-btn:hover {
    background: var(--mustard-gold);
    color: var(--navy-blue);
}

.care-home-video-btn i {
    margin-right: 0.5rem;
}

/* Specific Oak View button styling */
#oak-view-watch-button {
    background: var(--mustard-gold) !important;
    color: var(--navy-blue) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#oak-view-watch-button:hover {
    background: var(--navy-blue) !important;
    color: var(--mustard-gold) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Video Modal Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Modal animations */
#video-modal {
    animation: fadeIn 0.3s ease-out;
}

/* Video player styling */
#oak-view-video {
    border-radius: 0;
    outline: none;
}

#oak-view-video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive modal adjustments */
@media (max-width: 768px) {
    #video-modal .modal-container {
        width: 95vw !important;
        margin: 10px !important;
    }
    
    #video-modal button {
        top: -35px !important;
        width: 35px !important;
        height: 35px !important;
        font-size: 20px !important;
    }
    
    /* Testimonial navigation buttons responsive */
    .testimonials-nav-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .testimonials-nav-buttons a {
        width: 100% !important;
        text-align: center !important;
    }
}
}

@media (max-width: 768px) {
    .slideshow-wrapper {
        height: 331px;
    }

    .slideshow-arrows {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .prev-arrow {
        left: 0.5rem;
    }

    .next-arrow {
        right: 0.5rem;
    }
}

/* Google Maps Styles */
.maps-section {
    margin: 3rem 0;
    padding: 0 2rem;
}

.maps-container {
    background: var(--pure-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.maps-title {
    font-size: 1.8rem;
    color: var(--deep-purple);
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
}

.maps-widget {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 0;
}

.maps-info {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 1rem;
    color: var(--body-gray);
}

@media (max-width: 768px) {
    .maps-widget {
        height: 300px;
    }

    .maps-container {
        padding: 1.5rem;
    }

    .maps-section {
        padding: 0 1rem;
    }
}

/* Room Type Slideshow Styles (smooth crossfade) */
.room-slideshow {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #1a1a1a;
    touch-action: pan-y;
}

.room-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 650ms ease, transform 1100ms ease;
    pointer-events: none;
}

.room-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.room-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    will-change: transform;
}

.room-slide.active img {
    animation: eoKenBurns 7s ease-out both;
}

.room-slideshow-nav {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.3rem;
    z-index: 5;
}

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

.room-slide-dot.active {
    background: var(--mustard-gold);
}

.room-slide-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .room-slideshow { height: 150px; }
}

/* Careers Form Styles */
.careers-form-container {
    background: var(--pure-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    margin: 3rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.careers-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    font-size: 1rem;
    color: var(--deep-purple);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 1px solid rgba(54, 63, 94, 0.2);
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
    transition: border-color 0.3s ease;
    background: var(--soft-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--mustard-gold);
}

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

.form-group.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.form-group.checkbox input[type=checkbox] {
    width: auto;
    margin: 0;
}

.form-group.checkbox label {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.submit-btn {
    background: var(--navy-blue);
    color: var(--pure-white);
    padding: 1.25rem 2.5rem;
    border: none;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
    margin-top: 1rem;
    justify-self: center;
}

.submit-btn:hover {
    background: var(--mustard-gold);
    color: var(--navy-blue);
}

.careers-perks {
    background: var(--navy-blue);
    color: var(--pure-white);
    padding: 3rem;
    margin: 3rem 0;
}

.careers-perks h3 {
    color: var(--decorative-gold);
    margin-bottom: 1.5rem;
    text-align: center;
}

.perks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.perk-icon {
    color: var(--decorative-gold);
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .careers-form-container {
        padding: 2rem;
        margin: 2rem 1rem;
    }

    .form-group.half {
        grid-template-columns: 1fr;
    }

    .perks-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* YouTube Video Modal Styles */
.youtube-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.youtube-modal[style*="flex"],
.youtube-modal.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.youtube-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.youtube-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.youtube-modal-close:hover {
    color: var(--mustard-gold);
}

.youtube-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

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

@media (max-width: 768px) {
    .youtube-modal-content {
        max-width: 95%;
        margin: 20px;
    }
    
    .youtube-modal-close {
        top: -35px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .youtube-modal-content {
        max-width: 98%;
        margin: 10px;
    }
}

/* Full Screen Image Viewer Styles */
.fullscreen-image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.fullscreen-image-container {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.fullscreen-close-hint {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    pointer-events: none;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}

.fullscreen-image-overlay.active {
    display: flex;
}

/* Hover effect for slideshow images to indicate clickability */
.slide img:hover,
.room-slide img:hover {
    cursor: pointer;
}

/* Video performance optimizations */
video {
    /* Hardware acceleration for smooth playback */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    
    /* Optimize rendering */
    image-rendering: optimizeSpeed;
    image-rendering: -webkit-optimize-contrast;
    
    /* Prevent layout shifts */
    display: block;
    width: 100% !important;
    height: auto !important;
}

/* FIX: Hide the hero/slider progress bar that can look like a thin horizontal line */
.progress-container,
.progress-bar {
    display: none !important;
    height: 0 !important;
}

/* Accessibility + SEO support */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; padding: 0.9rem 1.2rem; background: #221638; color: #fff; z-index: 99999; border-radius: 999px; }

/* =========================================================
   IMMERSIVE CARE HOME HERO (Option A)
   ========================================================= */
.ch-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 78vh;
    overflow: hidden;
    background: #1a1a1a;
    border-radius: 16px;
    margin-top: 5rem;
}

.ch-slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

/* Gradient overlay lives inside ch-slides so it sits above slides/arrows
   but the overlay text/buttons sit outside ch-slides and paint on top */
.ch-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.22) 0%,
        transparent 38%,
        rgba(34,22,56,0.72) 100%
    );
    z-index: 6;
    pointer-events: none;
}

.ch-overlay {
    position: absolute;
    bottom: 2.8rem;
    left: 2rem;
    z-index: 2;
}

.ch-location {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mustard-gold);
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.ch-title {
    font-size: 3.4rem;
    font-weight: 400;
    font-family: 'Playfair Display', serif;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0,0,0,0.45);
    line-height: 1.05;
    margin: 0;
}

.ch-back {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 3;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.48rem 1.1rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    transition: background 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.ch-back:hover { background: rgba(255,255,255,0.28); color: #fff; }

.ch-enquire {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 3;
    background: var(--mustard-gold);
    color: var(--deep-purple);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ch-enquire:hover {
    background: #fff;
    color: var(--deep-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Thumbnail strip */
.ch-thumbs {
    display: flex;
    background: #111;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 3px;
    padding: 3px;
    border-radius: 0 0 16px 16px;
}

.ch-thumbs::-webkit-scrollbar { display: none; }

.ch-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 76px;
    object-fit: cover;
    object-position: center;
    opacity: 0.52;
    transition: opacity 0.25s ease;
    cursor: pointer;
    display: block;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.ch-thumb:hover { opacity: 0.82; }
.ch-thumb.ch-active { opacity: 1; border-color: var(--mustard-gold); }

@media (max-width: 900px) {
    .ch-hero { max-height: 60vh; margin-top: 4.5rem; }
    .ch-title { font-size: 2.6rem; }
}

@media (max-width: 600px) {
    .ch-hero { max-height: 55vh; margin-top: 4rem; }
    .ch-title { font-size: 1.9rem; }
    .ch-overlay { bottom: 1.5rem; left: 1.2rem; }
    .ch-back  { top: 1rem; left: 1rem; font-size: 0.72rem; padding: 0.4rem 0.85rem; }
    .ch-enquire { top: 1rem; right: 1rem; padding: 0.48rem 1rem; font-size: 0.8rem; }
}

/* ---- Dots repositioned inside the hero ---- */
.ch-hero .slideshow-nav {
    position: absolute;
    bottom: 1.4rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    gap: 0.45rem;
}

.ch-hero .slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 1.5px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ch-hero .slide-dot.active {
    background: var(--mustard-gold);
    border-color: var(--mustard-gold);
    transform: scale(1.25);
}

/* ---- Arrows repositioned for the taller hero ---- */
.ch-hero .slideshow-arrows {
    top: 50%;
    z-index: 10;
}

/* =========================================================
   MODERN CARE HOME CONTACT PANEL
   ========================================================= */
.ch-contact-panel {
    margin: 2rem 0;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    box-shadow: 0 20px 60px rgba(34,22,56,0.18);
}

.ch-contact-info {
    background: var(--deep-purple);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ch-contact-info::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(208,164,76,0.12);
    pointer-events: none;
}

.ch-contact-info::after {
    content: '';
    position: absolute;
    bottom: -40px; left: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.ch-contact-info h3 {
    color: var(--mustard-gold);
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.ch-contact-info h2 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.ch-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ch-detail-row:last-of-type { border-bottom: none; }

.ch-detail-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(208,164,76,0.18);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--mustard-gold);
    font-size: 0.85rem;
}

.ch-detail-text { flex: 1; }
.ch-detail-text span {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.2rem;
}
.ch-detail-text a, .ch-detail-text p {
    color: #fff;
    text-decoration: none;
    font-size: 0.97rem;
    line-height: 1.4;
    margin: 0;
}
.ch-detail-text a:hover { color: var(--mustard-gold); }

.ch-social-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}

.ch-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.ch-social-btn.facebook {
    background: #1877F2;
    color: #fff;
}
.ch-social-btn.facebook:hover { background: #0d65d9; transform: translateY(-2px); }

.ch-contact-form-side {
    background: #f8f9fd;
    padding: 3rem 2.5rem;
}

.ch-contact-form-side h3 {
    color: var(--deep-purple);
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
}

.ch-contact-form-side p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.ch-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.ch-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ch-form-group.full { grid-column: 1 / -1; }

.ch-form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--deep-purple);
}

.ch-form-group input,
.ch-form-group select,
.ch-form-group textarea {
    border: 1.5px solid rgba(34,22,56,0.12);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    background: #fff;
    color: var(--deep-purple);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.ch-form-group input:focus,
.ch-form-group select:focus,
.ch-form-group textarea:focus {
    outline: none;
    border-color: var(--mustard-gold);
    box-shadow: 0 0 0 3px rgba(208,164,76,0.15);
}

.ch-form-submit {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.ch-form-submit p {
    margin: 0;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.5;
    max-width: 300px;
}

.ch-submit-btn {
    background: var(--deep-purple);
    color: #fff;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.ch-submit-btn:hover {
    background: var(--mustard-gold);
    color: var(--deep-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(208,164,76,0.35);
}

@media (max-width: 900px) {
    .ch-contact-panel { grid-template-columns: 1fr; }
    .ch-form-grid { grid-template-columns: 1fr; }
    .ch-form-group.full { grid-column: 1; }
}


/* =========================================================
   CARE HOME HERO SLIDESHOW REFRESH (April 2026)
   ========================================================= */
.care-home-detail .ch-hero {
    width: min(96vw, 1460px);
    left: 50%;
    transform: translateX(-50%);
    margin-top: 4.75rem;
    aspect-ratio: 16 / 9;
    max-height: 82vh;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: #111;
    box-shadow: 0 30px 90px rgba(17, 12, 31, 0.28);
}

.care-home-detail .ch-slides {
    background: #111;
}

.care-home-detail .ch-hero .slide,
.care-home-detail .ch-hero .slide.active {
    transform: none;
}

.care-home-detail .ch-hero .slide img,
.care-home-detail .ch-hero .slide picture img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center center !important;
    padding: 0 !important;
    filter: none;
}

.care-home-detail .ch-hero .slide.active img,
.care-home-detail .ch-hero .slide.active picture img {
    animation: none !important;
}

.care-home-detail .ch-hero .ch-overlay {
    bottom: 2.25rem;
    left: 2.25rem;
}

.care-home-detail .ch-hero .ch-title {
    font-size: clamp(2.3rem, 4vw, 3.8rem);
}

.care-home-detail .ch-hero .slideshow-arrows {
    width: 58px;
    height: 58px;
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}

.care-home-detail .ch-hero .slideshow-arrows:hover {
    background: rgba(255,255,255,0.26);
}

@media (max-width: 900px) {
    .care-home-detail .ch-hero {
        width: calc(100vw - 1rem);
        margin-top: 4.25rem;
        aspect-ratio: 16 / 10;
        border-radius: 22px;
    }
}

@media (max-width: 600px) {
    .care-home-detail .ch-hero {
        width: calc(100vw - 0.5rem);
        aspect-ratio: 4 / 3;
        border-radius: 18px;
    }

    .care-home-detail .ch-hero .ch-overlay {
        left: 1.2rem;
        bottom: 1.3rem;
    }

    .care-home-detail .ch-hero .slideshow-arrows {
        width: 46px;
        height: 46px;
    }
}


/* ---- APR 2026: Nudge front exterior hero images down slightly to protect roofline ---- */
#oak-view-page .ch-slides > .slide:first-child img,
#oak-view-page .ch-slides > .slide:first-child picture img,
#willow-lodge-page .ch-slides > .slide:first-child img,
#hunters-lodge-page .ch-slides > .slide:first-child img,
#lake-view-page .ch-slides > .slide:first-child img {
    object-position: 50% calc(50% - 20px) !important;
}

@media (max-width: 900px) {
    #oak-view-page .ch-slides > .slide:first-child img,
    #oak-view-page .ch-slides > .slide:first-child picture img,
    #willow-lodge-page .ch-slides > .slide:first-child img,
    #hunters-lodge-page .ch-slides > .slide:first-child img,
    #lake-view-page .ch-slides > .slide:first-child img {
        object-position: 50% calc(50% - 14px) !important;
    }
}


/* =========================================================
   CARE HOME BROCHURE DOWNLOAD PANEL
   ========================================================= */
.ch-brochure-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.4rem;
    margin: 2rem 0 2.5rem;
    padding: 1.6rem 1.8rem;
    background: linear-gradient(135deg, #f8f4fb 0%, #ffffff 100%);
    border: 1px solid rgba(76, 42, 112, 0.14);
    border-left: 5px solid var(--mustard-gold);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(34, 22, 56, 0.08);
}

.ch-brochure-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--deep-purple);
    color: #fff;
    font-size: 1.55rem;
}

.ch-brochure-copy { min-width: 0; }

.ch-brochure-eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    color: #86610b;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ch-brochure-copy h3 {
    margin: 0 0 0.35rem;
    color: var(--deep-purple);
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.2;
}

.ch-brochure-copy p {
    margin: 0;
    color: #555;
    line-height: 1.65;
}

.ch-brochure-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.78rem 1.25rem;
    border-radius: 999px;
    background: var(--mustard-gold);
    color: var(--deep-purple);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ch-brochure-btn:hover,
.ch-brochure-btn:focus-visible {
    background: var(--deep-purple);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 22, 56, 0.2);
}

@media (max-width: 820px) {
    .ch-brochure-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 1rem;
        padding: 1.35rem;
    }

    .ch-brochure-btn {
        grid-column: 1 / -1;
        width: 100%;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .ch-brochure-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ch-brochure-icon { margin: 0 auto; }
}
