/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary: #0B4F56; /* Peacock Deep */
    --ocean-aqua: #4A9EA7; /* Ocean Aqua */
    --dusty-rose: #C4A4B0; /* Dusty Rose */
    --stem-bronze: #6B544B; /* Stem Bronze */
    --dental-white: #FFFFFF; /* Dental White */

    --accent: var(--dusty-rose); /* Remap accent to Dusty Rose */
    --bg: #A0E2E0; /* Mint Mist */
    --text: var(--stem-bronze); /* Use Stem Bronze for general body text */

    --header-height: 70px; /* Reduced desktop header height */
    --shadow: 0 2px 16px rgba(20,60,100,0.07);
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background: linear-gradient(135deg, var(--dental-white) 0%, #d0f3fc 100%);
    margin: 0;
    padding: 0;
    color: var(--stem-bronze);
    font-size: 1.08em;
}

header {
    background: var(--dental-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--header-height);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-direction: row;
    height: var(--header-height);
    padding: 0 25px;
    justify-content: flex-start;
    gap: 1.5rem;
    position: relative;
}
.hotdog-menu {
    margin-right: auto;
}
.logo {
    margin-left: auto;
}
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 30px;
}
.nav-links a {
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.0em; /* Slightly reduced font size for desktop */
    padding: 8px 16px;
    border-radius: 3px;
    transition: background 0.2s;
}
.nav-links a:hover {
    background: var(--ocean-aqua);
    color: var(--dental-white);
}

.btn {
    background: var(--dusty-rose);
    color: var(--dental-white);
    padding: 12px 28px;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 10px rgba(196,164,176,0.30);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    text-decoration: none !important;
    display: inline-block;
}
.btn:hover {
    background: #AF909C;
    transform: translateY(-3px) scale(1.04);
}

main {
    max-width: 1200px;
    margin: 1.5rem auto 0 auto;
    padding: 1rem;
}
section {
    background: var(--dental-white);
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(11,79,86,0.07);
    margin-bottom: 40px;
    padding: 30px 24px;
    text-align: left;
}

#services.card {
    background: var(--stem-bronze);
    color: var(--dental-white);
}

#services h1, #services h2, #services p {
    color: var(--dental-white);
}
h1 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    margin-top: 0.2em;
}
h2, h3, .service-card-link h3 span, .form-group label {
    color: var(--ocean-aqua);
}

/* Cards, image placement */
.card, .service-card-link {
    background: var(--dental-white);
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(11,79,86,0.10);
    margin: 18px 0;
    padding: 18px;
    transition: box-shadow 0.2s;
}
.card:hover, .review-item:hover, .service-card-link:hover {
    box-shadow: 0 2px 22px rgba(11,79,86,0.22);
}

.review-item {
    background: var(--dusty-rose);
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(11,79,86,0.10);
    margin: 18px 0;
    padding: 18px;
    transition: box-shadow 0.2s;
    display:flex; /* Ensure flex display for alignment */
    align-items:flex-start; /* Align items to the start */
    gap:18px;
    position:relative; /* For absolute positioning of logo */
}

.review-item .user-initial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--dental-white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: bold;
    box-shadow: 0 1px 6px rgba(5,151,212,0.11);
    flex-shrink: 0; /* Prevent avatar from shrinking */
}

.review-item .google-logo {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 27px;
    height: 27px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 2.5px #aaa;
    padding: 2px;
    z-index: 2;
}

.review-item p {
    margin-bottom: 0;
}

.review-item .reviewer {
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
}

/* Removed .review-item img, .service-img as it's no longer used for patient images in reviews */
.service-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 1px 6px rgba(5,151,212,0.11);
    margin-bottom: 12px;
}

/* --- FACULTY IMAGE STYLES (ANIMATED POP-UP) --- */
.faculty-img {
    border: 4px solid var(--ocean-aqua);
    /* Add transition for transform (scale) and border color */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease;
}

