/* =============================================================
   TTP Redesign — Teacher Transfer Portal
   Modern Government Portal Theme
   Navy #082a43 · Amber #f59e0b · Emerald #10b981
   ============================================================= */

/* ---------- Design Tokens ---------- */
:root {
    --ttp-primary:       #082a43;
    --ttp-primary-light: #0f3d5e;
    --ttp-primary-50:    #e8f0f7;
    --ttp-accent:        #f59e0b;
    --ttp-accent-dark:   #d97706;
    --ttp-green:         #10b981;
    --ttp-green-dark:    #059669;
    --ttp-danger:        #ef4444;
    --ttp-surface:       #ffffff;
    --ttp-surface-2:     #f8fafc;
    --ttp-surface-3:     #eef2f7;
    --ttp-text:          #0f172a;
    --ttp-text-muted:    #64748b;
    --ttp-border:        #e2e8f0;

    --ttp-shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
    --ttp-shadow:    0 4px 6px -1px rgba(15,23,42,.08), 0 2px 4px -2px rgba(15,23,42,.06);
    --ttp-shadow-md: 0 10px 15px -3px rgba(15,23,42,.10), 0 4px 6px -4px rgba(15,23,42,.06);
    --ttp-shadow-lg: 0 20px 25px -5px rgba(15,23,42,.12), 0 8px 10px -6px rgba(15,23,42,.08);

    --ttp-radius-xs:  4px;
    --ttp-radius-sm:  8px;
    --ttp-radius:     12px;
    --ttp-radius-lg:  20px;
    --ttp-radius-xl:  28px;
    --ttp-radius-pill: 999px;

    --ttp-font: 'Inter', 'Poppins', 'Noto Sans Devanagari', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --ttp-ease: cubic-bezier(.4, 0, .2, 1);

    /* Font scale — updated by JS font-resize buttons */
    --ttp-font-scale: 1;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--ttp-font);
    font-size: calc(15px * var(--ttp-font-scale));
    color: var(--ttp-text);
    background: var(--ttp-surface-2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
}

/* Preserve Font Awesome icon fonts */
i.fa, i.fas, i.far, i.fab, i.fa-solid, i.fa-regular, i.fa-brands,
span.fas, span.fa, span.fa-solid {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   1. TOP ACCESSIBILITY BAR
   ============================================================ */
.ttp-topbar {
    background: linear-gradient(90deg, #ecf0f5 0%, #f4f6fa 100%);
    border-bottom: 1px solid var(--ttp-border);
    padding: 7px 0;
    font-size: calc(13px * var(--ttp-font-scale));
    color: var(--ttp-text-muted);
    position: relative;
    z-index: 100;
}

.ttp-topbar .ttp-datetime {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--ttp-primary);
    font-family: var(--ttp-font);
}

.ttp-topbar .ttp-datetime i {
    color: var(--ttp-accent);
}

/* Accessibility tools row */
.ttp-access {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ttp-access > li {
    display: inline-flex;
    align-items: center;
}

.ttp-access .ttp-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--ttp-radius-pill);
    background: transparent;
    border: 1px solid transparent;
    transition: background .2s var(--ttp-ease), transform .2s var(--ttp-ease);
    text-decoration: none;
}

.ttp-access .ttp-iconbtn img {
    width: 18px;
    height: 18px;
}

/* Labeled icon button — shows its text next to the icon (e.g. Skip to Main
   Content). Overrides the fixed 34px width so the label fits. */
.ttp-access .ttp-iconbtn--labeled {
    width: auto;
    gap: 6px;
    padding: 0 10px;
}

.ttp-access .ttp-iconbtn__label {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--ttp-text-muted);
}

.ttp-access .ttp-iconbtn:hover,
.ttp-access .ttp-iconbtn:focus-visible {
    background: rgba(8,42,67,.1);
    transform: translateY(-1px);
    outline: none;
}

/* Font resize group */
.ttp-fontresize {
    display: inline-flex;
    align-items: stretch;
    border-radius: var(--ttp-radius-pill);
    background: #fff;
    border: 1px solid var(--ttp-border);
    box-shadow: var(--ttp-shadow-sm);
    height: 30px;
    overflow: hidden;
    margin-left: 6px;
}

.ttp-fontresize a,
.ttp-fontresize a:link,
.ttp-fontresize a:visited {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px !important;
    padding: 0 10px !important;
    font-size: calc(12px * var(--ttp-font-scale));
    font-weight: 700;
    color: var(--ttp-primary) !important;
    text-decoration: none !important;
    background: transparent;
    border: none !important;
    border-right: 1px solid var(--ttp-border) !important;
    border-radius: 0 !important;
    width: auto !important;
    line-height: 1 !important;
    letter-spacing: .3px;
    transition: background .18s var(--ttp-ease), color .18s var(--ttp-ease);
}

.ttp-fontresize a:last-child {
    border-right: none !important;
}

.ttp-fontresize a#resetFont {
    background: var(--ttp-surface-3);
}

.ttp-fontresize a:hover,
.ttp-fontresize a:focus-visible {
    background: var(--ttp-primary) !important;
    color: #fff !important;
    outline: none;
}

/* ============================================================
   2. LOGO HEADER BAR
   ============================================================ */
/* Mobile compact logo row */
.ttp-mobile-logorow {
    padding: 8px 4px;
}

.ttp-mobile-logo-img {
    height: 42px;
    width: auto;
    flex-shrink: 0;
}

.ttp-mobile-logo-text {
    line-height: 1.25;
}

.ttp-mobile-logo-title {
    font-family: var(--ttp-font);
    font-size: calc(13.5px * var(--ttp-font-scale));
    font-weight: 700;
    color: var(--ttp-primary);
    white-space: nowrap;
}

.ttp-mobile-logo-sub {
    font-size: calc(11px * var(--ttp-font-scale));
    color: var(--ttp-text-muted);
    white-space: nowrap;
}

/* Hamburger placed inside logobar on mobile */
.ttp-logobar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--ttp-primary);
    border: none;
    border-radius: var(--ttp-radius-sm);
    cursor: pointer;
    padding: 0;
}

.ttp-logobar-toggler .navbar-toggler-icon {
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c255%2c255%2c0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.ttp-logobar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(8,42,67,.25);
}

