/* ==========================================================================
   Teachers of Bihar — PREMIUM DESIGN SYSTEM
   Loaded after style.css, so it re-skins the header, footer, home page
   and every inner page without touching the original template files.
   ========================================================================== */

:root {
    --tob-navy:        #0a1a3f;
    --tob-navy-2:      #0e2a63;
    --tob-blue:        #1cabe2;
    --tob-blue-deep:   #0d6fb8;
    --tob-indigo:      #2b4bd6;
    --tob-gold:        #f7b733;
    --tob-gold-2:      #f78e2b;
    --tob-ink:         #0f172a;
    --tob-slate:       #5a6b87;
    --tob-surface:     #f4f7fd;
    --tob-white:       #ffffff;

    --grad-nav:    linear-gradient(92deg, #0a1a3f 0%, #102a5e 48%, #123a7a 100%);
    --grad-brand:  linear-gradient(135deg, #0a1a3f 0%, #123a7a 55%, #1c6fd0 100%);
    --grad-gold:   linear-gradient(135deg, #f7b733 0%, #f78e2b 100%);
    --grad-blue:   linear-gradient(135deg, #1cabe2 0%, #0d6fb8 100%);
    --grad-fade:   linear-gradient(180deg, #ffffff 0%, #f4f7fd 100%);

    --shadow-sm:   0 4px 14px rgba(10, 26, 63, .08);
    --shadow-md:   0 14px 34px rgba(10, 26, 63, .12);
    --shadow-lg:   0 30px 60px -25px rgba(10, 26, 63, .45);
    --radius:      16px;
    --radius-lg:   24px;
    --tob-sans:    "Poppins", "Open Sans", "Noto Sans Devanagari", sans-serif;
}

/* ---------------------------------------------------------------
   1. Base
--------------------------------------------------------------- */
body {
    background: #ffffff;
    color: #4a5875;
    font-family: "Open Sans", "Noto Sans Devanagari", sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tob-sans);
    color: var(--tob-ink);
    letter-spacing: -.01em;
}

a {
    transition: color .25s ease, background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

::selection {
    background: rgba(28, 171, 226, .25);
}

/* ---------------------------------------------------------------
   2. Buttons
--------------------------------------------------------------- */
.btn,
.btn-primary,
.btn-danger {
    border: 0 !important;
    border-radius: 50px !important;
    font-family: var(--tob-sans);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .02em;
    padding: 11px 26px;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn-primary {
    background: var(--grad-blue) !important;
    box-shadow: 0 10px 24px rgba(13, 111, 184, .32);
}

.btn-danger {
    background: var(--grad-gold) !important;
    color: #2a1a00 !important;
    box-shadow: 0 10px 24px rgba(247, 142, 43, .3);
}

.btn-primary:hover,
.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(10, 26, 63, .28);
    color: #fff;
}

.tob-btn-primary,
.tob-btn-ghost {
    display: inline-block;
    border-radius: 50px;
    font-family: var(--tob-sans);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 32px;
    line-height: 1;
}

.tob-btn-primary {
    background: var(--grad-gold);
    color: #2a1a00 !important;
    box-shadow: 0 14px 30px rgba(247, 142, 43, .35);
}

.tob-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px rgba(247, 142, 43, .45);
    color: #2a1a00 !important;
}

.tob-btn-ghost {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff !important;
}

.tob-btn-ghost:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff !important;
    transform: translateY(-3px);
}

/* ---------------------------------------------------------------
   3. Eyebrow / section titles
--------------------------------------------------------------- */
.tob-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--tob-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--tob-blue-deep);
    background: rgba(28, 171, 226, .12);
    border: 1px solid rgba(28, 171, 226, .28);
    border-radius: 50px;
    padding: 7px 16px;
    margin-bottom: 18px;
}

.section-title h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--tob-ink);
    background: linear-gradient(120deg, #0a1a3f 0%, #12559e 60%, #1cabe2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title h2::after {
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: var(--grad-gold);
    left: calc(50% - 32px);
}

.section-title p {
    color: var(--tob-slate);
    font-size: 16px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-bg {
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fd 100%) !important;
}

