:root {
    --primary-blue: #004a99;
    --secondary-green: #28a745;
    --light-green: #e9f7ef;
    --white: #ffffff;
    --dark: #333333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

.text-justify {
    text-align: justify;
}

/* Header AFCET Style */
.top-header {
    background-color: #ffffff;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.top-header .container,
.top-header .container-fluid {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
}

.header-logo-wrapper {
    position: absolute;
    left: 20px;
    /* Aligned with container-fluid padding */
    top: 50%;
    transform: translateY(-50%);
}

.header-logo-img {
    height: 80px;
    width: auto;
}

.org-name-abbr {
    color: #ff6600;
    /* Orange AFCET */
    font-size: 3.2rem;
    font-weight: 700;
    margin-right: 20px;
    line-height: 1;
    font-family: 'Times New Roman', Times, serif;
    /* Serife style like AFCET */
}

.org-name-full {
    color: #000000;
    font-size: 1.8rem;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.1;
    font-family: 'Times New Roman', Times, serif;
    letter-spacing: 2px;
}

/* Navbar Style AFCET */
.navbar {
    position: absolute;
    width: 100%;
    background-color: transparent !important;
    border: none !important;
    padding: 0;
    box-shadow: none !important;
    z-index: 1000;
}

.navbar .container {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0 15px;
    max-width: 1140px;
    margin-top: 15px;
    /* Space from top-header */
}

.navbar-nav .nav-link {
    color: #333333 !important;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 15px 10px !important;
    text-transform: uppercase;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ff6600 !important;
}

.dropdown-toggle::after {
    vertical-align: middle;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* =========================================
   PREMIUM DROPDOWN MENU
   ========================================= */
.dropdown-menu-custom {
    border: none;
    border-radius: 16px;
    padding: 12px;
    min-width: 320px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12),
        0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-top: 0 !important;
    animation: dropdownFadeIn 0.3s ease forwards;
    transform-origin: top center;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-menu-custom .dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
    margin-bottom: 4px;
}

.dropdown-menu-custom .dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-menu-custom .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(0, 74, 153, 0.06) 0%, rgba(255, 102, 0, 0.06) 100%);
    transform: translateX(4px);
}

.dropdown-menu-custom .dropdown-item:active {
    background: linear-gradient(135deg, rgba(0, 74, 153, 0.12) 0%, rgba(255, 102, 0, 0.10) 100%);
}

.dropdown-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #004a99 0%, #0066cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.2);
}

.dropdown-menu-custom .dropdown-item:hover .dropdown-icon {
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
    transform: scale(1.08);
}

.dropdown-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.3px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.dropdown-menu-custom .dropdown-item:hover .dropdown-title {
    color: #004a99;
}

.dropdown-desc {
    font-size: 0.75rem;
    color: #888;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}

/* Desktop hover to open */
@media (min-width: 992px) {
    .nav-item.dropdown:hover>.dropdown-menu-custom {
        display: block;
    }
}

/* Mobile dropdown adjustments */
@media (max-width: 991px) {
    .dropdown-menu-custom {
        min-width: 100%;
        border-radius: 12px;
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.06);
        padding: 8px;
        margin-top: 5px !important;
    }

    .dropdown-menu-custom .dropdown-item {
        padding: 12px;
    }

    .dropdown-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 0.9rem;
    }
}

/* Hero Slider Section (Custom) */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background-color: #000;
    z-index: 1;
}

.carousel-custom {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.slide .content {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    transform: translateY(-50%);
    color: white;
    text-align: center;
    z-index: 3;
}

.slide .content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.4s;
}

.slide .content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.6s;
}

.slide .content a {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.8s;
}

.slide.active .content h1,
.slide.active .content p,
.slide.active .content a {
    opacity: 1;
    transform: translateY(0);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
    /* Increased to be above everything in hero-slider */
    pointer-events: none;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background-color: #ff6600;
}

.hero-section {
    display: none;
    /* Hide old hero section */
}

.section-padding {
    padding: 80px 0;
}

.bg-light-green {
    background-color: var(--light-green);
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: #003a7a;
    border-color: #003a7a;
}

.card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 50px 0 20px;
}

footer h5 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-link {
    color: #cccccc;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--white);
}