.ttp-logobar {
    background: #fff;
    padding: 14px 0;
    box-shadow: var(--ttp-shadow-sm);
    position: relative;
    z-index: 99;
    border-bottom: 3px solid var(--ttp-primary-50);
}

.ttp-logobar .ttp-logo img {
    max-height: 82px;
    width: auto;
    transition: transform .3s var(--ttp-ease);
}

.ttp-logobar .ttp-logo:hover img {
    transform: scale(1.02);
}

.ttp-logobar .ttp-side-logos {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.ttp-logobar .ttp-side-logos img {
    max-height: 68px;
    width: auto;
    padding: 5px 10px;
    background: #fff;
    border-radius: var(--ttp-radius-sm);
    border: 1px solid var(--ttp-border);
    transition: transform .3s var(--ttp-ease), box-shadow .3s var(--ttp-ease);
}

.ttp-logobar .ttp-side-logos img:hover {
    transform: translateY(-2px);
    box-shadow: var(--ttp-shadow);
}

/* ============================================================
   3. PRIMARY NAVIGATION BAR
   ============================================================ */
.ttp-navbar {
    background: linear-gradient(90deg, var(--ttp-primary) 0%, var(--ttp-primary-light) 100%);
    position: relative;
    z-index: 98;
    padding: 0;
    transition: box-shadow .3s var(--ttp-ease);
}

.ttp-navbar.navbar-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    box-shadow: var(--ttp-shadow-md);
    animation: ttp-slide-down .3s var(--ttp-ease) both;
}

@keyframes ttp-slide-down {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

.ttp-navbar .navbar {
    padding: 0;
}

.ttp-navbar .navbar-toggler {
    border: 1px solid rgba(255,255,255,.35);
    border-radius: var(--ttp-radius-sm);
    padding: 6px 10px;
    margin: 8px 0;
    color: #fff;
}

.ttp-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}

.ttp-navbar .navbar-nav {
    gap: 2px;
    align-items: center;
    flex-wrap: wrap;
    padding-left: 80px;
}

/* Nav link base */
.ttp-navbar .nav-item .nav-link,
.ttp-navbar .nav-item .nav-link:link,
.ttp-navbar .nav-item .nav-link:visited {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    color: rgba(255,255,255,.9) !important;
    font-family: var(--ttp-font);
    font-weight: 500;
    font-size: calc(14.5px * var(--ttp-font-scale));
    padding: 16px 16px !important;
    border-radius: 0;
    position: relative;
    transition: background .22s var(--ttp-ease), color .22s var(--ttp-ease);
    text-decoration: none !important;
    white-space: nowrap;
    letter-spacing: .15px;
}

/* Animated underline indicator */
.ttp-navbar .nav-item .nav-link::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 8px;
    height: 2px;
    background: var(--ttp-accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s var(--ttp-ease);
}

.ttp-navbar .nav-item .nav-link:hover,
.ttp-navbar .nav-item .nav-link:focus-visible {
    background: rgba(255,255,255,.09) !important;
    color: #fff !important;
    outline: none;
}

.ttp-navbar .nav-item .nav-link:hover::after,
.ttp-navbar .nav-item.active .nav-link::after {
    transform: scaleX(1);
}

.ttp-navbar .nav-item.active .nav-link {
    color: #fff !important;
    background: rgba(255,255,255,.1) !important;
}

/* Dropdown menu */
.ttp-navbar .dropdown-menu {
    background: var(--ttp-primary);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--ttp-radius-sm);
    padding: 6px;
    margin-top: 0;
    box-shadow: var(--ttp-shadow-md);
    min-width: 200px;
}

.ttp-navbar .dropdown-item {
    color: rgba(255,255,255,.88) !important;
    font-size: calc(13.5px * var(--ttp-font-scale));
    padding: 9px 14px;
    border-radius: var(--ttp-radius-xs);
    transition: background .18s var(--ttp-ease);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ttp-navbar .dropdown-item:hover,
.ttp-navbar .dropdown-item:focus {
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
}

/* CTA pill buttons */
.ttp-navbar .nav-item.ttp-cta .nav-link,
.ttp-navbar .nav-item.ttp-cta .nav-link:link,
.ttp-navbar .nav-item.ttp-cta .nav-link:visited {
    margin: 9px 5px !important;
    padding: 8px 18px !important;
    border-radius: var(--ttp-radius-pill) !important;
    font-weight: 600;
    font-size: calc(13.5px * var(--ttp-font-scale));
    border: none;
    white-space: nowrap;
}

.ttp-navbar .nav-item.ttp-cta .nav-link::after { display: none !important; }

/* Officer — amber */
.ttp-navbar .nav-item.ttp-cta-officer .nav-link,
.ttp-navbar .nav-item.ttp-cta-officer .nav-link:link,
.ttp-navbar .nav-item.ttp-cta-officer .nav-link:visited {
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(249,115,22,.35);
}

.ttp-navbar .nav-item.ttp-cta-officer .nav-link:hover {
    background: linear-gradient(135deg, #fbbf24, #fb923c) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(249,115,22,.45);
    color: #fff !important;
}

/* Teacher — emerald */
.ttp-navbar .nav-item.ttp-cta-teacher .nav-link,
.ttp-navbar .nav-item.ttp-cta-teacher .nav-link:link,
.ttp-navbar .nav-item.ttp-cta-teacher .nav-link:visited {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(16,185,129,.35);
}

.ttp-navbar .nav-item.ttp-cta-teacher .nav-link:hover {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(16,185,129,.45);
    color: #fff !important;
}

/* Mobile collapse panel */
@media (max-width: 991.98px) {
    .ttp-navbar .navbar-collapse {
        background: var(--ttp-primary-light);
        padding: 8px 12px 14px;
        border-radius: 0 0 var(--ttp-radius-sm) var(--ttp-radius-sm);
        border-top: 1px solid rgba(255,255,255,.1);
    }

    .ttp-navbar .nav-item .nav-link {
        padding: 11px 12px !important;
        border-radius: var(--ttp-radius-xs) !important;
    }

    .ttp-navbar .nav-item .nav-link::after { display: none !important; }

    .ttp-navbar .nav-item.ttp-cta .nav-link {
        margin: 5px 0 !important;
        justify-content: center;
        width: 100%;
    }

    .ttp-navbar .dropdown-menu {
        position: static !important;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,.08);
        padding: 4px 8px;
        margin-top: 2px;
    }
}

/* ============================================================
   4. HERO CAROUSEL
   ============================================================ */
.ttp-hero {
    position: relative;
    overflow: hidden;
    background: #08121f;
    isolation: isolate;
}

.ttp-hero .carousel-inner { overflow: hidden; }

.ttp-hero .carousel-item {
    transition: transform .85s var(--ttp-ease), opacity .85s var(--ttp-ease) !important;
}

.ttp-hero .carousel-item img {
    display: block;
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center top;
    transform: scale(1);
    transition: transform 8s linear;
    will-change: transform;
}

.ttp-hero .carousel-item.active img {
    transform: scale(1.06);
}

/* Full gradient overlay */
.ttp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(8,42,67,.75) 0%,
        rgba(8,42,67,.45) 50%,
        rgba(8,42,67,.2) 100%
    );
    z-index: 2;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.ttp-hero-content {
    padding: 0;
    max-width: 580px;
    animation: ttp-hero-in .9s var(--ttp-ease) both;
}