/* ---------------------------------------------------------------
   4. Top utility bar
--------------------------------------------------------------- */
.tob-topbar {
    background: linear-gradient(90deg, #071230 0%, #0a1a3f 60%, #10275a 100%);
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.tob-topbar a {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
}

.tob-topbar a:hover {
    color: var(--tob-gold);
}

.tob-topbar-left,
.tob-topbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.tob-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.tob-topbar-item i {
    color: var(--tob-blue);
    font-size: 14px;
}

.tob-topbar-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, .18);
    display: inline-block;
}

.tob-topbar .top-menu {
    margin: 0;
    display: flex;
    gap: 8px;
}

.tob-topbar .top-menu li {
    list-style: none;
}

.tob-topbar .top-menu a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: var(--tob-sans);
}

.tob-topbar .top-menu a:hover {
    background: var(--grad-gold);
    border-color: transparent;
    color: #2a1a00 !important;
}

/* ---------------------------------------------------------------
   5. Brand bar
--------------------------------------------------------------- */
#top-logo.tob-brandbar {
    background: #ffffff !important;
    padding: 14px 0;
    border-bottom: 1px solid #e8eefb;
    box-shadow: 0 10px 30px rgba(10, 26, 63, .06);
}

#top-logo.tob-brandbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#site-title,
#top-logo.tob-brandbar #site-title {
    margin: 0;
    font-size: inherit;
    line-height: 1;
}

#top-logo.tob-brandbar #site-title a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--tob-ink);
    text-decoration: none;
}

#top-logo.tob-brandbar #site-title a img {
    width: auto;
    height: 62px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(28, 171, 226, .12), rgba(43, 75, 214, .1));
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(28, 171, 226, .25);
}

#top-logo.tob-brandbar .tob-brand-name {
    display: flex;
    flex-direction: column;
    font-family: var(--tob-sans);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
    color: var(--tob-ink);
}

#top-logo.tob-brandbar .tob-brand-name small {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--tob-blue-deep);
    margin-top: 5px;
}

.tob-brand-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tob-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 50px;
    font-family: var(--tob-sans);
    font-size: 14px;
    font-weight: 600;
    padding: 11px 22px;
    text-decoration: none;
    white-space: nowrap;
    transition: .25s ease;
}

.tob-cta-ghost {
    color: var(--tob-navy) !important;
    background: rgba(10, 26, 63, .06);
    border: 1px solid rgba(10, 26, 63, .12);
}

.tob-cta-ghost:hover {
    background: rgba(28, 171, 226, .12);
    border-color: rgba(28, 171, 226, .4);
    color: var(--tob-blue-deep) !important;
    transform: translateY(-2px);
}

.tob-cta-gold {
    background: var(--grad-gold);
    color: #2a1a00 !important;
    box-shadow: 0 10px 22px rgba(247, 142, 43, .3);
}

.tob-cta-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(247, 142, 43, .42);
    color: #2a1a00 !important;
}

/* ---------------------------------------------------------------
   6. Main navigation
--------------------------------------------------------------- */
#header.header-inner-pages.tob-header,
#header.header-scrolled.tob-header {
    background: var(--grad-nav);
    padding: 0;
    z-index: 997;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 12px 30px rgba(10, 26, 63, .18);
    position: sticky;
    top: 0;
}

.tob-header .row {
    min-height: 58px;
}

.tob-header .nav-menu {
    flex: 1;
    min-width: 0;
}

.nav-menu > ul {
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.nav-menu > ul > li {
    padding: 16px 0 16px 7px;
    white-space: nowrap;
}

.nav-menu > ul > li > a {
    color: rgba(255, 255, 255, .82);
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--tob-sans);
    letter-spacing: .01em;
    position: relative;
    padding: 0 4px;
}

.nav-menu > ul > li > a::before {
    height: 3px;
    bottom: -8px;
    border-radius: 3px;
    background: var(--grad-gold);
}

.nav-menu > ul > li:hover > a,
.nav-menu > ul > li.active > a {
    color: #ffffff;
}

