/* HEADER */
.tb-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.tb-container {
    /* Match the main site container width for consistent alignment */
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.tb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 16px;
}

/* LOGO */
.tb-logo a {
    font-size: 22px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

/* NAV */
.tb-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: center;
}


.tb-nav a,
.tb-trigger {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
}

/* AUTH */
.tb-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* BASE BUTTON */
.tb-btn {
    height: 36px;
    padding: 0 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    white-space: nowrap;
}

/* SIGN IN – BLUE BUTTON */
.tb-btn-blue {
    background: #2563eb;
}

.tb-btn-blue:hover {
    background: #1e4fd8;
}

/* SIGN UP – ORANGE BUTTON */
.tb-btn-orange {
    background: #f97316;
}

.tb-btn-orange:hover {
    background: #ea580c;
}

/* DROPDOWN BASE */
.tb-dropdown {
    position: relative;
}

/* DROPDOWN MENU */
.tb-dropdown-menu {
    position: absolute;
    /* Keep the menu visually separated but still easy to move into */
    top: 100%;
    margin-top: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 45px rgba(0,0,0,.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 999;
}

/* Hover bridge: prevents the menu from closing when moving the cursor
   from the trigger to the dropdown content. */
.tb-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
    /* Needs pointer events so the hover state stays active */
    pointer-events: auto;
}

/* SHOW ON HOVER */
.tb-dropdown:hover > .tb-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* SERVICES */
.tb-services-headings {
    width: 520px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.tb-services-headings a {
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #1f2937;
    white-space: nowrap;
}

.tb-services-headings a:hover {
    background: #f1f5f9;
    color: #2563eb;
}

/* SUBJECTS */
.tb-subjects-grid {
    width: 600px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 20px;
}

.tb-subjects-grid a {
    font-size: 14px;
    padding: 6px 8px;
    border-radius: 4px;
    text-decoration: none;
    color: #374151;
    white-space: nowrap;
}

.tb-subjects-grid a:hover {
    background: #f1f5f9;
    color: #2563eb;
}

/* Responsive: keep header clean on small screens */
@media (max-width: 900px) {
    .tb-header-inner {
        height: auto;
        padding: 12px 0;
    }

    /* Hide the large dropdown nav on small screens (no mobile menu JS here) */
    .tb-nav {
        display: none;
    }
}

/* Outline button (used for Student Dashboard quick link) */
.tb-btn-outline{background:#fff;color:#1f2937;border:1px solid #cbd5e1;}
.tb-btn-outline:hover{background:#f8fafc;}