.faculty-img:hover, .faculty-img:active {
    transform: scale(1.1); /* Pop-up scale effect */
    border-color: #ffa502; /* Gold border on interaction */
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* --- FOOTER STYLES (Height Reduced) --- */
footer {
    background: var(--primary);
    color: var(--dental-white);
    padding: 25px 20px 15px 20px; /* Reduced padding */
    margin-top: 32px;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px; /* Reduced gap */
    padding-bottom: 15px; /* Reduced padding */
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-column {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.footer-column h3 {
    color: var(--ocean-aqua);
    margin-bottom: 10px; /* Reduced margin */
    font-size: 1.2em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 6px; /* Reduced margin */
}

.footer-links a {
    color: var(--dental-white);
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-icons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
}

/* Social Icons - Original Colors & No Animation */
.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    transition: opacity 0.2s;
}

.social-icon img {
    width: 32px;
    height: 32px;
}

.social-icon:hover {
    opacity: 0.8;
}

.copyright {
    margin-top: 15px; /* Reduced margin */
    font-size: 0.85em;
    opacity: 0.8;
}

/* --- WHY CHOOSE US SECTION STYLES --- */
#why-choose-us.card {
    background: var(--ocean-aqua);
    border-radius: 50px;
    color: var(--dental-white);
    padding: 50px 30px;
}

#why-choose-us h2 {
    color: var(--dental-white);
}

.why-choose-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.wcu-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid #e0f0f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: popIn 0.6s cubic-bezier(0.26, 1.36, 0.44, 1) forwards;
    opacity: 0; /* Start hidden for animation */
}

.wcu-card:nth-child(1) { animation-delay: 0.1s; }
.wcu-card:nth-child(2) { animation-delay: 0.2s; }
.wcu-card:nth-child(3) { animation-delay: 0.3s; }
.wcu-card:nth-child(4) { animation-delay: 0.4s; }

.wcu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(11,79,86,0.1);
    border-color: var(--ocean-aqua);
}

.wcu-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: inline-block;
}

.wcu-card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--primary);
}

.wcu-card p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
}

/* Form styling modern */
#appointment-form {
    background: #f7fafb;
    box-shadow: 0 2px 12px rgba(5,151,212,0.10);
    border-radius: 12px;
    padding: 32px 18px;
    margin-top: 30px;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: var(--ocean-aqua);
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 11px;
    border: 1.5px solid var(--stem-bronze);
    border-radius: 6px;
    transition: border 0.22s;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}
.form-group input:focus, .form-group textarea:focus {
    border: 1.5px solid var(--primary);
    outline: none;
}

#slideshow {
    margin: 0; /* Remove auto margin */
    padding: 0; /* Remove padding */
    background: transparent;
    box-shadow: none;
}
.slideshow-container {
    position: relative;
    max-width: 100%; /* Make it full width */
    margin: 0 auto;
    border-radius: 0; /* Remove border-radius for full screen look */
    box-shadow: none; /* Remove box-shadow */
    overflow: hidden;
}
.slide {
    display: none;
    width: 100%;
    height: 320px;
    /* object-fit: cover; Remove this line */
    transition: opacity 0.7s;
    border-radius: 18px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.slide.welcome-slide, .slide.appointment-slide {
    display: none; /* Ensure these are hidden by default */
}
.slide.active {
    /* For image slides, display: block works fine with object-fit. */
    /* For welcome and appointment slides, we need flexbox. */
    display: block; /* Default for image slides */
    animation: fadeInSlideshow 1s;
}

.slide.welcome-slide.active,
.slide.appointment-slide.active {
    display: flex; /* Override for custom content slides when active */
}
@keyframes fadeInSlideshow {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    color: #fff;
    background: var(--primary);
    border-radius: 50%;
    text-align: center;
    line-height: 38px;
    font-size: 2rem;
    opacity: 0.7;
    user-select: none;
    box-shadow: 0 2px 8px rgba(5,151,212,0.13);
    border: none;
    transition: background 0.2s, transform 0.1s;
}
.next { right: 20px; }
.prev { left: 20px; }
.prev:hover, .next:hover {
    background: var(--accent);
    color: #fff;
    opacity: 1;
    transform: scale(1.09);
}
.dots-container {
    margin-top: 10px;
    text-align: center;
}
.dot {
    cursor: pointer;
    height: 11px;
    width: 11px;
    margin: 0 4px;
    background: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background 0.34s;
}
.dot.active {
    background: var(--primary);
    box-shadow: 0 2px 8px var(--primary);
}
@media (max-width: 600px) {
    .slideshow-container {
        max-width: 99vw;
    }
    .slide {
        height: 180px;
        border-radius: 10px;
    }
    .prev, .next {
        font-size: 1.5rem;
        width: 30px;
        height: 30px;
        line-height: 27px;
        top: 47%;
    }
}

img.responsive-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto 18px auto;
    border-radius: 10px;
}