.nav-menu .drop-down ul {
    top: calc(100% + 14px);
    left: 0;
    padding: 10px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e6edf9;
    box-shadow: 0 24px 50px rgba(10, 26, 63, .18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .22s ease;
}

.nav-menu .drop-down:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    top: 100%;
}

.nav-menu .drop-down li {
    min-width: 210px;
    border-radius: 10px;
}

.nav-menu .drop-down ul a {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #33446a;
    border-radius: 10px;
    border-left: 3px solid transparent;
}

.nav-menu .drop-down ul a:hover,
.nav-menu .drop-down ul li:hover > a {
    background: linear-gradient(90deg, rgba(28, 171, 226, .12), rgba(28, 171, 226, 0));
    border-left-color: var(--tob-blue);
    color: var(--tob-blue-deep);
    padding-left: 22px;
}

.nav-menu .drop-down > a::after {
    font-size: 11px;
    color: rgba(255, 255, 255, .6);
}

.nav-menu .publication-menu > ul {
    left: 0;
    min-width: 720px;
    box-shadow: 0 24px 50px rgba(10, 26, 63, .2);
}

.nav-menu img {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: baseline;
}

.tob-header .get-started-btn {
    margin-left: 20px;
    background: var(--grad-gold);
    border: 0;
    color: #2a1a00;
    font-weight: 700;
    font-family: var(--tob-sans);
    font-size: 13.5px;
    border-radius: 50px;
    padding: 11px 24px;
    box-shadow: 0 10px 22px rgba(247, 142, 43, .32);
}

.tob-header .get-started-btn:hover {
    background: var(--grad-gold);
    color: #2a1a00;
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(247, 142, 43, .45);
}

/* ---------------------------------------------------------------
   Mobile navigation — slide-in drawer
--------------------------------------------------------------- */
.mobile-nav-toggle {
    background: var(--grad-nav) !important;
    border-radius: 14px;
    padding: 10px 12px;
    right: 12px;
    top: 12px;
    z-index: 9998;
    box-shadow: 0 12px 26px rgba(10, 26, 63, .4);
    transition: transform .3s ease, box-shadow .3s ease;
}

.mobile-nav-toggle:active {
    transform: scale(.92);
}

.mobile-nav-toggle i {
    color: #fff;
    font-size: 22px;
}

/* Off-canvas drawer: replaces the theme's full-width fade panel */
.mobile-nav {
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: 330px;
    max-width: 87vw;
    z-index: 9999;
    border: none;
    border-radius: 0 26px 26px 0;
    padding: 0 0 30px;
    background: #ffffff;
    box-shadow: 22px 0 60px rgba(10, 26, 63, .35);
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-104%);
    transition: transform .4s cubic-bezier(.22, .61, .36, 1);
    overscroll-behavior: contain;
}

body.mobile-nav-active .mobile-nav,
.mobile-nav-active .mobile-nav {
    transform: translateX(0);
}

/* Drawer header */
.mobile-nav::before {
    content: "Teachers of Bihar";
    display: block;
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 20px 24px;
    background: var(--grad-nav);
    color: #ffffff;
    font-family: var(--tob-sans);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .04em;
    box-shadow: 0 14px 30px rgba(10, 26, 63, .28);
    border-bottom: 3px solid var(--tob-gold);
}

