/* Top Tuition Core Stylesheet - Mobile First (v3.0.0) */
/* ==========================================================================
   TYPOGRAPHY & SEMANTIC PALETTE SYSTEM (v2.4.0)
   ========================================================================== */
:root {
    --tt-font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --tt-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Semantic Palette */
    --tt-color-navy: #1A365D;
    --tt-color-teal: #0D9488;
    --tt-color-teal-dark: #0F766E;
    --tt-color-video-blue: #2563EB;
    --tt-color-video-blue-dark: #1D4ED8;
    --tt-color-amber: #D97706;
    --tt-color-amber-dark: #B45309;
    --tt-color-pdf-red: #DC2626;
    --tt-color-pdf-red-dark: #B91C1C;
    --tt-color-slate-900: #0F172A;
    --tt-color-slate-800: #1E293B;
    --tt-color-slate-700: #334155;
    --tt-color-slate-600: #475569;
    --tt-color-slate-500: #64748B;
}

/* Headings inherit Plus Jakarta Sans */
h1,
h2,
h3,
h4,
h5,
h6,
.tt-hero-title,
.tt-section-title,
.tt-chapter-title,
.tt-subject-title,
.tt-program-header h3,
.tt-center-content h3,
.tt-help-box h3,
.tt-form-card h3,
.tt-chip,
.tt-btn-hero-primary,
.tt-btn-hero-secondary,
.tt-btn-action {
    font-family: var(--tt-font-heading) !important;
}

/* Body and UI text inherit Inter */
body,
.tt-subject-wrapper,
.tt-home-container,
.tt-page-container,
p,
span,
a,
input,
select,
textarea,
button,
.tt-resource-name,
.tt-chapter-desc,
.tt-updates-marquee {
    font-family: var(--tt-font-body) !important;
}


/* ==========================================================================
   HEADER-TO-CONTENT SPACING REDUCTION (Eliminates excess whitespace under nav)
   ========================================================================== */
.site-content,
#content.site-content,
.ast-separate-container .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#primary,
.site-main,
.single-tt_subject #primary,
.single-tt_subject .site-main,
.single-tt_class #primary,
.single-tt_class .site-main,
.ast-separate-container #primary {
    margin: 0 !important;
    padding: 0 !important;
}

.ast-article-single,
.ast-article-post,
.single-tt_subject.ast-separate-container .ast-article-post,
.single-tt_subject.ast-separate-container .ast-article-single {
    padding-top: 0.5rem !important;
    margin-top: 0 !important;
}

.ast-container,
.site-content .ast-container,
#content>.ast-container {
    padding-top: 0.5rem !important;
}

.tt-home-container,
.tt-page-container,
.tt-subject-wrapper {
    padding-top: 0.5rem !important;
    margin-top: 0 !important;
}

@media (max-width: 640px) {

    .ast-container,
    .site-content .ast-container,
    #content>.ast-container,
    .tt-home-container,
    .tt-page-container,
    .tt-subject-wrapper {
        padding-top: 0.35rem !important;
    }

    .ast-article-single,
    .ast-article-post,
    .single-tt_subject.ast-separate-container .ast-article-post,
    .single-tt_subject.ast-separate-container .ast-article-single {
        padding-top: 0.25rem !important;
    }
}

/* ==========================================================================
   ASTRA CONTAINER OVERRIDES FOR CLASS HUBS & SUBJECT PAGES (Maximize usable content width)
   ========================================================================== */
/* Harmonize background across all pages: neutral crisp white background */
body,
body.ast-separate-container,
body.ast-plain-container,
body.ast-page-builder-template,
#page,
.site-content,
#content.site-content,
.ast-separate-container .site-content {
    background-color: #FFFFFF !important;
}

.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single,
.single-tt_subject.ast-separate-container .ast-article-post,
.single-tt_subject.ast-separate-container .ast-article-single,
.single-tt_class.ast-separate-container .ast-article-post,
.single-tt_class.ast-separate-container .ast-article-single {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.single-tt_subject #content>.ast-container,
.single-tt_subject .site-content .ast-container,
.single-tt_class #content>.ast-container,
.single-tt_class .site-content .ast-container {
    max-width: 1200px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

.single-tt_subject .entry-content,
.single-tt_class .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

.single-tt_subject .entry-header,
.single-tt_class .entry-header {
    display: none !important;
    /* Hide duplicate theme header; custom modern hero with H1 is used */
}

@media (max-width: 640px) {

    .single-tt_subject.ast-separate-container .ast-article-post,
    .single-tt_subject.ast-separate-container .ast-article-single,
    .single-tt_class.ast-separate-container .ast-article-post,
    .single-tt_class.ast-separate-container .ast-article-single {
        padding: 0.25rem 0 !important;
    }

    .single-tt_subject #content>.ast-container,
    .single-tt_subject .site-content .ast-container,
    .single-tt_class #content>.ast-container,
    .single-tt_class .site-content .ast-container {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
}

/* ==========================================================================
   GLOBAL RESET & TYPOGRAPHY ENHANCEMENTS (Mobile Feedback Fixes 1, 2, 3)
   ========================================================================== */

/* Universal text-decoration reset for cards, chips, buttons & titles */
.tt-chip,
.tt-jump-chip,
.tt-subject-card,
.tt-material-card,
.tt-class-card,
.tt-btn-action,
.tt-btn-hero-primary,
.tt-btn-hero-secondary,
.tt-btn-card-action,
.tt-btn-whatsapp,
.tt-btn-whatsapp-direct,
.tt-search-result-item,
.tt-chapter-title a,
.tt-subject-title a,
.tt-resource-info a {
    text-decoration: none !important;
}

/* Base Body Typography & Readability */
.tt-subject-wrapper,
.tt-home-container,
.tt-page-container {
    font-size: 17px;
    line-height: 1.65;
    color: #1E293B;
    -webkit-font-smoothing: antialiased;
}

.tt-subject-wrapper p:not(.tt-hero-subtitle):not(.tt-subject-desc),
.tt-home-container p:not(.tt-hero-subtitle):not(.tt-hero-p):not([class*="tt-footer"]):not(.tt-classroom-subtext):not([class*="tt-benefit"]):not(.tt-qp-desc):not([class*="tt-qp"]),
.tt-page-container p:not(.tt-hero-subtitle):not(.tt-qp-desc):not([class*="tt-qp"]):not(.tt-classroom-sec-desc):not([class*="tt-classroom-sec"]):not([class*="tt-benefit"]),
.tt-chapter-desc,
.tt-class-card p,
.tt-features-card p,
.tt-card-info p,
.tt-feature-item p,
.tt-info-content p,
.tt-form-card p {
    font-size: 1.05rem !important;
    line-height: 1.65 !important;
    color: #334155 !important;
}


/* Hide default blog meta & post pagination on educational subject pages */
.single-tt_subject .entry-meta,
.single-tt_subject .post-navigation,
.single-tt_subject .comments-area,
.single-tt_class .entry-meta,
.single-tt_class .post-navigation,
.single-tt_class .comments-area {
    display: none !important;
}

.single-tt_subject .entry-header {
    text-align: center;
    margin-bottom: 2rem;
}

.single-tt_subject .entry-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1A365D;
}


/* Subject Page Modern Hero Banner */
.tt-subject-header,
.tt-subject-hero-card {
    background: linear-gradient(135deg, #0A192F 0%, #0F2A4A 60%, #16365D 100%) !important;
    color: #FFFFFF !important;
    border-radius: 20px;
    padding: 2.5rem 1.75rem 2.25rem 1.75rem;
    text-align: center;
    margin-bottom: 1.75rem;
    box-shadow: 0 16px 36px -10px rgba(10, 25, 47, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

/* Vector Watermark Decors (Subtle 8-10% opacity) */
.tt-header-decor {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
    color: #5EEAD4;
    opacity: 0.25;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tt-decor-left {
    left: 1.5rem;
    width: 88px;
    height: 88px;
}

.tt-decor-right {
    right: 1.5rem;
    width: 96px;
    height: 96px;
}

.tt-header-decor svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Ensure inner text stays elevated above the background vector watermark */
.tt-header-content {
    position: relative;
    z-index: 2;
}

.tt-class-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #0D9488;
    color: #FFFFFF !important;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.95rem;
    border-radius: 9999px;
    margin-bottom: 0.85rem;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.4);
    border: 1.5px solid #5EEAD4;
}

.tt-subject-title {
    font-family: var(--tt-font-heading) !important;
    font-size: 2.25rem;
    font-weight: 800;
    color: #FFFFFF !important;
    line-height: 1.2;
    margin: 0 auto 0.75rem auto;
    letter-spacing: -0.02em;
}

.tt-subject-desc {
    font-size: 1.05rem !important;
    color: #E2E8F0 !important;
    max-width: 680px;
    margin: 0 auto !important;
    line-height: 1.6 !important;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
    .tt-subject-header {
        padding: 1.65rem 1rem 1.5rem 1rem !important;
        border-radius: 16px !important;
        margin-bottom: 1.25rem !important;
    }

    .tt-decor-left {
        left: -0.5rem !important;
        width: 62px !important;
        height: 62px !important;
        opacity: 0.25 !important;
    }

    .tt-decor-right {
        right: -0.5rem !important;
        width: 68px !important;
        height: 68px !important;
        opacity: 0.25 !important;
    }

    .tt-class-badge {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.75rem !important;
        margin-bottom: 0.65rem !important;
    }

    .tt-subject-title {
        font-size: 1.65rem !important;
        margin-bottom: 0.5rem !important;
    }

    .tt-subject-desc {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
}

.tt-subject-wrapper {
    font-family: var(--tt-font-body);
    color: #0F172A;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem 2.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Chapter Navigation Chips */
/* Chapter Navigation Chips (Fixed class match & smooth mobile touch-scroll) */
.tt-chapter-chips-nav,
.tt-chapter-nav {
    width: 100%;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.tt-chips-scroll,
.tt-chapter-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.65rem;
    padding: 0.35rem 0.25rem 0.75rem 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}

.tt-chips-scroll::-webkit-scrollbar,
.tt-chapter-nav::-webkit-scrollbar {
    height: 5px;
}

.tt-chips-scroll::-webkit-scrollbar-thumb,
.tt-chapter-nav::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

.tt-chip {
    flex: 0 0 auto;
    white-space: nowrap;
    background: #F1F5F9;
    color: #1A365D;
    border: 1.5px solid #CBD5E1;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tt-chip:hover,
.tt-chip:active {
    background: #0D9488;
    border-color: #0D9488;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(13, 148, 136, 0.2);
}

/* Chapter Card */
.tt-chapter-card,
[id^="tt-chap-"],
[id^="chapter-"] {
    scroll-margin-top: 105px;
}

.tt-chapter-card {
    background: #FFFFFF;
    border-radius: 14px;
    border: 1.5px solid #E2E8F0;
    border-top: 4px solid #0D9488;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    margin-bottom: 1.75rem;
    padding: 1.25rem 1.25rem 1.35rem 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, outline 0.2s ease;
}

/* Focused chapter pulse / glow when deep linked from search */
@keyframes ttTargetGlow {
    0% {
        box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.45), 0 8px 24px rgba(13, 148, 136, 0.18);
        transform: translateY(-2px);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(13, 148, 136, 0.3), 0 8px 24px rgba(13, 148, 136, 0.15);
    }
    100% {
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
        transform: translateY(0);
    }
}

.tt-chapter-target-glow {
    animation: ttTargetGlow 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

.tt-chapter-card:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.09);
}

.tt-chapter-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #F1F5F9;
}

.tt-chapter-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
    line-height: 1.35;
}

.tt-chapter-num {
    color: #0D9488;
    font-weight: 800;
    font-size: 1.2rem;
    white-space: nowrap;
}

.tt-chapter-name {
    color: #1A365D;
    font-weight: 700;
}

.tt-chapter-desc {
    font-size: 0.925rem;
    color: #4A5568;
    margin-bottom: 1rem;
}

/* 6 Standard Resource Rows */
.tt-resource-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tt-resource-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.15rem;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    min-height: 52px;
    transition: all 0.15s ease;
}

.tt-resource-row.is-available {
    background: #FFFFFF;
    border-color: #CBD5E1;
}

.tt-resource-row.is-available:hover {
    background: #F0FDF4;
    border-color: #86EFAC;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.08);
}

.tt-resource-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1E293B;
}

/* Icon badges for 6 resource types */
.tt-resource-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1rem;
    flex-shrink: 0;
}

.tt-icon-video {
    background: #EFF6FF;
    color: #2563EB;
}

.tt-icon-video::before {
    content: "▶";
    font-size: 0.8rem;
}

.tt-icon-doc {
    background: #F0FDF4;
    color: #059669;
}

.tt-icon-doc::before {
    content: "📝";
    font-size: 0.95rem;
}

.tt-icon-pdf {
    background: #FEF2F2;
    color: #DC2626;
}

.tt-icon-pdf::before {
    content: "📄";
    font-size: 0.95rem;
}

.tt-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0D9488;
    color: #FFFFFF !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    min-height: 36px;
    min-width: 110px;
    text-align: center;
    box-sizing: border-box;
    transition: background 0.2s, transform 0.15s ease;
}

.tt-btn-action:hover {
    background: #0F766E;
}

.tt-badge-coming-soon {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94A3B8;
    background: #F1F5F9;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
}


/* Semantic Resource Buttons & Rows */
.tt-btn-action--video {
    background: #2563EB !important;
}

.tt-btn-action--video:hover {
    background: #1D4ED8 !important;
}

.tt-resource-row--video.is-available:hover {
    background: #EFF6FF !important;
    border-color: #93C5FD !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1) !important;
}

