:root {
    --blue: #07457f;
    --blue2: #043262;
    --gold: #f7c948;
    --gold2: #fff06a;
    --red: #c51f3a;
    --text: #243044;
    --muted: #667085;
    --soft: #f2f9ff;
    --white: #ffffff;
    --border: rgba(7, 69, 127, 0.08);
    --shadow: 0 18px 45px rgba(7, 69, 127, 0.12);
    --shadow-soft: 0 12px 30px rgba(7, 69, 127, 0.08);
}

/* =========================
   GLOBAL RESET
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: #f7fbff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* =========================
   TOP BAR
========================= */

.top-bar {
    background: var(--blue2);
    color: #eaf6ff;
    font-size: 0.9rem;
    padding: 9px 0;
}

.top-bar i {
    color: var(--gold);
}

/* =========================
   NAVBAR
========================= */

.app-nav {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 28px rgba(4, 50, 98, 0.08);
    min-height: 86px;
    z-index: 1030;
}

.nav-container {
    padding-left: 42px;
    padding-right: 42px;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 390px;
}

.brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    background: #eef7ff;
    border: 2px solid rgba(247, 201, 72, 0.55);
    box-shadow: 0 8px 20px rgba(7, 69, 127, 0.12);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 950;
    color: var(--blue);
    line-height: 1.1;
    font-size: 1.28rem;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.brand-title i {
    font-size: 1.15rem;
    color: var(--blue);
}

.brand-sub {
    margin-top: 3px;
    font-size: 0.82rem;
    color: #56657a;
    font-weight: 800;
    letter-spacing: 0.1px;
}

.nav-menu {
    align-items: center;
    gap: 6px;
}

.nav-menu .nav-item {
    display: flex;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #2f3747 !important;
    font-weight: 850;
    font-size: 0.96rem;
    border-radius: 999px;
    padding: 10px 13px !important;
    transition: all 0.22s ease;
    line-height: 1;
}

.nav-link i {
    font-size: 1.05rem;
    color: #344054;
    transition: all 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    background: #eef7ff;
    color: var(--blue) !important;
    transform: translateY(-1px);
}

.nav-link:hover i,
.nav-link.active i {
    color: var(--blue);
}

.nav-login-item {
    margin-left: 8px;
}

.custom-toggler,
.navbar-toggler {
    border: 1px solid rgba(7, 69, 127, 0.18);
    border-radius: 14px;
    padding: 8px 10px;
}

.custom-toggler:focus,
.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(7, 69, 127, 0.12);
}

/* =========================
   BUTTONS
========================= */

.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--blue), #0c67b4);
    color: #ffffff !important;
    border: 0;
    border-radius: 999px;
    font-weight: 950;
    padding: 13px 28px;
    box-shadow: 0 14px 32px rgba(7, 69, 127, 0.25);
    transition: all 0.28s ease;
}

.btn-main:hover {
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(7, 69, 127, 0.34);
}

.btn-gold,
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold2), var(--gold));
    color: #2c2300 !important;
    border: none;
    border-radius: 999px;
    font-weight: 950;
    padding: 13px 28px;
    box-shadow: 0 14px 32px rgba(247, 201, 72, 0.32);
    transition: all 0.28s ease;
}

.btn-gold:hover,
.btn-login:hover {
    color: #2c2300 !important;
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(247, 201, 72, 0.42);
}

/* =========================
   HERO SECTION
========================= */

.hero {
    position: relative;
    min-height: calc(100vh - 86px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.45) 23%, transparent 42%),
        linear-gradient(180deg, #e9f7ff 0%, #ccecff 54%, #ffffff 100%);
}

/* Soft background wave */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 450' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2307457f' fill-opacity='.08' d='M0 240 C230 340 430 365 680 300 C920 238 1120 115 1440 160 L1440 450 L0 450 Z'/%3E%3Cpath fill='%23ffffff' fill-opacity='.95' d='M0 315 C250 405 525 390 760 330 C980 275 1190 225 1440 285 L1440 450 L0 450 Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom center;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 76px 0 105px;
}

