/********** TREESHADE - Clean Rounded Black & Gold CSS **********/
:root {
    --primary: #D4AF37;
    --primary-hover: #F2CC59;
    --bs-primary: #D4AF37;
    --bg-main: #0B0B0D;
    --bg-section: #131318;
    --bg-card: #1A1A20;
    --bg-footer: #050507;
    --text-light: #F5F5F5;
    --text-muted: #B8B8C2;
    --border-gold: rgba(212, 175, 55, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main) !important;
    color: var(--text-muted) !important;
    font-family: 'Open Sans', 'Noto Sans Malayalam', sans-serif;
    overflow-x: hidden;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-hover);
}

.btn:focus,
.btn-primary:focus,
.btn-outline-primary:focus,
.btn-close:focus {
    box-shadow: 0 0 0 0.22rem rgba(212, 175, 55, 0.28) !important;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    color: var(--text-light) !important;
    font-family: 'Playfair Display', 'Noto Sans Malayalam', serif;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.section-surface {
    background-color: var(--bg-section);
    border-radius: 20px;
}


/*** Spinner ***/
#spinner {
    background-color: var(--bg-main);
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Buttons (Proportional Rounded Corners) ***/
.btn {
    font-weight: 500;
    border-radius: 10px;
    transition: .3s;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #0B0B0D !important;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #0B0B0D !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background-color: rgba(15, 15, 20, 0.55);
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: #0B0B0D !important;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Sticky Subtle Glass Header (Logo + Menu Stay Visible on Scroll) ***/
.ts-glass-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 14px 0;
    background: rgba(11, 11, 13, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    transition: background-color 0.3s ease, padding 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ts-glass-header.is-scrolled {
    padding: 10px 0;
    background: rgba(11, 11, 13, 0.68);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.24);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.hero-top-row {
    width: 100%;
    position: relative;
}

/* Original TREESHADE Logo (Larger at Top, Sleek on Scroll — Colors Untouched) */
.hero-brand-logo img {
    height: 82px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
    transition: height 0.3s ease;
}

.ts-glass-header.is-scrolled .hero-brand-logo img {
    height: 58px;
}

@media (max-width: 575.98px) {
    .hero-brand-logo img {
        height: 56px;
        max-width: 190px;
    }
    .ts-glass-header.is-scrolled .hero-brand-logo img {
        height: 44px;
    }
}

/* Menu Links Positioned Across Right Half */
.hero-nav-collapse {
    flex-basis: 100%;
}

@media (min-width: 992px) {
    .hero-nav-collapse {
        flex-basis: auto;
        width: 56%;
    }
}

.hero-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.hero-nav-link {
    color: var(--text-light);
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.4px;
    position: relative;
    padding: 4px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
    transition: color 0.25s ease;
}

.hero-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.25s ease;
}

.hero-nav-link:hover,
.hero-nav-link.active {
    color: var(--primary);
}

.hero-nav-link:hover::after,
.hero-nav-link.active::after {
    width: 100%;
}

.hero-menu-toggle {
    background: rgba(15, 15, 20, 0.55);
    border: 1px solid var(--border-gold);
    color: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991.98px) {
    .hero-nav-links {
        flex-direction: column;
        align-items: flex-end;
        gap: 12px;
        margin-top: 14px;
        padding: 16px 20px;
        background: rgba(11, 11, 13, 0.88);
        border: 1px solid var(--border-gold);
        border-radius: 14px;
        backdrop-filter: blur(10px);
    }
}


/*** Hero Header (Trimmed by One Navbar Height Split Top & Bottom — Uncropped Head Framing) ***/
.hero-header {
    background: linear-gradient(rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.68)),
                url('../img/hero-bg.jpg') center top no-repeat;
    background-size: cover;
    min-height: calc(92vh - 110px);
    padding-top: 118px;
    padding-bottom: 42px;
    display: flex;
    align-items: center;
}

.hero-content-row {
    width: 100%;
}

@media (max-width: 991.98px) {
    .hero-header {
        min-height: auto;
        padding-top: 98px;
        padding-bottom: 48px;
    }
}

/* Pulsing Call Now Button */
.btn-call {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--primary);
    color: #0B0B0D;
    font-size: 19px;
}

