@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary-blue: #0B4F8A;
    --dark-blue: #06345C;
    --gold: #D8A735;
    --light-gold: #F5D77A;
    --white: #ffffff;
    --light-bg: #F5F8FB;
    --soft-blue: #EAF4FC;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --danger: #DC3545;
    --success: #198754;
    --shadow-sm: 0 8px 20px rgba(6, 52, 92, 0.08);
    --shadow-md: 0 15px 35px rgba(6, 52, 92, 0.14);
    --radius: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

.main-wrapper {
    min-height: 100vh;
}

/* Buttons */
.btn-brand {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 12px 26px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-brand:hover {
    background: var(--gold);
    color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-gold {
    background: var(--gold);
    color: var(--dark-blue);
    border: none;
    border-radius: 50px;
    padding: 12px 26px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-brand {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline-brand:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Navbar */
.brand-navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 14px 0;
}

.brand-logo {
    height: 52px;
    width: auto;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    margin-left: 12px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

/* Hero */
.hero-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(6, 52, 92, 0.95), rgba(11, 79, 138, 0.85)),
        radial-gradient(circle at top right, rgba(216, 167, 53, 0.35), transparent 35%);
    color: var(--white);
    padding: 110px 0 90px;
}
.hero-logo{
    max-width: 650px;
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 25px 60px rgba(0,0,0,.15);
    transition: all .4s ease;
    animation: floatLogo 5s ease-in-out infinite;
}

.hero-logo:hover{
    transform: scale(1.03);
}

@keyframes floatLogo{
    0%,100%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-12px);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--light-gold);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 22px;
}

.hero-title span {
    color: var(--light-gold);
}

.hero-text {
    color: rgba(255,255,255,0.88);
    font-size: 18px;
    max-width: 620px;
    margin-bottom: 32px;
}

/* Cards */
.brand-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: auto;
}

.brand-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.icon-card {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--soft-blue);
    color: var(--primary-blue);
    font-size: 24px;
    margin-bottom: 18px;
}

.brand-card:hover .icon-card {
    background: var(--gold);
    color: var(--dark-blue);
}

/* Sections */
.section-padding {
    padding: 90px 0;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 14px;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 44px;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(6, 52, 92, 0.96), rgba(11, 79, 138, 0.88)),
        radial-gradient(circle at top right, rgba(245, 215, 122, 0.28), transparent 32%);
    display: flex;
    align-items: center;
    padding: 50px 0;
}

.auth-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.auth-side {
    background:
        linear-gradient(160deg, rgba(6, 52, 92, 0.96), rgba(11, 79, 138, 0.92));
    color: var(--white);
    padding: 50px;
    height: 100%;
}

.auth-side h2 {
    font-weight: 800;
}

.auth-side p {
    color: rgba(255,255,255,0.85);
}

.auth-form {
    padding: 50px;
}

.form-label {
    font-weight: 700;
    color: var(--dark-blue);
}

.form-control,
.form-select {
    border-radius: 14px;
    padding: 13px 15px;
    border: 1px solid var(--border-color);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(11, 79, 138, 0.12);
}

/* Dashboard Cards */
.stat-card {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--gold);
}

.stat-card h6 {
    color: var(--text-muted);
    font-weight: 700;
}

.stat-card h3 {
    color: var(--dark-blue);
    font-weight: 800;
}

/* Tables */
.table-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 22px;
    overflow-x: auto;
}

.table thead th {
    background: var(--soft-blue);
    color: var(--dark-blue);
    border: none;
}

.badge-brand {
    background: var(--soft-blue);
    color: var(--primary-blue);
    border-radius: 50px;
    padding: 7px 12px;
}

/* Footer */
.site-footer {
    background: var(--dark-blue);
    color: rgba(255,255,255,0.82);
    padding: 55px 0 25px;
}

.site-footer h5 {
    color: var(--white);
    font-weight: 800;
}

