/* Self-hosted Google Fonts - Playfair Display (hero serif) + Poppins + Oswald */
@import url('../fonts/google-fonts.css');

:root {
    --primary-color: #0057B0;
    --accent-color: #0057B0;
    --text-dark: #0f172a;
    --text-light: #475569;
    --bg-light: #ffffff;
    --white: #ffffff;
    --card-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    color: #0f172a;
    background-color: #ffffff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ================= MODERN GLASSMORPHISM NAVBAR ================= */
/* Navbar styles are managed in assets/css/navbar.css for transparent hero & floating pill */

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0070f3 0%, #00dfd8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(0, 223, 216, 0.35);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.brand-logo:hover .logo-badge {
    transform: rotate(6deg) scale(1.05);
    box-shadow: 0 0 22px rgba(0, 223, 216, 0.6);
}

.logo-info {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.8px;
    line-height: 1.1;
    text-transform: uppercase;
}

.logo-accent {
    background: linear-gradient(90deg, #00dfd8, #0070f3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.logo-tagline {
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    margin: 0 1rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    color: rgba(255, 255, 255, 0.82);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: #00dfd8;
    background: rgba(0, 223, 216, 0.1);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: #00dfd8;
    border-radius: 2px;
    box-shadow: 0 0 8px #00dfd8;
}

/* Nav Badges */
.nav-pill-badge {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(255, 75, 43, 0.4);
    animation: pulseBadge 2.5s infinite;
}

@keyframes pulseBadge {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.9;
    }
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.btn-connect {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: linear-gradient(135deg, #0070f3 0%, #00c6ff 100%);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 112, 243, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-connect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 112, 243, 0.55);
    color: #ffffff;
}

.btn-connect:hover::before {
    left: 100%;
}

.btn-connect i {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.btn-connect:hover i {
    transform: translateX(3px);
}

/* Hamburger Toggle Button */
.mobile-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 38px;
    height: 38px;
    padding: 9px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-toggle-btn .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle-btn.is-active .bar-1 {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle-btn.is-active .bar-2 {
    opacity: 0;
    transform: translateX(10px);
}

.mobile-toggle-btn.is-active .bar-3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer & Backdrop */
.mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    z-index: 10000;
}

.mobile-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #081a30;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.mobile-drawer.is-open {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.drawer-close-btn:hover {
    background: rgba(255, 75, 43, 0.2);
    color: #ff416c;
}

.mobile-drawer-body {
    flex: 1;
    padding: 1.25rem 1rem;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    color: #00dfd8;
    font-size: 0.95rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(0, 223, 216, 0.12);
    color: #ffffff;
    padding-left: 18px;
}

.mobile-pill-badge {
    margin-left: auto;
    background: #ff416c;
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.mobile-nav-highlight {
    background: rgba(0, 112, 243, 0.15);
    border: 1px solid rgba(0, 112, 243, 0.3);
    margin-top: 8px;
}

.mobile-drawer-footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-connect-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0070f3, #00dfd8);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 112, 243, 0.4);
}

/* Breakpoint Adaptation */
@media (max-width: 1200px) {
    .nav-link {
        padding: 8px 9px;
        font-size: 0.8rem;
    }
}

@media (max-width: 1060px) {
    .nav-menu {
        display: none;
    }
    .mobile-toggle-btn {
        display: flex;
    }
}


/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    /* Using the provided building image with a translucent blue overlay */
    background: linear-gradient(rgba(9, 52, 99, 0.85), rgba(9, 52, 99, 0.85)), url('../images/tbi banner.jpeg') no-repeat center center/cover;
    background-color: #061c38;
    /* Fallback */
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.hero-content {
    max-width: 600px;
    color: white;
    margin-top: 40px;
}

.hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 64px;
    line-height: 1;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* The divider lines below RBU TBI — scoped to avoid colliding with hero headline spans */
.hero-lines {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
}

.hero-lines .hero-divider-bar {
    height: 4px;
    background: #5c8ab9;
    border-radius: 2px;
}

.hero-lines .hero-divider-bar.line-1 { width: 40px; }
.hero-lines .hero-divider-bar.line-2 { width: 40px; }
.hero-lines .hero-divider-bar.line-3 { width: 10px; }

.hero p {
    font-size: 15px;
    font-weight: 300;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 450px;
}

.hero-btn {
    padding: 12px 35px;
    background: #2a7de1;
    color: white;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(42, 125, 225, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-btn:hover {
    background: #1a65c1;
}

/* ================= WHAT IS TBI ================= */
.tbi-section {
    padding: 80px 10%;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    color: #0f172a;
    /* Lighter blue for titles */
    margin-bottom: 60px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.tbi-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.tbi-text {
    flex: 1;
    font-size: 14px;
    color: #334155;
    line-height: 1.8;
    text-align: justify;
}

.tbi-image-container {
    flex: 1.5;
}

.tbi-image-container img {
    width: 100%;
    object-fit: contain;
}

/* ================= ACHIEVEMENTS ================= */
.achievements-section {
    padding: 60px 10%;
    background: #f1f5f9;
    position: relative;
}

.achievements-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.ach-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.ach-circle {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: #ffffff;
    transition: transform 0.3s ease;
}

.ach-circle:hover {
    transform: scale(1.05);
    border-color: #2a7de1;
    /* Lighter blue border on hover */
    box-shadow: 0 0 15px rgba(42, 125, 225, 0.3);
    /* Glow effect */
}

.ach-circle i {
    font-size: 45px;
    color: #317EFB;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    /* Bouncy animation */
}

.ach-circle:hover i {
    transform: rotate(360deg) scale(1.2);
    color: #2a7de1;
}

.ach-item h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 5px;
}

.ach-item p {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

/* ================= OBJECTIVES ================= */
.objectives-section {
    padding: 60px 10% 100px;
    background: #f8fafc;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.obj-box {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 25px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.obj-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Floating Animation Keyframes */
@keyframes float-icon {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

.obj-box i {
    font-size: 36px;
    color: #317EFB;
    margin-bottom: 25px;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float-icon 4s ease-in-out infinite;
}

.obj-box:hover i {
    color: var(--primary-color);
    transform: scale(1.2) translateY(-10px);
    text-shadow: 0 10px 20px rgba(13, 70, 128, 0.3);
    animation-play-state: paused;
}

.obj-box h4 {
    color: #0f172a;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.obj-box p {
    font-size: 13px;
    color: #334155;
    line-height: 1.6;
}

/* ================= FOOTER ================= */
.footer {
    background: #0d5ea6;
    /* Lighter blue footer background */
    color: white;
    padding: 70px 10% 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.footer-sub {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.footer-tagline {
    font-style: italic;
    font-size: 13px;
    margin-bottom: 25px;
}

.newsletter-box {
    display: flex;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    height: 40px;
}

.newsletter-box input {
    border: none;
    padding-left: 15px;
    width: 100%;
    outline: none;
    font-size: 13px;
}

.newsletter-box button {
    background: transparent;
    border: none;
    padding: 0 15px;
    color: #0d5ea6;
    cursor: pointer;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
}

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

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    display: inline-block;
    padding: 3px 0;
}

.footer-links a:hover {
    color: white;
}

@media (max-width: 640px) {
    .footer-links a {
        padding: 8px 0;
    }
    .footer-links li {
        margin-bottom: 2px;
    }
}

/* Quick Links: 11 items flow down column 1 (6) then column 2 (5) */
.footer-col-links {
    flex: 1 1 260px;
    padding-left: 20px;
}
.footer-links-split {
    display: grid;
    grid-template-rows: repeat(6, auto);
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    column-gap: 28px;
    row-gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links-split li {
    margin-bottom: 0;
    padding: 3px 0;
}

@media (max-width: 640px) {

    .footer-col-links {
        flex: 1 1 100%;
        padding-left: 0;
    }

    .footer-links-split {
        column-gap: 20px;
    }

    .footer-links-split li {
        padding: 6px 0;
    }
}

/* --- Impact stats row (startups.php) --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
}

.stats-row__item {
    padding: 48px 36px;
    text-align: center;
    border-right: 1px solid #e2e8f0;
    min-width: 0;
}

.stats-row__item:last-child {
    border-right: 0;
}

.stats-row__value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.stats-row__unit {
    color: #0057B0;
}

.stats-row__unit--sm {
    font-size: 2rem;
}

.stats-row__label {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 10px;
    overflow-wrap: break-word;
}

/* Tablet: 2-up, third stat spans full width */
@media (max-width: 900px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-row__item {
        padding: 36px 24px;
    }

    .stats-row__item:nth-child(2) {
        border-right: 0;
    }

    .stats-row__item:nth-child(3) {
        grid-column: 1 / -1;
        border-top: 1px solid #e2e8f0;
    }
}

/* Mobile: stack all three */
@media (max-width: 600px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .stats-row__item {
        padding: 28px 20px;
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .stats-row__item:nth-child(3) {
        border-top: 0;
    }

    .stats-row__item:last-child {
        border-bottom: 0;
    }

    .stats-row__value {
        font-size: 2.5rem;
    }

    .stats-row__unit--sm {
        font-size: 1.5rem;
    }

    .stats-row__label {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }
}

.contact-list li {
    font-size: 13px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-list i {
    margin-top: 3px;
}

/* --- Mail Us CTA (footer col 1) --- */
.footer-mail-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    min-height: 44px;
    background: #0d5ea6;
    color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-mail-link:hover,
.footer-mail-link:focus {
    background: #0a4c88;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.footer-mail-link i {
    font-size: 15px;
}

/* Clickable email / phone in the Contact column */
.footer-contact-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    word-break: break-word;
}

.footer-contact-link:hover,
.footer-contact-link:focus {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 25px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* ================== ABOUT US SPECIFIC STYLES ================== */

/* TIMELINE SECTION */
.timeline-section {
    padding: 80px 10%;
    background: #f4f6f9;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* The vertical line */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #2c6fb7;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* The Dots (Updated with Pulse) */
.container::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background-color: #2c6fb7;
    border: 4px solid #fff;
    top: 15px;
    border-radius: 50%;
    z-index: 10;
    /* Pulse Animation */
    box-shadow: 0 0 0 0 rgba(44, 111, 183, 0.7);
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(44, 111, 183, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(44, 111, 183, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(44, 111, 183, 0);
    }
}

/* Special Style for Rocket */
.container.rocket-node::after {
    content: '\f135';
    /* FontAwesome Rocket Icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    background-color: #2c6fb7;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    width: 30px;
    height: 30px;
    right: -15px;
    animation: pulse-blue 2s infinite;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

/* Fix dot position for Left Containers */
.left::after {
    right: -12px;
}

/* Fix dot position for Right Containers */
.right::after {
    left: -12px;
}

/* Rocket on right side override */
.right.rocket-node::after {
    left: -15px;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.timeline-content {
    padding: 20px 30px;
    background-color: #ffffff;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: #0f172a;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
}

.timeline-content p {
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
    text-align: justify;
}

/* PARTNERS SECTION */
.partners-section {
    padding: 80px 10% 40px;
    background: #f8fafc;
    text-align: center;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    align-items: center;
    justify-items: center;
}

.logo-grid img {
    max-width: 100%;
    max-height: 80px;
    transition: filter 0.3s;
}

.logo-grid img:hover {
    filter: none;
}

.how-we-do-diagram {
    margin-top: 60px;
    padding: 40px 20px;
    background: #eef4fb;
    /* Light Blue Background */
    color: #0f172a;
    text-align: center;
}

.diagram-container {
    max-width: 800px;
    margin: 40px auto;
    position: relative;
}

.process-line {
    width: 100%;
    height: 4px;
    background: white;
    position: relative;
    margin: 50px 0;
    transform: rotate(-5deg);
}

.process-step {
    position: absolute;
    width: 160px;
    text-align: center;
}

.step-1 {
    top: -80px;
    left: 10%;
}

.step-2 {
    top: -100px;
    left: 40%;
}

.step-3 {
    top: 40px;
    left: 25%;
}

.step-4 {
    top: -60px;
    right: 10%;
}

.step-title {
    color: #fca311;
    /* Gold color */
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.step-desc {
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
}

/* TEAM & BOARD SECTION */
.board-section {
    padding: 80px 10%;
    background: #f8fafc;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 80px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.board-table th {
    background: #f1f5f9;
    color: #0f172a;
    padding: 15px;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.board-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: #334155;
}

.board-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.board-table tr:hover {
    background-color: #eef2f7;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.team-member {
    text-align: center;
    width: 250px;
}

.team-img-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.team-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #0f172a;
    padding: 15px;
    border-radius: 12px;
}

.team-name {
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.team-role {
    font-size: 12px;
    color: #475569;
}

/* ================== CONTACT PAGE STYLES ================== */
.contact-hero {
    padding: 100px 0 60px;
    text-align: center;
    /* Consistent masked background style */
    background: linear-gradient(rgba(9, 52, 99, 0.85), rgba(9, 52, 99, 0.85)), url('../images/tbi banner.jpeg') no-repeat center center/cover;
    color: white;
}

.contact-hero h1 {
    font-family: 'Oswald', sans-serif;
    color: white;
    /* Changed to white for contrast */
    font-size: 42px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-hero p {
    color: rgba(255, 255, 255, 0.9);
    /* Lighter white for subtitle */
    font-size: 16px;
}

.contact-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 5%;
    gap: 50px;
    align-items: flex-start;
}

.contact-sidebar {
    flex: 1;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
}

.contact-sidebar h2 {
    font-family: 'Oswald', sans-serif;
    color: #0f172a;
    font-size: 28px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.c-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.c-icon {
    width: 45px;
    height: 45px;
    background: rgba(49, 126, 251, 0.1);
    color: #317EFB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.c-text h4 {
    color: #0f172a;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.c-text p,
.c-text a {
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
    display: block;
}

.follow-us {
    margin-top: 40px;
}

.follow-us h4 {
    color: #475569;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.s-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.3s;
}

.s-btn:hover {
    transform: translateY(-3px);
}

.instagram {
    background: #E1306C;
}

.twitter {
    background: #1DA1F2;
}

.youtube {
    background: #FF0000;
}

.linkedin {
    background: #0077B5;
}

.contact-map {
    flex: 2;
    height: 500px;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 900px) {
    .timeline::after {
        left: 31px;
    }

    .container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .container::after {
        left: 21px;
    }

    .left::after {
        left: 21px;
    }

    .right {
        left: 0%;
    }

    .right::after {
        left: 21px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .tbi-content {
        flex-direction: column;
    }

    .achievements-grid {
        justify-content: center;
    }

    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .navbar nav {
        display: none;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .contact-map {
        width: 100%;
        height: 350px;
    }
}

/* ============================================================
   HERO INFINITE GRID — layering
   The grid (.hero-infinite-grid) is absolutely positioned at z-index:0
   inside the hero. Every hero's content wrapper must therefore be
   position:relative + z-index:1, otherwise the grid paints OVER the text
   (positioned elements paint above static in-flow content).
   ============================================================ */
.page-editorial-header > .peh-inner,
.svc-page-header > .svc-inner,
.about-hero-section > .about-hero-container,
.tbi-hero-content {
    position: relative;
    z-index: 1;
}

/* ============================================================
   CLOUDFLARE STYLE CTA BANNER
   ============================================================ */.cloudflare-cta-banner {
    position: relative;
    background: linear-gradient(145deg, #1E40AF 0%, #2563EB 100%);
    box-shadow: 0 25px 60px -15px rgba(37, 99, 235, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.cf-dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.38) 1.25px, transparent 1.25px);
    background-size: 15px 15px;
    opacity: 0.95;
    pointer-events: none;
}

.cf-bottom-glow {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 680px;
    height: 190px;
    max-width: 92%;
    border-radius: 50% 50% 0 0;
    background: radial-gradient(ellipse 65% 100% at 50% 100%, rgba(191, 219, 254, 0.75) 0%, rgba(96, 165, 250, 0.4) 40%, rgba(30, 64, 175, 0) 80%);
    filter: blur(18px);
    pointer-events: none;
}

/* --- Final CTA banner (front page) --- */
.cta-banner-section {
    padding: 80px 0;
    background: var(--lt-bg, #FFFFFF);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.cta-banner-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.cloudflare-cta-banner {
    border-radius: 2rem;
    padding: 72px 56px;
    text-align: center;
}

.cta-banner-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.cta-banner-title {
    font-family: 'Playfair Display', Georgia, serif;
    /* floor dropped to 1.75rem: the old 2.5rem floor overflowed below ~360px */
    font-size: clamp(1.75rem, 5vw, 4.5rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
}

.cta-banner-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 1.1rem + 0.6vw, 1.3rem);
    color: rgba(255, 255, 255, 0.90);
    line-height: 1.7;
    margin: 0 auto 40px;
    max-width: 700px;
}

.cta-banner-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cta-btn--primary {
    padding: 13px 34px;
    background: #fff;
    color: #1A1A2E;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-btn--ghost {
    padding: 13px 28px;
    background: rgba(255, 255, 255, 0.20);
    color: #fff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.30);
}

.cta-btn--primary:hover,
.cta-btn--primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
}

.cta-btn--ghost:hover,
.cta-btn--ghost:focus {
    background: rgba(255, 255, 255, 0.32);
    color: #fff;
}

@media (max-width: 900px) {
    .cta-banner-wrap {
        padding: 0 32px;
    }

    .cloudflare-cta-banner {
        padding: 56px 36px;
    }
}

@media (max-width: 600px) {
    .cta-banner-section {
        padding: 48px 0;
    }

    .cta-banner-wrap {
        padding: 0 16px;
    }

    .cloudflare-cta-banner {
        border-radius: 1.5rem;
        padding: 40px 22px;
    }

    .cta-banner-text {
        margin-bottom: 28px;
    }

    /* full-width stacked buttons read better than two cramped pills */
    .cta-banner-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cta-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 380px) {
    .cta-banner-wrap {
        padding: 0 12px;
    }

    .cloudflare-cta-banner {
        padding: 32px 16px;
    }
}

.cf-floating-badge {
    position: absolute;
    width: 52px;
    height: 52px;
    border: 1.5px dashed rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transform: rotate(45deg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    pointer-events: none;
    user-select: none;
    transition: transform 0.3s ease;
}

.cf-diamond-inner {
    transform: rotate(-45deg);
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes cfFloat1 {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-9px) rotate(45deg); }
}

@keyframes cfFloat2 {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(8px) rotate(45deg); }
}

@keyframes cfFloat3 {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-7px) rotate(45deg); }
}

.cf-float-1 {
    animation: cfFloat1 4.5s ease-in-out infinite;
}

.cf-float-2 {
    animation: cfFloat2 5.2s ease-in-out infinite 0.8s;
}

.cf-float-3 {
    animation: cfFloat3 4.8s ease-in-out infinite 1.5s;
}