.fadein {
    opacity: 0;
    transform: translateY(48px);
    animation: fadeInUp 1s cubic-bezier(.21,1.02,.29,.99) forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(48px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-element {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hotdog-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 33px;
    height: 28px;
    justify-content: center;
    z-index: 200;
}
.hotdog-menu span {
    display: block;
    height: 4px;
    background: var(--ocean-aqua);
    margin: 4px 0;
    border-radius: 4px;
    transition: 0.4s;
}
.logo-img-link {
    display: flex;
    align-items: center;
    margin-left: 0;
    margin-right: 0.5rem;
    flex: 1 0 auto;
    justify-content: flex-start;
    height: var(--header-height);
}
.logo-img {
    height: 60px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    display: block;
}

.main-service-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

.service-category-link {
    width: 45%;
    max-width: 400px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.service-category-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(11,79,86,0.15);
}

.learn-more-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 1em;
    color: var(--ocean-aqua);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-category-link:hover .learn-more-btn {
    transform: translateX(5px);
    color: var(--primary);
}

.service-category-img {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

.sub-sections {
    margin-top: 30px;
}

/* System / desktop view: arrange sub-sections images/cards 3 per row */
@media (min-width: 1000px) {
    /* Make the sub-sections container full-bleed and give it a background */
    .sub-sections {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        background: #eef7f8;
        padding: 36px 28px;
        box-sizing: border-box;
    }

    /* Grid inside the full-bleed area */
    .sub-sections {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 28px 36px; /* column gap then row gap */
        align-items: start;
    }

    .sub-section-item {
        margin-bottom: 0; /* grid gap handles spacing */
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 18px;
        background: transparent; /* keep item bg transparent so container shows */
        border-left: none; /* remove left border used previously for list look */
        box-shadow: none;
    }

    /* Make sure images inside each card stay constrained and centered */
    .sub-section-item .subtopic-img-container { display:flex; flex-direction:column; align-items:center; }
    .sub-section-item .subtopic-img { max-width: 360px; }
}

.sub-section-item {
    margin-bottom: 25px;
    padding: 15px;
    border-left: 4px solid var(--ocean-aqua);
    background: #eef7f8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(11,79,86,0.05);
}

.sub-section-item h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.25em;
}

.sub-section-item p {
    font-size: 0.95em;
    color: var(--stem-bronze);
    line-height: 1.7;
    margin-bottom: 0;
}

/* --- CONSOLIDATED MOBILE STYLES --- */
@media (max-width: 800px) {
    .google-logo {
        width: 20px !important;
        height: 20px !important;
    }
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 50px;
        padding: 12px 10px;
        gap: 0.3rem;
    }
    
    .hotdog-menu {
        order: 1;
        display: flex;
        width: 38px;
        height: 38px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        margin-right: 0;
        margin-left: 0.25rem;
        z-index: 2000; 
        position: relative; 
    }
    
    .hotdog-menu span {
        display: block;
        background: var(--ocean-aqua);
        margin: 2.8px 0;
        height: 4px;
        border-radius: 8px;
        transition: 0.37s cubic-bezier(0.39, 0.575, 0.565, 1);
    }
    
    .hotdog-menu span:nth-child(1) { width: 40%; }
    .hotdog-menu span:nth-child(2) { width: 65%; }
    .hotdog-menu span:nth-child(3) { width: 40%; }
    
    .hotdog-menu.open span:nth-child(1) { 
        width: 100%;
        transform: translateY(11px) rotate(45deg); 
        background: var(--ocean-aqua);
    }
    .hotdog-menu.open span:nth-child(2) { 
        opacity: 0; 
        width: 0;
        background: var(--ocean-aqua);
    }
    .hotdog-menu.open span:nth-child(3) { 
        width: 100%;
        transform: translateY(-11px) rotate(-45deg); 
        background: var(--ocean-aqua);
    }

    .logo-img-link {
        order: 3;
        margin-left: auto;
        margin-right: 0.2rem;
        flex: 0 0 auto;
        justify-content: flex-end;
    }
    .logo-img {
        height: 72px !important;
        max-height: 72px !important;
        max-width: 110px !important;
    }
    
    .nav-links {
        background: var(--dental-white);
        box-shadow: 2px 5px 20px rgba(74,158,167,0.20);
        position: fixed;
        top: 0;
        left: 0;
        width: 60vw;
        min-width: 200px;
        max-width: 350px;
        height: 100vh;
        z-index: 350;
        flex-direction: column;
        align-items: flex-start;
        padding: 150px 0 0 0;
        gap: 1em;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
        opacity: 0.99;
    }
    .nav-links.open {
        transform: translateY(0);
    }
    .nav-links li {
        width: 100%;
        padding: 2px 18px;
        box-sizing: border-box;
    }
    .nav-links a {
        font-size: 1em;
        padding: 10px 16px;
        display: block;
        width: 100%;
        box-sizing: border-box;
        color: var(--primary);
    }
    
    .nav-backdrop {
        position: fixed;
        z-index: 200;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10,30,32,0.5);
        transition: opacity 0.23s;
        opacity: 0;
        pointer-events: none;
    }
    .nav-active .nav-backdrop {
        opacity: 1;
        pointer-events: auto;
        display: block;
    }

    main {
        padding: 3vw;
    }
    section {
        padding: 15px 7px;
    }
    body { font-size: 14px; }
    .btn {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 7px;
        font-size: 1rem;
    }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.1rem; }
    h3 { font-size: 1rem; }
    p { font-size: 0.95rem; line-height: 1.6; }
    nav, main { padding: 0.8rem; }
    
    #arrowPrev, #arrowNext, .prev, .next {
        display: none !important;
    }

    /* --- UPDATED MOBILE FOOTER LAYOUT (REDUCED HEIGHT) --- */
    .footer-container {
        flex-direction: row; /* Side-by-side layout */
        justify-content: space-between; /* Space them out */
        text-align: left;
        padding: 0 10px 10px 10px; /* Reduced padding */
    }
    
    .footer-column {
        width: 48%; /* Allow roughly half width for each */
        min-width: auto; /* Override desktop min-width */
        margin: 0;
    }

    .footer-column h3 {
        font-size: 1.1em; /* Scale down headers */
    }
    
    /* Specific alignment for the social column on the right */
    .footer-column:last-child {
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .social-icons-container {
        justify-content: flex-end; /* Align icons to the right */
        gap: 15px;
    }

    /* --- UPDATED MOBILE SERVICES LAYOUT (VERTICAL STACK - FULL WIDTH LANDSCAPE) --- */
    .main-service-categories {
        display: flex !important; /* Switch to Flex */
        flex-direction: column !important; /* Stack vertically */
        gap: 20px !important;
        margin-top: 20px;
    }
    
    .service-category-link {
        width: 90% !important; /* Full width for horizontal/landscape effect */
        max-width: none !important;
        margin-bottom: 0 !important;
        display: block; /* Default block behavior */
        height: auto;
    }
    
    .service-category-img {
        max-height: 220px; /* Taller image for landscape card */
        width: 100%;
        object-fit: cover;
    }
    
    .service-category-link h2 {
        font-size: 1.15rem !important;
        margin: 12px 0 8px 0;
    }
    
    .service-category-link p {
        font-size: 1em; /* Standard text size */
        line-height: 1.6;
    }

    .sub-section-item {
        padding: 12px;
        margin-bottom: 20px;
    }

    .sub-section-item h3 {
        font-size: 1em;
    }

    .sub-section-item p {
        font-size: 0.85em;
    }
}