.tt-btn-action--pdf {
    background: #DC2626 !important;
}

.tt-btn-action--pdf:hover {
    background: #B91C1C !important;
}

.tt-resource-row--pdf.is-available:hover {
    background: #FEF2F2 !important;
    border-color: #FCA5A5 !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1) !important;
}

.tt-btn-action--doc {
    background: #0D9488 !important;
}

.tt-btn-action--doc:hover {
    background: #0F766E !important;
}

/* Modal Overlay */
.tt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 22, 40, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 1rem;
    box-sizing: border-box;
}

.tt-modal-container,
.tt-modal-box {
    background: #0B192E;
    border-radius: 16px;
    width: 100%;
    max-width: 860px;
    position: relative;
    padding: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-sizing: border-box;
    overflow: visible;
}

/* Modal Top Header (Chapter Title & Badge) */
.tt-modal-header {
    padding: 1.1rem 3.5rem 1rem 1.4rem;
    background: linear-gradient(135deg, #0d213a 0%, #0B192E 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-sizing: border-box;
}

.tt-modal-header-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tt-modal-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    background: rgba(13, 148, 136, 0.2);
    color: #5EEAD4;
    border: 1px solid rgba(94, 234, 212, 0.35);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tt-modal-title {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #FFFFFF !important;
    word-break: break-word;
}

.tt-modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 38px;
    height: 38px;
    background: #0D9488 !important;
    border: 2px solid #FFFFFF !important;
    border-radius: 50% !important;
    font-size: 1.35rem !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    color: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.2s ease !important;
    z-index: 1000000 !important;
    padding: 0 !important;
}

.tt-modal-close:hover {
    background: #DC2626 !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.6) !important;
}

.tt-modal-body {
    width: 100%;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    overflow: hidden;
    background: #000000;
}

.tt-iframe-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000000;
}

.tt-iframe-container.tt-iframe-horizontal {
    padding-bottom: 56.25%;
    /* 16:9 standard */
}

/* Vertical Video (Shorts / Reels) Aspect Ratio & Framing */
.tt-modal-container.tt-modal-container--vertical {
    max-width: 440px !important;
}

.tt-iframe-container.tt-iframe-vertical {
    padding-bottom: 177.78%;
    /* 9:16 Aspect Ratio */
    max-height: calc(85vh - 75px);
}

.tt-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 640px) {
    .tt-modal-overlay {
        padding: 0.75rem;
    }

    .tt-modal-container,
    .tt-modal-box {
        max-width: 100% !important;
        border-radius: 12px !important;
    }

    .tt-modal-header {
        padding: 0.85rem 3rem 0.75rem 1rem !important;
        border-top-left-radius: 11px !important;
        border-top-right-radius: 11px !important;
    }

    .tt-modal-title {
        font-size: 0.98rem !important;
    }

    .tt-modal-badge {
        font-size: 0.7rem !important;
        padding: 0.15rem 0.5rem !important;
    }

    .tt-modal-body {
        border-bottom-left-radius: 11px !important;
        border-bottom-right-radius: 11px !important;
    }

    .tt-modal-close {
        top: -12px !important;
        right: -10px !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 1.2rem !important;
    }

    /* Mobile-Specific Intelligent Video Orientations */
    /* 1. Vertical Videos (Shorts): full screen height, 9:16 vertical display */
    .tt-modal-is-vertical.tt-modal-overlay {
        padding: 0.5rem !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .tt-modal-container.tt-modal-container--vertical {
        max-width: 95vw !important;
        width: 100% !important;
        max-height: 94vh !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .tt-modal-container--vertical .tt-modal-header {
        flex-shrink: 0 !important;
        padding: 0.65rem 2.8rem 0.55rem 0.85rem !important;
    }

    .tt-modal-container--vertical .tt-modal-body {
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        max-height: calc(94vh - 65px) !important;
    }

    .tt-modal-container--vertical .tt-iframe-container.tt-iframe-vertical {
        width: 100% !important;
        height: 100% !important;
        padding-bottom: 0 !important;
        min-height: 60vh !important;
        max-height: calc(94vh - 65px) !important;
        aspect-ratio: 9 / 16 !important;
        margin: 0 auto !important;
    }

    /* 2. Horizontal Videos when rotated/fullscreen: edge-to-edge theatre */
    @media (orientation: landscape) {
        .tt-modal-is-horizontal.tt-modal-overlay {
            padding: 0 !important;
            background: #000000 !important;
        }

        .tt-modal-container.tt-modal-container--horizontal {
            max-width: 100vw !important;
            width: 100vw !important;
            height: 100vh !important;
            max-height: 100vh !important;
            border-radius: 0 !important;
            border: none !important;
            box-shadow: none !important;
            display: flex !important;
            flex-direction: column !important;
        }

        .tt-modal-container--horizontal .tt-modal-header {
            border-radius: 0 !important;
            padding: 0.4rem 3.5rem 0.4rem 1rem !important;
            background: rgba(11, 25, 46, 0.95) !important;
            flex-shrink: 0 !important;
        }

        .tt-modal-container--horizontal .tt-modal-title {
            font-size: 0.85rem !important;
        }

        .tt-modal-container--horizontal .tt-modal-close {
            top: 4px !important;
            right: 8px !important;
            width: 30px !important;
            height: 30px !important;
            font-size: 1.1rem !important;
        }

        .tt-modal-container--horizontal .tt-modal-body {
            border-radius: 0 !important;
            flex: 1 1 auto !important;
            height: calc(100vh - 40px) !important;
        }

        .tt-modal-container--horizontal .tt-iframe-container {
            height: 100% !important;
            padding-bottom: 0 !important;
        }
    }
}



/* COMBINED MODERN HOME & MARKETING STYLES */

/* Modern Mobile-First Homepage Stylesheet */

.tt-home-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.5rem 1rem 4rem 1rem;
    font-family: var(--tt-font-body);
    color: #0F172A;
}

/* Hero Section */
.tt-hero-section {
    background: linear-gradient(135deg, #0A192F 0%, #0F2A4A 60%, #16365D 100%) !important;
    color: #FFFFFF;
    border-radius: 24px;
    padding: 3.75rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 16px 36px -10px rgba(10, 25, 47, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

/* Kerala SCERT Badge - High contrast & prominent */
.tt-hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    background: #0D9488 !important;
    color: #FFFFFF !important;
    padding: 0.6rem 1.35rem !important;
    border-radius: 9999px !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(13, 148, 136, 0.6) !important;
    border: 2px solid #5EEAD4 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.tt-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 auto 1.25rem auto;
    max-width: 840px;
    color: #FFFFFF !important;
    letter-spacing: -0.02em;
}

.tt-hero-section p.tt-hero-subtitle,
.tt-hero-subtitle {
    font-size: 1.2rem !important;
    color: #FFFFFF !important;
    margin: 0 auto 2.25rem auto !important;
    max-width: 760px !important;
    line-height: 1.7 !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45) !important;
    opacity: 0.98 !important;
}

.tt-hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tt-btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0D9488;
    color: #FFFFFF !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    min-height: 48px;
    transition: transform 0.2s, background 0.2s;
}

.tt-btn-hero-primary:hover {
    background: #0F766E;
    transform: translateY(-2px);
}

.tt-btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    min-height: 48px;
    transition: background 0.2s;
}

.tt-btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Sections */
.tt-section {
    margin-bottom: 3.5rem;
}

.tt-section-header {
    margin-bottom: 1.5rem;
}

.tt-badge-accent {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    color: #0F766E !important;
    background: #CCFBF1 !important;
    border: 1.5px solid #0D9488 !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 0.3rem 0.85rem !important;
    border-radius: 9999px !important;
    margin-bottom: 0.65rem !important;
    box-shadow: 0 1px 3px rgba(13, 148, 136, 0.15) !important;
}

.tt-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1A365D;
    margin: 0 0 0.5rem 0;
}

.tt-section-desc {
    color: #334155 !important;
    font-size: 1.05rem !important;
    font-weight: 500;
    margin: 0;
}

/* Class Selector Cards */
.tt-class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tt-class-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-top: 4px solid #1A365D;
    border-radius: 16px;
    padding: 1.65rem;
    text-decoration: none !important;
    color: #0F172A;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.tt-class-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(26, 54, 93, 0.12);
    border-color: #1A365D;
}

.tt-card-sslc {
    border-top: 4px solid #0D9488;
}

.tt-card-sslc:hover {
    border-color: #0D9488;
}

.tt-class-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}

.tt-class-tag {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1A365D;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

.tt-card-sslc .tt-class-tag {
    color: #0D9488;
    background: #F0FDF4;
    border-color: #A7F3D0;
}

.tt-class-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    background: #F1F5F9;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}

.tt-class-card h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #1A365D;
    margin: 0 0 0.5rem 0;
}

.tt-class-card p {
    font-size: 1rem !important;
    color: #334155 !important;
    line-height: 1.6 !important;
    margin: 0 0 1.35rem 0;
    flex-grow: 1;
}

.tt-card-link {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0D9488;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s ease;
}

.tt-class-card:hover .tt-card-link {
    gap: 0.65rem;
    color: #0F766E;
}

/* Subject Grid */
.tt-home-container p:empty {
    display: none !important;
}

.tt-subject-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 1.25rem !important;
}

.tt-subject-grid>p {
    display: contents !important;
}

.tt-subject-card {
    background: #FFFFFF !important;
    border: 1.5px solid #E2E8F0 !important;
    border-left: 4px solid #0D9488 !important;
    border-radius: 14px !important;
    padding: 1.15rem 1.35rem !important;
    text-decoration: none !important;
    color: #0F172A !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.15rem !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05) !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

.tt-subject-card:hover {
    border-color: #0D9488 !important;
    background: #F0FDF4 !important;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.12) !important;
    transform: translateY(-2px) !important;
}

/* Enlarged 50px Icon Badge with depth */
.tt-subject-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #EFF6FF;
    border: 2px solid #BFDBFE;
    font-size: 2.15rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tt-subject-card:hover .tt-subject-icon {
    transform: scale(1.08);
}


/* Category-specific Subject Icon Accents */
.tt-icon-math {
    background: #EFF6FF !important;
    border-color: #BFDBFE !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15) !important;
}

.tt-icon-physics {
    background: #FEF3C7 !important;
    border-color: #FDE68A !important;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.18) !important;
}

.tt-icon-chemistry {
    background: #F0FDF4 !important;
    border-color: #BBF7D0 !important;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.15) !important;
}

.tt-icon-biology {
    background: #ECFDF5 !important;
    border-color: #A7F3D0 !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15) !important;
}

.tt-icon-social {
    background: #FFF7ED !important;
    border-color: #FFEDD5 !important;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.15) !important;
}

.tt-icon-lang {
    background: #F5F3FF !important;
    border-color: #DDD6FE !important;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.15) !important;
}

.tt-subject-content {
    flex-grow: 1;
}

.tt-subject-content h4 {
    margin: 0 0 0.35rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1A365D;
}

/* High contrast description */
.tt-subject-content span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    display: block;
}

.tt-card-arrow {
    color: #0D9488;
    font-size: 1.35rem;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.tt-subject-card:hover .tt-card-arrow {
    transform: translateX(4px);
}

/* Features */
.tt-features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.tt-features-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tt-features-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.tt-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 18px;
    background: #F0FDF4;
    border: 2px solid #BBF7D0;
    font-size: 2.4rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.18);
}

.tt-features-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1A365D;
    margin: 0 0 0.65rem 0;
}

.tt-features-card p {
    font-size: 1rem !important;
    color: #334155 !important;
    margin: 0;
    line-height: 1.6 !important;
}

/* CTA */
.tt-cta-section {
    background: #1A365D;
    color: #FFFFFF;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.tt-cta-section h2 {
    color: #FFFFFF !important;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
}

.tt-cta-section p {
    color: #CBD5E1;
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
}

.tt-cta-contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS (max-width: 640px) - Feedbacks 1, 2, 3, 4, 5
   ========================================================================== */