/*.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #2f3747;
    font-weight: 800;
    border: 1px solid rgba(7, 69, 127, 0.08);
    box-shadow: 0 12px 30px rgba(7, 69, 127, 0.08);
}*/
  .hero-badge{
                display:inline-flex;
                align-items:center;
                gap:9px;
                padding:11px 20px;
                border-radius:999px;
                background:#ffffff;
                color:#805b00;
                font-weight:950;
                border:1px solid rgba(247,201,72,.7);
                box-shadow:0 16px 38px rgba(7,69,127,.09);
            }



.hero-title {
    font-size: clamp(3.1rem, 6.2vw, 6.2rem);
    font-weight: 950;
    line-height: 1.03;
    color: var(--blue2);
    letter-spacing: -3px;
    margin-top: 24px;
    margin-bottom: 22px;
}

.hero-title span {
    color: var(--red);
}

.hero-text {
    color: #536579;
    font-size: clamp(1.05rem, 1.45vw, 1.28rem);
    line-height: 1.85;
    max-width: 720px;
    margin-top: 0;
}

/* =========================
   LOGO STAGE - FIXED PROFESSIONAL VERSION
========================= */

.logo-stage {
    position: relative;
    width: min(500px, 88vw);
    height: min(500px, 88vw);
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    animation: stageFloat 6s ease-in-out infinite;
}

/* soft outer halo */
.logo-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.30) 48%, transparent 70%);
    border: 2px solid rgba(7, 69, 127, 0.08);
    box-shadow: 0 34px 90px rgba(7, 69, 127, 0.16);
    z-index: 0;
    animation: haloPulse 4s ease-in-out infinite;
}

/* white round plate */
.logo-stage::before {
    content: "";
    position: absolute;
    width: 84%;
    height: 84%;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        inset 0 0 0 12px rgba(255, 255, 255, 0.85),
        0 28px 70px rgba(7, 69, 127, 0.20);
    z-index: 1;
}

/* actual logo - very important: contain prevents cropping */
.hero-logo {
    position: relative;
    z-index: 3;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
    padding: 10px;
    filter: drop-shadow(0 18px 32px rgba(7, 69, 127, 0.20));
    animation: logoFloat 4.8s ease-in-out infinite;
}

/* optional rotating ring */
.logo-stage .logo-ring {
    position: absolute;
    width: 94%;
    height: 94%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(247, 201, 72, 0.85);
    border-right-color: rgba(197, 31, 58, 0.38);
    border-bottom-color: rgba(7, 69, 127, 0.14);
    z-index: 2;
    animation: ringRotate 18s linear infinite;
}

/* =========================
   SECTIONS
========================= */

.section {
    padding: 78px 0;
}

.kicker {
    color: var(--red);
    font-weight: 950;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.section-title {
    color: var(--blue2);
    font-weight: 950;
    letter-spacing: -1px;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

/* =========================
   CARDS
========================= */

.card-soft {
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 16px 38px rgba(7, 69, 127, 0.08);
    border-radius: 24px;
    padding: 25px;
    height: 100%;
    transition: all 0.28s ease;
}

.card-soft:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 58px rgba(7, 69, 127, 0.16);
}

.icon-box {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue), #0a6ab8);
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 16px;
}

/* =========================
   APP LAYOUT
========================= */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 282px;
    background: linear-gradient(180deg, var(--blue2), var(--blue));
    color: #ffffff;
    position: fixed;
    inset: 0 auto 0 0;
    padding: 18px;
    overflow: auto;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dceeff;
    padding: 11px 13px;
    border-radius: 16px;
    margin: 4px 0;
    font-weight: 800;
    transition: all 0.22s ease;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.main {
    margin-left: 282px;
    width: calc(100% - 282px);
    padding: 22px;
}

.page-head {
    background: #ffffff;
    border-radius: 26px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 22px;
}

/* =========================
   DASHBOARD STATS
========================= */

.stat {
    background: #ffffff;
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(7, 69, 127, 0.06);
}

.stat h3 {
    font-weight: 950;
    color: var(--blue2);
    margin: 0;
}

/* =========================
   TABLES AND FORMS
========================= */

.table-card,
.form-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(7, 69, 127, 0.07);
}