@media (orientation: landscape) and (max-width: 800px) {
    .card {
        padding: 15px;
    }
    main {
        padding: 10px;
    }
    .card.fadein {
        margin: 10px auto;
    }
    #contact .card {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        padding: 15px;
    }
    #contact .card h3 {
        width: 45%;
        margin-bottom: 5px;
    }
    #contact .card p {
        width: 45%;
        margin-top: 0;
        margin-bottom: 5px;
    }
    #contact .btn {
        width: auto;
        margin: 10px auto;
    }
}

#leave-review textarea {
    width: 86%;
    padding:12px;
    margin:12px 0 16px 0;
    border-radius:8px;
    border:1.3px solid #d2e3ee;
    font-size:1em;
    box-sizing:border-box;
}
#leave-review .btn {
    width:160px;
}

.star-rating {
  font-size: 2.2rem;
  display: inline-block;
  direction: ltr;
  cursor: pointer;
  color: #bbb;
  letter-spacing: 2px;
}
.star-rating .star {
  display: inline-block;
  transition: color 0.19s, transform 0.1s;
  user-select: none;
  padding: 0 4px;
  color: var(--stem-bronze);
}
.star-rating .star.selected,
.star-rating .star.hovered {
  color: gold;
  transform: scale(1.18);
}
#reviewForm input[type="text"] {
  font-size: 1.1em;
  margin-top: 2px;
}
#reviewInput {
  font-size: 1.05em;
}
#reviewForm button[disabled] {
  opacity: 0.6;
  background: #ccc;
  pointer-events: none;
}

