/* ========================================
   Swasthya Yoga Kendra - White & Ocean Blue Theme
   ======================================== */

/* ===== ROOT & BASE ===== */
:root {
    --primary-color: #0077b6;
    --primary-dark: #023e8a;
    --secondary-color: #03045e;
    --accent-color: #48cae4;
    --accent-dark: #0096c7;
    --text-dark: #1a1a2e;
    --text-light: #444;
    --bg-light: #f0f8ff;
    --bg-gradient-light: linear-gradient(135deg, #e0f4ff 0%, #caf0f8 100%);
    --shadow-sm: 0 4px 12px rgba(0, 119, 182, 0.1);
    --shadow-md: 0 8px 25px rgba(0, 119, 182, 0.15);
    --shadow-lg: 0 8px 25px rgba(0, 119, 182, 0.2);
    scroll-padding-top: 60px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 60px;
    background: #ffffff;
    color: var(--text-dark);
    font-family: 'Lora', serif;
    margin: 0;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
    margin-bottom: 20px;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ===== NAVBAR ===== */
.navbar {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.navbar-brand {
    color: #ffffff;
}

.navbar-brand img {
    border-radius: 50%;
}

.navbar-brand small {
    font-size: 0.8rem;
}

.nav-link {
    color: #ffffff !important;
    font-family: 'Roboto', sans-serif;
    transition: color 0.3s ease-in-out;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 40px 0;
    text-align: center;
    font-family: 'Merriweather', serif;
    background: var(--bg-gradient-light);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
}

.hero h1 {
    color: var(--primary-dark);
    text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.6);
    animation: fadeInDown 1s ease-out;
    margin-bottom: 20px;
}

.hero h2 {
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.hero .container {
    animation: fadeIn 2.5s ease-in-out;
    position: relative;
    z-index: 1;
}

.hero-intro {
    position: relative;
    z-index: 10;
    padding: 20px 0;
}

.hero-intro p {
    font-size: 1.3rem;
    color: var(--text-dark);
    text-shadow: none;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    background: transparent;
    padding: 40px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Arrow buttons */
.hero-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 119, 182, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--primary-dark);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-carousel-arrow:hover {
    background: rgba(0, 119, 182, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel-arrow--left  { left: 12px; }
.hero-carousel-arrow--right { right: 12px; }

.hero-carousel-track {
    display: flex;
    will-change: transform;
}


.hero-carousel-track img {
    max-height: 500px;
    margin: 0 15px;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero .btn-secondary {
    margin: 2rem 0;
}

/* ===== ANIMATIONS ===== */
/* scrollHero driven by JS */

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

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes ripple-animation {
    to { transform: scale(4); opacity: 0; }
}

/* ===== THERAPY SECTION ===== */
#therapy {
    background: var(--bg-gradient-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
}

#therapy .container {
    position: relative;
    z-index: 1;
}

#therapy h2 {
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 2.5rem;
}

#therapy p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-family: 'Lora', serif;
    color: var(--text-dark);
}

#therapy strong {
    color: var(--primary-color);
    font-weight: 600;
}

#therapy ul {
    list-style: none;
    padding-left: 0;
    font-size: 1rem;
}

#therapy ul li {
    color: var(--text-light);
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}

#therapy ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== ABOUT SECTION ===== */
#about {
    background-color: #ffffff;
    padding: 80px 0;
}

#about .img-fluid {
    max-width: 80%;
    height: auto;
}

#about p {
    text-align: left;
    margin-bottom: 1rem;
}

#about strong {
    color: var(--primary-color);
    font-weight: 600;
}

#about .highlight-red {
    color: var(--accent-dark);
    font-weight: bold;
}

#about ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
    max-width: 800px;
    margin: 20px auto 20px 0;
}

#about ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-light);
}

#about ul li::before {
    content: '🧘‍♀️';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    top: 2px;
}

/* ===== BENEFITS SECTION ===== */
#benefits {
    background: var(--bg-gradient-light);
    padding: 80px 0;
    text-align: center;
    font-family: 'Lora', serif;
}