@keyframes ttp-hero-in {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ttp-hero-title {
    font-family: var(--ttp-font);
    font-size: calc(34px * var(--ttp-font-scale));
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.ttp-hero-title span {
    color: var(--ttp-accent);
}

.ttp-hero-sub {
    font-size: calc(15px * var(--ttp-font-scale));
    color: rgba(255,255,255,.88);
    margin: 0;
    letter-spacing: .5px;
    font-weight: 400;
}

.ttp-hero-badges {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.ttp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--ttp-radius-pill);
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: calc(12.5px * var(--ttp-font-scale));
    font-weight: 600;
}

/* Bottom gradient vignette */
.ttp-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(8,42,67,.4) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Pill indicators */
.ttp-hero .carousel-indicators {
    margin-bottom: 20px;
    gap: 8px;
    z-index: 4;
}

.ttp-hero .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: 2px solid rgba(255,255,255,.8);
    opacity: 1;
    padding: 0;
    margin: 0;
    transition: width .3s var(--ttp-ease), background .3s var(--ttp-ease);
    box-shadow: 0 2px 5px rgba(0,0,0,.25);
}

.ttp-hero .carousel-indicators .active {
    width: 30px;
    border-radius: var(--ttp-radius-pill);
    background: var(--ttp-accent);
    border-color: #fff;
}

/* Circular controls */
.ttp-hero .carousel-control-prev,
.ttp-hero .carousel-control-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(6px);
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    opacity: 0;
    margin: 0 20px;
    box-shadow: var(--ttp-shadow-md);
    transition: opacity .3s var(--ttp-ease), transform .25s var(--ttp-ease);
    z-index: 4;
}

.ttp-hero:hover .carousel-control-prev,
.ttp-hero:hover .carousel-control-next {
    opacity: 1;
}

.ttp-hero .carousel-control-prev:hover,
.ttp-hero .carousel-control-next:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}

.ttp-hero .carousel-control-prev-icon,
.ttp-hero .carousel-control-next-icon {
    background-image: none;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ttp-hero .carousel-control-prev-icon::before,
.ttp-hero .carousel-control-next-icon::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: calc(16px * var(--ttp-font-scale));
    color: var(--ttp-primary);
}

.ttp-hero .carousel-control-prev-icon::before { content: "\f053"; }
.ttp-hero .carousel-control-next-icon::before { content: "\f054"; }

/* Progress bar */
.ttp-hero-progress {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: rgba(255,255,255,.15);
    z-index: 4;
    overflow: hidden;
}

.ttp-hero-progress::after {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--ttp-accent), #f97316);
    transform-origin: left;
    animation: ttp-progress 6s linear infinite;
}

@keyframes ttp-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.ttp-hero:hover .ttp-hero-progress::after {
    animation-play-state: paused;
}

@media (max-width: 767.98px) {
    .ttp-hero .carousel-item img { height: 260px; }

    .ttp-hero-content { padding: 0 22px; max-width: 100%; }
    .ttp-hero-title { font-size: calc(20px * var(--ttp-font-scale)); }
    .ttp-hero-sub { font-size: calc(13px * var(--ttp-font-scale)); }
    .ttp-hero-badges { gap: 6px; }
    .ttp-hero-badge { font-size: calc(11px * var(--ttp-font-scale)); padding: 4px 10px; }

    .ttp-hero .carousel-control-prev,
    .ttp-hero .carousel-control-next {
        width: 38px;
        height: 38px;
        margin: 0 8px;
        opacity: .8;
    }

    .ttp-hero .carousel-indicators { margin-bottom: 8px; }
    .ttp-hero .carousel-indicators .active { width: 22px; }
}

@media (max-width: 480px) {
    .ttp-hero .carousel-item img { height: 200px; }
    .ttp-hero-title { font-size: calc(17px * var(--ttp-font-scale)); }
    .ttp-hero-badges { display: none; }
}

/* ============================================================
   5. LATEST UPDATES TICKER
   Preserve IDs: #custom-market-performance-ticker, #custom-tick, #custom-tick2
   ============================================================ */
/* --- Legacy required by ticker JS (do not remove) --- */
#custom-tick li, #custom-tick2 li {
    list-style-type: none;
    position: absolute;
    left: 0;
}

#custom-tick, #custom-tick2 {
    position: relative;
    display: table;
    width: 5000px;
    margin: 0;
    content: "";
    height: 0;
}

#custom-market-performance-ticker {
    width: 100%;
    height: 20px;
    overflow: hidden;
}

.custom-ticker-item {
    display: inline-flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
}

.custom-ticker-item .custom-percent { display: none; }
.custom-ticker-item .custom-date   { margin-right: 6px; }

.custom-ticker-container {
    display: flex;
    align-items: center;
}
/* --- End legacy ticker JS CSS --- */

.ttp-ticker-section {
    padding: 18px 0 10px;
}

.ttp-ticker-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--ttp-border);
    border-radius: var(--ttp-radius-lg);
    box-shadow: var(--ttp-shadow-sm);
    overflow: hidden;
    transition: box-shadow .25s var(--ttp-ease);
}