.user-initial-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2em;
    font-weight: 700;
    color: var(--dental-white);
    background: var(--primary);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Floating Action Buttons */
.floating-icon {
    position: fixed;
    z-index: 1000;
    transition: transform 0.2s ease-in-out;
    animation: vibrate 1.5s infinite ease-in-out;
    text-decoration: none !important; /* Remove underline from links */
}

.floating-icon:hover {
    text-decoration: none !important;
}

.floating-phone {
    background-color: var(--ocean-aqua);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    right: 30px;
    bottom: 200px; /* Dial icon at the bottom, slightly higher */
}

.floating-whatsapp {
    width: 60px;
    height: 60px;
    display: flex;
    right: 30px;
    bottom: 100px; /* WhatsApp icon above dial icon, with a gap */
}

.floating-whatsapp img {
    width: 100%;
    height: 100%;
}

/* Keyframe Animations */
@keyframes vibrate {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

/* Our Founder's Philosophy Section Styling */
#founders-philosophy .philosophy-container {
    max-width: 800px;
    margin: 20px auto;
}

@keyframes facultyPopIn {
    0% { opacity: 0; transform: scale(0.8) translateY(20px); }
    60% { opacity: 1; transform: scale(1.05) translateY(-5px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.faculty-img.animated {
    animation: facultyPopIn 0.8s ease-out forwards;
}

#founders-philosophy .philosophy-point {
    position: relative;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 5px solid var(--ocean-aqua);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-style: italic;
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--stem-bronze);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#founders-philosophy .philosophy-point.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#founders-philosophy .philosophy-point:last-child {
    margin-bottom: 0;
}

#founders-philosophy h2 {
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.1s;
}

@media (max-width: 800px) {
    #founders-philosophy .philosophy-point {
        padding: 12px 15px;
        margin-bottom: 10px;
        border-left: 3px solid var(--ocean-aqua);
        font-size: 1em;
    }
    #founders-philosophy h2 {
        font-size: 1.3em;
    }
}

.kaumara-belief-section {
    margin-top: 40px;
}