@media (max-width: 640px) {

    /* Tighten outer containers padding */
    .tt-home-container,
    .tt-page-container,
    .tt-subject-wrapper {
        padding: 1rem 0.75rem 2rem 0.75rem !important;
    }

    /* Tighten Hero banners */
    .tt-hero-section {
        padding: 2rem 1.15rem !important;
        border-radius: 16px !important;
        margin-bottom: 1.75rem !important;
    }

    .tt-hero-badge {
        font-size: 0.9rem !important;
        padding: 0.5rem 1.1rem !important;
        margin-bottom: 1rem !important;
    }

    .tt-page-hero {
        padding: 1.75rem 1rem 1.5rem 1rem !important;
        border-radius: 14px !important;
        margin-bottom: 1.5rem !important;
    }

    .tt-hero-title,
    .tt-page-hero .tt-hero-title {
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.65rem !important;
    }

    .tt-hero-section p.tt-hero-subtitle,
    .tt-hero-subtitle,
    .tt-page-hero .tt-hero-subtitle {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.35rem !important;
        color: #FFFFFF !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
    }

    .tt-subject-icon {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.9rem !important;
        border-radius: 14px !important;
    }

    .tt-feature-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 2.15rem !important;
    }

    /* Hero CTA button grouping */
    .tt-hero-cta-group {
        flex-direction: column !important;
        gap: 0.65rem !important;
    }

    .tt-btn-hero-primary,
    .tt-btn-hero-secondary {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
        min-height: 44px !important;
    }

    /* Tighten Section margins */
    .tt-section,
    .tt-features-section,
    .tt-materials-group,
    .tt-features-strip,
    .tt-programs-grid {
        margin-bottom: 1.75rem !important;
    }

    .tt-section-header,
    .tt-group-header {
        margin-bottom: 1rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.35rem !important;
    }

    .tt-section-title,
    .tt-group-header h2 {
        font-size: 1.3rem !important;
    }

    /* Grids to single column */
    .tt-class-grid,
    .tt-subject-grid,
    .tt-subject-cards-grid,
    .tt-materials-group>div,
    .tt-features-strip,
    .tt-programs-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    /* Tighten Chapter cards & Resource rows on mobile */
    .tt-chapter-card {
        padding: 0.85rem 0.75rem 1rem 0.75rem !important;
        margin-bottom: 1rem !important;
        border-radius: 10px !important;
    }

    .tt-chapter-header {
        margin-bottom: 0.75rem !important;
        padding-bottom: 0.35rem !important;
    }

    .tt-chapter-title {
        font-size: 1.05rem !important;
        gap: 0.35rem !important;
    }

    .tt-chapter-num {
        font-size: 1.05rem !important;
    }

    .tt-chapter-desc {
        font-size: 0.95rem !important;
        margin-bottom: 0.75rem !important;
    }

    .tt-resource-row {
        padding: 0.5rem 0.6rem !important;
        min-height: 44px !important;
        gap: 0.4rem !important;
    }

    .tt-resource-info {
        font-size: 0.925rem !important;
        gap: 0.45rem !important;
    }

    .tt-resource-icon {
        width: 28px !important;
        height: 28px !important;
        border-radius: 6px !important;
    }

    .tt-btn-action {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.8rem !important;
        min-height: 32px !important;
        min-width: 95px !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }

    /* Chapter chips layout */
    .tt-chapter-chips-nav {
        margin-bottom: 1rem !important;
    }

    .tt-chips-scroll {
        padding: 0.25rem 0 0.5rem 0 !important;
        gap: 0.45rem !important;
    }

    .tt-chip {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.825rem !important;
    }

    /* Tighten Class Cards & Material Cards */
    .tt-class-card,
    .tt-material-card,
    .tt-features-card,
    .tt-info-card,
    .tt-form-card,
    .tt-center-box,
    .tt-help-box {
        padding: 1rem !important;
    }

    /* Search Component on Mobile */
    .tt-search-wrapper {
        margin: -1rem auto 1.5rem auto !important;
        padding: 0 !important;
    }

    .tt-search-box-large {
        padding: 0.65rem 0.85rem !important;
        border-radius: 12px !important;
    }

    .tt-search-box-large input {
        font-size: 0.95rem !important;
    }
}



/* Additional Marketing Pages CSS */

.tt-page-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem 1rem;
    font-family: var(--tt-font-body);
    color: #0F172A;
}

.tt-page-hero {
    text-align: center;
    padding: 3rem 1.5rem 2.5rem 1.5rem;
    background: linear-gradient(135deg, #0A192F 0%, #0F2A4A 60%, #16365D 100%) !important;
    border-radius: 16px;
    color: #FFFFFF;
    margin-bottom: 2.5rem;
    box-shadow: 0 16px 36px -10px rgba(10, 25, 47, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tt-page-hero .tt-badge-accent {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    padding: 0.4rem 1rem !important;
    background: #0D9488 !important;
    border: 1.5px solid #5EEAD4 !important;
    color: #FFFFFF !important;
    border-radius: 9999px !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.tt-page-hero .tt-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: #FFFFFF;
}

.tt-page-hero .tt-hero-subtitle {
    font-size: 1.05rem;
    color: #CBD5E1;
    max-width: 750px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.6;
}

.tt-class-jump-bar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.tt-jump-chip {
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.tt-jump-chip:hover {
    background: #0D9488;
    border-color: #0D9488;
    color: #FFFFFF;
}

/* Quick Search Filter */
.tt-search-section {
    margin-bottom: 2.5rem;
}

.tt-search-box {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.tt-search-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

.tt-search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: #1E293B;
}

/* Materials & Subject Cards Grid */
.tt-materials-group {
    margin-bottom: 3.5rem;
}

.tt-group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 0.75rem;
}

.tt-grade-pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: #0D9488;
    color: #FFFFFF;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.tt-group-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1A365D;
    margin: 0;
}

.tt-view-all {
    color: #0D9488;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
}

.tt-view-all:hover {
    text-decoration: none !important;
    color: #0F766E;
}

.tt-subject-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.tt-material-card {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-top: 3px solid #0D9488;
    border-radius: 12px;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.04);
}

.tt-material-card:hover {
    border-color: #0D9488;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.12);
}

.tt-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    font-size: 1.6rem;
    margin-right: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.tt-card-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1A365D;
    margin: 0 0 0.35rem 0;
}

.tt-card-info p {
    font-size: 0.9rem;
    color: #64748B;
    margin: 0 0 0.65rem 0;
    line-height: 1.4;
}

.tt-card-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0D9488;
}

/* Feature Strips */
.tt-features-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.tt-feature-item {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.tt-feat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(13, 148, 136, 0.1);
}

.tt-feature-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A365D;
    margin: 0 0 0.5rem 0;
}

.tt-feature-item p {
    font-size: 0.9rem;
    color: #64748B;
    margin: 0;
    line-height: 1.5;
}

/* Program Cards for Classroom Tuition */
.tt-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tt-program-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.tt-program-header {
    background: #1A365D;
    color: #FFFFFF;
    padding: 1.75rem 1.5rem 1.25rem 1.5rem;
    position: relative;
}

.tt-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #0D9488;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.tt-program-header h3 {
    font-size: 1.25rem;
    color: #FFFFFF;
    margin: 0 0 0.35rem 0;
    font-weight: 700;
}

.tt-program-timing {
    font-size: 0.85rem;
    color: #94A3B8;
    margin: 0;
}

.tt-program-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tt-program-body ul {
    margin: 0 0 1.5rem 0;
    padding-left: 1.25rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tt-program-body li {
    margin-bottom: 0.5rem;
}

.tt-btn-card-action {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    background: #F1F5F9;
    color: #1A365D;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tt-btn-card-action:hover {
    background: #0D9488;
    color: #FFFFFF;
}

/* Center Highlight & Help Boxes */
.tt-center-box,
.tt-help-box {
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.tt-center-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 2rem;
}

@media (max-width: 768px) {
    .tt-center-box {
        flex-direction: column;
        text-align: center;
    }
}

.tt-center-content h3,
.tt-help-box h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1A365D;
    margin: 0 0 0.5rem 0;
}

.tt-center-content p,
.tt-help-box p {
    font-size: 1rem;
    color: #64748B;
    margin: 0 0 1rem 0;
}

.tt-center-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.tt-btn-whatsapp {
    display: inline-block;
    background: #25D366;
    color: #FFFFFF;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.tt-btn-whatsapp:hover {
    opacity: 0.9;
}

/* Contact Page Layout */
.tt-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 860px) {
    .tt-contact-layout {
        grid-template-columns: 1fr;
    }
}

.tt-contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tt-info-card {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
}

.tt-whatsapp-card {
    background: #F0FDF4;
    border-color: #86EFAC;
}

.tt-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    font-size: 1.5rem;
    margin-right: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.tt-info-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1A365D;
    margin: 0 0 0.25rem 0;
}

.tt-info-content p {
    font-size: 0.9rem;
    color: #64748B;
    margin: 0 0 0.5rem 0;
}

.tt-info-value a {
    color: #1A365D;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.tt-info-value a:hover {
    color: #0D9488;
}

.tt-info-subtext {
    font-size: 0.8rem;
    color: #94A3B8;
}

.tt-btn-whatsapp-direct {
    display: inline-block;
    padding: 0.45rem 1rem;
    background: #25D366;
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
}

/* Clean Form */
.tt-form-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

.tt-form-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1A365D;
    margin: 0 0 0.35rem 0;
}

.tt-form-card p {
    color: #64748B;
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
}

.tt-clean-form .tt-form-field {
    margin-bottom: 1.25rem;
}

.tt-clean-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 0.35rem;
}

.tt-clean-form .required {
    color: #EF4444;
}

.tt-clean-form input,
.tt-clean-form select,
.tt-clean-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #0F172A;
    background: #F8FAFC;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.tt-clean-form input:focus,
.tt-clean-form select:focus,
.tt-clean-form textarea:focus {
    border-color: #0D9488;
    background: #FFFFFF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.tt-btn-submit {
    width: 100%;
    padding: 0.875rem;
    background: #0D9488;
    color: #FFFFFF;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tt-btn-submit:hover {
    background: #0F766E;
}



/* Latest Updates Ticker */
.tt-latest-updates-strip {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.6rem 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.tt-updates-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #D97706;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    white-space: nowrap;
    margin-right: 1rem;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.25);
}

.tt-live-dot {
    width: 8px;
    height: 8px;
    background: #5EEAD4;
    border-radius: 50%;
    display: inline-block;
    animation: ttPulse 1.5s infinite;
}

@keyframes ttPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.tt-updates-marquee {
    display: flex;
    gap: 2rem;
    white-space: nowrap;
    overflow-x: auto;
    font-size: 0.9rem;
    color: #334155;
    scrollbar-width: none;
}

.tt-updates-marquee::-webkit-scrollbar {
    display: none;
}

.tt-update-item strong {
    color: #1A365D;
}

/* Global Search Component */
.tt-search-wrapper {
    position: relative;
    max-width: 800px;
    margin: -1.5rem auto 2.5rem auto;
    z-index: 50;
    padding: 0 1rem;
}

.tt-search-box-large {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 2px solid #0D9488;
    border-radius: 16px;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.15);
    position: relative;
}

.tt-search-mag {
    font-size: 1.35rem;
    margin-right: 0.85rem;
}

.tt-search-box-large input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1.05rem;
    color: #0F172A;
    background: transparent;
}

.tt-search-box-large input::placeholder {
    color: #94A3B8;
    font-size: 0.95rem;
}

#tt-search-clear-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94A3B8;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.25rem;
}

#tt-search-clear-btn:hover {
    color: #0F172A;
}

/* Search Dropdown Results */
.tt-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 1rem;
    right: 1rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    max-height: 380px;
    overflow-y: auto;
}

.tt-search-results-list {
    display: flex;
    flex-direction: column;
}

.tt-search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #F1F5F9;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, transform 0.15s ease;
    gap: 1rem;
}

.tt-search-result-item:last-child {
    border-bottom: none;
}

.tt-search-result-item:hover,
.tt-search-result-item.is-focused {
    background: #F0FDF4;
    outline: none;
}

.tt-search-result-item.is-subject-result {
    background: #F8FAFC;
}

.tt-search-result-item.is-subject-result:hover,
.tt-search-result-item.is-subject-result.is-focused {
    background: #E6FFFA;
}

.tt-search-item-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
}

.tt-search-item-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.tt-search-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.tt-search-item-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #1A365D;
    line-height: 1.35;
    word-break: break-word;
}

.tt-search-item-subtext {
    font-size: 0.8rem;
    color: #0D9488;
    font-weight: 500;
}

.tt-search-item-meta {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.tt-search-class-badge {
    font-size: 0.75rem;
    font-weight: 700;
    background: #F1F5F9;
    color: #1E293B;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.tt-search-highlight {
    background-color: #FEF08A;
    color: #854D0E;
    font-weight: 700;
    padding: 0.05rem 0.2rem;
    border-radius: 3px;
}

.tt-search-no-result {
    padding: 1.5rem;
    text-align: center;
    color: #64748B;
    font-size: 0.95rem;
}

/* ==========================================================================
   HIGH-DENSITY EDITORIAL SYSTEM (v3.3.0)
   ========================================================================== */
/* ==========================================================================
   TOP TUITION - MODERN HIGH-DENSITY, EDITORIAL-GRADE DESIGN SYSTEM (v3.1.0)
   Designed specifically for Kerala State Syllabus Educational Excellence
   ========================================================================== */

:root {
    --tt-navy-950: #0A1628;
    --tt-navy-900: #0F254A;
    --tt-navy-800: #1A365D;
    --tt-navy-700: #2A4365;
    --tt-teal-800: #115E59;
    --tt-teal-600: #0D9488;
    --tt-teal-500: #14B8A6;
    --tt-teal-100: #CCFBF1;
    --tt-teal-50: #F0FDFA;
    --tt-amber-500: #F59E0B;
    --tt-slate-900: #0F172A;
    --tt-slate-800: #1E293B;
    --tt-slate-700: #334155;
    --tt-slate-600: #475569;
    --tt-slate-500: #64748B;
    --tt-slate-200: #E2E8F0;
    --tt-slate-100: #F1F5F9;
    --tt-slate-50: #F8FAFC;
    --tt-white: #FFFFFF;
    --tt-radius-lg: 20px;
    --tt-radius-md: 14px;
    --tt-radius-sm: 8px;
    --tt-shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --tt-shadow-hover: 0 16px 32px -4px rgba(15, 23, 42, 0.12), 0 6px 12px -2px rgba(15, 23, 42, 0.06);
}

/* Global Reset inside container */
.tt-home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--tt-slate-800);
    box-sizing: border-box;
}

.tt-home-container * {
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. TICKER: High-contrast, polished news banner
   -------------------------------------------------------------------------- */
.tt-latest-updates-strip {
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.tt-updates-badge {
    background: #DC2626;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.tt-live-dot {
    width: 7px;
    height: 7px;
    background: #FFFFFF;
    border-radius: 50%;
    animation: tt-pulse 1.5s infinite;
}

@keyframes tt-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.75);
    }
}

.tt-updates-marquee {
    display: flex;
    gap: 2rem;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.15rem 0;
}

.tt-updates-marquee::-webkit-scrollbar {
    display: none;
}