.ttp-ticker-card:hover {
    box-shadow: var(--ttp-shadow);
}

.ttp-ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--ttp-primary) 0%, var(--ttp-primary-light) 100%);
    color: #fff;
    padding: 0 32px 0 18px;
    font-weight: 700;
    font-size: calc(13px * var(--ttp-font-scale));
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
    clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
    font-family: var(--ttp-font);
}

.ttp-ticker-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ttp-accent);
    box-shadow: 0 0 0 0 rgba(245,158,11,.7);
    animation: ttp-pulse 1.6s infinite;
    flex-shrink: 0;
}

@keyframes ttp-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(245,158,11,.7); }
    70%  { box-shadow: 0 0 0 9px rgba(245,158,11,0); }
    100% { box-shadow: 0 0 0 0   rgba(245,158,11,0); }
}

.ttp-ticker-card #custom-market-performance-ticker {
    flex: 1;
    height: 50px !important;
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 40px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 40px), transparent 100%);
}

.ttp-ticker-card #custom-tick,
.ttp-ticker-card #custom-tick2 {
    height: 50px;
}

.ttp-ticker-card #custom-tick li,
.ttp-ticker-card #custom-tick2 li {
    top: 50%;
    transform: translateY(-50%);
}

.ttp-ticker-card .custom-ticker-item {
    font-size: calc(14px * var(--ttp-font-scale));
    color: var(--ttp-text);
    padding-right: 30px;
}

.ttp-ticker-card .custom-ticker-item a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ttp-text);
    text-decoration: none;
    transition: color .2s var(--ttp-ease);
}

.ttp-ticker-card .custom-ticker-item a:hover {
    color: var(--ttp-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* NEW chip */
.ttp-new-chip {
    display: inline-flex;
    align-items: center;
    font-size: calc(10px * var(--ttp-font-scale));
    font-weight: 800;
    letter-spacing: .6px;
    padding: 2px 7px;
    border-radius: var(--ttp-radius-pill);
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(220,38,38,.3);
    animation: ttp-chip-blink 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes ttp-chip-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .75; transform: scale(1.04); }
}

@media (max-width: 767.98px) {
    .ttp-ticker-card { flex-direction: column; border-radius: var(--ttp-radius); }
    .ttp-ticker-label { clip-path: none; padding: 9px 16px; justify-content: center; }
    .ttp-ticker-card #custom-market-performance-ticker { height: 42px !important; }
    .ttp-ticker-card #custom-tick, .ttp-ticker-card #custom-tick2 { height: 42px; }
}

/* ============================================================
   6. IMPORTANT NOTICE CARD
   ============================================================ */
.ttp-notice-card {
    position: relative;
    display: flex;
    align-items: stretch;
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: var(--ttp-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(245,158,11,.1), var(--ttp-shadow-sm);
    animation: ttp-fade-up .5s var(--ttp-ease) both;
    margin-bottom: 24px;
}

@keyframes ttp-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ttp-notice-bar {
    flex-shrink: 0;
    width: 5px;
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.ttp-notice-body {
    flex: 1;
    padding: 18px 22px;
    font-family: var(--ttp-font);
}

.ttp-notice-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.ttp-notice-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border-radius: var(--ttp-radius-pill);
    background: rgba(217,119,6,.13);
    color: #92400e;
    font-weight: 700;
    font-size: calc(12.5px * var(--ttp-font-scale));
    letter-spacing: .3px;
    text-transform: uppercase;
    border: 1px solid rgba(217,119,6,.3);
}

.ttp-notice-badge i {
    color: #d97706;
    animation: ttp-bell 2.5s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes ttp-bell {
    0%, 50%, 100% { transform: rotate(0); }
    10%, 30%      { transform: rotate(-10deg); }
    20%, 40%      { transform: rotate(10deg); }
}

.ttp-notice-text {
    font-family: 'Noto Sans Devanagari', var(--ttp-font);
    font-size: calc(15px * var(--ttp-font-scale));
    line-height: 1.85;
    color: #1f2937;
    margin: 0 0 8px;
}

.ttp-notice-text.secondary {
    color: #374151;
    opacity: .88;
    padding-top: 12px;
    border-top: 1px dashed rgba(217,119,6,.3);
    margin-top: 10px;
}

.ttp-notice-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 18px;
    border-radius: var(--ttp-radius-pill);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff !important;
    font-weight: 600;
    font-size: calc(13.5px * var(--ttp-font-scale));
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(217,119,6,.3);
    transition: transform .2s var(--ttp-ease), box-shadow .2s var(--ttp-ease);
    margin-top: 4px;
}

.ttp-notice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(217,119,6,.4);
    color: #fff !important;
}

.ttp-notice-btn i { color: #fff !important; font-size: calc(12px * var(--ttp-font-scale)); }

@media (max-width: 767.98px) {
    .ttp-notice-body { padding: 14px 16px; }
    .ttp-notice-text { font-size: calc(14px * var(--ttp-font-scale)); line-height: 1.75; }
    .ttp-notice-btn { width: 100%; justify-content: center; margin-top: 8px; }
}

/* ============================================================
   7. ABOUT + DIGNITARIES SECTION
   ============================================================ */
.ttp-about-section {
    padding: 0 0 32px;
}

.ttp-about-card {
    position: relative;
    background: #fff;
    border-radius: var(--ttp-radius-lg);
    padding: 26px 24px;
    height: 100%;
    box-shadow: var(--ttp-shadow-sm);
    border: 1px solid var(--ttp-border);
    overflow: hidden;
    transition: box-shadow .3s var(--ttp-ease), transform .3s var(--ttp-ease);
}

.ttp-about-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ttp-primary), var(--ttp-accent), var(--ttp-green));
}

.ttp-about-card:hover {
    box-shadow: var(--ttp-shadow-md);
    transform: translateY(-2px);
}

.ttp-about-title {
    font-family: var(--ttp-font);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ttp-primary);
    font-weight: 700;
    font-size: calc(19px * var(--ttp-font-scale));
    margin: 6px 0 14px;
    position: relative;
    padding-bottom: 10px;
}

.ttp-about-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 48px; height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--ttp-accent), var(--ttp-primary));
}

