/* DFSI public site – modern theme (Bootstrap 5 base) */
:root {
    --dfsi-navy: #223a66;
    --dfsi-navy-dark: #172a4d;
    --dfsi-teal: #0b4f5c;
    --dfsi-sky: #2b8fd6;
    --dfsi-accent: #f0a500;
    --dfsi-bg: #f5f7fb;
    --dfsi-text: #1f2937;
    --dfsi-muted: #6b7280;
    --dfsi-radius: 16px;
    --dfsi-shadow: 0 10px 30px rgba(34, 58, 102, .08);
    --dfsi-shadow-lg: 0 20px 45px rgba(34, 58, 102, .16);
    --bs-primary: #223a66;
    --bs-primary-rgb: 34, 58, 102;
    --bs-link-color: #223a66;
    --bs-link-color-rgb: 34, 58, 102;
    --bs-link-hover-color: #2b8fd6;
}

html { scroll-behavior: smooth; }
body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--dfsi-text);
    background: #fff;
    font-size: 16px;
    line-height: 1.65;
}
h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    color: var(--dfsi-navy);
    font-weight: 700;
}
a { text-decoration: none; }
img { max-width: 100%; }

/* Buttons */
.btn { border-radius: 999px; font-weight: 600; padding: .6rem 1.4rem; }
.btn-sm { padding: .35rem .9rem; }
.btn-primary { background: var(--dfsi-navy); border-color: var(--dfsi-navy); }
.btn-primary:hover, .btn-primary:focus { background: var(--dfsi-sky); border-color: var(--dfsi-sky); }
.btn-outline-primary { color: var(--dfsi-navy); border-color: var(--dfsi-navy); }
.btn-outline-primary:hover { background: var(--dfsi-navy); border-color: var(--dfsi-navy); }
.btn-accent { background: var(--dfsi-accent); color: #1b1b1b; border: 0; }
.btn-accent:hover { background: #ffb81f; color: #000; }

/* Top bar */
.topbar { background: var(--dfsi-navy-dark); color: #cbd5e1; font-size: .875rem; }
.topbar a { color: #e2e8f0; }
.topbar a:hover { color: #fff; }

/* Brand strip (banner image has white lettering) */
.brand-strip { background: linear-gradient(90deg, var(--dfsi-navy) 0%, var(--dfsi-teal) 100%); }
.brand-strip img { max-height: 92px; width: auto; max-width: 100%; }

/* Main navigation */
.site-nav {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 18px rgba(15, 23, 42, .07);
}
.site-nav .navbar-brand img { height: 46px; }
.site-nav .nav-link {
    color: var(--dfsi-navy);
    font-weight: 600;
    font-size: .95rem;
    padding: .9rem .85rem !important;
    border-radius: 10px;
}
.site-nav .nav-link:hover, .site-nav .nav-link.active, .site-nav .show > .nav-link { color: var(--dfsi-sky); }
.site-nav .dropdown-menu {
    border: 0;
    border-radius: 14px;
    box-shadow: var(--dfsi-shadow-lg);
    padding: .5rem;
    min-width: 15rem;
}
.site-nav .dropdown-item {
    border-radius: 10px; padding: .6rem .9rem; font-weight: 500; white-space: nowrap;
    display: flex; align-items: center;
}
.site-nav .dropdown-item i { font-size: 1.05rem; color: var(--dfsi-sky); flex-shrink: 0; }
.site-nav .dropdown-item:hover { background: #eef4fb; color: var(--dfsi-navy); }
.site-nav .btn-login { padding: .45rem 1.2rem; }
@media (max-width: 1199.98px) {
    .site-nav .navbar-collapse { max-height: 75vh; overflow-y: auto; padding-bottom: 1rem; }
    .site-nav .nav-link { padding: .6rem .5rem !important; }
    /* Collapsed (mobile) menu: dropdown sits inside the menu, let long items wrap */
    .site-nav .dropdown-menu { min-width: 0; box-shadow: none; background: #f6f9fc; }
    .site-nav .dropdown-item { white-space: normal; }
}

/* Floating quick links (desktop) */
.quick-links {
    position: fixed; left: 0; top: 50%; transform: translateY(-50%);
    z-index: 1030; display: flex; flex-direction: column; gap: 4px;
}
.quick-links a {
    display: flex; align-items: center; gap: .6rem;
    width: 44px; height: 44px; padding-left: 12px; overflow: hidden;
    color: #fff; border-radius: 0 12px 12px 0; font-size: 1.1rem;
    transition: width .25s ease; white-space: nowrap;
}
.quick-links a span { font-size: .85rem; font-weight: 600; opacity: 0; transition: opacity .2s; }
.quick-links a:hover { width: 160px; }
.quick-links a:hover span { opacity: 1; }
.quick-links img { width: 20px; }
.ql-facebook { background: #4267b2; } .ql-twitter { background: #111; }
.ql-youtube { background: #e1306c; } .ql-gallery { background: #f5b000; }
.ql-affiliate { background: #00a95c; } .ql-news { background: #8b5cf6; }

/* Page hero / title */
.page-hero {
    position: relative;
    background: linear-gradient(120deg, var(--dfsi-navy) 0%, var(--dfsi-teal) 100%);
    color: #fff; padding: 3.25rem 0 3rem; overflow: hidden; text-align: center;
}
.page-hero::after {
    content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
    border-radius: 50%; background: rgba(255, 255, 255, .06);
}
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.6rem); margin: 0; position: relative; z-index: 1; }
.page-hero .eyebrow { color: #9fd3ff; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; }
.page-hero .breadcrumb { margin: .6rem 0 0; position: relative; z-index: 1; justify-content: center; }
.page-hero .breadcrumb a, .page-hero .breadcrumb-item.active, .page-hero .breadcrumb-item + .breadcrumb-item::before { color: #cfe3ff; }

.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.bg-soft { background: var(--dfsi-bg); }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title .divider { width: 60px; height: 4px; border-radius: 4px; background: var(--dfsi-sky); margin: .9rem auto 0; }

/* Cards */
.card-soft {
    background: #fff; border: 1px solid #edf1f7; border-radius: var(--dfsi-radius);
    box-shadow: var(--dfsi-shadow); transition: transform .25s, box-shadow .25s;
}
.card-soft.hover-lift:hover { transform: translateY(-6px); box-shadow: var(--dfsi-shadow-lg); }
.icon-badge {
    width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
    background: #eaf3fd; color: var(--dfsi-navy); font-size: 1.8rem;
}
.icon-badge img { width: 36px; }

/* Home banner slider: the original banner images, full width, no blur or overlay */
.hero-banner { background: #fff; }
.hero-banner .carousel-item img {
    display: block; width: 100%;
    height: clamp(240px, 42vw, 600px);
    object-fit: cover; object-position: center;
}
.hero-banner .carousel-indicators [data-bs-target] { width: 28px; height: 5px; border-radius: 4px; border: 0; }
@media (min-width: 992px) { .hero-banner .carousel-control-prev { left: 44px; } } /* clear of the floating social bar */


.feature-card { padding: 2rem 1.6rem; height: 100%; display: flex; flex-direction: column; }
.feature-card .label { color: var(--dfsi-sky); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.feature-card h4 { margin: .35rem 0 .5rem; }
.feature-card p { color: var(--dfsi-muted); flex-grow: 1; }

.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, .55); }
    70% { box-shadow: 0 0 0 14px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

/* Content typography */
.prose p, .prose li { color: #374151; font-size: 1.05rem; text-align: justify; }
.prose li { margin-bottom: .55rem; }
.prose h2, .prose h3 { margin-top: 2rem; }
.check-list { list-style: none; padding-left: 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .8rem; }
.check-list li::before {
    content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .05rem;
    color: #16a34a; font-size: 1.15rem;
}

/* Forms */
.form-card { padding: 2rem; }
@media (min-width: 768px) { .form-card { padding: 2.5rem 3rem; } }
.form-label { font-weight: 600; color: #334155; font-size: .92rem; }
.form-control, .form-select { border-radius: 12px; border-color: #dbe3ee; padding: .65rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--dfsi-sky); box-shadow: 0 0 0 .2rem rgba(43, 143, 214, .15); }
.req { color: #dc2626; }
.form-section-title {
    display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; margin: 2rem 0 1rem;
    padding-bottom: .6rem; border-bottom: 1px solid #e5e7eb;
}
.form-section-title i { color: var(--dfsi-sky); }
.plan-option {
    display: block; border: 2px solid #e5e7eb; border-radius: 14px; padding: 1rem 1.2rem;
    cursor: pointer; transition: border-color .2s, background .2s; margin-bottom: .75rem;
}
.plan-option:hover { border-color: #9cc9ee; }
.plan-option input { margin-right: .6rem; }
.plan-option:has(input:checked) { border-color: var(--dfsi-sky); background: #f0f8ff; }
.plan-option .price { font-weight: 800; color: var(--dfsi-navy); }
.plan-option .note { color: #b91c1c; font-weight: 600; }
.check-option {
    display: flex; gap: .6rem; align-items: flex-start; padding: .7rem 1rem; border: 1px solid #e5e7eb;
    border-radius: 12px; margin-bottom: .5rem; cursor: pointer;
}
.check-option:has(input:checked) { border-color: var(--dfsi-sky); background: #f0f8ff; }
.check-option input { margin-top: .3rem; }

/* Tables */
.table-card { padding: 1.25rem; }
@media (min-width: 768px) { .table-card { padding: 2rem; } }
.table thead th { background: var(--dfsi-navy); color: #fff; border: 0; font-weight: 600; white-space: nowrap; }
.table thead th:first-child { border-top-left-radius: 10px; }
.table thead th:last-child { border-top-right-radius: 10px; }
.table td { vertical-align: middle; }
div.dataTables_wrapper div.dataTables_filter input { border-radius: 999px; padding: .35rem .9rem; }
.page-link { border-radius: 8px !important; margin: 0 2px; }

/* Team */
.team-card { text-align: center; padding: 1.75rem 1.25rem; height: 100%; }
.team-card img {
    width: 150px; height: 150px; object-fit: cover; border-radius: 50%;
    border: 5px solid #fff; box-shadow: 0 8px 22px rgba(34, 58, 102, .18); margin-bottom: 1rem;
}
.team-card.lead img { width: 180px; height: 180px; }
.team-card .role { color: var(--dfsi-sky); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.team-card .city { color: var(--dfsi-muted); font-size: .92rem; }

/* Gallery / filters */
.filter-pills .btn { border-radius: 999px; margin: .25rem; }
.filter-pills .btn.active { background: var(--dfsi-navy); color: #fff; border-color: var(--dfsi-navy); }
.gallery-item { border-radius: 14px; overflow: hidden; display: block; position: relative; aspect-ratio: 4/3; background: #e5e7eb; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after {
    content: "\F52A"; font-family: "bootstrap-icons"; position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 2rem; color: #fff; background: rgba(34, 58, 102, .45); opacity: 0; transition: opacity .3s;
}
.gallery-item:hover::after { opacity: 1; }
.filter-item.d-none { display: none !important; }

/* Timeline (announcements) */
.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: #dbe7f5; }
.timeline-item { position: relative; margin-bottom: 1.75rem; }
.timeline-item::before {
    content: ""; position: absolute; left: -1.75rem; top: 1.4rem; width: 16px; height: 16px; border-radius: 50%;
    background: var(--dfsi-sky); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--dfsi-sky);
}

/* Dashboard */
.welcome-card { background: linear-gradient(120deg, var(--dfsi-navy), var(--dfsi-teal)); color: #fff; border-radius: 20px; padding: 2rem; }
.welcome-card h2 { color: #fff; }
.stat-pill { background: rgba(255, 255, 255, .14); border-radius: 12px; padding: .6rem 1rem; display: inline-block; }
.stat-pill small { display: block; color: #cfe3ff; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.stat-pill strong { font-size: 1.05rem; }
.modal-content { border-radius: 20px; border: 0; }

/* Footer */
.site-footer { background: var(--dfsi-navy-dark); color: #cbd5e1; padding-top: 4rem; }
.site-footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 1.2rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-logo { width: 70px; border-radius: 50%; background: #fff; padding: 4px; }
.social-btn {
    width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center;
    background: rgba(255, 255, 255, .1); color: #fff; margin-right: .4rem; transition: background .2s;
}
.social-btn:hover { background: var(--dfsi-sky); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; padding: 1.25rem 0; font-size: .88rem; }
.back-to-top {
    position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; z-index: 1030;
    background: var(--dfsi-sky); color: #fff; display: grid; place-items: center; box-shadow: var(--dfsi-shadow-lg);
    opacity: 0; pointer-events: none; transition: opacity .3s;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { color: #fff; background: var(--dfsi-navy); }

/* Alerts */
.alert { border-radius: 14px; border: 0; }
.alert-success { background: #e7f7ee; color: #166534; }
.alert-danger { background: #fdecec; color: #991b1b; }

/* Accordion */
.accordion-item { border-radius: 14px !important; overflow: hidden; margin-bottom: .75rem; border: 1px solid #e5e7eb; }
.accordion-button { font-weight: 700; color: var(--dfsi-navy); }
.accordion-button:not(.collapsed) { background: #eef4fb; color: var(--dfsi-navy); }

.ratio iframe { border-radius: 16px; }

/* Announcements: admin-written HTML (links in titles, embedded PDFs/images in the body) */
.announcements-container { max-width: 1200px; }
.announcement-title { line-height: 1.4; word-break: break-word; }
.announcement-title .btn { font-size: .95rem; text-transform: none !important; margin-top: .4rem; white-space: normal; word-break: break-all; }
.announcement-body { overflow: hidden; word-break: break-word; }
.announcement-body > a { display: block; }
.announcement-body .embed-fit { position: relative; width: 100%; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 12px; background: #f8fafc; }
.announcement-body .embed-fit > iframe, .announcement-body .embed-fit > embed, .announcement-body .embed-fit > object {
    display: block; position: absolute; top: 0; left: 0; max-width: none; border: 0; transform-origin: 0 0;
}
@media (max-width: 767.98px) {
    .announcements-container .timeline { padding-left: 1.1rem; }
    .announcements-container .timeline-item::before { left: -1.1rem; }
    .announcements-container .timeline::before { left: 1px; }
}
.announcement-body img, .announcement-body video { max-width: 100% !important; height: auto !important; border-radius: 12px; }
.announcement-body div, .announcement-body table { max-width: 100% !important; }
.brochure-pages img { border-radius: 12px; box-shadow: var(--dfsi-shadow); margin-bottom: 1rem; }