.mobile-nav * {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-nav a {
    display: block;
    position: relative;
    margin: 4px 14px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #22355e;
    font-family: var(--tob-sans);
    font-weight: 600;
    font-size: 15px;
    outline: none;
    transition: background .2s ease, color .2s ease;
}

.mobile-nav a:hover,
.mobile-nav .active > a,
.mobile-nav li:hover > a {
    background: linear-gradient(90deg, rgba(28, 171, 226, .16), rgba(28, 171, 226, .04));
    color: var(--tob-blue-deep);
    text-decoration: none;
}

.mobile-nav .drop-down > a::after {
    right: 26px;
}

.mobile-nav .drop-down > a {
    padding-right: 44px;
}

.mobile-nav .drop-down ul {
    display: none;
    overflow: hidden;
    background: #f4f8fd;
    border-radius: 12px;
    margin: 0 14px 6px;
}

.mobile-nav .drop-down ul a {
    margin: 0;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #3c4f74;
    border-radius: 10px;
}

.mobile-nav .drop-down li {
    padding-left: 0;
}

/* Overlay */
.mobile-nav-overly {
    background: rgba(7, 18, 48, .62);
    backdrop-filter: blur(3px);
}

body.mobile-nav-active .mobile-nav-overly,
.mobile-nav-active .mobile-nav-overly {
    animation: tob-drawer-fade .35s ease both;
}

@keyframes tob-drawer-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Brand bar CTAs would collide with the fixed hamburger on small screens */
@media (max-width: 991.98px) {
    .tob-brand-cta {
        display: none;
    }
}

/* ---------------------------------------------------------------
   7. Announcement ticker
--------------------------------------------------------------- */
.tob-ticker {
    background: linear-gradient(90deg, #0a1a3f 0%, #123a7a 100%);
    color: #fff;
    display: flex;
    align-items: stretch;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 22px auto 0;
}

.tob-ticker-label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--grad-gold);
    color: #2a1a00;
    font-family: var(--tob-sans);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 12px 20px;
}

.tob-ticker section.marquee-section {
    flex: 1;
    min-width: 0;
    padding: 12px 18px;
    margin: 0;
}

.tob-ticker marquee {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
    font-family: var(--tob-sans);
}

.tob-ticker marquee a {
    color: #ffffff;
    text-decoration: none;
}

.tob-ticker marquee a:hover {
    color: var(--tob-gold);
}

/* ---------------------------------------------------------------
   8. Hero slider
--------------------------------------------------------------- */
.tob-hero {
    padding: 22px 0 6px;
    background:
        radial-gradient(1000px 380px at 15% -10%, rgba(28, 171, 226, .22), transparent 60%),
        radial-gradient(900px 360px at 85% 0%, rgba(247, 183, 51, .18), transparent 60%),
        linear-gradient(180deg, #0a1a3f 0%, #10275a 42%, #ffffff 100%);
    padding-bottom: 34px;
}

.tob-hero .tob-hero-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, .35);
    background: #06102a;
}

.tob-hero .carousel-item img {
    height: clamp(260px, 40vw, 520px);
    object-fit: cover;
    transform: scale(1.02);
}

#carouselExampleIndicators .carousel-caption {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    text-align: left;
    padding: 70px 44px 44px;
    background: linear-gradient(to top, rgba(6, 16, 42, .95) 0%, rgba(6, 16, 42, .6) 55%, rgba(6, 16, 42, 0) 100%);
}

#carouselExampleIndicators .carousel-caption h5 {
    font-family: var(--tob-sans);
    font-size: clamp(20px, 2.6vw, 34px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .5);
    max-width: 760px;
}

#carouselExampleIndicators .carousel-caption p {
    font-size: 15px;
    color: rgba(255, 255, 255, .85);
    max-width: 640px;
    margin-bottom: 16px;
}

#carouselExampleIndicators .carousel-caption .btn {
    background: var(--grad-gold) !important;
    color: #2a1a00 !important;
    font-weight: 700;
    padding: 10px 26px;
    box-shadow: 0 12px 26px rgba(247, 142, 43, .4);
}

.tob-hero .carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: auto;
    right: 24px;
    justify-content: flex-end;
    margin: 0;
}

.tob-hero .carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    border: 0;
    margin: 0 5px;
    opacity: .7;
}

.tob-hero .carousel-indicators li.active {
    width: 30px;
    border-radius: 6px;
    background: var(--grad-gold);
    opacity: 1;
}

.tob-hero .carousel-control-prev,
.tob-hero .carousel-control-next {
    width: 54px;
    height: 54px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    opacity: 0;
    transition: .3s ease;
    background: rgba(10, 26, 63, .55);
    border-radius: 50%;
    margin: 0 18px;
    backdrop-filter: blur(4px);
}

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

.tob-hero .carousel-control-prev:hover,
.tob-hero .carousel-control-next:hover {
    background: var(--grad-gold);
    opacity: 1;
}