.belief-point {
    position: relative;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-left: 5px solid var(--ocean-aqua);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-style: italic;
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--stem-bronze);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.belief-point.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 800px) {
    .belief-point {
        padding: 12px 15px;
        margin-bottom: 20px;
        border-left: 3px solid var(--ocean-aqua);
        font-size: 0.95em;
    }
}

#smile-gallery .smile-gallery-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 250px;
    margin: 40px auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#smile-gallery .gallery-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.5s ease, opacity 0.5s ease, z-index 0.5s;
}

#smile-gallery .gallery-img.center {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 5;
}

#smile-gallery .gallery-img.left {
    transform: translateX(-80%) scale(1);
    opacity: 0.6;
    z-index: 4;
}

#smile-gallery .gallery-img.right {
    transform: translateX(80%) scale(1);
    opacity: 0.6;
    z-index: 4;
}

#smile-gallery .gallery-img.hidden {
    opacity: 0;
    transform: scale(1);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 600px) {
    #smile-gallery .smile-gallery-container {
        height: 180px;
        margin: 20px auto;
    }
    #smile-gallery .gallery-img {
        width: 100%;
        height: 100%;
    }
    #smile-gallery .gallery-img.left {
        transform: translateX(-70%) scale(1);
    }
    #smile-gallery .gallery-img.right {
        transform: translateX(70%) scale(1);
    }
}

.star-rating .star {
    color: var(--stem-bronze);
}
.star-rating .star.selected,
.star-rating .star.hovered {
    color: gold;
    transform: scale(1.18);
}

.gallery-prev, .gallery-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    color: var(--dental-white);
    background: var(--primary);
    border-radius: 50%;
    text-align: center;
    line-height: 38px;
    font-size: 2rem;
    opacity: 0.7;
    user-select: none;
    box-shadow: 0 2px 8px rgba(5,151,212,0.13);
    border: none;
    transition: background 0.2s, transform 0.1s;
    z-index: 10;
}

.gallery-next { right: 10px; }
.gallery-prev { left: 10px; }

.gallery-prev:hover, .gallery-next:hover {
    background: var(--ocean-aqua);
    color: var(--dental-white);
    opacity: 1;
    transform: scale(1.09);
}

@media (max-width: 800px) {
    .gallery-prev, .gallery-next {
        display: none;
    }
}

#faq-section {
    padding: 30px 24px;
    max-width: 900px;
    margin: 40px auto;
}

.faq-item {
    margin-bottom: 25px;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.faq-question-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0;
}

.faq-question {
    color: var(--primary);
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.4;
    flex-grow: 1;
}

.faq-toggle-icon {
    font-size: 1.8em;
    color: var(--ocean-aqua);
    font-weight: bold;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.faq-answer {
    color: var(--stem-bronze);
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding-top: 0;
}

.faq-answer.active {
    max-height: 200px;
    padding-top: 15px;
}

.faq-toggle-icon.active {
    transform: rotate(45deg);
}

.faq-footer-note {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.faq-footer-note p {
    margin-bottom: 10px;
}

@media (max-width: 800px) {
    #faq-section {
        padding: 20px 15px;
        margin: 20px auto;
    }

    .faq-item {
        padding: 15px;
        margin-bottom: 20px;
    }

    .faq-question {
        font-size: 1.1em;
    }

    .faq-answer {
        font-size: 0.95em;
    }

    .faq-footer-note {
        margin-top: 30px;
        padding-top: 15px;
    }
}

#first-visit-guide {
    background:#eef8fd;
    margin-bottom: 28px;
    padding: 30px;
}

#first-visit-guide h2 {
    text-align:center;
    color: var(--primary);
    margin-bottom: 30px;
}

#first-visit-guide p {
    max-width:800px;
    margin:0 auto 20px auto;
    text-align:center;
    font-size:1.1em;
    color:#555;
}

.guide-section {
    max-width:600px;
    margin:0 auto 30px auto;
}

.guide-section h3 {
    color: var(--ocean-aqua);
    margin-bottom: 10px;
}

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

.guide-section li {
    margin-bottom:8px;
    color:var(--stem-bronze);
}

