/* Apply4U Online ? professional theme layer (works with Tailwind CDN) */
:root {
    --online-navy: #0B2545;
    --online-navy-deep: #071A30;
    --online-orange: #FF6B00;
    --online-cyan: #0891b2;
    --online-surface: #F4F7FB;
    --online-card: #ffffff;
    --online-border: #e2e8f0;
}

/* Soft section washes */
.online-section-soft {
    background:
        radial-gradient(ellipse 80% 50% at 0% 0%, rgba(8, 145, 178, 0.06), transparent 55%),
        radial-gradient(ellipse 70% 40% at 100% 100%, rgba(255, 107, 0, 0.06), transparent 50%),
        var(--online-surface);
}

.online-section-white {
    background:
        linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

/* Stat strip ? shared highlight cards (main / online / studymbbs) */
.online-stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--online-border);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.25rem 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.online-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.online-stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--online-navy), var(--online-orange));
}

/* University card */
.ou-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--online-border);
    background: var(--online-card);
    box-shadow: 0 4px 20px rgba(11, 37, 69, 0.05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    text-decoration: none !important;
    color: inherit;
}

.ou-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 0, 0.35);
    box-shadow: 0 18px 40px rgba(11, 37, 69, 0.12);
}

.ou-card-media {
    position: relative;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0B2545 0%, #0e7490 55%, #FF6B00 140%);
}

.ou-card-media img.ou-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.ou-card:hover .ou-banner {
    transform: scale(1.06);
}

.ou-card-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 26, 48, 0.15) 0%, rgba(7, 26, 48, 0.05) 40%, rgba(7, 26, 48, 0.78) 100%);
    pointer-events: none;
}

.ou-card-badges {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    display: flex;
    gap: 0.35rem;
    z-index: 2;
}

.ou-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ou-pill-accent {
    background: linear-gradient(135deg, #FF6B00, #ff8a33);
    color: #fff;
}

.ou-logo-row {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ou-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: #fff;
    border-radius: 0.65rem;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    padding: 2px;
}

.ou-naac {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.35rem;
    font-size: 0.62rem;
    font-weight: 800;
    background: #15803d;
    color: #fff;
}

.ou-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1rem 1.1rem 1.15rem;
}

.ou-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--online-navy);
    line-height: 1.35;
    margin: 0 0 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem;
}

.ou-card-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.85rem;
}

.ou-card-cta {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
}

.ou-btn-primary {
    flex: 1;
    text-align: center;
    padding: 0.55rem 0.75rem;
    border-radius: 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff !important;
    background: linear-gradient(135deg, #0B2545, #134e7a);
    transition: filter .2s ease;
}

.ou-btn-primary:hover { filter: brightness(1.08); }

.ou-btn-ghost {
    flex: 1;
    text-align: center;
    padding: 0.55rem 0.75rem;
    border-radius: 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--online-orange) !important;
    border: 1px solid rgba(255, 107, 0, 0.45);
    background: #fff;
    transition: background .2s ease;
}

.ou-btn-ghost:hover { background: #fff7ed; }

/* Course card */
.oc-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--online-border);
    background: #fff;
    box-shadow: 0 4px 18px rgba(11, 37, 69, 0.05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.oc-card:hover {
    transform: translateY(-4px);
    border-color: rgba(11, 37, 69, 0.2);
    box-shadow: 0 16px 36px rgba(11, 37, 69, 0.1);
}

.oc-card-top {
    position: relative;
    padding: 1.15rem 1.15rem 0.85rem;
    background: linear-gradient(145deg, #0B2545 0%, #0e4d6e 48%, #155e75 100%);
    color: #fff;
    min-height: 7.5rem;
}

.oc-card-top::after {
    content: "";
    position: absolute;
    right: -1rem;
    top: -1rem;
    width: 7rem;
    height: 7rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.35), transparent 70%);
    pointer-events: none;
}

.oc-level {
    display: inline-flex;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.oc-card-title {
    position: relative;
    z-index: 1;
    margin: 0.65rem 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
}

.oc-card-stream {
    position: relative;
    z-index: 1;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
}

.oc-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1rem 1.15rem 1.15rem;
}

.oc-fee {
    font-size: 1.25rem;
    font-weight: 900;
    background: linear-gradient(90deg, #FF6B00, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.oc-fee span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    -webkit-text-fill-color: #94a3b8;
}

.oc-badge {
    display: inline-flex;
    margin-top: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.35rem;
    font-size: 0.62rem;
    font-weight: 800;
    color: #c2410c;
    background: #ffedd5;
}

/* Stream card */
.os-card {
    display: block;
    height: 100%;
    padding: 1.35rem;
    border-radius: 1rem;
    border: 1px solid var(--online-border);
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 4px 16px rgba(11, 37, 69, 0.04);
    text-decoration: none !important;
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.os-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 0, 0.35);
    box-shadow: 0 14px 32px rgba(11, 37, 69, 0.1);
}

.os-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(135deg, #0B2545, #0e7490);
    box-shadow: 0 8px 18px rgba(11, 37, 69, 0.2);
}