/* ---------------------------------------------------------------
   9. Home intro band
--------------------------------------------------------------- */
.tob-intro {
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fd 100%);
    padding: 64px 0 44px;
    position: relative;
    overflow: hidden;
}

.tob-intro::after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    right: -160px;
    top: -140px;
    background: radial-gradient(circle, rgba(28, 171, 226, .18), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.tob-intro-title {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--tob-ink);
    margin-bottom: 18px;
}

.tob-intro-title span {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tob-intro-text {
    font-size: 17px;
    line-height: 1.75;
    color: var(--tob-slate);
    max-width: 640px;
    margin-bottom: 26px;
}

.tob-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.tob-intro-actions .tob-btn-ghost {
    background: rgba(10, 26, 63, .05);
    border: 1px solid rgba(10, 26, 63, .14);
    color: var(--tob-navy) !important;
}

.tob-intro-actions .tob-btn-ghost:hover {
    background: rgba(10, 26, 63, .1);
    color: var(--tob-blue-deep) !important;
}

.tob-intro-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}

.tob-mini-card {
    background: #ffffff;
    border: 1px solid #e8eefb;
    border-radius: 18px;
    padding: 22px 20px;
    box-shadow: var(--shadow-sm);
    transition: .3s ease;
}

.tob-mini-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(28, 171, 226, .4);
}

.tob-mini-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(28, 171, 226, .16), rgba(43, 75, 214, .14));
    color: var(--tob-blue-deep);
    font-size: 22px;
    margin-bottom: 12px;
}

.tob-mini-card:nth-child(2n) i {
    background: linear-gradient(135deg, rgba(247, 183, 51, .2), rgba(247, 142, 43, .16));
    color: var(--tob-gold-2);
}

.tob-mini-card h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--tob-ink);
}

.tob-mini-card p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--tob-slate);
    margin: 0;
}

/* ---------------------------------------------------------------
   10. Counts / impact stats
--------------------------------------------------------------- */
.counts {
    background:
        radial-gradient(900px 320px at 20% 0%, rgba(28, 171, 226, .35), transparent 60%),
        linear-gradient(120deg, #0a1a3f 0%, #123a7a 55%, #1c508f 100%) !important;
    padding: 70px 0 60px !important;
    position: relative;
}

.counts::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .35;
    pointer-events: none;
}

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

.counts .counters {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0;
}

.counts .counters > div {
    flex: 1 1 180px;
    max-width: none;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    padding: 26px 14px 20px;
    backdrop-filter: blur(6px);
    transition: .3s ease;
}

.tob-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    color: var(--tob-gold);
    font-size: 22px;
    margin-bottom: 12px;
}

.counts .counters > div:hover {
    background: rgba(255, 255, 255, .13);
    transform: translateY(-6px);
}

.counts .counters span[data-toggle="counter-up"] {
    font-size: clamp(34px, 3.4vw, 46px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.counts .counters .counter-plus {
    font-size: 26px;
    font-weight: 700;
    color: var(--tob-gold);
    margin-left: 3px;
}

.counts .counters p {
    margin: 10px 0 0;
    font-size: 13.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
    font-family: var(--tob-sans);
}

/* ---------------------------------------------------------------
   11. Services / icon boxes
--------------------------------------------------------------- */
.services .icon-box {
    background: #ffffff;
    border: 1px solid #e8eefb;
    border-radius: 20px;
    padding: 46px 26px 40px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: .35s ease;
}

.services .icon-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(28, 171, 226, .35);
}

.services .icon-box .icon {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(28, 171, 226, .14), rgba(43, 75, 214, .12));
}

.services .icon-box h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.services .icon-box h4 a {
    color: var(--tob-ink);
}

.services .icon-box h4 a:hover {
    color: var(--tob-blue-deep);
}