@media (max-width: 800px) {
    #first-visit-guide {
        padding: 20px;
        margin-bottom: 20px;
    }

    #first-visit-guide h2 {
        font-size: 1.4em;
        margin-bottom: 20px;
    }

    #first-visit-guide p {
        font-size: 1em;
        margin-bottom: 15px;
    }

    .guide-section {
        margin-bottom: 20px;
    }

    .guide-section h3 {
        font-size: 1.1em;
    }

    .guide-section li {
        font-size: 0.95em;
    }
}

#our-promise {
    background: #ffe5f2; /* Lighter pink for Our Promise section */
    color: var(--dental-white);
    text-align: center;
    padding: 40px 20px;
    margin-top: 28px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#our-promise h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

#our-promise p {
    font-size: 1.2em;
    max-width: 600px; /* Set max-width for better readability */
    margin: 0 auto; /* Centering the text */
    line-height: 1.6;
    color: var(--dental-white);
    white-space: normal; /* Allow text to wrap naturally */
    overflow: visible; /* Ensure all text is visible */
    text-overflow: unset; /* Remove ellipsis */
}

@media (max-width: 800px) {
    #our-promise {
        padding: 30px 15px;
        margin-top: 20px;
    }

    #our-promise h2 {
        font-size: 1.4em;
        margin-bottom: 15px;
    }

    #our-promise p {
        font-size: 1em;
        margin-bottom: 10px;
        white-space: normal; /* Allow text to wrap on smaller screens */
        text-overflow: unset; /* Remove ellipsis on smaller screens */
    }
}

/* Contact Page Specific Styles */
.contact-page {
    background: #c0e1f1; /* Light blue-green background */
}

.contact-page #our-promise {
    background: #f8bbea; /* Very light pink */
    color: var(--stem-bronze); /* Darker text for readability */
}

.contact-page #our-promise h2 {
    color: var(--primary);
}

.contact-page #our-promise p {
    color: var(--stem-bronze);
}

.contact-page #contact h3 {
    color: var(--ocean-aqua);
}

.contact-page #contact h3 span {
    color: var(--ocean-aqua);
    font-size: 1.2em;
    margin-right: 10px;
}
@media (max-width: 800px) {
    body { font-size: 13px; }
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.05rem; }
    h3 { font-size: 0.95rem; }
    p { font-size: 0.9rem; }
    .btn { font-size: 0.95rem; }
    .logo-img {
        height: 64px !important;
        max-height: 64px !important;
        max-width: 100px !important;
    }
}

@keyframes ringing {
  0% { transform: rotate(-10deg) scale(1.02); }
  15% { transform: rotate(14deg) scale(1.18); }
  30% { transform: rotate(-10deg) scale(1.13); }
  45% { transform: rotate(12deg) scale(1.14); }
  60% { transform: rotate(-8deg) scale(1.03); }
  75% { transform: rotate(10deg) scale(1.12); }
  90% { transform: rotate(-7deg); }
  100% { transform: rotate(0) scale(1.02); }
}
.floating-phone.ringing, .floating-whatsapp.ringing {
  animation: ringing 5.1s both;
}
/* Standardize slide and image ratio */
.slide, .slide img {
  width: 100%!important;
  height: 320px!important;
  object-fit: cover!important;
  border-radius:18px;
}
body { font-size: 1.08em; }
@media (max-width: 800px) {
    .nav-links a {
        font-size: 0.95em !important;
    }
}

/* Utility classes for colorful text and emoji animations */
.emoji-bounce {
    display: inline-block;
    transform-origin: center bottom;
    animation: emojiBounce 2s infinite ease-in-out;
    margin-left: 6px;
}
@keyframes emojiBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px) rotate(-6deg); }
}