.tt-update-item {
    color: #E2E8F0 !important;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
}

.tt-update-item strong {
    color: #5EEAD4;
    font-weight: 700;
    margin-right: 0.35rem;
}

.tt-update-item:hover {
    color: #FFFFFF !important;
    text-decoration: underline !important;
}

/* --------------------------------------------------------------------------
   2. HERO SECTION: 2-Column High-impact, filled educational layout
   -------------------------------------------------------------------------- */
.tt-hero-content-col {
    text-align: left;
}

.tt-method-section {
    position: relative;
}

.tt-footer-col {
    display: flex;
    flex-direction: column;
}

.tt-hero-visual-col {
    display: flex;
    justify-content: center;
}

.tt-class-picker,
.tt-why-section {
    position: relative;
}

.tt-bg-subtle {
    background-color: var(--tt-slate-50);
}

.tt-hero-modern {
    background: linear-gradient(135deg, #0A192F 0%, #0F2A4A 60%, #16365D 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--tt-radius-lg);
    padding: 3rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px -15px rgba(10, 25, 47, 0.4);
    position: relative;
    overflow: hidden;
}

.tt-hero-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.18) 0%, rgba(13, 148, 136, 0) 70%);
    pointer-events: none;
}

.tt-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.75rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.tt-breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
    font-size: 0.85rem;
    color: #94A3B8;
}

.tt-breadcrumb-center {
    justify-content: center;
}

.tt-breadcrumb-nav a {
    color: #CBD5E1 !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.tt-breadcrumb-nav a:hover {
    color: #5EEAD4 !important;
    text-decoration: underline !important;
}

.tt-breadcrumb-nav .tt-breadcrumb-sep {
    color: #64748B;
    user-select: none;
}

.tt-breadcrumb-nav .tt-breadcrumb-current {
    color: #5EEAD4;
    font-weight: 600;
}

.tt-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(13, 148, 136, 0.2);
    border: 1px solid #0D9488;
    color: #5EEAD4 !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.tt-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.22;
    color: #FFFFFF !important;
    letter-spacing: -0.025em;
    margin: 0 0 1.1rem 0;
}

.tt-hero-subtitle {
    font-size: 1.08rem !important;
    color: #CBD5E1 !important;
    line-height: 1.65 !important;
    margin: 0 0 1.75rem 0;
    max-width: 560px;
}

.tt-hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tt-btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0D9488;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.65rem;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}

.tt-btn-hero-primary:hover {
    background: #0F766E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.5);
    color: #FFFFFF !important;
}

.tt-btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.tt-btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #FFFFFF;
    color: #FFFFFF !important;
}

.tt-hero-trust-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tt-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #E2E8F0;
}

.tt-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #0D9488;
    color: #FFFFFF;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 800;
}

/* Hero Platform Visual Preview Card */
.tt-platform-preview-card {
    background: #0B192E;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.tt-preview-header {
    background: #071224;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tt-preview-dots {
    display: flex;
    gap: 6px;
}

.tt-preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.tt-dot-red {
    background: #EF4444;
}

.tt-dot-yellow {
    background: #F59E0B;
}

.tt-dot-green {
    background: #10B981;
}

.tt-preview-bar-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94A3B8;
    letter-spacing: 0.02em;
}

.tt-preview-body {
    padding: 1.25rem;
}

.tt-preview-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}

.tt-preview-badge-row .tt-badge-accent {
    font-size: 0.74rem;
    padding: 0.25rem 0.65rem;
}

.tt-badge-video {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #FCA5A5;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}

.tt-preview-video-mockup {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.15rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tt-mock-play-btn {
    width: 44px;
    height: 44px;
    background: #DC2626;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.tt-mock-video-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tt-mock-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.35;
}

.tt-mock-meta {
    font-size: 0.78rem;
    color: #94A3B8;
}

.tt-preview-materials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.tt-preview-mat-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tt-mat-icon {
    font-size: 1.25rem;
}

.tt-preview-mat-item div {
    display: flex;
    flex-direction: column;
}

.tt-preview-mat-item strong {
    font-size: 0.82rem;
    color: #FFFFFF;
    line-height: 1.2;
}

.tt-preview-mat-item small {
    font-size: 0.72rem;
    color: #94A3B8;
}

/* --------------------------------------------------------------------------
   3. SEARCH BAR & POPULAR SUGGESTIONS
   -------------------------------------------------------------------------- */
.tt-search-section {
    position: relative;
    max-width: 860px;
    margin: -1.25rem auto 2.5rem auto;
    z-index: 1000;
    padding: 0 1rem;
}

.tt-search-container {
    position: relative;
    z-index: 1001;
}

.tt-search-input-wrapper {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 2px solid #0D9488;
    border-radius: 14px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.12);
    transition: all 0.2s ease;
}

.tt-search-input-wrapper:focus-within {
    border-color: #0F766E;
    box-shadow: 0 14px 34px -4px rgba(13, 148, 136, 0.25);
}

.tt-search-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    color: #0D9488;
}

.tt-search-input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100%;
    font-size: 1.02rem;
    color: var(--tt-slate-800);
    background: transparent;
    padding: 0 !important;
}

.tt-search-input::placeholder {
    color: #94A3B8;
    font-size: 0.95rem;
}

.tt-search-clear {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94A3B8;
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
}

.tt-search-clear:hover {
    color: #0F172A;
}

.tt-search-suggestions {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.tt-suggestions-label {
    font-weight: 700;
    color: #475569;
}

.tt-suggestion-tag {
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    color: #1E293B;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tt-suggestion-tag:hover {
    background: #CCFBF1;
    border-color: #0D9488;
    color: #0F766E;
    transform: translateY(-1px);
}

.tt-search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.05);
    max-height: 440px;
    overflow-y: auto;
    z-index: 10000;
}

/* --------------------------------------------------------------------------
   4. SECTION HEADERS: Standardized high-contrast hierarchy
   -------------------------------------------------------------------------- */
.tt-section {
    margin-bottom: 3.5rem;
}

.tt-section-header-center {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.25rem auto;
}

.tt-section-header {
    margin-bottom: 1.75rem;
}

.tt-section-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--tt-navy-950);
    letter-spacing: -0.02em;
    margin: 0.5rem 0 0.5rem 0;
}

.tt-section-subtitle,
.tt-section-desc {
    font-size: 1.02rem !important;
    color: var(--tt-slate-600) !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

.tt-badge-accent {
    display: inline-block;
    background: #CCFBF1;
    color: #0F766E !important;
    border: 1.5px solid #0D9488;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
}

/* --------------------------------------------------------------------------
   5. CLASS PICKER: Robust 3-column cards with visual weight
   -------------------------------------------------------------------------- */
.tt-class-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tt-class-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-top: 5px solid #0D9488;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    box-shadow: var(--tt-shadow-card);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
}

.tt-class-card.tt-card-sslc {
    border-top-color: #0D9488;
    background: #FFFFFF;
}

.tt-class-card.tt-card-class9 {
    border-top-color: #2563EB;
    background: #FFFFFF;
}

.tt-class-card.tt-card-class8 {
    border-top-color: #7C3AED;
    background: #FFFFFF;
}

.tt-class-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--tt-shadow-hover);
    border-color: #CBD5E1;
}

.tt-class-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.15rem;
}

.tt-class-tag {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--tt-navy-950);
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
}

.tt-class-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
}

.tt-class-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--tt-navy-950);
    margin: 0 0 0.65rem 0;
    letter-spacing: -0.01em;
}

.tt-class-card-desc {
    font-size: 0.93rem !important;
    color: var(--tt-slate-600) !important;
    line-height: 1.55 !important;
    margin: 0 0 1.25rem 0 !important;
    flex-grow: 1;
}

.tt-class-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
    padding: 0.85rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.tt-class-features-list span {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tt-class-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #1A365D;
    color: #FFFFFF !important;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.tt-class-card-btn:hover {
    background: #0D9488;
    color: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   6. SUBJECT DISCOVERY GRIDS: High-density, professional cards
   -------------------------------------------------------------------------- */
.tt-subject-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
}

.tt-subject-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.15rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
    position: relative;
}

.tt-subject-card:hover {
    transform: translateY(-3px);
    border-color: #0D9488;
    box-shadow: 0 8px 20px -2px rgba(13, 148, 136, 0.18);
    background: #FDFEFE;
}

.tt-subject-icon {
    width: 48px;
    height: 48px;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.tt-subject-card:hover .tt-subject-icon {
    transform: scale(1.08);
}

.tt-subject-content {
    flex-grow: 1;
    min-width: 0;
}

.tt-subject-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tt-navy-950);
    margin: 0 0 0.2rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tt-subject-content span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #0D9488;
    display: block;
}

.tt-card-arrow {
    color: #94A3B8;
    font-size: 1.15rem;
    font-weight: 700;
    transition: transform 0.2s ease, color 0.2s ease;
}

.tt-subject-card:hover .tt-card-arrow {
    color: #0D9488;
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   7. "WHY TOP TUITION?" PROPOSITIONS
   -------------------------------------------------------------------------- */
.tt-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.35rem;
}

.tt-why-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--tt-shadow-card);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.tt-why-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--tt-shadow-hover);
    border-color: #CBD5E1;
}

.tt-why-card-wide {
    grid-column: span 3;
    background: #FFFFFF;
    border-color: #E2E8F0;
}

.tt-why-icon-box {
    width: 48px;
    height: 48px;
    background: #F0FDFA;
    border: 1px solid #CCFBF1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.tt-why-card h3 {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--tt-navy-950);
    margin: 0 0 0.5rem 0;
    line-height: 1.35;
}

.tt-why-card p {
    font-size: 0.92rem !important;
    color: var(--tt-slate-600) !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

/* --------------------------------------------------------------------------
   8. 5-STEP LEARNING METHODOLOGY
   -------------------------------------------------------------------------- */
.tt-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.tt-method-step-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-top: 4px solid #0D9488;
    border-radius: 12px;
    padding: 1.35rem 1rem;
    box-shadow: var(--tt-shadow-card);
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
}

.tt-method-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tt-shadow-hover);
    border-top-color: #0F766E;
}

.tt-step-num {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: #0D9488;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.4);
}

.tt-step-icon {
    font-size: 1.85rem;
    margin: 0.5rem 0 0.75rem 0;
}

.tt-method-step-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--tt-navy-950);
    margin: 0 0 0.45rem 0;
    line-height: 1.3;
}

.tt-method-step-card p {
    font-size: 0.82rem !important;
    color: var(--tt-slate-600) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* --------------------------------------------------------------------------
   9. CLASSROOM TUITION (PALAKKAD) SHOWCASE
   -------------------------------------------------------------------------- */
.tt-classroom-showcase {
    background: linear-gradient(135deg, #0A192F 0%, #102A4C 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--tt-radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: 0 16px 36px -10px rgba(10, 25, 47, 0.35);
    color: #FFFFFF;
}

.tt-classroom-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(13, 148, 136, 0.25);
    border: 1px solid #0D9488;
    color: #5EEAD4;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.tt-classroom-headline {
    font-size: 2rem;
    font-weight: 800;
    color: #FFFFFF !important;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 0 0 0.85rem 0;
    max-width: 860px;
}

.tt-classroom-subtext {
    font-size: 1.05rem !important;
    color: #CBD5E1 !important;
    line-height: 1.6 !important;
    margin: 0 0 2rem 0 !important;
    max-width: 820px;
}

.tt-classroom-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.tt-pillar-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.tt-pillar-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #0D9488;
}

.tt-pillar-icon {
    font-size: 1.65rem;
    margin-bottom: 0.75rem;
}

.tt-pillar-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 0.35rem 0;
}

.tt-pillar-item p {
    font-size: 0.85rem !important;
    color: #94A3B8 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.tt-classroom-action-bar {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.tt-contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tt-contact-line {
    font-size: 0.92rem;
    color: #E2E8F0;
}

.tt-contact-line strong {
    color: #FFFFFF;
}

.tt-contact-line a {
    color: #5EEAD4 !important;
    text-decoration: none !important;
    font-weight: 600;
}

.tt-contact-line a:hover {
    text-decoration: underline !important;
}

.tt-classroom-cta-btns {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.tt-btn-whatsapp {
    background: #25D366;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.35rem;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    transition: all 0.2s ease;
}

.tt-btn-whatsapp:hover {
    background: #1EBE5D;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
}

.tt-btn-call {
    background: #0D9488;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.35rem;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.tt-btn-call:hover {
    background: #0F766E;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   10. SITE FOOTER: Rich 4-column balanced layout
   -------------------------------------------------------------------------- */
.tt-footer-site {
    background: #0A1628;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--tt-radius-lg);
    padding: 3rem 2.5rem 1.75rem 2.5rem;
    margin-top: 3.5rem;
    color: #E2E8F0;
}

.tt-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 1fr 1.1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.tt-footer-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.tt-footer-desc {
    font-size: 0.88rem !important;
    color: #94A3B8 !important;
    line-height: 1.6 !important;
    margin: 0 0 1.25rem 0 !important;
}

.tt-footer-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tt-footer-badge {
    background: rgba(13, 148, 136, 0.15);
    border: 1px solid #0D9488;
    color: #5EEAD4;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
}

.tt-footer-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 1rem 0;
    letter-spacing: 0.02em;
}

.tt-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tt-footer-links a {
    color: #94A3B8 !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.tt-footer-links a:hover {
    color: #5EEAD4 !important;
    transform: translateX(3px);
    display: inline-block;
}

.tt-footer-address,
.tt-footer-contact {
    font-size: 0.88rem !important;
    color: #94A3B8 !important;
    line-height: 1.6 !important;
    margin: 0 0 0.85rem 0 !important;
}

.tt-footer-address strong,
.tt-footer-contact strong {
    color: #FFFFFF;
}

.tt-footer-contact a {
    color: #5EEAD4 !important;
    text-decoration: none !important;
}

.tt-footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
}