.ttp-about-title i { color: var(--ttp-accent); font-size: calc(18px * var(--ttp-font-scale)); }

.ttp-about-text {
    color: var(--ttp-text-muted);
    font-size: calc(14.5px * var(--ttp-font-scale));
    line-height: 1.75;
    margin: 0;
}

/* Dignitary card */
.ttp-dignitary-card {
    position: relative;
    background: #fff;
    border-radius: var(--ttp-radius);
    padding: 18px 12px 14px;
    text-align: center;
    box-shadow: var(--ttp-shadow-sm);
    border: 1px solid var(--ttp-border);
    transition: box-shadow .3s var(--ttp-ease), transform .3s var(--ttp-ease);
    height: 100%;
    overflow: hidden;
    isolation: isolate;
}

.ttp-dignitary-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(135deg, var(--ttp-primary), var(--ttp-primary-light));
    z-index: 0;
}

.ttp-dignitary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ttp-shadow-md);
    border-color: transparent;
}

.ttp-dignitary-avatar {
    position: relative;
    z-index: 1;
    width: 100px;
    height: 100px;
    margin: 14px auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    padding: 3px;
    box-shadow: 0 5px 18px rgba(8,42,67,.22);
    transition: transform .3s var(--ttp-ease);
}

.ttp-dignitary-card:hover .ttp-dignitary-avatar { transform: scale(1.05); }

.ttp-dignitary-avatar img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
}

.ttp-dignitary-name {
    font-weight: 700;
    font-size: calc(15px * var(--ttp-font-scale));
    color: var(--ttp-primary);
    margin: 6px 0 4px;
    line-height: 1.3;
}

.ttp-dignitary-title {
    font-size: calc(12.5px * var(--ttp-font-scale));
    color: var(--ttp-text-muted);
    margin: 0 0 3px;
    line-height: 1.4;
    min-height: 34px;
}

.ttp-dignitary-dept {
    font-size: calc(11.5px * var(--ttp-font-scale));
    color: var(--ttp-accent);
    font-weight: 600;
    margin: 0;
}

/* ============================================================
   8. FEATURE CARDS + IMPORTANT UPDATES SIDEBAR
   Keep: .ticker-container, .ticker, .ticker-item, #toggle-button
   ============================================================ */
.ttp-features-section {
    background: linear-gradient(180deg, #f1f5f9 0%, #e8eef5 100%);
    padding: 36px 0;
    position: relative;
}

.ttp-features-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(8,42,67,.04) 0, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(245,158,11,.05) 0, transparent 40%);
    pointer-events: none;
}

.ttp-features-section > .container { position: relative; z-index: 1; }

/* Section heading */
.ttp-section-heading {
    text-align: center;
    margin-bottom: 28px;
}

.ttp-section-heading h2 {
    font-family: var(--ttp-font);
    font-weight: 800;
    font-size: calc(26px * var(--ttp-font-scale));
    color: var(--ttp-primary);
    margin: 0 0 8px;
    display: inline-block;
}

.ttp-section-heading p {
    color: var(--ttp-text-muted);
    font-size: calc(14.5px * var(--ttp-font-scale));
    margin: 0;
}

.ttp-section-divider {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--ttp-accent), var(--ttp-primary));
    border-radius: 2px;
    margin: 8px auto 0;
}

/* Feature card */
.ttp-feature-card {
    background: #fff;
    border-radius: var(--ttp-radius);
    padding: 26px 20px;
    height: 100%;
    min-height: 200px;
    text-align: center;
    box-shadow: var(--ttp-shadow-sm);
    border: 1px solid var(--ttp-border);
    transition: transform .3s var(--ttp-ease), box-shadow .3s var(--ttp-ease), border-color .3s var(--ttp-ease);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.ttp-feature-card::after {
    content: "";
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 3px;
    background: linear-gradient(90deg, var(--ttp-accent), var(--ttp-primary));
    transition: width .32s var(--ttp-ease);
}

.ttp-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ttp-shadow-md);
    border-color: transparent;
}

.ttp-feature-card:hover::after { width: 65%; }

.ttp-feature-icon {
    width: 62px; height: 62px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(8,42,67,.08), rgba(245,158,11,.12));
    color: var(--ttp-primary);
    font-size: calc(24px * var(--ttp-font-scale));
    transition: transform .3s var(--ttp-ease), background .3s var(--ttp-ease), color .3s var(--ttp-ease);
}

.ttp-feature-card:hover .ttp-feature-icon {
    transform: rotate(-6deg) scale(1.1);
    background: linear-gradient(135deg, var(--ttp-primary), var(--ttp-primary-light));
    color: #fff;
}

.ttp-feature-title {
    font-weight: 700;
    font-size: calc(15.5px * var(--ttp-font-scale));
    color: var(--ttp-primary);
    margin: 0;
    line-height: 1.3;
}

/* Feature-card description text (centered, muted) — used when a card carries a
   short blurb instead of link rows. */
.ttp-feature-desc {
    font-size: calc(13px * var(--ttp-font-scale));
    color: var(--ttp-text-muted);
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.ttp-feature-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    margin-top: auto;
}

.ttp-feature-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--ttp-radius-sm);
    color: var(--ttp-primary);
    font-size: calc(13px * var(--ttp-font-scale));
    font-weight: 600;
    text-decoration: none;
    transition: background .2s var(--ttp-ease), color .2s var(--ttp-ease);
}

.ttp-feature-links a:hover {
    background: rgba(8,42,67,.08);
    color: var(--ttp-primary-light);
}