.services .icon-box p {
    color: var(--tob-slate);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ---------------------------------------------------------------
   12. Vision / features
--------------------------------------------------------------- */
.features {
    padding: 70px 0;
    background: #ffffff !important;
}

.features .icon-box {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid #e8eefb;
    border-radius: 18px;
    padding: 24px 26px;
    box-shadow: var(--shadow-sm);
    transition: .3s ease;
    width: 100%;
}

.features .icon-box:hover {
    transform: translateX(6px);
    border-color: rgba(28, 171, 226, .4);
    box-shadow: var(--shadow-md);
}

.features .icon-box i {
    color: var(--tob-blue-deep);
    font-size: 26px;
}

.features .icon-box h4 {
    font-size: 19px;
    font-weight: 700;
    margin: 4px 0 6px;
}

.features .icon-box p {
    color: var(--tob-slate);
    font-size: 15px;
    margin-bottom: 0;
}

.features .image img {
    filter: drop-shadow(0 30px 45px rgba(10, 26, 63, .18));
}

/* ---------------------------------------------------------------
   13. Publication / news cards
--------------------------------------------------------------- */
.publications {
    padding: 66px 0;
}

.publication-item {
    background: #ffffff;
    border: 1px solid #e8eefb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: .35s ease;
    height: 100%;
}

.publication-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(28, 171, 226, .4);
}

.publication-item .pub-image {
    padding: 14px;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.publication-item .pub-image img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: .4s ease;
}

.publication-item:hover .pub-image img {
    transform: scale(1.05);
}

.publication-item .pub-image .sub-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 13px;
}

.publication-item .pub-image .sub-data a,
.publication-item .pub-image .pub_date,
.publication-item .pub-image a {
    color: var(--tob-slate);
    font-size: 13px;
    font-weight: 600;
}

.publication-item .pub-image .pub_cate {
    display: inline-block;
    background: rgba(28, 171, 226, .12);
    color: var(--tob-blue-deep) !important;
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-top: 12px;
}

.publication-item .pub-title {
    padding: 4px 18px 20px;
    clear: both;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

.publication-item .pub-title a {
    color: var(--tob-ink);
}

.publication-item .pub-title a:hover {
    color: var(--tob-blue-deep);
}

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next,
.owl-nav .owl-prev,
.owl-nav .owl-next {
    background: #ffffff !important;
    border: 1px solid #e0e8f7 !important;
    color: var(--tob-navy) !important;
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    box-shadow: var(--shadow-sm);
    transition: .25s ease;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover,
.owl-nav .owl-prev:hover,
.owl-nav .owl-next:hover {
    background: var(--grad-blue) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* ---------------------------------------------------------------
   14. Testimonials
--------------------------------------------------------------- */
.testimonials {
    background: linear-gradient(180deg, #0a1a3f 0%, #123a7a 100%) !important;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: "\201C";
    position: absolute;
    top: -40px;
    left: 4%;
    font-size: 320px;
    font-family: Georgia, serif;
    color: rgba(255, 255, 255, .06);
    line-height: 1;
    pointer-events: none;
}

.testimonials .section-title h2 {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

.testimonials .section-title h2::after {
    background: var(--grad-gold);
}

.testimonials .section-title p {
    color: rgba(255, 255, 255, .72);
}

.testimonials .testimonial-item {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    padding: 30px 24px 26px;
    margin: 8px;
    color: rgba(255, 255, 255, .9);
    backdrop-filter: blur(6px);
    transition: .3s ease;
    height: auto;
    min-height: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Reset the original theme's white quote-box (white text on white = invisible) */
.testimonials .testimonial-item p {
    background: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0;
    position: static;
    z-index: auto;
    font-style: normal;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .88);
    margin-bottom: 18px !important;
}

.testimonials .testimonial-item .testimonial-img {
    margin: 0 0 12px !important;
}

.testimonials .testimonial-item h3 {
    margin: 0 0 4px !important;
}

.testimonials .testimonial-item h4 {
    margin: 0 !important;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
    color: rgba(247, 183, 51, .75);
}

.testimonials .testimonial-item:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .12);
}

.testimonials .testimonial-item > div {
    font-size: 15.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 20px;
}

.testimonials .testimonial-item .testimonial-img {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 3px solid var(--tob-gold);
    padding: 0;
    margin-bottom: 12px;
}

.testimonials .testimonial-item h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.testimonials .testimonial-item h4 {
    color: var(--tob-gold);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .04em;
}

.testimonials .owl-dot {
    background: rgba(255, 255, 255, .35) !important;
}

.testimonials .owl-dot.active {
    background: var(--tob-gold) !important;
    width: 28px !important;
    border-radius: 10px !important;
}

/* ---------------------------------------------------------------
   15. Footer
--------------------------------------------------------------- */
#footer.tob-footer {
    background:
        radial-gradient(800px 300px at 10% 0%, rgba(28, 171, 226, .25), transparent 60%),
        linear-gradient(180deg, #0a1a3f 0%, #071230 100%);
    color: rgba(255, 255, 255, .8);
    position: relative;
    font-size: 14.5px;
}

#footer.tob-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1cabe2 0%, #2b4bd6 45%, #f7b733 100%);
    z-index: 2;
}

#footer .footer-top {
    padding: 74px 0 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.footer-brand img {
    height: 58px;
    width: auto;
    background: rgba(255, 255, 255, .95);
    border-radius: 14px;
    padding: 5px 9px;
}

.footer-brand .footer-brand-name {
    font-family: var(--tob-sans);
    font-size: 21px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
}

.footer-brand .footer-brand-name small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--tob-gold);
    margin-top: 4px;
}