.tt-footer-bottom p {
    font-size: 0.8rem !important;
    color: #64748B !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .tt-subject-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tt-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tt-why-card-wide {
        grid-column: span 2;
    }

    .tt-method-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .tt-classroom-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tt-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 860px) {
    .tt-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tt-hero-modern {
        padding: 2.25rem 1.5rem;
    }

    .tt-hero-title {
        font-size: 2rem;
    }

    .tt-class-grid {
        grid-template-columns: 1fr;
    }

    .tt-subject-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tt-classroom-headline {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .tt-home-container {
        padding: 0.75rem 0.5rem 2rem 0.5rem;
    }

    .tt-hero-title {
        font-size: 1.65rem;
    }

    .tt-hero-subtitle {
        font-size: 0.95rem !important;
    }

    .tt-hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .tt-btn-hero-primary,
    .tt-btn-hero-secondary {
        width: 100%;
        text-align: center;
    }

    .tt-subject-grid {
        grid-template-columns: 1fr;
    }

    .tt-why-grid {
        grid-template-columns: 1fr;
    }

    .tt-why-card-wide {
        grid-column: span 1;
    }

    .tt-method-grid {
        grid-template-columns: 1fr;
    }

    .tt-classroom-pillars-grid {
        grid-template-columns: 1fr;
    }

    .tt-classroom-action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .tt-classroom-cta-btns {
        flex-direction: column;
        width: 100%;
    }

    .tt-btn-whatsapp,
    .tt-btn-call {
        width: 100%;
        justify-content: center;
    }

    .tt-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   HIGH-CONTRAST VISIBILITY LAYER (v3.3.0)
   ========================================================================== */
/* ==========================================================================
   HIGH-CONTRAST VISIBILITY PATCH (v3.2.0)
   Fixes muted/low-contrast text on dark cards and background sections
   ========================================================================== */

/* 1. Classroom Tuition Dark Section & Pillars */
.tt-classroom-showcase {
    background: linear-gradient(145deg, #071527 0%, #0D233F 55%, #13325B 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
}

/* Palakkad Badge */
.tt-classroom-badge {
    background: #0D9488 !important;
    border: 1.5px solid #5EEAD4 !important;
    color: #FFFFFF !important;
    font-weight: 800 !important;
    font-size: 0.82rem !important;
    padding: 0.35rem 0.95rem !important;
    letter-spacing: 0.03em !important;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35) !important;
}

/* Subtitle / intro text under headline */
.tt-classroom-subtext,
.tt-classroom-showcase p.tt-classroom-subtext,
.tt-home-container .tt-classroom-showcase p.tt-classroom-subtext {
    color: #F1F5F9 !important;
    font-size: 1.08rem !important;
    line-height: 1.65 !important;
    opacity: 1 !important;
}

/* 4 Pillar Cards in Classroom Section */
.tt-pillar-item {
    background: #0B1E36 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25) !important;
}

.tt-pillar-item:hover {
    background: #0F2848 !important;
    border-color: #5EEAD4 !important;
    transform: translateY(-2px) !important;
}

.tt-pillar-item h4 {
    color: #FFFFFF !important;
    font-size: 1.12rem !important;
    font-weight: 700 !important;
}

/* Pillar Card Body Text (Previously dim #94A3B8) */
.tt-pillar-item p,
.tt-home-container .tt-pillar-item p,
.tt-classroom-showcase .tt-pillar-item p {
    color: #F1F5F9 !important;
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    opacity: 1 !important;
}

/* Classroom Contact Action Bar */
.tt-classroom-action-bar {
    background: #061120 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
}

.tt-contact-line {
    color: #FFFFFF !important;
    font-size: 0.95rem !important;
}

.tt-contact-line strong {
    color: #5EEAD4 !important;
}

.tt-contact-line a {
    color: #5EEAD4 !important;
    font-weight: 700 !important;
}

/* 2. Hero Section Preview Card Visibility */
.tt-preview-meta {
    color: #E2E8F0 !important;
}

.tt-preview-mat-item small {
    color: #CBD5E1 !important;
}

/* 3. Footer Visibility */
.tt-footer-site,
.tt-home-container .tt-footer-site {
    background: #060E1A !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.tt-footer-desc,
.tt-home-container .tt-footer-desc,
.tt-footer-address,
.tt-home-container .tt-footer-address,
.tt-footer-contact,
.tt-home-container .tt-footer-contact,
.tt-home-container .tt-footer-site p {
    color: #E2E8F0 !important;
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
}

.tt-footer-links a,
.tt-home-container .tt-footer-links a {
    color: #E2E8F0 !important;
    font-size: 0.92rem !important;
}

.tt-footer-links a:hover,
.tt-home-container .tt-footer-links a:hover {
    color: #5EEAD4 !important;
}

.tt-footer-bottom p,
.tt-home-container .tt-footer-bottom p,
.tt-footer-site .tt-footer-bottom p,
.tt-home-container .tt-footer-site .tt-footer-bottom p {
    color: #94A3B8 !important;
}

/* ==========================================================================
   DOWNLOADABLE STUDY MATERIALS & ACCORDIONS (v3.5.0)
   High-density PDF resource cards, subject tabs & download lists
   ========================================================================== */

.tt-downloads-section {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: var(--tt-radius-lg);
    padding: 2.25rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--tt-shadow-card);
}

.tt-downloads-header {
    margin-bottom: 1.75rem;
}

.tt-downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.tt-download-subject-block {
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.tt-download-subject-block:hover {
    border-color: #0D9488;
    box-shadow: 0 8px 24px -4px rgba(13, 148, 136, 0.12);
}

.tt-download-subject-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1.5px solid #E2E8F0;
}

.tt-download-subject-title h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--tt-navy-950);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tt-download-count-badge {
    font-size: 0.76rem;
    font-weight: 700;
    background: #CCFBF1;
    color: #0F766E;
    border: 1px solid #0D9488;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.tt-download-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.tt-download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    transition: all 0.15s ease;
}

.tt-download-item:hover {
    background: #F0FDFA;
    border-color: #0D9488;
    transform: translateX(2px);
}

.tt-download-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.tt-pdf-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tt-download-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1E293B;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tt-btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #0D9488;
    color: #FFFFFF !important;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.tt-btn-download-pdf:hover {
    background: #0F766E;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}

.tt-btn-view-subject {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #E2E8F0;
    color: #334155 !important;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.tt-btn-view-subject:hover {
    background: #CBD5E1;
    color: #0F172A !important;
}

.tt-exam-model-block {
    grid-column: span 2;
    background: #FFFFFF;
    border: 1.5px solid #0D9488;
    border-radius: 14px;
    padding: 1.35rem;
}

.tt-exam-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.85rem;
}

@media (max-width: 860px) {
    .tt-downloads-grid {
        grid-template-columns: 1fr;
    }

    .tt-exam-model-block {
        grid-column: span 1;
    }

    .tt-exam-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CLASS HUB NAVIGATION PILLS & TEXTBOOK PLACEHOLDER SECTION (v3.7.0)
   ========================================================================== */

/* Navigation Quick-Jump Strip below Hero */
.tt-nav-pills-strip {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.tt-nav-pills-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

.tt-nav-pills-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.tt-nav-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: #F8FAFC;
    color: #1E293B !important;
    border: 1.5px solid #CBD5E1;
    border-radius: 9999px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.tt-nav-pill-btn:hover {
    background: #CCFBF1;
    border-color: #0D9488;
    color: #0F766E !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
}

.tt-nav-pill-btn.tt-pill-active {
    background: #0D9488;
    border-color: #0D9488;
    color: #FFFFFF !important;
}

/* Textbook Placeholder Section */
.tt-textbooks-section {
    background: #FFFFFF;
    border: 1.5px dashed #CBD5E1;
    border-radius: var(--tt-radius-lg);
    padding: 2.25rem 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

.tt-textbooks-card {
    max-width: 650px;
    margin: 0 auto;
}

.tt-textbook-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.tt-textbooks-card h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--tt-navy-950);
    margin: 0 0 0.5rem 0;
}

.tt-textbooks-card p {
    font-size: 0.95rem !important;
    color: var(--tt-slate-600) !important;
    line-height: 1.6 !important;
    margin: 0 0 1.25rem 0 !important;
}

.tt-textbook-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    color: #B45309;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
}

@media (max-width: 768px) {
    .tt-nav-pills-strip {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.85rem;
    }

    .tt-nav-pills-group {
        width: 100%;
    }

    .tt-nav-pill-btn {
        flex: 1 1 calc(50% - 0.5rem);
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.45rem 0.65rem;
    }
}

/* ==========================================================================
   DESKTOP FITMENT & OVERFLOW RESILIENCE PATCH (v3.9.0)
   Prevents subject boxes from overflowing container & formats long chapter names
   ========================================================================== */

.tt-downloads-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.tt-downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