.btn-call:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 54px;
    height: 54px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-call:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 54px;
    height: 54px;
    background: var(--primary);
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.btn-call i {
    position: relative;
    z-index: 2;
    color: #0B0B0D;
}

.call-now-link:hover .btn-call:after {
    background: var(--primary-hover);
}

.call-now-link:hover span:last-child {
    color: var(--primary) !important;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 0.9;
    }
    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.85);
        opacity: 0;
    }
}

/* 4x2 Software Logo Grid (Right-Aligned on Desktop to Match Menu Edge) */
.software-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 440px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .software-logo-grid {
        margin-left: auto;
        margin-right: 0;
    }
}

.software-logo-box {
    background: rgba(15, 15, 20, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.software-logo-box:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.22);
}

.software-logo-box img {
    width: 100%;
    height: 100%;
    max-width: 62px;
    max-height: 62px;
    object-fit: contain;
}


/*** Admission Modal, Form Inputs & Brochure Box ***/
.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--border-gold);
}

.form-control,
.form-select {
    background-color: #111116 !important;
    border: 1px solid var(--border-gold) !important;
    border-radius: 10px !important;
    color: var(--text-light) !important;
    padding: 12px 14px;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23D4AF37' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.9rem center !important;
    background-size: 14px 12px !important;
    padding-right: 2.5rem !important;
}

.form-select:disabled {
    opacity: 0.6;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.22) !important;
}

.form-control::placeholder {
    color: #888894;
}

.brochure-download-box {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
}


/*** About & Dual 3:4 Photo Frame ***/
.img-twice {
    z-index: 1;
}

.img-twice::before {
    position: absolute;
    content: "";
    width: 60%;
    height: 80%;
    top: 10%;
    left: 20%;
    border: 4px solid var(--border-gold);
    border-radius: 18px;
    z-index: -1;
}

.about-img-frame {
    background-color: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 18px;
    padding: 8px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.about-img-frame:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55);
}

.about-img-frame img {
    width: 100%;
    height: 100% !important;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
}

.about-img-frame img.cam18-img {
    object-position: bottom;
}

.about-img-frame img.edit7-img {
    object-position: center;
}

.about-img-frame img.career4-img {
    object-position: center top;
}

.about-img-frame img.happy-img {
    object-position: center;
}

.img-twice > .col-6:last-child {
    margin-top: 36px;
}

.about-more-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s ease, opacity 0.35s ease;
}

.about-more-content.is-open {
    opacity: 1;
}

.about-more-content.no-transition {
    transition: none !important;
}

.btn-read-more {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
}

.btn-read-more:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #0B0B0D;
}

.btn-course-join {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 15px;
    border-radius: 8px;
}

.btn-about-action {
    font-size: 0.92rem;
    padding: 0.6rem 1.2rem;
    border-radius: 9px;
}


/*** Facts ***/
.fact-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    transition: transform .3s ease, border-color .3s ease;
}

.fact-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}


/*** Services ***/
.service-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .3s ease, background-color .3s ease, border-color .3s ease;
}

.service-img-wrap {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.service-img-wrap img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
}

.service-img-wrap img[src*="VideoProduction.png"] {
    object-position: top;
}

.service-item * {
    transition: color .3s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    background-color: var(--primary);
    border-color: var(--primary);
}

.service-item:hover h4 {
    color: #0B0B0D !important;
}

.service-item .service-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    overflow: hidden;
    opacity: 0;
    transition: .4s;
}

.service-item:hover .service-overlay {
    opacity: 1;
}


/*** Courses ***/
#about, #facts, #services, #courses, #projects, #social-platforms, #contact {
    scroll-margin-top: 90px;
}