#benefits ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
}

#benefits ul li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

#benefits ul li::before {
    content: '✓ ';
    color: var(--primary-color);
    font-weight: bold;
}

.benefits-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.benefits-img:hover {
    transform: scale(1.03);
}

/* ===== COURSE SECTION ===== */
#course {
    background-color: #ffffff;
    padding: 80px 0;
}

#course h2 {
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
}

#course h5 {
    color: var(--accent-dark);
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

#course p {
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: 'Lora', serif;
    color: var(--text-dark);
}

#course .course-subtitle {
    color: #555;
}

#course ul {
    list-style: none;
    padding-left: 0;
    font-size: 1rem;
}

#course ul li::before {
    content: '✓ ';
    color: var(--primary-color);
    font-weight: bold;
}

#course img {
    max-width: 100%;
    border: 5px solid var(--primary-color);
}

#course .certification-text {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--accent-dark);
    margin-top: 1.5rem;
}

#course .certification-highlight {
    color: var(--primary-color);
}

/* ===== COURSE TABS ===== */
.course-tabs .nav-link {
    color: var(--secondary-color);
    font-family: 'Merriweather', serif;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px 8px 0 0;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.course-tabs .nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 119, 182, 0.07);
}

.course-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: 700;
    border-color: #dee2e6 #dee2e6 #fff;
    background: #fff;
}

/* ===== KIDS YOGA COURSE STYLES ===== */
.kids-course-title {
    color: var(--primary-dark);
    font-family: 'Merriweather', serif;
}

.kids-course-tagline {
    font-size: 1.05rem;
    color: var(--accent-dark);
    font-style: italic;
}

.kids-course-box {
    background: linear-gradient(135deg, #e0f4ff 0%, #caf0f8 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

.kids-course-box h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.kids-course-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kids-course-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 119, 182, 0.1);
}

.kids-course-list li:last-child {
    border-bottom: none;
}

.kids-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.kids-different-box {
    background: #f0f8ff;
    border-left: 4px solid var(--accent-dark);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

.kids-different-box h5 {
    color: var(--accent-dark);
    margin-bottom: 0.75rem;
}

.kids-different-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kids-different-box li {
    padding: 0.3rem 0;
    font-size: 1rem;
}

.kids-highlights-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.kids-highlight-item {
    flex: 1 1 100px;
    text-align: center;
    background: #fff;
    border: 1px solid #caf0f8;
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.08);
}

.kids-highlight-item p {
    font-size: 0.82rem;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.3;
}

.who-can-join-box {
    background: #e0f4ff;
    border: 1px solid var(--accent-color);
    border-radius: 10px;
    padding: 0.9rem 1.25rem;
}

.who-can-join-box h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.who-can-join-box p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-dark);
}

.kids-cta-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: #fff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    text-align: center;
}

.kids-cta-banner p {
    margin: 0;
    font-size: 1rem;
    color: #fff;
}

.kids-cta-banner strong {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.course-tab-img {
    width: 100%;
    display: block;
    position: sticky;
    top: 80px;
    align-self: flex-start;
    max-height: calc(100vh - 100px);
    object-fit: contain;
    border-radius: 12px;
}

/* Keep the image column pinned while left content scrolls */
#course .col-md-5 {
    align-self: flex-start;
    position: sticky;
    top: 80px;
}

/* ===== INSTRUCTOR SECTION ===== */
#instructor {
    background: var(--bg-gradient-light);
    padding: 80px 0;
}

#instructor .instructor-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

#instructor .instructor-img:hover {
    transform: scale(1.05);
}

#instructor h3 {
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
    margin-top: 20px;
}

#instructor p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.nav-tabs .nav-link {
    color: var(--secondary-color) !important;
    font-weight: bold;
    border: 1px solid #dee2e6;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    margin-right: 5px;
    transition: all 0.3s ease-in-out;
}

.nav-tabs .nav-link.active {
    color: #ffffff !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    border-bottom-color: transparent !important;
}

.nav-tabs .nav-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
}

