:root {
    --primary-blue: #0f4c81;
    --secondary-orange: #ff8c00;
    --accent-blue: #3498db;
    --dark-blue: #0a3d62;
    --light-blue: #f0f7ff;
    --text-dark: #2c3e50;
    --white: #ffffff;
}
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 12px 0;
    transition: all 0.3s ease;
}
.navbar-brand img {
    height: 50px;
    transition: transform 0.3s ease;
}
.navbar-brand:hover img {
    transform: scale(1.05);
}
.nav-link {
    font-weight: 500;
    color: var(--dark-blue) !important;
    margin: 0 15px;
    font-size: 0.95rem;
    position: relative;
    text-transform: uppercase;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-orange);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.btn-primary {
    background-color: var(--primary-blue);
    border: none;
    font-weight: 800;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    padding: 0 0 10px 0px;
    box-shadow: 0 5px 15px rgba(15, 76, 129, 0.3);
}
.btn-orange {
    background: linear-gradient(135deg, var(--secondary-orange), #e67e22);
    color: #fff !important;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
    transition: all 0.3s ease;
}
.btn-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
}
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white !important;
    transition: all 0.3s ease;
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}
.hero-section {
    background: linear-gradient(91deg, rgb(7 36 88 / 61%) 0%, rgb(0 162 233) 100%), url(../img/hero-bg.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    margin-top: -50px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    clip-path: ellipse(160% 100% at 1% 1%);
}

.hero-grid {
    position:absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    padding: 92px 0 116px
}
/* Hero visual card */
.hero-stats {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    border-radius: 30px;
    padding: 18px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
}
.hero-visual {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.96),
        rgba(238, 250, 244, 0.94)
    );
    min-height: 430px;
    color: var(--pupr-ink);
    padding: 28px;
}
.hero-badge .badge {
    background: rgba(255, 140, 0, 0.15);
    color: #ffb347;
    border: 1px solid rgba(255, 140, 0, 0.3);
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 600;
}
.hero-title {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.text-accent {
    color: var(--secondary-orange);
}
.hero-lead {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 550px;
}
.mascot-wrapper {
    position: relative;
    z-index: 10;
}
.mascot-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* CAROUSEL UNIFICATION & MOCKUP SUPPORT */
.hero-carousel .carousel-item {
    height: 350px; /* Optimized height */
    text-align: center;
}

/* Stable centering that doesn't break Bootstrap transitions */
.hero-carousel .carousel-item.active,
.hero-carousel .carousel-item-next,
.hero-carousel .carousel-item-prev,
#profileCarousel .carousel-item.active,
#profileCarousel .carousel-item-next,
#profileCarousel .carousel-item-prev {
    display: block; /* Restore default to prevent layout breaks */
}

.mascot-img {
    max-height: 100%;
    width: auto;
    display: inline-block;
    object-fit: contain;
    animation: float 5s ease-in-out infinite;
}

#profileCarousel .carousel-item {
    height: 500px;
    text-align: center;
}

.profile-img {
    height: 100%;
    width: auto;
    display: inline-block;
    object-fit: contain;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    background: transparent;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(2deg); }
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    font-weight: 800;
    color: var(--primary-blue);
    font-size: 2.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 5px;
    background-color: var(--secondary-orange);
    border-radius: 10px;
}
.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}
.service-card {
    border: none;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    height: 100%;
    background: #fff;
    padding: 40px 20px !important;
}
.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.service-img {
    height: 100px;
    width: auto;
    margin-bottom: 25px;
    transition: transform 0.3s;
}
.service-card:hover .service-img {
    transform: scale(1.1);
}
.service-card h4 {
    font-weight: 700;
    color: var(--dark-blue);
}
.service-section{
    background-color: var(--primary-blue) !important;
}

.blog-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}
.blog-card img {
    height: 220px;
    object-fit: cover;
}
.contact-info-card {
    background: linear-gradient(45deg, var(--primary-blue), var(--dark-blue));
    color: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 86, 179, 0.3);
}