.footer-about p {
    color: rgba(255, 255, 255, .7);
    line-height: 1.8;
    font-size: 14.5px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 18px;
    transition: .25s ease;
}

.footer-social a:hover {
    background: var(--grad-gold);
    border-color: transparent;
    color: #2a1a00;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(247, 142, 43, .35);
}

#footer .footer-top h4 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #ffffff;
    padding-bottom: 14px;
    margin-bottom: 18px;
    position: relative;
}

#footer .footer-top h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 3px;
    background: var(--grad-gold);
}

#footer .footer-top .footer-links ul li {
    padding: 7px 0;
}

#footer .footer-top .footer-links ul a {
    color: rgba(255, 255, 255, .72);
    font-size: 14.5px;
}

#footer .footer-top .footer-links ul i {
    color: var(--tob-blue);
    font-size: 16px;
}

#footer .footer-top .footer-links ul a:hover {
    color: var(--tob-gold);
    text-decoration: none;
    transform: translateX(5px);
}

#footer .footer-top .footer-contact h3,
#footer .footer-top .footer-contact h4 {
    font-size: 15px;
}

#footer .footer-top .footer-contact p {
    color: rgba(255, 255, 255, .75);
    font-size: 14.5px;
    line-height: 1.9;
}

#footer .footer-top .footer-contact strong {
    color: #ffffff;
}

.footer-contact-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    padding: 20px 22px;
    margin-top: 6px;
}

.footer-contact-card a {
    color: rgba(255, 255, 255, .85);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-contact-card a:hover {
    color: var(--tob-gold);
}

.footer-contact-card a i {
    color: var(--tob-blue);
}

.footer-bottom {
    background: rgba(0, 0, 0, .28);
    border-top: 1px solid rgba(255, 255, 255, .08);
}

#footer .copyright-wrap {
    border-top: 0;
    padding: 22px 0 !important;
    align-items: center;
}

#footer .copyright-wrap .count {
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    letter-spacing: .04em;
}

#footer .copyright {
    color: rgba(255, 255, 255, .82);
    font-size: 14.5px;
}

#footer .copyright strong {
    color: var(--tob-gold);
}

#footer .credits {
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
    padding-top: 4px;
}

#footer .credits a {
    color: #ffffff;
    font-weight: 600;
    border-bottom: 1px dashed rgba(255, 255, 255, .4);
}

#footer .credits a:hover {
    color: var(--tob-gold);
    border-bottom-color: var(--tob-gold);
}

#footer .social-links a {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: 18px;
    line-height: 40px;
    margin-right: 6px;
}

#footer .social-links a:hover {
    background: var(--grad-gold);
    color: #2a1a00;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(247, 142, 43, .35);
    text-decoration: none;
}