/* ===== SERVICES SECTION ===== */
#services {
    background-color: #ffffff;
    padding: 80px 0;
}

.service-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 35px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 119, 182, 0.2);
    border-color: var(--primary-color);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h4 {
    font-family: 'Merriweather', serif;
    color: var(--accent-dark);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-card .btn {
    margin-top: 15px;
}

/* ===== BUTTONS ===== */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}

.btn-secondary {
    background: var(--accent-dark);
    border: none;
    color: white;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 150, 199, 0.4);
}

/* ===== MODALS ===== */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 20px 25px;
}

.modal-title {
    font-family: 'Merriweather', serif;
    color: white;
}

.modal-body {
    font-family: 'Lora', serif;
    color: var(--text-light);
    line-height: 1.7;
    padding: 30px;
}

.modal-body h6 {
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.modal-body ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 1.05rem;
}

.modal-body ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent-dark);
    font-weight: bold;
    font-size: 1.1rem;
}

.modal-body p strong {
    color: var(--accent-dark);
}

.modal-footer {
    background-color: #f0f8ff;
    border: none;
    padding: 20px 25px;
}

.btn-close {
    filter: invert(1);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 0 20px;
    text-align: center;
    margin-top: 60px;
}

footer .social-links {
    margin: 20px 0;
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 30%;
    margin: 0 8px;
    color: white;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

footer .social-links a[href*="instagram"] {
    background: radial-gradient(circle at 30% 30%, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

footer .social-links a[href*="facebook"] {
    background: #1877F2;
}

footer .social-links a[href*="youtube"] {
    background: #FF0000;
}

footer .social-links a:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

footer .footer-links {
    color: var(--accent-color);
    text-decoration: none;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===== CONTACT BUTTONS ===== */
.contact-buttons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.contact-btn-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30%;
    width: 45px;
    height: 45px;
    margin: 0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-btn-inline:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn-inline {
    background: #25D366;
    color: white;
}

.whatsapp-btn-inline:hover {
    background: #20ba5a;
    color: white;
}

.phone-btn-inline {
    background: var(--primary-color);
    color: white;
}

.phone-btn-inline:hover {
    background: var(--primary-dark);
    color: white;
}

.contact-btn-inline i {
    font-size: 1.8rem;
}

.instructor-contact h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

/* ===== BACK TO TOP ===== */
#backToTop {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1050;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

#backToTop i {
    font-size: 1.5rem;
    color: white;
}

/* ===== PAGE LOADER ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loader p {
    margin-top: 20px;
    color: var(--primary-color);
    font-family: 'Merriweather', serif;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 119, 182, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== RIPPLE EFFECT ===== */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

/* ===== UTILITY CLASSES ===== */
.section-padding {
    padding: 80px 0;
}

/* ===== ACCESSIBILITY ===== */
a:focus, button:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    body { padding-top: 80px; }
    .hero h1 { font-size: 2rem; }
    .hero-intro p { font-size: 1.1rem; }
    .section-padding { padding: 50px 0; }
    .service-card { padding: 25px; margin-bottom: 20px; }
    #instructor .instructor-img { width: 180px; height: 180px; }

    #therapy { padding: 50px 20px; }
    #therapy h2 { font-size: 2rem; }
    #about .img-fluid { max-width: 100%; }
    .contact-buttons-row { gap: 15px; }
    .contact-btn-inline { width: 55px; height: 55px; }
    .contact-btn-inline i { font-size: 1.5rem; }
    .course-tabs .nav-link { font-size: 0.8rem; padding: 0.6rem 0.8rem; }
    .course-tab-img { position: static; margin-top: 2rem; }
    .kids-highlights-row { gap: 0.6rem; }
}

@media (max-width: 576px) {
    footer .social-links a { width: 40px; height: 40px; font-size: 1.2rem; }
    .contact-btn-inline { width: 45px; height: 45px; }
}

@media (max-width: 480px) {
    .contact-buttons-row { gap: 12px; }
    .contact-btn-inline { width: 50px; height: 50px; }
    .contact-btn-inline i { font-size: 1.3rem; }
}