.os-card:hover .os-icon {
    background: linear-gradient(135deg, #FF6B00, #f59e0b);
}

.header-logo-box,
.footer-logo-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-box {
    background: #fff;
    border-radius: 0.75rem;
    padding: 0.45rem 0.75rem;
}

.header-brand-logo {
    height: 2.75rem;
    width: auto;
    max-width: 11rem;
    object-fit: contain;
}

@media (min-width: 640px) {
    .header-brand-logo {
        height: 3.25rem;
        max-width: 13rem;
    }
}

.footer-brand-logo {
    height: 2.35rem;
    width: auto;
    max-width: 11rem;
    object-fit: contain;
}

/* Fixed Enquire Now side tab */
.enquire-side-tab {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 1040;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
    background: #FF6B00;
    color: #fff;
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 1rem 0.55rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: -4px 0 16px rgba(255, 107, 0, 0.35);
    cursor: pointer;
}
.enquire-side-tab:hover { background: #E55F00; color: #fff; }
@media (max-width: 575.98px) {
    .enquire-side-tab { font-size: 0.72rem; padding: 0.75rem 0.4rem; }
}

/* Bottom announcement ticker */
.has-announce-bar { padding-bottom: 42px; }
.announce-ticker {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    align-items: stretch;
    min-height: 42px;
    background: #1a1a1a;
    color: #fff;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
}
.announce-ticker-label {
    flex-shrink: 0;
    background: #0d0d0d;
    padding: 0.65rem 1.1rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}
.announce-ticker-track {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.announce-ticker-marquee {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: announce-scroll 40s linear infinite;
}
.announce-ticker-item {
    font-size: 0.8rem;
    font-weight: 500;
}
.announce-ticker-item::before {
    content: "?";
    color: #FF6B00;
    margin-right: 0.75rem;
}
@keyframes announce-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Enquiry modal ? form + navy/orange gradient brand panel */
.online-enquiry-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.online-enquiry-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 26, 48, 0.65);
    backdrop-filter: blur(4px);
}
.online-enquiry-panel {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: min(92vh, 900px);
    overflow: auto;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.online-enquiry-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: none;
    background: #f1f5f9;
    color: #0B2545;
    cursor: pointer;
}
.online-enquiry-grid {
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .online-enquiry-grid { grid-template-columns: 0.95fr 1.15fr; }
}
.online-enquiry-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(145deg, #071A30 0%, #0B2545 42%, #FF6B00 145%);
    color: #fff;
}
@media (min-width: 768px) {
    .online-enquiry-brand {
        padding: 2.5rem 2rem;
        min-height: 520px;
    }
}
.online-enquiry-illus { display: none; margin-bottom: 1.25rem; }
@media (min-width: 768px) {
    .online-enquiry-illus { display: block; }
}
.online-enquiry-illus svg { width: 100%; height: auto; }
.online-enquiry-left-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}
@media (min-width: 768px) {
    .online-enquiry-left-title { font-size: 1.45rem; margin-bottom: 0.65rem; }
}
.online-enquiry-left-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    line-height: 1.55;
    margin: 0;
}
@media (min-width: 768px) {
    .online-enquiry-left-sub { font-size: 0.95rem; }
}
.online-enquiry-right { padding: 1.75rem 1.35rem 1.5rem; background: #fff; }
@media (min-width: 640px) {
    .online-enquiry-right { padding: 2rem 2rem 1.75rem; }
}
.online-enquiry-eyebrow {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FF6B00;
    margin-bottom: 0.35rem;
}
.online-enquiry-welcome {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0B2545;
    margin-bottom: 0.35rem;
}
.online-enquiry-desc { color: #94a3b8; font-size: 0.875rem; margin-bottom: 1.1rem; }

/* Homepage search hero */
.online-search-hero {
    position: relative;
    min-height: clamp(420px, 62vh, 580px);
    display: flex;
    align-items: center;
    background: #0B2545 center/cover no-repeat;
    color: #fff;
    overflow: hidden;
}
.online-search-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(7,26,48,0.88) 0%, rgba(11,37,69,0.72) 45%, rgba(8,145,178,0.45) 100%),
        radial-gradient(circle at 85% 20%, rgba(255,107,0,0.28), transparent 40%);
}
.online-search-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 2.5rem 0.85rem 2.75rem;
}
@media (min-width: 640px) {
    .online-search-hero-inner { padding: 3rem 1.25rem 3.25rem; }
}
.online-search-hero-title {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}
.online-search-hero-title .accent { color: #fdba74; }
.online-search-hero-sub {
    text-align: center;
    color: rgba(255,255,255,0.9);
    max-width: 680px;
    margin: 0 auto 1.5rem;
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    line-height: 1.55;
}
.online-hero-search {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
.online-hero-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 1.15rem;
    font-size: 0.95rem;
    color: #0f172a;
    min-width: 0;
}
.online-hero-search button {
    border: none;
    background: linear-gradient(135deg, #FF6B00, #f59e0b);
    color: #fff;
    font-weight: 800;
    padding: 0 1.35rem;
    cursor: pointer;
    white-space: nowrap;
}
.online-hero-search button:hover { filter: brightness(1.05); }
.online-hero-counselling {
    display: inline-flex;
    margin: 1.15rem auto 0;
    padding: 0.7rem 1.35rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
}
.online-hero-counselling:hover { background: rgba(255,255,255,0.16); }
.online-hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.15rem;
}
.online-hero-pill {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}
.online-hero-pill:hover { background: rgba(255,107,0,0.25); border-color: rgba(255,107,0,0.5); color: #fff; }