.tt-download-subject-block {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.tt-download-subject-title {
    min-width: 0;
    gap: 0.5rem;
}

.tt-download-subject-title h3 {
    font-size: 1.05rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.tt-download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    box-sizing: border-box;
}

.tt-download-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.tt-download-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1E293B;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.tt-btn-download-pdf,
.tt-btn-view-subject {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    flex-shrink: 0;
}

.tt-badge-coming-soon {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Unit Header Sub-separator inside English & Hindi */
.tt-unit-subhead {
    font-size: 0.76rem;
    font-weight: 800;
    color: #0D9488;
    background: #F0FDFA;
    border: 1px solid #CCFBF1;
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}


/* ==========================================================================
   CLASS PAGES & STUDY MATERIALS MOBILE OPTIMIZATION (<= 768px and <= 640px)
   ========================================================================== */

@media (max-width: 768px) {

    /* 1. Reset grids to single column */
    .tt-downloads-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    .tt-subject-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .tt-exam-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .tt-method-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    .tt-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* 2. Container & Section Padding */
    .tt-home-container {
        padding: 0.75rem 0.5rem 2rem 0.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .tt-section,
    .tt-downloads-section,
    .tt-textbooks-section {
        padding: 1.5rem 0.85rem !important;
        margin-bottom: 1.5rem !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .tt-hero-modern {
        padding: 1.75rem 1rem !important;
        border-radius: 14px !important;
    }

    .tt-hero-title {
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
    }

    .tt-hero-subtitle {
        font-size: 0.92rem !important;
        line-height: 1.5 !important;
    }

    .tt-hero-cta-group {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }

    .tt-btn-hero-primary,
    .tt-btn-hero-secondary {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 0.75rem 1rem !important;
        box-sizing: border-box !important;
    }

    .tt-hero-trust-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.4rem !important;
    }

    /* 3. Quick Nav Strip */
    .tt-nav-pills-strip {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0.75rem 0.85rem !important;
        gap: 0.5rem !important;
    }

    .tt-nav-pills-label {
        font-size: 0.8rem !important;
        margin-bottom: 0.25rem !important;
    }

    .tt-nav-pills-group {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.4rem !important;
        width: 100% !important;
    }

    .tt-nav-pill-btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 0.45rem 0.5rem !important;
        font-size: 0.75rem !important;
        box-sizing: border-box !important;
    }

    /* 4. Subject Cards (Lessons) */
    .tt-subject-card {
        padding: 0.85rem 0.75rem !important;
    }

    .tt-subject-content h4 {
        font-size: 0.95rem !important;
    }

    .tt-subject-content span {
        font-size: 0.8rem !important;
    }

    /* 5. Download Subject Blocks (Notes & Textbooks) */
    .tt-download-subject-block {
        padding: 1rem 0.75rem !important;
        border-radius: 12px !important;
        margin-bottom: 0 !important;
    }

    .tt-download-subject-title {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        margin-bottom: 0.75rem !important;
        padding-bottom: 0.5rem !important;
    }

    .tt-download-subject-title h3 {
        font-size: 1.15rem !important;
        white-space: normal !important;
        overflow: visible !important;
        line-height: 1.35 !important;
    }

    .tt-download-count-badge {
        font-size: 0.82rem !important;
        padding: 0.25rem 0.6rem !important;
        flex-shrink: 0 !important;
    }

    /* 6. Download Items (Wrap if needed so full title is readable) */
    .tt-download-item {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        padding: 0.75rem 0.65rem !important;
        box-sizing: border-box !important;
    }

    .tt-download-name {
        font-size: 0.98rem !important;
        font-weight: 600 !important;
    }

    .tt-download-info {
        display: flex !important;
        align-items: center !important;
        gap: 0.45rem !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .tt-download-name {
        font-size: 0.82rem !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
    }

    .tt-btn-download-pdf,
    .tt-btn-view-subject {
        font-size: 0.72rem !important;
        padding: 0.35rem 0.65rem !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .tt-badge-coming-soon {
        font-size: 0.68rem !important;
        padding: 0.2rem 0.45rem !important;
        flex-shrink: 0 !important;
    }

    .tt-unit-subhead {
        font-size: 0.72rem !important;
        padding: 0.25rem 0.5rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
    }

    /* 7. Model Question Exam Block */
    .tt-exam-model-block {
        padding: 1rem 0.75rem !important;
        border-radius: 12px !important;
    }

    /* 8. Methodology Step Cards */
    .tt-method-step-card {
        padding: 1rem !important;
    }

    /* 9. Palakkad Learning Centre CTA Showcase */
    .tt-classroom-showcase {
        padding: 1.75rem 1rem !important;
        border-radius: 14px !important;
    }

    .tt-classroom-headline {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
    }

    .tt-classroom-subtext {
        font-size: 0.88rem !important;
    }

    .tt-classroom-action-bar {
        padding: 1rem 0.75rem !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }

    .tt-contact-info-block {
        font-size: 0.85rem !important;
        gap: 0.4rem !important;
    }

    .tt-classroom-cta-btns {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.65rem !important;
    }

    .tt-btn-whatsapp,
    .tt-btn-call {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0.75rem 1rem !important;
        box-sizing: border-box !important;
    }
}


/* ==========================================================================
   HIGH-DENSITY MOBILE COMPACTING (<= 768px)
   Eliminates excessive margins, paddings, and wasted white space
   ========================================================================== */

@media (max-width: 768px) {

    /* 1. Page & Outer Containers */
    .ast-container,
    .site-content .ast-container,
    #content>.ast-container,
    .tt-home-container,
    .tt-page-container {
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
        padding-top: 0.5rem !important;
        padding-bottom: 1.25rem !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* 2. Sections - Tighten Top/Bottom Gaps */
    .tt-section,
    .tt-downloads-section,
    .tt-textbooks-section {
        padding: 0.85rem 0.5rem !important;
        margin-bottom: 0.85rem !important;
        border-radius: 8px !important;
    }

    .tt-downloads-header,
    .tt-section-header-center {
        margin-bottom: 0.65rem !important;
    }

    .tt-section-title {
        font-size: 1.3rem !important;
        margin-top: 0.25rem !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.25 !important;
    }

    .tt-section-subtitle {
        font-size: 0.8rem !important;
        line-height: 1.35 !important;
        margin-bottom: 0.4rem !important;
    }

    /* 3. Hero Section - Compact */
    .tt-hero-modern {
        padding: 1.15rem 0.75rem !important;
        margin-bottom: 0.85rem !important;
        border-radius: 10px !important;
    }

    .tt-hero-grid {
        gap: 0.85rem !important;
    }

    .tt-hero-badge {
        font-size: 0.72rem !important;
        padding: 0.2rem 0.55rem !important;
        margin-bottom: 0.4rem !important;
    }

    .tt-hero-title {
        font-size: 1.45rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.4rem !important;
    }

    .tt-hero-subtitle {
        font-size: 0.84rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.65rem !important;
    }

    .tt-hero-cta-group {
        gap: 0.5rem !important;
        margin-bottom: 0.65rem !important;
    }

    .tt-btn-hero-primary,
    .tt-btn-hero-secondary {
        padding: 0.55rem 0.85rem !important;
        font-size: 0.84rem !important;
    }

    .tt-hero-trust-row {
        gap: 0.25rem !important;
        margin-top: 0.4rem !important;
    }

    .tt-trust-pill {
        font-size: 0.72rem !important;
        padding: 0.2rem 0.45rem !important;
    }

    /* 4. Quick Nav Strip */
    .tt-nav-pills-strip {
        padding: 0.5rem 0.6rem !important;
        margin-bottom: 0.85rem !important;
        gap: 0.35rem !important;
        border-radius: 8px !important;
    }

    .tt-nav-pills-label {
        font-size: 0.74rem !important;
        margin-bottom: 0.15rem !important;
    }

    .tt-nav-pills-group {
        gap: 0.3rem !important;
    }

    .tt-nav-pill-btn {
        padding: 0.35rem 0.45rem !important;
        font-size: 0.72rem !important;
        border-radius: 6px !important;
    }

    /* 5. Lessons Grid & Subject Cards */
    .tt-subject-grid {
        gap: 0.5rem !important;
    }

    .tt-subject-card {
        padding: 0.6rem 0.65rem !important;
        border-radius: 8px !important;
        gap: 0.65rem !important;
    }

    .tt-subject-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.15rem !important;
        border-radius: 8px !important;
    }

    .tt-subject-content h4 {
        font-size: 0.9rem !important;
        margin: 0 0 0.15rem 0 !important;
    }

    .tt-subject-content span {
        font-size: 0.74rem !important;
        line-height: 1.25 !important;
    }

    /* 6. Notes & Textbooks Subject Blocks */
    .tt-downloads-grid {
        gap: 0.65rem !important;
    }

    .tt-download-subject-block {
        padding: 0.65rem 0.55rem !important;
        border-radius: 8px !important;
    }

    .tt-download-subject-title {
        margin-bottom: 0.4rem !important;
        padding-bottom: 0.35rem !important;
    }

    .tt-download-subject-title h3 {
        font-size: 0.9rem !important;
        margin: 0 !important;
    }

    .tt-download-count-badge {
        font-size: 0.68rem !important;
        padding: 0.15rem 0.4rem !important;
    }

    .tt-download-list {
        gap: 0.35rem !important;
        margin-top: 0.35rem !important;
    }

    .tt-download-item {
        padding: 0.45rem 0.45rem !important;
        gap: 0.4rem !important;
        border-radius: 6px !important;
    }

    .tt-download-info {
        gap: 0.35rem !important;
    }

    .tt-pdf-icon {
        font-size: 0.85rem !important;
        flex-shrink: 0 !important;
    }

    .tt-download-name {
        font-size: 0.78rem !important;
        line-height: 1.3 !important;
    }

    .tt-btn-download-pdf,
    .tt-btn-view-subject {
        font-size: 0.7rem !important;
        padding: 0.28rem 0.55rem !important;
        border-radius: 5px !important;
    }

    .tt-badge-coming-soon {
        font-size: 0.66rem !important;
        padding: 0.18rem 0.4rem !important;
    }

    .tt-unit-subhead {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.45rem !important;
        margin-top: 0.35rem !important;
        margin-bottom: 0.15rem !important;
    }

    /* 7. Palakkad Showcase Section */
    .tt-classroom-showcase {
        padding: 1.15rem 0.75rem !important;
        margin-bottom: 0.85rem !important;
        border-radius: 10px !important;
    }

    .tt-classroom-headline {
        font-size: 1.2rem !important;
        margin-bottom: 0.35rem !important;
    }

    .tt-classroom-subtext {
        font-size: 0.8rem !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.35 !important;
    }

    .tt-classroom-action-bar {
        padding: 0.75rem 0.65rem !important;
        gap: 0.65rem !important;
        border-radius: 8px !important;
    }

    .tt-contact-info-block {
        font-size: 0.78rem !important;
        gap: 0.3rem !important;
    }

    .tt-classroom-cta-btns {
        gap: 0.45rem !important;
    }

    .tt-btn-whatsapp,
    .tt-btn-call {
        padding: 0.55rem 0.75rem !important;
        font-size: 0.82rem !important;
    }
}

/* 3-item grid layout for refined hero preview card */
.tt-preview-materials-grid.tt-preview-grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
}

.tt-preview-grid-3 .tt-preview-mat-item {
    padding: 0.5rem 0.45rem !important;
    gap: 0.45rem !important;
}

.tt-preview-grid-3 .tt-mat-icon {
    font-size: 1.1rem !important;
}

.tt-preview-grid-3 .tt-preview-mat-item strong {
    font-size: 0.76rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.tt-preview-grid-3 .tt-preview-mat-item small {
    font-size: 0.68rem !important;
}

@media (max-width: 640px) {
    .tt-preview-materials-grid.tt-preview-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 0.4rem !important;
    }
}

/* Clickable Class Badge Hover and Transitions */
a.tt-class-badge {
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
}

a.tt-class-badge:hover {
    background: #0F766E !important;
    border-color: #A7F3D0 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.5) !important;
}

/* Unified Desktop Centered Container Rule for Homepage, Class Hubs & Subject Pages */
.tt-home-container,
.tt-homepage-wrapper,
.tt-page-container,
.tt-subject-wrapper {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
    width: 100% !important;
}


/* Credibility Dashboard & Continuous Ticker Styles */

/* 1. Credibility Dashboard */
.tt-credibility-dashboard {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    margin: 1.5rem 0 1.25rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tt-credibility-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.tt-cred-item {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.tt-cred-item:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.tt-cred-icon-val {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.tt-cred-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tt-cred-num {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.02em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.tt-cred-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748B;
    text-transform: capitalize;
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .tt-credibility-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 0.75rem;
    }

    .tt-cred-num {
        font-size: 1.4rem;
    }

    .tt-cred-label {
        font-size: 0.78rem;
    }
}

/* 2. Refined Seamless Ticker */
.tt-latest-updates-strip {
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.55rem 0.85rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.tt-updates-badge {
    background: #DC2626;
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
}

.tt-ticker-track-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    display: flex;
}

.tt-ticker-content-loop {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    white-space: nowrap;
    animation: tt-ticker-slide 28s linear infinite;
    will-change: transform;
}

.tt-latest-updates-strip:hover .tt-ticker-content-loop {
    animation-play-state: paused;
}

@keyframes tt-ticker-slide {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tt-ticker-content-loop {
        animation: none;
        overflow-x: auto;
        gap: 1.5rem;
    }
}

.tt-update-item {
    color: #E2E8F0 !important;
    text-decoration: none !important;
    font-size: 0.86rem;
    font-weight: 500;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.tt-update-item strong {
    color: #5EEAD4;
    font-weight: 700;
    margin-right: 0.35rem;
}

.tt-update-item:hover {
    color: #FFFFFF !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   HERO REFINEMENT – BRAND SLOGAN & 2x2 STUDENT BENEFITS DASHBOARD (v4.1.5)
   ========================================================================== */

/* Left-side Brand Slogan */
.tt-hero-slogan {
    font-size: 1.15rem;
    font-weight: 700;
    color: #5EEAD4;
    /* Teal accent */
    margin: -0.25rem 0 1rem 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tt-hero-slogan::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #14B8A6;
    box-shadow: 0 0 8px #5EEAD4;
    flex-shrink: 0;
}

/* Right-side 2x2 Student Benefits Dashboard */
.tt-benefits-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.tt-benefit-tile {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 0.9rem 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.tt-benefit-tile:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(94, 234, 212, 0.35);
    transform: translateY(-1px);
}

.tt-benefit-tile-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.35rem;
}

.tt-benefit-icon {
    font-size: 1.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tt-benefit-title,
.tt-home-container .tt-benefit-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF !important;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.tt-benefit-desc,
.tt-home-container .tt-benefit-desc,
.tt-benefit-tile p,
.tt-home-container .tt-benefit-tile p {
    font-size: 0.95rem !important;
    color: #E2E8F0 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    opacity: 1 !important;
}

/* Hero Visual Column and Layout Symmetry */
.tt-hero-modern .tt-platform-preview-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tt-hero-modern .tt-preview-body {
    padding: 1.15rem;
}

@media (max-width: 860px) {
    .tt-hero-slogan {
        font-size: 1.02rem;
        margin-bottom: 0.85rem;
    }

    .tt-benefits-dashboard-grid {
        gap: 0.75rem;
    }
}

@media (max-width: 640px) {
    .tt-hero-slogan {
        font-size: 1.05rem;
        line-height: 1.45;
        margin-bottom: 0.65rem;
    }

    .tt-benefits-dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .tt-benefit-tile {
        padding: 0.95rem 1.15rem !important;
    }

    .tt-benefit-title,
    .tt-home-container .tt-benefit-title {
        font-size: 1.05rem !important;
    }

    .tt-benefit-desc,
    .tt-home-container .tt-benefit-desc,
    .tt-benefit-tile p,
    .tt-home-container .tt-benefit-tile p {
        font-size: 0.92rem !important;
        color: #E2E8F0 !important;
        line-height: 1.45 !important;
    }
}

/* ==========================================================================
   MOBILE SCREEN UTILISATION & PADDING COMPACTNESS (v4.5.0)
   Removes excessive whitespace on Class 10, Class 9, Class 8 & all Subject pages
   ========================================================================== */
@media (max-width: 768px) {

    /* 1. Theme wrappers and outer content containers (Homepage, Class Hubs & Subjects) */
    .home .ast-container,
    .home #content>.ast-container,
    .home .site-content .ast-container,
    .home #primary,
    .home .site-main,
    .home .ast-article-single,
    .home .entry-content,
    .single-tt_class .ast-container,
    .single-tt_subject .ast-container,
    .single-tt_class #primary,
    .single-tt_subject #primary,
    .single-tt_class .site-main,
    .single-tt_subject .site-main,
    .single-tt_class .ast-article-single,
    .single-tt_subject .ast-article-single,
    .single-tt_class .entry-content,
    .single-tt_subject .entry-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
    }

    /* 2. Container padding on mobile (Homepage, Class hubs & subjects) */
    .home .tt-home-container,
    .single-tt_class .tt-home-container,
    .single-tt_class .tt-page-container,
    .tt-subject-wrapper {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        padding-top: 0.4rem !important;
        padding-bottom: 1.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 3. Class Hub & Homepage Hero Compactness */
    .tt-hero-modern {
        padding: 1.25rem 0.85rem !important;
        margin-bottom: 1rem !important;
        border-radius: 12px !important;
    }

    .tt-hero-modern .tt-hero-badge {
        font-size: 0.88rem !important;
        padding: 0.35rem 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }

    .tt-hero-modern .tt-hero-title {
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.5rem !important;
    }

    .tt-hero-modern .tt-hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.85rem !important;
    }

    .tt-hero-modern .tt-hero-cta-group {
        gap: 0.65rem !important;
        margin-bottom: 0.85rem !important;
    }

    .tt-hero-modern .tt-hero-trust-row {
        gap: 0.5rem !important;
        margin-top: 0.65rem !important;
    }

    .tt-trust-pill {
        font-size: 0.85rem !important;
        padding: 0.35rem 0.75rem !important;
    }

    /* 4. Subject Header Hero Banner Compactness */
    .tt-subject-header {
        padding: 1.35rem 1rem 1.25rem 1rem !important;
        border-radius: 12px !important;
        margin-bottom: 1rem !important;
    }

    .tt-subject-header .tt-class-badge {
        font-size: 0.88rem !important;
        padding: 0.35rem 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }

    .tt-subject-title {
        font-size: 1.6rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.5rem !important;
    }

    .tt-subject-desc {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.75rem !important;
    }

    .tt-subject-stats-bar {
        gap: 0.5rem !important;
        margin-top: 0.65rem !important;
    }

    .tt-stat-chip {
        font-size: 0.85rem !important;
        padding: 0.35rem 0.75rem !important;
    }

    /* 5. Chapter navigation chips on mobile */
    .tt-chapter-chips-nav {
        margin-bottom: 0.85rem !important;
    }

    .tt-chips-scroll {
        padding: 0.25rem 1.25rem 0.5rem 0.25rem !important;
        gap: 0.5rem !important;
    }

    .tt-chip {
        font-size: 0.9rem !important;
        padding: 0.45rem 0.85rem !important;
    }

    /* 6. Chapter Cards & Resource Rows on mobile */
    .tt-chapter-card,
    [id^="tt-chap-"],
    [id^="chapter-"] {
        scroll-margin-top: 80px !important;
    }

    .tt-chapter-card {
        padding: 1rem 0.85rem !important;
        margin-bottom: 1rem !important;
        border-radius: 10px !important;
    }

    .tt-chapter-title {
        font-size: 1.15rem !important;
        margin-bottom: 0.75rem !important;
    }

    .tt-resource-row {
        padding: 0.7rem 0.85rem !important;
        gap: 0.65rem !important;
    }

    .tt-resource-name {
        font-size: 1rem !important;
        font-weight: 600 !important;
    }

    .tt-btn-action {
        font-size: 0.88rem !important;
        padding: 0.45rem 0.85rem !important;
        min-width: 95px !important;
        justify-content: center !important;
    }

    .tt-status-badge,
    .tt-badge-coming-soon {
        font-size: 0.88rem !important;
        padding: 0.4rem 0.8rem !important;
        font-weight: 600 !important;
        color: #64748B !important;
        background: #F1F5F9 !important;
        border-radius: 6px !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    /* 7. Homepage Sections, Grids & Cards Compactness on Mobile */
    .home .tt-section,
    .tt-home-container .tt-section {
        margin-bottom: 1.75rem !important;
    }

    .home .tt-section-header-center,
    .home .tt-section-header,
    .tt-home-container .tt-section-header {
        margin-bottom: 1rem !important;
    }

    .home .tt-section-title,
    .tt-home-container .tt-section-title {
        font-size: 1.45rem !important;
        line-height: 1.25 !important;
    }

    .home .tt-section-subtitle,
    .home .tt-section-desc,
    .tt-home-container .tt-section-subtitle,
    .tt-home-container .tt-section-desc {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.65rem !important;
    }

    .home .tt-class-grid,
    .tt-home-container .tt-class-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    .home .tt-class-card,
    .tt-home-container .tt-class-card {
        padding: 1.25rem 1.15rem !important;
        border-radius: 12px !important;
    }

    .home .tt-class-card-title,
    .tt-home-container .tt-class-card-title {
        font-size: 1.35rem !important;
        margin-bottom: 0.45rem !important;
    }

    .home .tt-class-card-desc,
    .tt-home-container .tt-class-card-desc {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.85rem !important;
    }

    .home .tt-subject-grid,
    .tt-home-container .tt-subject-grid,
    .tt-subject-grid {
        grid-template-columns: 1fr !important;
        gap: 0.65rem !important;
        width: 100% !important;
    }

    .home .tt-subject-card,
    .tt-home-container .tt-subject-card,
    .tt-subject-card {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0.85rem 1rem !important;
        border-radius: 10px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
    }

    .home .tt-subject-card h4,
    .tt-home-container .tt-subject-card h4,
    .tt-subject-card h4 {
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        margin-bottom: 0.25rem !important;
    }

    .home .tt-subject-card span,
    .tt-home-container .tt-subject-card span,
    .tt-subject-card span {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }

    /* 8. "Why Learn with Top Tuition" Mobile Layout (Clean Vertical Stack) */
    .home .tt-why-grid,
    .tt-home-container .tt-why-grid,
    .tt-why-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
        width: 100% !important;
    }

    .home .tt-why-card,
    .tt-home-container .tt-why-card,
    .tt-why-card {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 1.25rem 1.15rem !important;
        border-radius: 12px !important;
    }

    .home .tt-why-card h3,
    .tt-home-container .tt-why-card h3,
    .tt-why-card h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.45rem !important;
    }

    .home .tt-why-card p,
    .tt-home-container .tt-why-card p,
    .tt-why-card p {
        font-size: 1.02rem !important;
        line-height: 1.55 !important;
        color: #334155 !important;
    }
}

/* ==========================================================================
   CLASSROOM TUITION (PALAKKAD) COMPACT & MOBILE-FIRST REFINEMENT (v4.1.7)
   ========================================================================== */

.tt-classroom-showcase {
    padding: 1.5rem 1.65rem 1.35rem 1.65rem !important;
    margin-bottom: 0 !important;
}

.tt-classroom-badge {
    margin-bottom: 0.65rem !important;
}

.tt-classroom-headline {
    margin: 0 0 0.85rem 0 !important;
    font-size: 1.55rem !important;
    line-height: 1.25 !important;
}

/* Four Benefit Pills in 1 Horizontal Row (Desktop) */
.tt-classroom-pillars-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.75rem !important;
    margin-bottom: 1.15rem !important;
    width: 100% !important;
}

.tt-pillar-item {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    padding: 0.6rem 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    text-align: center !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.tt-pillar-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #5EEAD4 !important;
    transform: translateY(-1px) !important;
}

.tt-pillar-icon {
    font-size: 1.15rem !important;
    line-height: 1 !important;
    margin-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.tt-pillar-label {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    line-height: 1.2 !important;
}

/* Compact Contact Action Bar (Desktop 2-Column: 65% info / 35% actions) */
.tt-classroom-action-bar {
    background: #061120 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    padding: 0.95rem 1.35rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.tt-contact-info-block {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
    flex: 0 0 65% !important;
    max-width: 65% !important;
    box-sizing: border-box !important;
}

.tt-contact-address {
    font-size: 0.9rem !important;
    color: #E2E8F0 !important;
    line-height: 1.4 !important;
}

.tt-contact-row-desktop {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex-wrap: wrap !important;
    font-size: 0.88rem !important;
    color: #CBD5E1 !important;
}

.tt-contact-divider {
    color: #64748B !important;
    font-weight: bold;
}

.tt-contact-line {
    font-size: 0.88rem !important;
    color: #E2E8F0 !important;
}

.tt-contact-line strong {
    color: #5EEAD4 !important;
}

.tt-contact-line a {
    color: #5EEAD4 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

.tt-classroom-cta-btns {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    flex: 0 0 calc(35% - 1.5rem) !important;
    max-width: calc(35% - 1.5rem) !important;
    box-sizing: border-box !important;
}

.tt-btn-whatsapp,
.tt-btn-call {
    padding: 0.55rem 1rem !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .tt-classroom-action-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
        padding: 0.95rem 1.15rem !important;
    }

    .tt-contact-info-block {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }

    .tt-classroom-cta-btns {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        flex-direction: row !important;
        width: 100% !important;
        gap: 0.65rem !important;
    }

    .tt-btn-whatsapp,
    .tt-btn-call {
        flex: 1 !important;
    }
}

@media (max-width: 768px) {
    .tt-classroom-showcase {
        padding: 1.15rem 0.95rem 1rem 0.95rem !important;
    }

    .tt-classroom-headline {
        font-size: 1.25rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* Mobile 2x2 Benefits Grid */
    .tt-classroom-pillars-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        margin-bottom: 0.85rem !important;
    }

    .tt-pillar-item {
        padding: 0.45rem 0.4rem !important;
        gap: 0.35rem !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .tt-pillar-icon {
        font-size: 1.05rem !important;
    }

    .tt-pillar-label {
        font-size: 0.78rem !important;
        line-height: 1.2 !important;
    }

    .tt-contact-row-desktop {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.2rem !important;
    }

    .tt-contact-divider {
        display: none !important;
    }

    .tt-contact-address,
    .tt-contact-line {
        font-size: 0.78rem !important;
    }

    .tt-classroom-cta-btns {
        flex-direction: row !important;
        width: 100% !important;
        gap: 0.45rem !important;
    }

    .tt-btn-whatsapp,
    .tt-btn-call {
        font-size: 0.78rem !important;
        padding: 0.5rem 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .tt-classroom-showcase {
        padding: 1rem 0.75rem 0.85rem 0.75rem !important;
    }

    .tt-classroom-headline {
        font-size: 1.15rem !important;
        margin-bottom: 0.65rem !important;
    }

    .tt-pillar-item {
        padding: 0.4rem 0.35rem !important;
    }

    .tt-pillar-label {
        font-size: 0.74rem !important;
    }

    .tt-classroom-cta-btns {
        flex-direction: column !important;
        gap: 0.4rem !important;
    }

    .tt-btn-whatsapp,
    .tt-btn-call {
        width: 100% !important;
    }
}

/* --------------------------------------------------------------------------
   F. ONLINE CLASS NAVIGATION – FINAL ELEMENT (v4.1.8)
   -------------------------------------------------------------------------- */
.tt-footer-tuition {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.tt-footer-online-nav {
    margin-top: 1.15rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    text-align: center !important;
    width: 100% !important;
}

.tt-online-nav-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin: 0 0 0.75rem 0 !important;
    letter-spacing: -0.01em !important;
}

.tt-online-nav-btns {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1rem !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.tt-btn-online-class {
    flex: 1 1 0 !important;
    background: #0D9488 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    padding: 0.65rem 1rem !important;
    border-radius: 6px !important;
    text-align: center !important;
    text-decoration: none !important;
    border: 1px solid #14B8A6 !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25) !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    box-sizing: border-box !important;
}

.tt-btn-online-class:hover {
    background: #0F766E !important;
    border-color: #5EEAD4 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.4) !important;
    color: #FFFFFF !important;
}

@media (max-width: 600px) {
    .tt-footer-online-nav {
        margin-top: 0.85rem !important;
        padding-top: 0.75rem !important;
    }

    .tt-online-nav-title {
        font-size: 0.95rem !important;
        margin-bottom: 0.65rem !important;
    }

    .tt-online-nav-btns {
        gap: 0.5rem !important;
    }

    .tt-btn-online-class {
        font-size: 0.82rem !important;
        padding: 0.5rem 0.4rem !important;
    }
}

/* ==========================================================================
   GLOBAL SITE FOOTER HOOK SYSTEM (v4.1.9)
   Replaces Astra default theme footer across all pages
   ========================================================================== */

/* Hide default Astra bottom bar / copyright on all pages */
footer.site-footer#colophon,
.site-footer#colophon,
#colophon {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Global Footer Container */
.tt-global-footer-container {
    max-width: 1200px;
    margin: 1.25rem auto 1.5rem auto !important;
    padding: 0 1rem;
    box-sizing: border-box;
    width: 100%;
}

.tt-global-footer-container .tt-classroom-showcase {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .tt-global-footer-container {
        padding: 0 0.5rem;
        margin: 0.75rem auto 1.25rem auto !important;
    }
}

/* ==========================================================================
   PAGE-TO-FOOTER COMPACT SPACING (Eliminates excessive bottom gap before footer)
   ========================================================================== */
.tt-home-container,
.tt-homepage-wrapper,
.tt-page-container {
    padding-bottom: 1rem !important;
}

.tt-subject-wrapper {
    padding-bottom: 1.25rem !important;
}

/* Eliminate bottom margin on the final child section in containers */
.tt-home-container>.tt-section:last-child,
.tt-home-container> :last-child,
.tt-page-container> :last-child,
.tt-subject-wrapper> :last-child,
.tt-chapters-list> :last-child {
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {

    .tt-home-container,
    .tt-homepage-wrapper,
    .tt-page-container,
    .tt-subject-wrapper {
        padding-bottom: 0.75rem !important;
    }

    .tt-home-container>.tt-section:last-child,
    .tt-home-container> :last-child,
    .tt-page-container> :last-child,
    .tt-subject-wrapper> :last-child,
    .tt-chapters-list> :last-child {
        margin-bottom: 0 !important;
    }
}



/* ==========================================================================
   QUESTION PAPERS & ANSWER KEYS DIRECTORY STYLES (v4.7.0)
   ========================================================================== */
.tt-qp-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.tt-qp-hero-banner {
    background: linear-gradient(135deg, #0A192F 0%, #0F2A4A 60%, #16365D 100%) !important;
    border-radius: var(--tt-radius-lg, 1rem);
    padding: 2.5rem 2rem;
    color: #ffffff;
    margin-bottom: 2.5rem;
    box-shadow: 0 16px 36px -10px rgba(10, 25, 47, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tt-qp-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #F8FAFC;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.825rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.tt-qp-hero-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    color: #ffffff !important;
}

.tt-qp-hero-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #E2E8F0;
    max-width: 760px;
    margin: 0 0 1.5rem;
}

.tt-qp-class-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.tt-qp-class-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.925rem;
    transition: all 0.2s ease;
}

.tt-qp-class-pill:hover,
.tt-qp-class-pill.active {
    background: #ffffff;
    color: #1E3A8A;
    border-color: #ffffff;
}

/* Subject Sections */
.tt-qp-subject-group {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 1rem;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
}

.tt-qp-subject-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #F1F5F9;
    margin-bottom: 1.5rem;
}

.tt-qp-subject-title-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tt-qp-subject-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.tt-qp-subject-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
}

.tt-qp-count-pill {
    font-size: 0.85rem;
    font-weight: 600;
    background: #F1F5F9;
    color: #475569;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
}

/* Search & Filter Toolbar */
.tt-qp-toolbar-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 0.875rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.04);
}

.tt-qp-search-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.tt-qp-search-input-box {
    flex: 1;
    min-width: 260px;
    position: relative;
    display: flex;
    align-items: center;
}

.tt-qp-search-icon {
    position: absolute;
    left: 1rem;
    color: #64748B;
    font-size: 1.1rem;
    pointer-events: none;
}

.tt-qp-search-input {
    width: 100% !important;
    padding: 0.75rem 2.5rem 0.75rem 2.85rem !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 0.6rem !important;
    font-size: 0.975rem !important;
    color: #0F172A !important;
    background: #F8FAFC !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tt-qp-search-input:focus {
    border-color: #2563EB !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.tt-qp-clear-btn {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    color: #94A3B8;
    cursor: pointer;
    padding: 0.25rem;
    display: none;
}

.tt-qp-clear-btn:hover {
    color: #0F172A;
}

.tt-qp-filters-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tt-qp-select-filter {
    padding: 0.7rem 1rem !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 0.6rem !important;
    font-size: 0.9rem !important;
    color: #1E293B !important;
    background: #F8FAFC !important;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}

.tt-qp-select-filter:focus {
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.tt-qp-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #64748B;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #F1F5F9;
}

/* Scalable List Structure for Solved Papers */
.tt-qp-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.tt-qp-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 0.65rem;
    padding: 0.9rem 1.25rem;
    transition: all 0.2s ease;
    gap: 1.25rem;
}

.tt-qp-list-item:hover {
    background: #ffffff;
    border-color: #93C5FD;
    box-shadow: 0 4px 10px -2px rgba(37, 99, 235, 0.08);
    transform: translateX(3px);
}

.tt-qp-item-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.tt-qp-item-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.tt-qp-item-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tt-qp-item-action {
    flex-shrink: 0;
}

.tt-btn-qp-list {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #2563EB;
    color: #ffffff !important;
    padding: 0.55rem 1.15rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tt-btn-qp-list:hover {
    background: #1D4ED8;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px -1px rgba(37, 99, 235, 0.25);
}

.tt-qp-no-results {
    background: #ffffff;
    border: 1.5px dashed #CBD5E1;
    border-radius: 0.875rem;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #64748B;
    margin: 2rem 0;
}

.tt-qp-no-results-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.tt-qp-year-badge {
    background: #1E3A8A;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 0.35rem;
    letter-spacing: 0.03em;
}

.tt-qp-term-pill {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 0.35rem;
    background: #EEF2FF;
    color: #4338CA;
    border: 1px solid #C7D2FE;
}

.tt-qp-paper-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 1rem;
    line-height: 1.4;
}

.tt-qp-actions-row {
    display: flex;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px dashed #E2E8F0;
}

.tt-btn-qp,
.tt-btn-key {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.tt-btn-qp {
    background: #2563EB;
    color: #ffffff !important;
}

.tt-btn-qp:hover {
    background: #1D4ED8;
    color: #ffffff !important;
}

.tt-btn-key {
    background: #059669;
    color: #ffffff !important;
}

.tt-btn-key:hover {
    background: #047857;
    color: #ffffff !important;
}

.tt-qp-btn-disabled {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.825rem;
    font-weight: 500;
    background: #E2E8F0;
    color: #94A3B8;
    cursor: not-allowed;
}

/* Feature Spotlight Card for Landing Pages */
.tt-qp-feature-banner {
    background: linear-gradient(135deg, #0A192F 0%, #0F2A4A 60%, #16365D 100%) !important;
    border-radius: var(--tt-radius-lg, 1rem);
    padding: 2rem 2.25rem;
    margin: 2.5rem 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
    box-shadow: 0 16px 36px -10px rgba(10, 25, 47, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tt-qp-feature-content h3 {
    color: #ffffff !important;
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.tt-qp-feature-content p,
.tt-qp-desc,
.tt-qp-feature-banner p,
.tt-home-container .tt-qp-feature-banner .tt-qp-feature-content p,
.tt-page-container .tt-qp-feature-banner .tt-qp-feature-content p,
.tt-home-container .tt-qp-feature-content p,
.tt-page-container .tt-qp-feature-content p {
    color: #E2E8F0 !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    max-width: 680px !important;
    opacity: 1 !important;
}

.tt-qp-feature-cta,
.tt-page-container .tt-qp-feature-cta,
.entry-content a.tt-qp-feature-cta,
a.tt-qp-feature-cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
    background: #F59E0B !important;
    color: #0F172A !important;
    padding: 0.85rem 1.6rem !important;
    border-radius: 0.6rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3) !important;
    transition: all 0.2s ease !important;
}

.tt-qp-feature-cta:hover,
.tt-page-container .tt-qp-feature-cta:hover,
.entry-content a.tt-qp-feature-cta:hover,
a.tt-qp-feature-cta:hover {
    background: #D97706 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-bottom: none !important;
    transform: translateY(-2px);
}

.tt-qp-feature-cta:visited,
.tt-qp-feature-cta:focus,
.tt-qp-feature-cta:active {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    .tt-qp-page-wrapper {
        padding: 1rem 0.85rem 2rem;
    }

    .tt-qp-hero-banner {
        padding: 1.75rem 1.25rem;
        border-radius: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .tt-qp-hero-title {
        font-size: 1.65rem;
    }

    .tt-qp-hero-desc {
        font-size: 0.95rem;
    }

    .tt-qp-subject-group {
        padding: 1.25rem 1rem;
        border-radius: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .tt-qp-subject-heading {
        font-size: 1.2rem;
    }

    .tt-qp-toolbar-card {
        padding: 1rem;
    }

    .tt-qp-search-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .tt-qp-search-input-box {
        min-width: 100%;
    }

    .tt-qp-filters-row {
        width: 100%;
        gap: 0.5rem;
    }

    .tt-qp-select-filter {
        flex: 1;
        min-width: 140px;
    }

    .tt-qp-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }

    .tt-qp-item-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        width: 100%;
    }

    .tt-qp-item-title {
        white-space: normal;
        word-break: break-word;
    }

    .tt-qp-item-action {
        width: 100%;
    }

    .tt-btn-qp-list {
        width: 100%;
        justify-content: center;
    }

    .tt-qp-feature-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 1.25rem;
        border-radius: 0.75rem;
        margin: 1.75rem 0;
    }

    .tt-qp-feature-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Top Tuition Redesigned Contact Page Styles (Mobile-First)
   ========================================================================== */

.tt-contact-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3.5rem;
}

.tt-contact-badge-pill {
    display: inline-block;
    background: #DCFCE7;
    color: #15803D;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    margin-bottom: 0.4rem;
}

.tt-address-text {
    font-style: normal;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0.25rem 0 0.75rem 0;
}

.tt-btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #F1F5F9;
    color: #0F172A !important;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.tt-btn-directions:hover {
    background: #E2E8F0;
    color: #0F172A !important;
}

/* Form Validation & Alerts */
.tt-field-error {
    color: #DC2626;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

.tt-form-alert {
    padding: 0.85rem 1.1rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    line-height: 1.45;
}

.tt-alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #F87171;
}

.tt-alert-success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #86EFAC;
}

.tt-alert-action-link {
    color: #15803D !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

.tt-form-note {
    font-size: 0.8rem;
    color: #64748B;
    margin-top: 1rem;
    text-align: center;
}

/* Secondary Classroom Tuition Card (Palakkad) */
.tt-classroom-secondary-card {
    background: linear-gradient(135deg, #0A192F 0%, #0F2A4A 60%, #16365D 100%) !important;
    border-radius: 16px;
    padding: 2.25rem 2.5rem;
    margin: 3.5rem 0 2.5rem 0;
    color: #FFFFFF;
    box-shadow: 0 16px 36px -10px rgba(10, 25, 47, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tt-classroom-sec-content h2 {
    color: #FFFFFF !important;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0.5rem 0 0.65rem 0;
}

.tt-classroom-sec-content p,
.tt-page-container .tt-classroom-sec-content p,
.tt-classroom-secondary-card p,
.tt-page-container .tt-classroom-secondary-card p {
    color: #E2E8F0 !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    max-width: 820px;
    margin: 0 0 1.25rem 0 !important;
    opacity: 1 !important;
}

.tt-classroom-sec-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.tt-btn-classroom-sec {
    display: inline-flex;
    align-items: center;
    background: #F59E0B;
    color: #0F172A !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.4rem;
    border-radius: 8px;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: all 0.2s ease;
}

.tt-btn-classroom-sec:hover {
    background: #D97706;
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.tt-classroom-location-hint {
    color: #94A3B8;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Study Materials Quicklinks Section */
.tt-materials-quicklinks-section {
    margin: 3rem 0 1.5rem 0;
}

.tt-materials-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .tt-materials-links-grid {
        grid-template-columns: 1fr;
    }
}

.tt-materials-link-tile {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.tt-materials-link-tile:hover {
    border-color: #0D9488;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.12);
}

.tt-materials-link-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.tt-materials-link-info {
    flex: 1 1 auto;
}

.tt-materials-class-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #F1F5F9;
    color: #0D9488;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

.tt-materials-link-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A365D;
}

.tt-materials-link-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748B;
    line-height: 1.4;
}

.tt-materials-arrow {
    font-size: 1.35rem;
    color: #0D9488;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.tt-materials-link-tile:hover .tt-materials-arrow {
    transform: translateX(4px);
}


/* ==========================================================================
   Question Paper Banner High-Contrast & Text-Decoration Overrides
   ========================================================================== */
html body .entry-content .tt-home-container .tt-qp-feature-banner .tt-qp-feature-content p,
html body .entry-content .tt-home-container .tt-qp-feature-banner p,
html body .entry-content .tt-home-container p.tt-qp-desc,
html body .entry-content .tt-qp-feature-banner .tt-qp-desc,
.tt-qp-feature-banner .tt-qp-desc,
.tt-qp-desc {
    color: #E2E8F0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

html body .entry-content a.tt-qp-feature-cta,
html body .entry-content .tt-qp-feature-banner a.tt-qp-feature-cta,
html body .entry-content .tt-home-container .tt-qp-feature-banner a.tt-qp-feature-cta,
.ast-single-post .entry-content a.tt-qp-feature-cta,
a.tt-qp-feature-cta {
    text-decoration: none !important;
    text-decoration-line: none !important;
    -webkit-text-decoration-line: none !important;
    border-bottom: none !important;
    outline: none !important;
}

/* Helpdesk Benefit Tiles in Hero Preview Card */
html body .entry-content .tt-contact-page-container .tt-benefit-tile p,
html body .entry-content .tt-page-container .tt-benefit-tile p,
html body .entry-content .tt-benefit-tile p,
.tt-contact-page-container .tt-benefit-desc,
.tt-page-container .tt-benefit-desc,
.tt-benefit-desc {
    color: #E2E8F0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}


/* ==========================================================================
   SEAMLESS HERO & HEADER MARGIN ALIGNMENT (Home vs Classes vs Pages)
   Ensures zero vertical jump/shift when switching between Home, SSLC, Class 9, Class 8 & Pages
   ========================================================================== */

/* 1. Neutralize all Astra theme outer margins & padding above hero across all templates */
html body.ast-desktop .site-content,
html body.ast-desktop #content.site-content,
html body.ast-desktop .ast-separate-container .site-content,
html body.ast-desktop .ast-page-builder-template .site-content,
html body.ast-desktop.ast-separate-container #primary,
html body.ast-desktop.ast-page-builder-template #primary,
html body.ast-desktop #primary,
html body.ast-desktop .site-main,
html body.ast-desktop .ast-article-single,
html body.ast-desktop .ast-article-post,
html body.ast-desktop article.hentry,
html body.ast-desktop .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

/* 2. Completely eliminate empty theme headers & meta on custom post types */
.single-tt_class .entry-header,
.single-tt_subject .entry-header,
.page .entry-header.ast-no-title,
.entry-header.ast-header-without-markup,
.single-tt_class .entry-meta,
.single-tt_subject .entry-meta {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    line-height: 0 !important;
}

/* 3. Lock consistent top margin for the container and hero on desktop */
html body.ast-desktop .ast-container,
html body.ast-desktop .site-content > .ast-container,
html body.ast-desktop #content > .ast-container {
    padding-top: 1.25rem !important;
    margin-top: 0 !important;
}

html body.ast-desktop .tt-home-container,
html body.ast-desktop .tt-page-container,
html body.ast-desktop .tt-subject-wrapper,
html body.ast-desktop .tt-contact-page-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

html body.ast-desktop .tt-hero-modern,
html body.ast-desktop .tt-subject-header,
html body.ast-desktop .tt-qp-hero-banner {
    margin-top: 0 !important;
}

/* 4. Responsive mobile & tablet consistency */
@media (max-width: 768px) {
    html body .site-content,
    html body #content.site-content,
    html body #primary,
    html body .site-main,
    html body .ast-article-single,
    html body .entry-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    html body .ast-container,
    html body .site-content > .ast-container,
    html body #content > .ast-container {
        padding-top: 0.65rem !important;
        margin-top: 0 !important;
    }

    html body .tt-home-container,
    html body .tt-page-container,
    html body .tt-subject-wrapper {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    html body .tt-hero-modern,
    html body .tt-subject-header,
    html body .tt-qp-hero-banner {
        margin-top: 0 !important;
    }
}