.site-footer a:hover {
    color: var(--light-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 35px;
    padding-top: 20px;
    font-size: 14px;
}

/* Utilities */
.text-brand {
    color: var(--primary-blue);
}

.text-gold {
    color: var(--gold);
}

.bg-soft-blue {
    background: var(--soft-blue);
}

.rounded-brand {
    border-radius: var(--radius);
}

.shadow-brand {
    box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        padding: 85px 0 70px;
        text-align: center;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-side {
        padding: 35px;
        text-align: center;
    }

    .auth-form {
        padding: 35px;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 65px 0;
    }

    .brand-card {
        padding: 22px;
    }

    .auth-form {
        padding: 28px 22px;
    }

    .auth-side {
        padding: 30px 22px;
    }

    .btn-brand,
    .btn-gold,
    .btn-outline-brand {
        width: 100%;
        text-align: center;
    }
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 14px 22px;
}

.app-clock {
    font-weight: 800;
    color: var(--dark-blue);
    text-align: center;
}

.app-clock small {
    display: block;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.dropdown-item {
    font-weight: 600;
    padding: 10px 16px;
}

.dropdown-item:hover {
    background: var(--soft-blue);
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .app-topbar {
        gap: 12px;
    }

    .app-clock {
        order: 3;
        width: 100%;
        font-size: 14px;
    }
}

.sidebar-logo-sticky {
    position: sticky;
    top: 18px;
    z-index: 20;
    background: #ffffff;
    padding-bottom: 12px;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 14px 22px;
}

.app-clock {
    font-weight: 800;
    color: var(--dark-blue);
    text-align: center;
}

.app-clock small {
    display: block;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.dropdown-item {
    font-weight: 600;
    padding: 10px 16px;
}

.dropdown-item:hover {
    background: var(--soft-blue);
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .app-topbar {
        gap: 12px;
    }

    .app-clock {
        order: 3;
        width: 100%;
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .auth-page {
        padding: 25px 12px;
        align-items: flex-start;
    }

    .auth-card {
        border-radius: 20px;
        width: 100%;
    }

    .auth-side {
        display: none !important;
    }

    .auth-form {
        padding: 32px 22px;
    }

    .auth-card .row {
        display: block;
    }

    .auth-card .col-lg-5,
    .auth-card .col-lg-6,
    .auth-card .col-lg-7 {
        width: 100%;
        max-width: 100%;
    }
}

/* =========================================
   MOBILE SIDEBAR
========================================= */

.sidebar-panel {
    transition: all .3s ease;
}

.sidebar-overlay {
    display: none;
}

@media (max-width: 991px) {

    .sidebar-panel {
        position: fixed;
        left: -300px;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 1055;
        overflow-y: auto;
        background: #fff;
        transition: all .3s ease;
        box-shadow: 0 15px 35px rgba(0,0,0,.15);
    }

    .sidebar-panel.show {
        left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 1050;
        display: none;
    }

    .sidebar-overlay.show {
        display: block;
    }
}

.sidebar-panel{
    background:#fff;
}

.sidebar-overlay{
    display:none;
}

@media (max-width:991px){

    .sidebar-panel{
        position:fixed;
        left:-300px;
        top:0;
        width:280px;
        height:100vh;
        z-index:1055;
        overflow-y:auto;
        transition:.3s ease;
        box-shadow:0 15px 35px rgba(0,0,0,.15);
    }

    .sidebar-panel.show{
        left:0;
    }

    .sidebar-overlay{
        position:fixed;
        inset:0;
        background:rgba(0,0,0,.45);
        z-index:1050;
        display:none;
    }

    .sidebar-overlay.show{
        display:block;
    }
}



.news-card{
    border:none;
    border-radius:20px;
    overflow:hidden;
    transition:all .35s ease;
    position:relative;
    background:#fff;
}

.news-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,.12);
}

.news-image{
    height:220px;
    overflow:hidden;
    position:relative;
}

.news-image::after{
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.45),
        rgba(0,0,0,0)
    );
}

.news-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:all .5s ease;
}

.news-card:hover .news-image img{
    transform:scale(1.1);
}

.news-card .card-body{
    padding:1.5rem;
}

.news-card h5{
    transition:.3s;
}

.news-card:hover h5{
    color:#0B4F8A;
}

.news-card .btn{
    transition:.3s;
}

.news-card:hover .btn{
    background:#0B4F8A;
    color:#fff;
}

.news-card {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(6, 52, 92, 0.08);
    transition: all 0.35s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 45px rgba(6, 52, 92, 0.16);
}

.news-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #EAF4FC;
}

.news-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(6, 52, 92, 0.55),
        rgba(6, 52, 92, 0.05)
    );
    z-index: 1;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    color: #06345C;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.news-card .card-body {
    padding: 1.5rem;
}

.news-title {
    color: #0f172a;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: #0B4F8A;
}

.news-excerpt {
    line-height: 1.7;
}

.news-read-btn {
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.news-card:hover .news-read-btn {
    background: #0B4F8A;
    color: #ffffff;
    border-color: #0B4F8A;
}

@media (max-width: 768px) {
    .news-image {
        height: 200px;
    }
}


/* Blog Listing Page */
.blog-hero {
    background: linear-gradient(135deg, #EAF4FC 0%, #ffffff 100%);
    padding: 90px 0 70px;
}

.blog-hero h1 {
    font-size: 48px;
    color: #06345C;
}

.blog-hero p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 18px;
    color: #64748B;
}

/* News / Blog Cards */
.news-card {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(6, 52, 92, 0.08);
    transition: all 0.35s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 45px rgba(6, 52, 92, 0.16);
}

.news-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #EAF4FC;
}

.news-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(6, 52, 92, 0.55),
        rgba(6, 52, 92, 0.05)
    );
    z-index: 1;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    color: #06345C;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.news-card .card-body {
    padding: 1.5rem;
}

.news-title {
    color: #0f172a;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: #0B4F8A;
}

.news-excerpt {
    line-height: 1.7;
    font-size: 15px;
}

.news-read-btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 10px 18px;
    transition: all 0.3s ease;
}

.news-card:hover .news-read-btn {
    background: #0B4F8A;
    color: #ffffff;
    border-color: #0B4F8A;
}

@media (max-width: 991px) {
    .blog-hero h1 {
        font-size: 38px;
    }

    .news-image {
        height: 210px;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        padding: 70px 0 50px;
    }

    .blog-hero h1 {
        font-size: 32px;
    }

    .blog-hero p {
        font-size: 16px;
    }

    .news-image {
        height: 200px;
    }
}

.blog-post-hero {
    min-height: 430px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.blog-post-hero-content {
    max-width: 850px;
}

.blog-post-hero h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 18px;
}

.blog-post-hero p {
    font-size: 17px;
    opacity: .95;
}

.blog-category-badge {
    display: inline-block;
    background: #F4B400;
    color: #06345C;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.blog-content-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 14px 45px rgba(6, 52, 92, 0.10);
    padding: 32px;
    margin-top: -90px;
    position: relative;
    z-index: 3;
}

.blog-main-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 20px;
}

.blog-content {
    color: #334155;
    font-size: 17px;
    line-height: 1.9;
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: #06345C;
    font-weight: 800;
    margin-top: 28px;
    margin-bottom: 16px;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 22px 0;
}

.share-box {
    background: #EAF4FC;
    padding: 24px;
    border-radius: 18px;
}

@media (max-width: 768px) {
    .blog-post-hero {
        min-height: 360px;
    }

    .blog-post-hero h1 {
        font-size: 34px;
    }

    .blog-content-card {
        padding: 20px;
        margin-top: -60px;
    }
}