/* Updates sidebar */
.ttp-updates-card {
    background: #fff;
    border-radius: var(--ttp-radius);
    overflow: hidden;
    box-shadow: var(--ttp-shadow);
    border: 1px solid var(--ttp-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ttp-updates-header {
    background: linear-gradient(135deg, var(--ttp-primary), var(--ttp-primary-light));
    color: #fff;
    padding: 13px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ttp-updates-header-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: calc(14.5px * var(--ttp-font-scale));
}

.ttp-updates-header-title i { color: var(--ttp-accent); }

.ttp-updates-toggle {
    width: 26px; height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.15);
    color: #fff !important;
    cursor: pointer;
    transition: background .2s var(--ttp-ease);
    font-size: calc(12px * var(--ttp-font-scale));
}

.ttp-updates-toggle:hover { background: rgba(255,255,255,.25); }

/* Ticker viewport — preserve .ticker-container/.ticker/.ticker-item classes */
.ttp-updates-card .ticker-container {
    flex: 1;
    height: 320px;
    overflow: hidden;
    position: relative;
}

.ttp-updates-card .ticker {
    position: relative;
    top: 0;
}

.ttp-updates-card .ticker-item {
    display: block;
    padding: 13px 16px;
    border-bottom: 1px solid var(--ttp-border);
    font-size: calc(13px * var(--ttp-font-scale));
    line-height: 1.5;
    color: var(--ttp-text);
    transition: background .2s var(--ttp-ease);
}

.ttp-updates-card .ticker-item:hover { background: var(--ttp-surface-2); }

.ttp-updates-card .ticker-item .icon {
    display: inline-block;
    background: var(--ttp-primary-50);
    color: var(--ttp-primary);
    font-size: calc(11px * var(--ttp-font-scale));
    font-weight: 600;
    padding: 2px 7px;
    border-radius: var(--ttp-radius-sm);
    margin-bottom: 5px;
    margin-right: 4px;
}

.ttp-updates-card .ticker-item a {
    color: var(--ttp-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color .2s var(--ttp-ease);
}

.ttp-updates-card .ticker-item a:hover {
    color: var(--ttp-primary-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ttp-updates-card .ticker-item .dsize {
    display: block;
    margin-top: 4px;
    font-size: calc(11px * var(--ttp-font-scale));
    color: var(--ttp-text-muted);
}

@media (max-width: 767.98px) {
    .ttp-features-section { padding: 26px 0; }
    .ttp-feature-card { min-height: auto; }
    .ttp-updates-card { margin-top: 12px; }
    .ttp-updates-card .ticker-container { height: 175px; }
}

/* ============================================================
   9. IMPORTANT WEBSITES CAROUSEL
   Keep: .important-links.owl-carousel
   ============================================================ */
.ttp-websites-section {
    padding: 40px 0;
    background: #fff;
}

.ttp-websites-heading {
    text-align: center;
    margin-bottom: 28px;
    position: relative;
}

.ttp-websites-heading h2 {
    font-family: var(--ttp-font);
    font-weight: 800;
    font-size: calc(24px * var(--ttp-font-scale));
    color: var(--ttp-primary);
    display: inline-block;
    padding: 0 16px;
    position: relative;
    z-index: 1;
    background: #fff;
    margin: 0;
}

.ttp-websites-heading::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ttp-border) 30%, var(--ttp-border) 70%, transparent);
    z-index: 0;
}

.ttp-websites-heading h2::after {
    content: "";
    display: block;
    width: 48px; height: 3px;
    margin: 8px auto 0;
    background: linear-gradient(90deg, var(--ttp-accent), var(--ttp-primary));
    border-radius: 2px;
}

.ttp-websites-section .owl-carousel .owl-item { padding: 6px; }

.ttp-websites-section .implink {
    background: #fff;
    border: 1px solid var(--ttp-border);
    border-radius: var(--ttp-radius);
    padding: 12px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s var(--ttp-ease), box-shadow .25s var(--ttp-ease), border-color .25s var(--ttp-ease);
}

.ttp-websites-section .implink a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ttp-websites-section .implink img {
    max-height: 54px;
    max-width: 100%;
    height: auto;
    filter: grayscale(100%) opacity(.7);
    transition: filter .3s var(--ttp-ease), transform .3s var(--ttp-ease);
}

.ttp-websites-section .implink:hover {
    transform: translateY(-4px);
    box-shadow: var(--ttp-shadow);
    border-color: var(--ttp-accent);
}

.ttp-websites-section .implink:hover img {
    filter: grayscale(0) opacity(1);
    transform: scale(1.05);
}

/* ============================================================
   10. PAGE BANNER (inner pages hero)
   ============================================================ */
.ttp-page-banner {
    background: linear-gradient(135deg, var(--ttp-primary) 0%, var(--ttp-primary-light) 60%, #1a5276 100%);
    padding: 44px 0;
    position: relative;
    overflow: hidden;
}

.ttp-page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 50%, rgba(245,158,11,.15) 0, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(16,185,129,.1) 0, transparent 45%);
    pointer-events: none;
}

.ttp-page-banner .container { position: relative; z-index: 1; }

.ttp-page-banner h1 {
    font-family: var(--ttp-font);
    font-size: calc(32px * var(--ttp-font-scale));
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    text-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.ttp-page-banner p {
    color: rgba(255,255,255,.82);
    margin: 0;
    font-size: calc(15px * var(--ttp-font-scale));
}

.ttp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.ttp-breadcrumb a,
.ttp-breadcrumb span {
    font-size: calc(13px * var(--ttp-font-scale));
    font-weight: 500;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: color .2s var(--ttp-ease);
}

.ttp-breadcrumb a:hover { color: #fff; }

.ttp-breadcrumb .sep {
    color: rgba(255,255,255,.45);
    font-size: calc(11px * var(--ttp-font-scale));
}

.ttp-breadcrumb .current { color: var(--ttp-accent); }

@media (max-width: 767.98px) {
    .ttp-page-banner { padding: 30px 0; }
    .ttp-page-banner h1 { font-size: calc(24px * var(--ttp-font-scale)); }
}

/* ============================================================
   11. DOWNLOADS PAGE
   ============================================================ */
.ttp-downloads-section {
    padding: 40px 0;
}

.ttp-downloads-heading {
    margin-bottom: 24px;
}

.ttp-downloads-heading h2 {
    font-family: var(--ttp-font);
    font-weight: 800;
    font-size: calc(22px * var(--ttp-font-scale));
    color: var(--ttp-primary);
    margin: 0 0 4px;
}

.ttp-downloads-heading p {
    color: var(--ttp-text-muted);
    font-size: calc(14px * var(--ttp-font-scale));
    margin: 0;
}

/* Desktop table */
.ttp-dl-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: var(--ttp-radius);
    overflow: hidden;
    box-shadow: var(--ttp-shadow-sm);
    border: 1px solid var(--ttp-border);
}

.ttp-dl-table thead tr {
    background: linear-gradient(90deg, var(--ttp-primary), var(--ttp-primary-light));
}

.ttp-dl-table thead th {
    padding: 14px 18px;
    color: #fff;
    font-size: calc(13.5px * var(--ttp-font-scale));
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    border: none;
    white-space: nowrap;
}

.ttp-dl-table tbody tr {
    border-bottom: 1px solid var(--ttp-border);
    transition: background .2s var(--ttp-ease);
}

.ttp-dl-table tbody tr:last-child { border-bottom: none; }

.ttp-dl-table tbody tr:hover { background: var(--ttp-surface-2); }

.ttp-dl-table tbody td {
    padding: 14px 18px;
    font-size: calc(14px * var(--ttp-font-scale));
    color: var(--ttp-text);
    vertical-align: middle;
    border: none;
}

.ttp-dl-num {
    color: var(--ttp-text-muted);
    font-weight: 600;
    font-size: calc(13px * var(--ttp-font-scale));
}

.ttp-dl-desc {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ttp-dl-desc-text { flex: 1; }

/* Download buttons */
.ttp-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: var(--ttp-radius-pill);
    font-size: calc(13px * var(--ttp-font-scale));
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s var(--ttp-ease), box-shadow .2s var(--ttp-ease), filter .2s var(--ttp-ease);
}

.ttp-dl-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    text-decoration: none;
}