.form-control,
.form-select {
    border-radius: 14px;
    padding: 12px;
    border: 1px solid #d9e6f2;
    transition: all 0.22s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(7, 69, 127, 0.45);
    box-shadow: 0 0 0 4px rgba(7, 69, 127, 0.08);
}

.alert {
    border-radius: 18px;
}

/* =========================
   MEDIA
========================= */

.media-thumb {
    height: 190px;
    border-radius: 18px;
    object-fit: cover;
    background: #eef7ff;
    width: 100%;
}

/* =========================
   FOOTER
========================= */

.footer {
    background: linear-gradient(135deg, #031426, #062d58);
    color: #cbd5e1;
    padding: 50px 0 20px;
}

.footer h4,
.footer h5 {
    color: #ffffff;
}

/* =========================
   ANIMATIONS
========================= */

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.82s ease, transform 0.82s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-14px) scale(1.015);
    }
}

@keyframes stageFloat {
    0%,
    100% {
        transform: translateY(0);
    }

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

@keyframes haloPulse {
    0%,
    100% {
        transform: scale(0.96);
        opacity: 0.70;
    }

    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1199px) {
    .nav-container {
        padding-left: 22px;
        padding-right: 22px;
    }

    .brand-wrap {
        min-width: auto;
    }

    .brand-title {
        font-size: 1.05rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 9px 10px !important;
    }

    .btn-login,
    .btn-gold {
        padding: 12px 20px;
    }

    .hero-title {
        font-size: clamp(3rem, 6vw, 5rem);
    }

    .logo-stage {
        width: min(430px, 88vw);
        height: min(430px, 88vw);
    }
}

@media (max-width: 991px) {
    .app-nav {
        min-height: auto;
    }

    .nav-container {
        padding: 10px 18px;
    }

    .brand-logo {
        width: 52px;
        height: 52px;
    }

    .brand-title {
        font-size: 0.98rem;
        white-space: normal;
    }

    .brand-sub {
        font-size: 0.74rem;
    }

    .navbar-collapse {
        margin-top: 14px;
        padding: 14px;
        background: #ffffff;
        border-radius: 22px;
        box-shadow: 0 18px 40px rgba(7, 69, 127, 0.12);
        border: 1px solid rgba(7, 69, 127, 0.08);
    }

    .nav-menu {
        align-items: stretch;
        gap: 6px;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 13px 15px !important;
        border-radius: 16px;
    }

    .nav-login-item {
        margin-left: 0;
        margin-top: 8px;
    }

    .btn-login,
    .btn-gold {
        width: 100%;
        min-height: 48px;
        border-radius: 16px;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 70px 0 110px;
        text-align: center;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .logo-stage {
        width: min(380px, 86vw);
        height: min(380px, 86vw);
        margin-top: 24px;
    }

    .hero-logo {
        width: 70%;
        height: 70%;
    }

    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
    }

    .app-shell {
        display: block;
    }

    .main {
        margin-left: 0;
        width: 100%;
    }

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 575px) {
    .top-bar {
        display: none;
    }

    .nav-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .brand-wrap {
        gap: 10px;
        max-width: calc(100% - 58px);
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .brand-title {
        font-size: 0.84rem;
        line-height: 1.15;
    }

    .brand-title i {
        display: none;
    }

    .brand-sub {
        font-size: 0.66rem;
    }

    .hero-content {
        padding: 55px 0 95px;
    }

   

    .hero-title {
        font-size: clamp(2.3rem, 13vw, 3.35rem);
        letter-spacing: -1.5px;
        line-height: 1.06;
    }

    .hero-text {
        font-size: 1rem;
        line-height: 1.75;
    }

    .logo-stage {
        width: min(300px, 86vw);
        height: min(300px, 86vw);
    }

    .hero-logo {
        width: 70%;
        height: 70%;
        padding: 7px;
    }

    .btn-main,
    .btn-gold,
    .btn-login {
        width: 100%;
        text-align: center;
        padding: 13px 18px;
    }

    .main {
        padding: 12px;
    }

    .table-card,
    .form-card,
    .page-head {
        padding: 18px;
        border-radius: 20px;
    }
}