.course-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    overflow: hidden;
    min-height: 295px;
    scroll-margin-top: 105px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.course-card.course-highlight {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.45), 0 12px 32px rgba(212, 175, 55, 0.28);
}

.course-logo-panel {
    width: 100%;
    height: 100%;
    min-height: 295px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    position: relative;
}

.course-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
    transition: transform 0.35s ease;
}

.course-card:hover .course-logo-img {
    transform: scale(1.07);
}

.course-dual-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.course-dual-logos img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
    transition: transform 0.35s ease;
}

.course-card:hover .course-dual-logos img {
    transform: scale(1.06);
}

.camera-brand-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
    gap: 4px;
}

.camera-brand-names .brand-lumix {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #FFFFFF;
}

.camera-brand-names .brand-canon {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #E63946;
}

.camera-brand-names .brand-sony {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #F5F5F5;
}

.camera-icons-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    font-size: 1.25rem;
    color: #E63946;
}

.course-bg-fcp {
    background: radial-gradient(circle at center, rgba(168, 50, 232, 0.28) 0%, rgba(70, 20, 110, 0.12) 100%);
}

.course-bg-pr {
    background: radial-gradient(circle at center, rgba(153, 153, 255, 0.25) 0%, rgba(30, 20, 85, 0.18) 100%);
}

.course-bg-davinci {
    background: radial-gradient(circle at center, rgba(50, 195, 230, 0.24) 0%, rgba(20, 50, 75, 0.16) 100%);
}

.course-bg-camera {
    background: radial-gradient(circle at center, rgba(220, 38, 38, 0.25) 0%, rgba(80, 14, 14, 0.14) 100%);
}

.course-bg-logic {
    background: radial-gradient(circle at center, rgba(110, 165, 225, 0.26) 0%, rgba(30, 52, 82, 0.16) 100%);
}

.course-bg-pslr {
    background: radial-gradient(circle at center, rgba(49, 168, 255, 0.26) 0%, rgba(0, 32, 68, 0.18) 100%);
}

.course-bg-ai {
    background: radial-gradient(circle at center, rgba(255, 154, 0, 0.26) 0%, rgba(78, 36, 0, 0.16) 100%);
}

.course-bg-ae {
    background: radial-gradient(circle at center, rgba(128, 112, 255, 0.28) 0%, rgba(26, 18, 84, 0.18) 100%);
}

.course-content-panel {
    height: 100%;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-more-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.course-more-content.is-open {
    opacity: 1;
}

/* 9th Flagship Full-Width Course Card */
.full-course-card {
    border: 1.5px solid rgba(212, 175, 55, 0.55);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.course-bg-full {
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.22) 0%, rgba(20, 18, 14, 0.55) 100%);
}

.full-course-badge {
    background: rgba(212, 175, 55, 0.18);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    letter-spacing: 1.4px;
}

.full-course-logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 265px;
}