@media (max-width: 1199.98px) {
    .hero-carousel .carousel-item { height: 450px; }
    #profileCarousel .carousel-item { height: 450px; }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 140px 0 80px;
        text-align: center;
        clip-path: ellipse(200% 100% at 50% 0%);
    }
    .hero-title { font-size: 2.8rem; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .mascot-circle { width: 300px; height: 300px; }
    .hero-carousel .carousel-item { height: 400px; }
    #profileCarousel .carousel-item { height: 400px; }
}
@media (max-width: 767.98px) {
    .hero-carousel .carousel-item { height: 350px; }
    #profileCarousel .carousel-item { height: 350px; }
}
@media (max-width: 575.98px) {
    .hero-title { font-size: 2.2rem; }
    .hero-section { padding: 120px 0 60px; }
    .hero-carousel .carousel-item { height: 300px; }
    #profileCarousel .carousel-item { height: 300px; }
}
footer {
    background-color: #061f60;
    color: #fff;
    padding: 80px 0 40px;
}
footer h5 {
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--secondary-orange);
}
footer .text-muted {
    color: rgba(255,255,255,0.7) !important;
}
footer hr {
    background-color: rgba(255,255,255,0.1);
}
.footer-logo {
    height: 60px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

/* Dashboard Styles */
.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 80px);
}

.btn-dashboard {
            background-color: #0d6efd;
            color: white !important;
            border: none;
        }
        .btn-dashboard:hover {
            background-color: #0b5ed7;
            color: white !important;
        }

.sidebar {
    width: var(--sidebar-width, 280px);
    background: white;
    border-right: 1px solid #edf2f7;
    padding: 2rem 0;
    z-index: 100;
    transition: all 0.3s;
}

.sidebar-sticky {
    position: sticky; top: 20px;
}

.nav-item-custom {
    padding: 0.2rem 1.5rem;
}

.nav-link-custom {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    color: #64748b;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.nav-link-custom i {
    font-size: 1.1rem;
    width: 24px;
    margin-right: 12px;
}

.nav-link-custom:hover {
    background: #f1f5f9;
    color: var(--primary-blue);
}

.nav-link-custom.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.2);
}

.main-content {
    flex: 1;
    padding: 2rem 3rem;
    overflow-x: hidden;
}

.card-dashboard {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: white;
}

.card-dashboard:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}


.stat-card {
    padding: 1.5rem;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.badge-status {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.75rem;
}

.tracking-filter {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.tracking-filter::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    white-space: nowrap;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.service-selection-card {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    height: 100%;
    text-align: center;
    padding: 1.5rem;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.service-selection-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}
.service-selection-card.active {
    border-color: var(--primary-blue);
    background-color: #f0f7ff;
}

@media (max-width: 991.98px) {
    .dashboard-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #edf2f7;
        padding: 1rem 0;
    }
    .sidebar-sticky {
        position: relative;
        top: 0;
    }
    .nav-custom-container {
        display: flex;
        overflow-x: auto;
        padding: 0 1rem;
    }
    .nav-item-custom {
        padding: 0 0.5rem;
    }
    .nav-link-custom {
        white-space: nowrap;
    }
    .main-content {
        padding: 1.5rem 1rem;
    }
}

/* News & Article Styles */
.news-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue)) !important;
    margin-top: -20px;
}

.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.bg-orange {
    background-color: var(--secondary-orange);
    color: white;
}

.stat-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-body h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.article-body ul {
    margin-bottom: 1.5rem;
}

.comment-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: white;
    transform: rotate(45deg);
    z-index: 1;
}

/* Global Helper Classes */
.auth-card {
    border-radius: 20px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.06) !important;
    border: none !important;
    transition: all 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-5px);
}

.service-selection-img {
    max-height: 80px;
}

.btn-avatar-edit {
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.blog-img-fixed {
    height: 200px;
    object-fit: cover;
}

.article-img-fixed {
    max-height: 500px;
    object-fit: cover;
}

.sticky-nav-offset {
    top: 100px;
}

.meta-icon-circle, .social-btn-circle {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.article-content-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Google Play Button Hover */
.play-store-btn {
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}
.play-store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important;
    background-color: #111 !important;
}