.text-accent { color: var(--ocean-aqua); }
.text-strong { color: var(--primary); font-weight: 700; }
.text-muted { color: #6b6b6b; }
.pop-in { animation: popIn 0.45s ease forwards; opacity: 0; }
@keyframes popIn { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Slight color highlights used for headings and CTAs */
.highlight-pill { background: linear-gradient(90deg, rgba(74,158,167,0.12), rgba(196,164,176,0.08)); padding: 4px 10px; border-radius: 18px; }


@media (max-width: 768px) {
    .slide.appointment-slide .btn {
        font-size: 0.8em !important; /* Smaller font size for mobile, as per image */
        padding: 7px 15px !important; /* Adjusted padding for mobile, as per image */
        margin: 0 auto !important; /* Center the button */
        border-radius: 10px !important;
    }
}

/* Subtopic Image and Description Interaction */
.subtopic-img-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
}


.subtopic-img {
    display: block;
    width: 100%;
    /* Enforce a landscape aspect ratio so images render wide */
    aspect-ratio: 16 / 9;
    height: auto; /* let aspect-ratio control height */
    object-fit: contain; /* show the full image without cropping */
    background: #f6fbfc; /* subtle background when image doesn't fully fill */
    border-radius: 8px;
    margin-bottom: 10px;
    transform-origin: center center;
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transition: transform 0.42s cubic-bezier(.21,1.02,.29,.99), opacity 0.32s ease, box-shadow 0.28s ease;
}

/* Reduce displayed image sizes on larger screens while keeping landscape ratio */
.subtopic-img {
    max-width: 520px; /* cap width so images appear smaller */
    margin-left: auto;
    margin-right: auto;
}

/* Entrance animation state applied when observed */
.subtopic-img.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Hover and active/touch styles */
.subtopic-img:hover, .subtopic-img:active {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Gentle floating micro animation for non-interacted images (subtle life) */
.subtopic-img.floaty {
    animation: subtleFloat 6s ease-in-out infinite;
}

@keyframes subtleFloat {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.002); }
    100% { transform: translateY(0) scale(1); }
}


/* Legacy overlay description (hidden) - we now use a popup below the image */
.subtopic-description { display: none; }

/* Popup description displayed below each subtopic image */
.subtopic-desc-popup {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.36s ease, opacity 0.28s ease, transform 0.28s ease;
    background: #fff;
    color: var(--stem-bronze);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(11,79,86,0.08);
    padding: 0 14px;
    margin-top: 8px;
}

.subtopic-desc-popup p { margin: 12px 0; line-height:1.6; }

.subtopic-img-container.popup-visible .subtopic-desc-popup {
    max-height: 420px; /* allow room for description */
    opacity: 1;
    transform: translateY(0);
    padding: 12px 14px;
}

/* Image animation when popup is opened */
.subtopic-img-container.popup-visible .subtopic-img {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* For small screens keep images slightly taller for landscape feel */
@media (max-width: 600px) {
    .subtopic-img { height: 160px; }
}

/* On small screens allow images to fill available width */
@media (max-width: 480px) {
    .subtopic-img { max-width: 100%; height: auto; aspect-ratio: 16/9; }
}

/* Mobile: center faculty image and stack profile info */
@media (max-width: 800px) {
    #our-faculty .profile-media {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
    /* Make the image container full width and center within */
    #our-faculty .profile-media > div:first-child {
        flex: 0 0 auto;
        width: 82%;
        max-width: 320px;
        margin: 0 auto;
    }
    #our-faculty .profile-media img {
        display: block;
        margin: 0 auto;
        width: 100%;
        height: auto;
    }
}

.contact-location-map-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin: 18px auto 28px auto;
    max-width: 1000px; /* Adjust as needed */
    padding: 20px;
}

.contact-location-info {
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
    background:#eef8fd;
    padding: 20px;
    border-radius: 10px;
}

.contact-map-iframe {
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
    border-radius: 10px;
    overflow: hidden; /* Ensures iframe corners are rounded */
}

.contact-map-iframe iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

@media (max-width: 768px) {
    .contact-location-map-container {
        flex-direction: column; /* Stack vertically on smaller screens */
        padding: 10px;
    }
    .contact-location-info, .contact-map-iframe {
        min-width: unset;
        width: 100%;
    }
}