.mini-logo-tile {
    background: rgba(11, 11, 13, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.mini-logo-tile:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.mini-logo-tile img {
    width: 100%;
    height: 100%;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

.full-course-camera-strip {
    font-size: 0.8rem;
    color: var(--text-light);
    background: rgba(11, 11, 13, 0.65);
    border: 1px solid var(--border-gold);
    padding: 6px 14px;
    border-radius: 50px;
    text-align: center;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.full-course-camera-strip:hover {
    border-color: var(--primary);
    color: var(--primary);
}


/*** Academy Certificates & Student Promise (Proportional Stacked Landscape Photos + Clean Cards) ***/
.promise-img-stack {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    z-index: 1;
}

.promise-img-stack::before {
    position: absolute;
    content: "";
    top: 22px;
    bottom: 22px;
    left: 28px;
    right: 28px;
    border: 4px solid var(--border-gold);
    border-radius: 18px;
    z-index: 0;
    pointer-events: none;
}

.promise-stack-frame {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-height: 215px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 18px;
    padding: 8px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.promise-stack-frame:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55);
}

.promise-stack-frame img {
    width: 100%;
    height: 100% !important;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .promise-stack-frame {
        flex: none;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}

/* Clean Boxless Layout Matching About Us — Aligned Top-to-Bottom With Adjacent Photos */
.promise-text-card {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: none;
}

/* Row 2 Dual Photos: Happy.jpg Positioned Clearly Lower Than Adjacent Career4.png */
.promise-dual-aligned {
    align-items: flex-start;
    min-height: 100%;
    height: auto !important;
}

.promise-dual-aligned > .col-6:last-child {
    margin-top: 84px;
}

@media (max-width: 575.98px) {
    .promise-dual-aligned > .col-6:last-child {
        margin-top: 52px;
    }
}

@media (max-width: 575.98px) {
    .promise-text-card {
        padding: 0;
    }
}

.cert-item {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

/* Highlighted Certificate Headings Including Numbers */
.cert-item .cert-title-highlight {
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 1.03rem;
    letter-spacing: 0.2px;
}

.school-card-footer-note {
    background: rgba(11, 11, 13, 0.58);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.84rem;
    color: var(--text-light);
    line-height: 1.55;
}

/* Evenly Distributed Pills Across Both Cards */
.promise-pill-strip {
    display: grid;
    gap: 10px;
}

.promise-pills-2 {
    grid-template-columns: repeat(2, 1fr);
}

.promise-pills-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 575.98px) {
    .promise-pills-2,
    .promise-pills-3 {
        grid-template-columns: 1fr;
    }
}

.promise-pill-strip span {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.38);
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 50px;
    text-align: center;
}


/*** Our Works (YouTube Video Showcase) ***/
.yt-work-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.yt-work-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.yt-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #08080A;
}

.yt-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.yt-work-card:hover .yt-thumb-wrap img {
    transform: scale(1.06);
}

.yt-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 42px;
    border-radius: 12px;
    background: rgba(220, 20, 20, 0.92);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.yt-work-card:hover .yt-play-badge {
    transform: translate(-50%, -50%) scale(1.1);
    background: #FF0000;
}

.yt-status-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(11, 11, 13, 0.82);
    border: 1px solid var(--border-gold);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
}

.yt-work-info {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.yt-work-title {
    font-family: 'Noto Sans Malayalam', 'Open Sans', sans-serif !important;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-light) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/*** Social Media Platforms Section ***/
.social-platforms-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    max-width: 1060px;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .social-platforms-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575.98px) {
    .social-platforms-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.social-platform-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 18px;
    padding: 28px 16px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.social-platform-icon {
    width: 78px;
    height: 78px;
    border-radius: 20px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 16px;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.threads-svg-icon {
    width: 36px;
    height: 36px;
    display: block;
}

.threads-svg-sm {
    width: 16px;
    height: 16px;
    display: block;
}

.social-platform-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}

.social-platform-handle {
    font-size: 0.78rem;
    color: var(--text-muted);
    word-break: break-word;
}

.social-platform-card:hover {
    transform: translateY(-7px);
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.social-platform-card:hover .social-platform-icon {
    transform: scale(1.08);
}

.social-yt:hover .social-platform-icon {
    background-color: #FF0000;
    border-color: #FF0000;
    color: #FFFFFF;
}

.social-fb:hover .social-platform-icon {
    background-color: #1877F2;
    border-color: #1877F2;
    color: #FFFFFF;
}

.social-ig:hover .social-platform-icon {
    background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF);
    border-color: transparent;
    color: #FFFFFF;
}

.social-threads:hover .social-platform-icon {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
    color: #0B0B0D;
}

.social-wa:hover .social-platform-icon {
    background-color: #25D366;
    border-color: #25D366;
    color: #FFFFFF;
}


/*** Footer & Copyright (Centered Large Logo Left + Precision-Aligned Right Column) ***/
.footer {
    background-color: var(--bg-footer);
    border-top: 1px solid var(--border-gold);
}

.footer-logo-tagline-wrap {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-hero-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px 10px;
}

.footer-hero-logo img {
    width: 265px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.footer-hero-logo:hover img {
    transform: scale(1.04);
}

/* Single-line clean rounded modern English tagline (upright, natural spacing, exact #F5F5F5 white) */
.footer-hero-tagline {
    font-family: 'Poppins', 'Plus Jakarta Sans', 'Open Sans', sans-serif;
    font-style: normal;
    font-size: clamp(0.84rem, 1.15vw, 1.04rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.15px;
    word-spacing: normal;
    white-space: nowrap;
    max-width: 100%;
    color: var(--text-light) !important;
    margin-top: 6px;
}

/* Malayalam mode uses Anek Malayalam Normal SemiBold on the tagline */
html.lang-ml .footer-hero-tagline {
    font-family: 'Anek Malayalam', 'Noto Sans Malayalam', sans-serif;
    font-variation-settings: "wdth" 100;
    font-weight: 600;
    font-size: clamp(0.86rem, 1.2vw, 1.06rem);
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .footer-hero-logo img {
        width: 210px;
    }
}

@media (max-width: 420px) {
    .footer-hero-tagline {
        font-size: 0.78rem;
        letter-spacing: 0;
    }
}

/* Language Toggle Button in Top Navbar (Right of Contact) */
.lang-toggle-btn {
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: 'Anek Malayalam', 'Noto Sans Malayalam', 'Open Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 9px;
    cursor: pointer;
    line-height: 1.3;
    white-space: nowrap;
    text-shadow: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.lang-toggle-btn:hover,
.lang-toggle-btn.is-ml-active {
    background-color: var(--primary);
    color: #0B0B0D;
}

/* Brochure-Matched Anek Malayalam Typography Rules When Malayalam Mode Is Active */
html.lang-ml body {
    font-family: 'Anek Malayalam', 'Noto Sans Malayalam', 'Open Sans', sans-serif !important;
    font-variation-settings: "wdth" 112;
    font-weight: 500;
}

/* Main Titles: Anek Malayalam Condensed (SemiBold) */
html.lang-ml h1,
html.lang-ml h2,
html.lang-ml h3,
html.lang-ml .display-1,
html.lang-ml .display-2,
html.lang-ml .display-3,
html.lang-ml .display-4,
html.lang-ml .display-5,
html.lang-ml .display-6 {
    font-family: 'Anek Malayalam', 'Noto Sans Malayalam', sans-serif !important;
    font-variation-settings: "wdth" 82;
    font-weight: 600 !important;
    letter-spacing: 0;
}

/* Subtitles & Card Headings: Anek Malayalam (SemiBold) */
html.lang-ml h4,
html.lang-ml h5,
html.lang-ml h6,
html.lang-ml .footer-brand-subtitle,
html.lang-ml .footer-link-heading,
html.lang-ml .social-platform-name,
html.lang-ml .cert-item .cert-title-highlight {
    font-family: 'Anek Malayalam', 'Noto Sans Malayalam', sans-serif !important;
    font-variation-settings: "wdth" 100;
    font-weight: 600 !important;
}

/* Short Body Lines & Descriptions: Anek Malayalam Expanded (Bold) */
html.lang-ml p,
html.lang-ml .service-item h4,
html.lang-ml .fact-item span,
html.lang-ml .btn {
    font-family: 'Anek Malayalam', 'Noto Sans Malayalam', sans-serif;
    font-variation-settings: "wdth" 115;
}

html.lang-ml .course-content-panel > div > p,
html.lang-ml .footer-desc-3lines,
html.lang-ml .school-card-footer-note {
    font-variation-settings: "wdth" 118;
    font-weight: 700;
}

/* Fine Details & Sub-Bullets: Anek Malayalam Expanded (Medium) */
html.lang-ml .course-more-content p,
html.lang-ml .course-more-content div,
html.lang-ml .cert-item p,
html.lang-ml .small,
html.lang-ml .social-platform-handle,
html.lang-ml .footer-contact-link,
html.lang-ml .footer .btn.btn-link,
html.lang-ml .promise-pill-strip span {
    font-family: 'Anek Malayalam', 'Noto Sans Malayalam', sans-serif;
    font-variation-settings: "wdth" 116;
    font-weight: 500;
}

.footer-brand-title {
    margin: 0;
    line-height: 1.02;
}

.footer-brand-subtitle {
    margin-top: 3px;
    margin-bottom: 0;
    font-size: 0.96rem;
    letter-spacing: 0.3px;
}

.footer-desc-3lines {
    max-width: 345px;
    line-height: 1.6;
}

/* Precision Alignment for Stacked Quick Links + Legal & Info on Right Edge */
.footer-links-stack {
    width: 100%;
    max-width: 195px;
    padding-top: 6px;
    text-align: left;
}

@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 50%;
        background: var(--border-gold);
    }

    /* Controlled Right Inset: Balanced Gap from Right Edge Without Crowding Info Block */
    .footer-links-stack {
        margin-right: 12%;
    }
}

@media (min-width: 1400px) {
    .footer-links-stack {
        margin-right: 16%;
    }
}

.footer-link-heading {
    font-size: 1.25rem;
    line-height: 1.25;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-contact-link i {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-contact-link:hover {
    color: var(--primary);
    transform: translateX(7px);
}

.footer-contact-link:hover i {
    transform: scale(1.18);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 6px;
    padding: 0;
    text-align: left;
    color: var(--text-muted);
    font-weight: normal;
    text-transform: capitalize;
    text-decoration: none;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background-color: #020203;
    border-top: 1px solid var(--border-gold);
}


/*** Smooth Back-to-Top Button With "Home" Label (Positioned Above Copyright Bar So Nothing Is Covered) ***/
.ts-back-to-top {
    position: fixed;
    right: 22px;
    bottom: 88px;
    z-index: 99;
    width: 56px;
    height: 60px;
    border-radius: 14px;
    background-color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #0B0B0D;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

@media (max-width: 767.98px) {
    .ts-back-to-top {
        right: 16px;
        bottom: 108px;
    }
}

.ts-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ts-back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

.ts-back-to-top i {
    font-size: 1.2rem;
    line-height: 1;
}

.ts-back-to-top .ts-home-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.1;
}


/*** Standalone Subpages (Privacy Policy & Reviews) ***/
.subpage-header {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.12) 0%, rgba(11, 11, 13, 0) 100%);
    border-bottom: 1px solid var(--border-gold);
    padding: 42px 0 34px;
}

.subpage-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 18px;
    padding: 36px;
}

@media (max-width: 575.98px) {
    .subpage-card {
        padding: 22px;
    }
}

.review-card-item {
    background-color: #131318;
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    padding: 20px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.star-rating-group {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 6px;
}

.star-rating-group input {
    display: none;
}

.star-rating-group label {
    font-size: 28px;
    color: #4A4A55;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating-group input:checked ~ label,
.star-rating-group label:hover,
.star-rating-group label:hover ~ label {
    color: var(--primary);
}


/*** Custom Native Entrance & Scroll-Reveal Animations (Zero Template Libs) ***/
@keyframes tsHeroSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-22px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tsHeroFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.97);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.ts-hero-slide {
    animation: tsHeroSlideIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ts-hero-fade {
    animation: tsHeroFadeIn 0.85s ease-out both;
}

.ts-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.ts-reveal.is-shown {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .ts-hero-slide,
    .ts-hero-fade {
        animation: none;
    }
    .ts-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/*** Footer Designer Credit + WhatsApp Icon Badge ***/
.designer-credit-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
}

.designer-credit-link:hover {
    color: var(--primary-hover);
}

.designer-wa-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.16);
    border: 1px solid rgba(37, 211, 102, 0.55);
    color: #25D366;
    font-size: 0.95rem;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.designer-credit-link:hover .designer-wa-badge {
    background-color: #25D366;
    border-color: #25D366;
    color: #FFFFFF;
    transform: scale(1.1);
}