.ttp-dl-btn-pdf {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(239,68,68,.3);
}

.ttp-dl-btn-video {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(59,130,246,.3);
}

.ttp-dl-btn-pdf:hover, .ttp-dl-btn-video:hover { color: #fff !important; }

/* Mobile cards */
@media (max-width: 767.98px) {
    .ttp-dl-table-wrap { display: none; }

    .ttp-dl-cards { display: flex; flex-direction: column; gap: 12px; }

    .ttp-dl-card {
        background: #fff;
        border-radius: var(--ttp-radius);
        padding: 16px 18px;
        box-shadow: var(--ttp-shadow-sm);
        border: 1px solid var(--ttp-border);
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .ttp-dl-card-meta {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .ttp-dl-card-num {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--ttp-primary-50);
        color: var(--ttp-primary);
        font-weight: 700;
        font-size: calc(12px * var(--ttp-font-scale));
        flex-shrink: 0;
    }

    .ttp-dl-card-title {
        font-size: calc(14px * var(--ttp-font-scale));
        font-weight: 500;
        color: var(--ttp-text);
        line-height: 1.45;
    }

    .ttp-dl-card-footer {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}

@media (min-width: 768px) {
    .ttp-dl-cards { display: none; }
    .ttp-dl-table-wrap { display: block; }
}

/* ============================================================
   12. ABOUT US PAGE CONTENT
   ============================================================ */
.ttp-about-page { padding: 48px 0; }

.ttp-info-card {
    background: #fff;
    border-radius: var(--ttp-radius-lg);
    padding: 28px 28px;
    height: 100%;
    box-shadow: var(--ttp-shadow-sm);
    border: 1px solid var(--ttp-border);
    transition: box-shadow .3s var(--ttp-ease), transform .3s var(--ttp-ease);
    overflow: hidden;
    position: relative;
}

.ttp-info-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ttp-primary), var(--ttp-accent));
}

.ttp-info-card:hover {
    box-shadow: var(--ttp-shadow-md);
    transform: translateY(-2px);
}

.ttp-info-card h3 {
    font-size: calc(19px * var(--ttp-font-scale));
    font-weight: 700;
    color: var(--ttp-primary);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ttp-info-card h3 i { color: var(--ttp-accent); }

.ttp-info-card p {
    color: var(--ttp-text-muted);
    font-size: calc(14.5px * var(--ttp-font-scale));
    line-height: 1.75;
    margin: 0 0 10px;
}

.ttp-org-card {
    background: #fff;
    border-radius: var(--ttp-radius);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--ttp-shadow-sm);
    border: 1px solid var(--ttp-border);
    height: 100%;
    transition: transform .3s var(--ttp-ease), box-shadow .3s var(--ttp-ease);
}

.ttp-org-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ttp-shadow-md);
}

.ttp-org-card img {
    max-height: 70px;
    max-width: 100%;
    margin-bottom: 14px;
    filter: none;
}

.ttp-org-card h5 {
    font-size: calc(15px * var(--ttp-font-scale));
    font-weight: 700;
    color: var(--ttp-primary);
    margin: 0 0 8px;
}

.ttp-org-card p {
    font-size: calc(13px * var(--ttp-font-scale));
    color: var(--ttp-text-muted);
    margin: 0;
    line-height: 1.55;
}

.ttp-kf-card {
    background: #fff;
    border-radius: var(--ttp-radius);
    padding: 22px 18px;
    text-align: center;
    box-shadow: var(--ttp-shadow-sm);
    border: 1px solid var(--ttp-border);
    height: 100%;
    transition: transform .3s var(--ttp-ease), box-shadow .3s var(--ttp-ease);
}

.ttp-kf-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ttp-shadow-md);
}

.ttp-kf-icon {
    width: 58px; height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ttp-primary-50), rgba(245,158,11,.12));
    color: var(--ttp-primary);
    font-size: calc(22px * var(--ttp-font-scale));
    margin-bottom: 12px;
}

.ttp-kf-card h5 {
    font-size: calc(14.5px * var(--ttp-font-scale));
    font-weight: 700;
    color: var(--ttp-primary);
    margin: 0 0 6px;
}

.ttp-kf-card p {
    font-size: calc(13px * var(--ttp-font-scale));
    color: var(--ttp-text-muted);
    margin: 0;
    line-height: 1.55;
}

/* ============================================================
   13. CONTACT US PAGE CONTENT
   ============================================================ */
.ttp-contact-page { padding: 48px 0; }

.ttp-contact-card {
    background: #fff;
    border-radius: var(--ttp-radius-lg);
    padding: 28px 28px;
    box-shadow: var(--ttp-shadow-sm);
    border: 1px solid var(--ttp-border);
    height: 100%;
    transition: box-shadow .3s var(--ttp-ease);
    overflow: hidden;
    position: relative;
}

.ttp-contact-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ttp-primary), var(--ttp-green));
}

.ttp-contact-card:hover { box-shadow: var(--ttp-shadow-md); }