/* ---------------------------------------------------------------
   16. Back to top / preloader / misc
--------------------------------------------------------------- */
.back-to-top i {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--grad-gold);
    color: #2a1a00;
    font-size: 22px;
    box-shadow: 0 14px 28px rgba(247, 142, 43, .4);
}

.back-to-top i:hover {
    background: var(--grad-gold);
    transform: translateY(-4px);
}

#preloader:before {
    border-color: var(--tob-blue);
    border-top-color: var(--tob-gold);
}

section.marquee-section {
    padding: 0;
}

hr {
    border-top: 1px solid #e8eefb;
    margin: 10px 0;
}

/* ---------------------------------------------------------------
   17. Responsive
--------------------------------------------------------------- */
/* CTA in the nav only where there is real free space (nav needs ~1378px) */
@media (max-width: 1749.98px) {
    .tob-header .get-started-btn {
        display: none;
    }
}

/* Two-row wrapped nav for medium desktops: 13 items don't fit one row */
@media (min-width: 992px) and (max-width: 1499.98px) {
    .navbar-area {
        position: relative !important;
    }
    .nav-menu {
        text-align: center !important;
        float: none !important;
        width: 100% !important;
    }
    .nav-menu > ul {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        float: none !important;
        width: 100% !important;
        min-width: 0;
    }
    .nav-menu > ul > li {
        float: none;
        display: inline-block;
        padding-left: 0;
    }
    .nav-menu > ul > li > a {
        padding-left: 9px;
        padding-right: 9px;
        font-size: 13px;
    }
}

@media (max-width: 1199.98px) {
    .nav-menu > ul > li > a {
        font-size: 13px;
    }
    .nav-menu > ul > li {
        padding-left: 6px;
    }
    #top-logo.tob-brandbar .tob-brand-name {
        font-size: 21px;
    }
}

@media (max-width: 991.98px) {
    .tob-topbar-right .tob-topbar-item {
        display: none;
    }
    #top-logo.tob-brandbar .container {
        flex-direction: row;
    }
    #top-logo.tob-brandbar #site-title a img {
        height: 52px;
    }
    #top-logo.tob-brandbar .tob-brand-name {
        font-size: 18px;
    }
    #top-logo.tob-brandbar .tob-brand-name small {
        font-size: 10px;
        letter-spacing: .14em;
    }
    .tob-brand-cta .tob-cta-ghost {
        display: none;
    }
    .tob-intro-cards {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 30px;
    }
    #carouselExampleIndicators .carousel-caption {
        padding: 56px 26px 44px;
    }
    .counts .counters > div {
        flex: 1 1 140px;
    }
}

@media (max-width: 767.98px) {
    .tob-topbar-left .tob-topbar-item-hide,
    .tob-topbar-sep {
        display: none;
    }
    .tob-hero {
        padding-bottom: 20px;
    }
    .tob-hero .tob-hero-frame {
        border-radius: 18px;
    }
    .tob-hero .carousel-control-prev,
    .tob-hero .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 8px;
        opacity: .9;
    }
    .tob-ticker {
        flex-direction: column;
        border-radius: 12px;
        margin-top: 16px;
    }
    .tob-ticker-label {
        justify-content: center;
        padding: 9px 16px;
    }
    .tob-intro {
        padding: 46px 0 34px;
    }
    .tob-intro-cards {
        grid-template-columns: 1fr;
    }
    .tob-intro-actions .tob-btn-primary,
    .tob-intro-actions .tob-btn-ghost {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }
    .counts .counters > div {
        flex: 1 1 45%;
        padding: 20px 10px 16px;
    }
    #footer .footer-top {
        padding: 54px 0 30px;
    }
    #footer .social-links {
        text-align: left !important;
        padding-top: 18px !important;
    }
    .publication-item .pub-image img {
        height: 210px;
    }
}

@media (max-width: 480px) {
    #top-logo.tob-brandbar #site-title a img {
        width: auto !important;
        height: 46px;
        padding: 4px 8px;
    }
    #top-logo.tob-brandbar .tob-brand-name {
        font-size: 16px;
    }
    .tob-cta {
        padding: 9px 16px;
        font-size: 13px;
    }
}