.gallery-img {
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.partner-logo {
    max-width: 150px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Animations */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page Hero Animations & Improvements */
.page-hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    animation: heroZoomInOut 20s alternate infinite ease-in-out;
    z-index: 0;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 74, 153, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.page-hero-section .container {
    z-index: 2;
    padding-top: 60px;
    padding-bottom: 60px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes heroZoomInOut {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */

@media (max-width: 1199px) {
    .navbar .container {
        max-width: 95%;
    }
}

@media (max-width: 991px) {
    .org-name-abbr {
        font-size: 2.2rem;
    }

    .org-name-full {
        font-size: 1.2rem;
    }

    .header-logo-img {
        height: 60px;
    }

    .slide .content h1 {
        font-size: 2.5rem;
    }

    .slide .content p {
        font-size: 1.2rem;
    }

    .navbar-collapse {
        background: #ffffff;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .org-name-abbr {
        font-size: 1.8rem;
        margin-right: 10px;
    }

    .org-name-full {
        font-size: 1rem;
        letter-spacing: 1px;
        text-align: center;
    }

    .header-logo-img {
        height: 50px;
        margin-bottom: 10px;
    }

    /* Adjust header wrapper for mobile so it fits naturally instead of overlapping */
    .top-header .container,
    .top-header .container-fluid {
        flex-direction: column;
        padding: 15px 0;
    }

    .header-logo-wrapper {
        position: static;
        transform: none;
        margin-bottom: 5px;
    }

    .slide .content h1 {
        font-size: 2rem;
    }

    .slide .content p {
        font-size: 1rem;
    }

    .slide .content {
        left: 5%;
        right: 5%;
    }

    .section-padding {
        padding: 50px 0;
    }

    .page-hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .org-name-abbr {
        font-size: 1.5rem;
    }

    .org-name-full {
        font-size: 0.85rem;
        letter-spacing: 0px;
    }

    .header-logo-img {
        height: 45px;
    }

    .slide .content h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .slide .content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .hero-slider {
        min-height: 450px;
        height: 70vh;
    }
}

/* =========================================
   PREMIUM STATS SECTION
   ========================================= */
.stats-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: #0d0f29;
    /* Deep dark base */
    color: #000000;
}

.stats-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    background-image: radial-gradient(circle at 20% 30%, #10b981 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, #3b82f6 0%, transparent 40%);
    pointer-events: none;
}

.stats-container {
    position: relative;
    z-index: 2;
}

.stat-glow-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3.5rem 2rem;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.stat-glow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
}

.stat-glow-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.stat-glow-card:hover::before {
    left: 100%;
}

.stat-icon-wrapper {
    width: 90px;
    height: 90px;
    margin-bottom: 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
}

.stat-icon-wrapper i {
    font-size: 2.2rem;
    z-index: 2;
}

/* Specific Accent Colors */
.accent-green .stat-icon-wrapper {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.accent-amber .stat-icon-wrapper {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.accent-blue .stat-icon-wrapper {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.stat-glow-card:hover .stat-icon-wrapper {
    transform: rotateY(360deg) scale(1.1);
}

.stat-number-wrapper {
    margin-bottom: 0.5rem;
}

.stat-counter-large {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0;
    background: linear-gradient(to bottom, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.accent-green .stat-counter-large {
    background: linear-gradient(to bottom, #fff, #10b981);
    -webkit-background-clip: text;
}

.accent-amber .stat-counter-large {
    background: linear-gradient(to bottom, #fff, #f59e0b);
    -webkit-background-clip: text;
}

.accent-blue .stat-counter-large {
    background: linear-gradient(to bottom, #fff, #3b82f6);
    -webkit-background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

/* Counter Plus Animation */
@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

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

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.stat-plus {
    font-size: 2.5rem;
    font-weight: 300;
    vertical-align: middle;
    margin-left: 5px;
}

/* Responsiveness adjustments for huge text */
@media (max-width: 991px) {
    .stat-counter-large {
        font-size: 3.5rem;
    }

    .stat-glow-card {
        padding: 2.5rem 1.5rem;
    }
}

/* =========================================
   SNE 2023 PREMIUM DESIGN
   ========================================= */
.sne-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 74, 153, 0.05) 0%, transparent 100%);
    z-index: -1;
    transition: transform 0.6s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 74, 153, 0.1);
    border-color: rgba(0, 74, 153, 0.2);
    background: #ffffff;
}

.stat-card:hover::before {
    transform: scale(1.5);
}

.stat-icon-box {
    width: 60px;
    height: 60px;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    color: var(--primary-blue);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
    position: relative;
}

.stat-card:hover .stat-icon-box {
    background: var(--primary-blue);
    color: #ffffff;
    transform: translateY(-3px) rotate(15deg);
    box-shadow: 0 10px 20px rgba(0, 74, 153, 0.3);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(to bottom, #333, #000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card:hover .stat-number {
    background: linear-gradient(to bottom, var(--primary-blue), #003366);
    -webkit-background-clip: text;
}

.stat-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-desc {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0;
    font-style: italic;
}

/* Video Hub Styles */
.video-card-premium {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
    height: 100%;
}

.video-card-premium:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.video-thumb-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.video-thumb-container img {
    transition: transform 0.5s ease;
}

.video-card-premium:hover .video-thumb-container img {
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 74, 153, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-thumb-container:hover .video-overlay {
    opacity: 1;
}

.play-button-icon {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.5rem;
    padding-left: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.video-thumb-container:hover .play-button-icon {
    transform: scale(1);
}

.video-card-info {
    padding: 1.5rem;
}

.video-card-info h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modal Styling */
.modal-content-video {
    background: transparent;
    border: none;
}

.modal-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}