.ttp-contact-card h3 {
    font-size: calc(19px * var(--ttp-font-scale));
    font-weight: 700;
    color: var(--ttp-primary);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ttp-contact-card h3 i { color: var(--ttp-accent); }

.ttp-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ttp-contact-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 13px 0;
    border-bottom: 1px solid var(--ttp-border);
}

.ttp-contact-list li:last-child { border-bottom: none; }

.ttp-contact-ic {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: calc(16px * var(--ttp-font-scale));
}

.ttp-ic-loc   { background: rgba(239,68,68,.1);  color: #ef4444; }
.ttp-ic-email { background: rgba(16,185,129,.1); color: #10b981; }
.ttp-ic-phone { background: rgba(245,158,11,.1); color: #f59e0b; }
.ttp-ic-info  { background: rgba(59,130,246,.1); color: #3b82f6; }

.ttp-contact-ic-text strong {
    display: block;
    font-size: calc(13.5px * var(--ttp-font-scale));
    font-weight: 700;
    color: var(--ttp-text);
    margin-bottom: 3px;
}

.ttp-contact-ic-text span {
    font-size: calc(13px * var(--ttp-font-scale));
    color: var(--ttp-text-muted);
    line-height: 1.5;
}

.ttp-contact-ic-text a {
    color: var(--ttp-primary);
    font-weight: 600;
    text-decoration: none;
}

.ttp-contact-ic-text a:hover {
    text-decoration: underline;
    color: var(--ttp-primary-light);
}

/* ============================================================
   14. FOOTER
   ============================================================ */
.ttp-footer {
    background: linear-gradient(180deg, #0a1628 0%, #082a43 100%);
    color: #cbd5e1;
    font-family: var(--ttp-font);
    position: relative;
}

.ttp-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ttp-accent), var(--ttp-primary-light), var(--ttp-green));
}

.ttp-footer-main {
    padding: 40px 0 28px;
}

.ttp-footer h5 {
    color: #fff;
    font-weight: 700;
    font-size: calc(14px * var(--ttp-font-scale));
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.ttp-footer h5::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 30px; height: 2px;
    background: var(--ttp-accent);
    border-radius: 2px;
}

.ttp-footer-brand img {
    background: #fff;
    padding: 10px 14px;
    border-radius: var(--ttp-radius-sm);
    max-width: 100%;
    max-height: 88px;
}

.ttp-footer-contact {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.ttp-footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: calc(13px * var(--ttp-font-scale));
    line-height: 1.5;
    align-items: flex-start;
}

.ttp-footer-ic {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: calc(13px * var(--ttp-font-scale));
}

.ttp-footer-ic.loc   { background: rgba(239,68,68,.15);  color: #f87171; }
.ttp-footer-ic.email { background: rgba(52,211,153,.15); color: #6ee7b7; }
.ttp-footer-ic.phone { background: rgba(245,158,11,.15); color: #fcd34d; }

.ttp-footer-contact .label {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: calc(12.5px * var(--ttp-font-scale));
    margin-bottom: 2px;
}

.ttp-footer-contact .value {
    color: #94a3b8;
    font-size: calc(12.5px * var(--ttp-font-scale));
}

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

.ttp-footer-links li { margin-bottom: 8px; }

.ttp-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #94a3b8;
    text-decoration: none;
    font-size: calc(13px * var(--ttp-font-scale));
    transition: color .2s var(--ttp-ease), transform .2s var(--ttp-ease);
}

.ttp-footer-links a::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--ttp-accent);
    font-size: calc(10px * var(--ttp-font-scale));
    opacity: .7;
    transition: transform .2s var(--ttp-ease);
}

.ttp-footer-links a:hover { color: #fff; }
.ttp-footer-links a:hover::before { transform: translateX(3px); opacity: 1; }

.ttp-footer-bottom {
    background: rgba(0,0,0,.3);
    padding: 13px 0;
    border-top: 1px solid rgba(255,255,255,.07);
    font-size: calc(12px * var(--ttp-font-scale));
    color: #64748b;
}

.ttp-footer-bottom a { color: #94a3b8; text-decoration: none; }
.ttp-footer-bottom a:hover { color: var(--ttp-accent); }
.ttp-footer-bottom strong { color: #cbd5e1; }

@media (max-width: 767.98px) {
    .ttp-footer-main { padding: 28px 0 18px; }
    .ttp-footer h5 { margin-top: 20px; }
}

/* ============================================================
   15. BACK-TO-TOP FAB
   ============================================================ */
.ttp-fab-top {
    position: fixed;
    bottom: 22px; right: 22px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ttp-primary), var(--ttp-primary-light));
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: calc(15px * var(--ttp-font-scale));
    box-shadow: var(--ttp-shadow-md);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity .25s var(--ttp-ease), transform .25s var(--ttp-ease), box-shadow .25s var(--ttp-ease), background .25s var(--ttp-ease);
    z-index: 1100;
}

.ttp-fab-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.ttp-fab-top:hover {
    background: linear-gradient(135deg, var(--ttp-accent), #f97316);
    box-shadow: var(--ttp-shadow-lg);
    transform: translateY(-3px);
}

@media (max-width: 767.98px) {
    .ttp-fab-top { bottom: 14px; right: 14px; width: 40px; height: 40px; font-size: calc(13px * var(--ttp-font-scale)); }
}

/* ============================================================
   16. LOGO / HEADER RESPONSIVE
   ============================================================ */
@media (max-width: 767.98px) {
    .ttp-logobar { padding: 10px 0; }
    .ttp-logobar .ttp-logo img { max-height: 58px; }
    .ttp-logobar .ttp-side-logos { display: none !important; }
    .ttp-topbar { font-size: calc(12px * var(--ttp-font-scale)); }
    .ttp-topbar .ttp-access { flex-wrap: wrap; justify-content: center; margin-top: 4px; }
}

@media (max-width: 480px) {
    .ttp-logobar .ttp-logo img { max-height: 48px; }
}

/* ============================================================
   17. UTILITY — section spacing, clearfix
   ============================================================ */
.ttp-section { padding: 40px 0; }
.ttp-clearfix::after { content: ""; display: table; clear: both; }

/* Sticky nav offset for scrolled state */
body.has-sticky-nav { padding-top: 56px; }
