/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #0f172a;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Selection */
::selection {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Top Bar */
.top-bar {
    background-color: #ef4444;
    color: white;
    padding: 0.5rem 0;
    overflow: hidden;
    position: relative;
    z-index: 60;
}

.marquee-container {
    display: inline-block;
    padding: 0 1rem;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    margin: 0 2rem;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: inline-block;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Menu Backdrop */
.menu-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 80%;
    max-width: 400px;
    background-color: white;
    z-index: 70;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drawer-logo img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.drawer-logo span {
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.025em;
    color: #0f172a;
}

.close-btn {
    padding: 0.5rem;
    background-color: #f8fafc;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 300ms;
}

.close-btn:hover {
    background-color: #e2e8f0;
}

.close-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #475569;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

/* Desktop Navigation Dropdowns */
.nav-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 100;
}

.group:hover>.nav-dropdown,
.group:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Dropdown arrow color in transparent header */
#main-nav.bg-transparent .nav-chevron {
    filter: brightness(0) invert(1);
}

/* WordPress sub-menu specific styling */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    z-index: 100;
    list-style: none;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1.25rem;
    box-shadow:
        0 20px 40px -4px rgba(0, 0, 0, 0.1),
        0 10px 15px -3px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    padding: 0.75rem 0.5rem;
    margin-top: 0;
}

/* Triangle Arrow */
.sub-menu::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 2rem;
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.98);
    transform: rotate(45deg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    z-index: -1;
}

.group:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Hover Bridge */
.sub-menu::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 0;
    width: 100%;
    height: 2rem;
    background-color: transparent;
}

.sub-menu li {
    background: none;
    padding: 2px 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease-out;
}

.group:hover>.sub-menu li {
    opacity: 1;
    transform: translateX(0);
}

.group:hover>.sub-menu li:nth-child(1) {
    transition-delay: 0.05s;
}

.group:hover>.sub-menu li:nth-child(2) {
    transition-delay: 0.1s;
}

.group:hover>.sub-menu li:nth-child(3) {
    transition-delay: 0.15s;
}

.group:hover>.sub-menu li:nth-child(4) {
    transition-delay: 0.2s;
}

.group:hover>.sub-menu li:nth-child(5) {
    transition-delay: 0.25s;
}

.sub-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.875rem;
}

.sub-menu li a:hover {
    background-color: #f1f5f9;
    color: #ef4444;
    padding-left: 1.25rem;
    transform: translateX(4px);
}

/* 2nd Level Dropdown */
.sub-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 101;
}

.group\/sub:hover>.sub-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.drawer-nav .nav-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    transition: color 300ms;
}

.drawer-nav .nav-link:hover {
    color: #ef4444;
}

.drawer-contact {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #71717a;
}

.contact-item svg {
    width: 1.25rem;
    height: 1.25rem;
}

.contact-item span {
    font-weight: 500;
    font-size: 0.875rem;
}

.drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

/* Mobile Navigation Sub-menus */
#mobile-drawer .sub-menu {
    display: none;
    /* Hide by default, show via JS */
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    min-width: auto !important;
    box-shadow: none !important;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0 0.75rem 1.25rem;
    margin-top: 0.5rem;
    background-color: #f8fafc;
    border-left: 3px solid #ef4444;
    border-radius: 0.5rem;
    width: 100% !important;
}

#mobile-drawer .menu-item a {
    color: #0f172a !important;
    /* Slate-900 */
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 0;
}

#mobile-drawer .menu-item a:hover {
    color: #ef4444 !important;
    /* Red-500 */
    padding-left: 0.5rem;
    background-color: #f1f5f9;
    border-radius: 0.5rem;
}

#mobile-drawer .sub-menu::before {
    display: none !important;
    /* Remove desktop hover bridge */
}

#mobile-drawer .menu-item-has-children>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#mobile-drawer .menu-item-has-children>a::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-right: 0.5rem;
}

#mobile-drawer .menu-item-active>a::after {
    transform: rotate(-135deg);
}

#mobile-drawer .menu-item-active>.sub-menu {
    display: flex;
}

#mobile-drawer .sub-menu li a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    padding: 0.5rem 0;
}

#mobile-drawer .sub-menu li a:hover {
    color: #ef4444;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: all 500ms ease;
    background-color: transparent;
    padding: 3rem 0;
}

.navbar.scrolled {
    background-color: white;
    padding: 0.75rem 0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    width: 100%;
    margin: 0;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    /* Prevent header overflow */
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .navbar-container {
        padding: 0 1.5rem;
        /* Reduced from 2rem to 1.5rem for more space */
    }
}

@media (min-width: 1440px) {
    .navbar-container {
        padding: 0 4rem;
    }
}

@media (min-width: 768px) {
    .navbar-container {
        padding: 0 3rem;
    }
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-icon {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon:hover {
    transform: none;
}

.logo-icon img {
    width: 250px;
    height: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: -0.025em;
}

.navbar:not(.scrolled) .logo-main {
    color: white;
}

.navbar.scrolled .logo-main {
    color: #0f172a;
}

.logo-highlight {
    color: #ef4444;
}

.logo-sub {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.navbar:not(.scrolled) .logo-sub {
    color: #cbd5e1;
}

.navbar.scrolled .logo-sub {
    color: #64748b;
}

.nav-links {
    display: none;
    align-items: center;
    /* gap removed to use explicit margins for tighter control */
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }

    /* Add very small spacing between items explicitly */
    .nav-link-desktop+.nav-link-desktop,
    .menu-item-has-children+.nav-link-desktop,
    .nav-link-desktop+.menu-item-has-children,
    .menu-item-has-children+.menu-item-has-children {
        margin-left: 0.5rem;
    }
}

.nav-link-desktop {
    font-size: clamp(0.7rem, 0.5rem + 0.5vw, 1.1rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: block;
    padding: 0.5rem 0.6rem;
    /* Reduced from 1rem to tighten spacing */
    border-radius: 0.5rem;
    white-space: nowrap;
    /* Prevent wrapping */
}

.navbar:not(.scrolled) .nav-link-desktop {
    color: white;
}

.navbar.scrolled .nav-link-desktop {
    color: #475569;
}

.nav-link-desktop:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}


.menu-item-has-children:hover>a .nav-chevron {
    transform: rotate(180deg);
}

.nav-chevron {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-desktop:active {
    transform: translateY(0) scale(0.95);
    background-color: #e2e8f0;
}

.nav-link-desktop::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    height: 4px;
    width: 4px;
    background-color: #ef4444;
    border-radius: 9999px;
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-desktop:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nepse-badge {
    background-color: #0ea5e9;
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 900;
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.25);
    cursor: default;
    transition: box-shadow 300ms;
}

.nepse-badge:hover {
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.4);
}

.nepse-desktop {
    display: none;
}

@media (min-width: 1024px) {
    .nepse-desktop {
        display: block;
    }
}

.mobile-menu-btn {
    display: block;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 300ms;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.navbar:not(.scrolled) .mobile-menu-btn {
    color: white;
}

.navbar.scrolled .mobile-menu-btn {
    color: #0f172a;
}

.mobile-menu-btn svg {
    width: 2rem;
    height: 2rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-bottom: 5rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.25);
    z-index: 10;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero/bg-her0.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 20;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    padding-top: 5rem;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 0 3rem;
    }
}

.hero-text {
    max-width: 48rem;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-out;
}

.badge-line {
    width: 3rem;
    height: 2px;
    background-color: #ef4444;
}

.badge-text {
    color: #0ea5e9;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 900;
    color: white;
    margin-bottom: 2rem;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: #f1f5f9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 28rem;
    font-weight: 500;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.btn {
    padding: 1.25rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 900;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    transition: all 300ms;
}

.btn-primary {
    background-color: #ef4444;
    color: white;
    box-shadow: 0 20px 25px -5px rgba(239, 68, 68, 0.3);
}

.btn-primary:hover {
    background-color: #dc2626;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Section Styles */
.section-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .section-container {
        padding: 0 3rem;
    }
}

.section-label {
    color: #ef4444;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-description {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Notices Section */
.notices-section {
    padding: 6rem 0;
    background-color: #f8fafc;
}

.notices-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .notices-grid {
        grid-template-columns: 1fr 2fr;
    }
}

.notices-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .notices-sidebar {
        display: block;
    }
}

.sidebar-sticky {
    position: sticky;
    top: 8rem;
}

.tab-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tab-btn {
    text-align: left;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 300ms;
    background-color: white;
    color: #475569;
}

.tab-btn.active {
    background-color: #0ea5e9;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover {
    background-color: #f1f5f9;
}

.notices-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notice-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    transition: all 300ms;
    cursor: pointer;
}

.notice-card:hover {
    border-color: #0ea5e9;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.notice-card.hidden {
    display: none;
}

.notice-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #f1f5f9;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    flex-shrink: 0;
    transition: all 300ms;
}

.notice-card:hover .notice-icon {
    background-color: #ef4444;
    color: white;
}

.notice-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.notice-text {
    flex: 1;
}

.notice-category {
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #0ea5e9;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.25rem;
}

.notice-title {
    font-weight: 700;
    color: #0f172a;
    transition: color 300ms;
}

.notice-card:hover .notice-title {
    color: #0ea5e9;
}

.notice-link {
    font-weight: 700;
    color: #64748b;
    text-decoration: underline;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: inline-block;
    transition: color 300ms;
}

.notice-link:hover {
    color: #0f172a;
}

.view-all-btn {
    width: 100%;
    padding: 1rem;
    text-align: center;
    background-color: transparent;
    color: #a1a5af;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: color 300ms;
    border-radius: 0.75rem;
}

.view-all-btn:hover {
    color: #0f172a;
}

/* Project Section */
.project-section {
    padding: 6rem 0;
    background-color: white;
    overflow: hidden;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
}

@media (min-width: 1024px) {
    .project-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.project-info {
    position: relative;
}

.project-info::before {
    content: '';
    position: absolute;
    top: -2.5rem;
    left: -2.5rem;
    width: 10rem;
    height: 10rem;
    background-color: rgba(14, 165, 233, 0.05);
    border-radius: 9999px;
    filter: blur(3rem);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
}

.spec-item {
    border-left: 4px solid #f1f5f9;
    padding-left: 1.5rem;
    transition: border-color 300ms;
}

.spec-item:hover {
    border-left-color: #ef4444;
}

.spec-label {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.spec-value {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f172a;
}

.project-image {
    position: relative;
}

.image-container {
    position: relative;
    z-index: 10;
    border-radius: 3rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 8px solid #f1f5f9;
}

.image-container img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 1s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.location-card {
    position: absolute;
    bottom: -2.5rem;
    left: -2.5rem;
    background-color: #ef4444;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 20;
    color: white;
    max-width: 16rem;
}

.location-card svg {
    margin-bottom: 1rem;
    width: 2rem;
    height: 2rem;
}

.location-card h4 {
    font-weight: 900;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.location-card p {
    font-size: 0.875rem;
    font-weight: 500;
    color: #fee2e2;
}

/* Team Section */
.team-section {
    padding: 6rem 0;
    background-color: #f8fafc;
    overflow: hidden;
}

.team-header {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .team-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.scroll-buttons {
    display: flex;
    gap: 1rem;
}

.scroll-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    transition: all 300ms;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.scroll-btn:hover {
    background-color: #ef4444;
    color: white;
}

.scroll-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

.team-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 2rem;
}

.team-carousel::-webkit-scrollbar {
    display: none;
}

.team-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.team-card {
    min-width: 300px;
    background-color: white;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 500ms;
    border: 1px solid #e2e8f0;
    position: relative;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .team-card {
        min-width: 350px;
    }
}

.team-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.team-image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 700ms;
}

.team-card:hover .team-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, #0f172a, rgba(15, 23, 42, 0.25), transparent);
    color: white;
}

.team-info h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.25rem;
}

.team-info p {
    color: #0ea5e9;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(1rem);
    transition: all 500ms;
}

.team-card:hover .social-icons {
    opacity: 1;
    transform: translateY(0);
}

.social-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 300ms;
}

.social-icon:hover {
    background-color: white;
    color: #0f172a;
}

.social-icon svg {
    width: 1rem;
    height: 1rem;
}

/* Footer */
.footer {
    background-color: white;
    padding-top: 6rem;
    padding-bottom: 2rem;
    border-top: 1px solid #e2e8f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-main {
    grid-column: span 1;
}

.footer-col h4 {
    font-weight: 900;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    margin-bottom: 2rem;
}

.footer-col-main h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    width: 100px;
    height: auto;
    object-fit: contain;
}

.footer-logo div span {
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    color: #0f172a;
    display: block;
    line-height: 1.2;
}

.footer-logo div p {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #94a3b8;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
}

.footer-contact-item svg {
    width: 1rem;
    height: 1rem;
    color: #0ea5e9;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-contact-item:first-child svg {
    color: #0ea5e9;
}

.footer-contact-item:nth-child(2) svg {
    color: #ef4444;
}

.footer-contact-item:nth-child(3) svg {
    color: #0ea5e9;
}

.footer-contact-item p {
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.15em;
}

.footer-contact-item span {
    font-weight: 700;
    color: #475569;
    font-size: 0.875rem;
    display: block;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: #64748b;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 300ms;
}

.footer-links a:hover {
    color: #ef4444;
}

.footer-col:nth-child(3) .footer-links a:hover {
    color: #0ea5e9;
}

.footer-newsletter {
    background-color: #f8fafc;
    padding: 2rem;
    border-radius: 2rem;
    border: 1px solid #e2e8f0;
}

.footer-newsletter h4 {
    font-size: 1.125rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1rem;
    text-transform: none;
    letter-spacing: normal;
}

.footer-newsletter p {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    position: relative;
    display: flex;
}

.newsletter-form input {
    width: 100%;
    background-color: white;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    outline: none;
    transition: border-color 300ms;
}

.newsletter-form input:focus {
    border-color: #0ea5e9;
}

.newsletter-form button {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 300ms;
}

.newsletter-form button:hover {
    background-color: #dc2626;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1.5rem;
    }
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .footer-copyright {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
}

.footer-copyright p {
    font-size: 0.625rem;
    font-weight: 900;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.footer-copyright span {
    color: #0f172a;
    font-weight: 900;
    cursor: pointer;
    transition: color 300ms;
}

.footer-copyright span:hover {
    color: #ef4444;
}

.footer-links-bottom {
    display: flex;
    gap: 2rem;
}

.footer-links-bottom a {
    font-size: 0.625rem;
    font-weight: 900;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: color 300ms;
}

.footer-links-bottom a:hover {
    color: #0f172a;
}

/* Responsive Styles */
@media (max-width: 767px) {
    .notices-sidebar {
        display: block !important;
        margin-bottom: 2rem;
    }

    .sidebar-sticky {
        position: static;
    }

    .notices-grid {
        grid-template-columns: 1fr !important;
    }

    .project-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Navigation Redesign - 2 Level Submenu support */
.nav-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover>.nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 2nd Level Dropdown */
.sub-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.group\/sub:hover>.sub-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}



/* =========================================
   PREMIUM NAVIGATION & SIDEPANEL (NEW)
   ========================================= */

/* Base Reset and Corporate Variables */
:root {
    --brand-red: #e31e24;
    --brand-hover-red: #dc2626;
    --brand-cyan: #00aeef;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-glass: rgba(255, 255, 255, 0.98);

    /* Animation Constants */
    --transition-main: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --dropdown-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.1), 0 10px 15px -6px rgba(0, 0, 0, 0.05);
    --side-panel-width: 340px;
}

/* ANTI-FLICKER NAV */
nav#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 6%;
    background: transparent;
    z-index: 1000;
    transition: var(--transition-main);
    transform: translateZ(0);
    will-change: padding, background-color;
    backface-visibility: hidden;
}

nav#navbar.scrolled {
    padding: 15px 6%;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}


/* Desktop Layout */
.nav-logo-container {
    flex: 1;
    display: block;
}

.nav-links-container {
    display: flex;
    justify-content: center;
    flex: 2;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

/* Default (Transparent) State - WHITE Text/Icons */
.nav-links a {
    text-decoration: none;
    color: white;
    /* Changed from var(--text-dark) */
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-main);
    background: transparent;
    border: 1px solid transparent;
}

/* Scrolled State - DARK Text */
nav#navbar.scrolled .nav-links a {
    color: var(--text-dark);
}

/* Base Chevron */
.chevron {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: white;
    /* Changed from currentColor or ensure white default */
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: var(--transition-main);
}

nav#navbar.scrolled .chevron {
    stroke: var(--text-dark);
}

/* IMPROVED HOVER EFFECT (Desktop) */
.nav-item:hover>a {
    background: #ffffff;
    color: var(--brand-hover-red) !important;
    /* Force red on hover */
    transform: translateY(2px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05), 0 5px 15px -5px rgba(227, 30, 36, 0.1);
    border-color: rgba(220, 38, 38, 0.05);
}

.nav-item:hover>a .chevron {
    transform: rotate(180deg);
    stroke: var(--brand-hover-red);
    /* Chevron red on hover */
}

/* Dropdown Desktop - Bridge fix logic was lower down, keeping structure */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(15px);
    background: white;
    min-width: 250px;
    border-radius: 14px;
    padding: 10px;
    list-style: none;
    box-shadow: var(--dropdown-shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-main);
    border: 1px solid rgba(0, 0, 0, 0.04);
    z-index: 1100;
}

/* Bridge */
.nav-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
}

.nav-item:hover>.dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

/* Dropdown Links - Always Dark */
.dropdown li a {
    font-size: 0.8rem;
    text-transform: none;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--text-dark);
    justify-content: space-between;
}

.nav-links .dropdown li a {
    color: var(--text-dark);
}

/* Override white inheritance */

.dropdown li a:hover {
    background: #fef2f2;
    color: var(--brand-hover-red);
    transform: translateX(5px);
    box-shadow: none;
}

/* Stock Update Button */
.nav-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.stock-btn {
    background: transparent;
    color: white;
    /* Default White */
    padding: 8px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: clamp(0.65rem, 0.55rem + 0.35vw, 0.95rem);
    white-space: nowrap;
    /* Prevent button text wrap */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1.5px solid white;
    /* Default White Border */
    transition: var(--transition-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stock-dot {
    width: 5px;
    height: 5px;
    background: white;
    /* Default White */
    border-radius: 50%;
    transition: var(--transition-main);
}

/* Stock Button Scrolled State */
nav#navbar.scrolled .stock-btn {
    color: var(--brand-red);
    border-color: var(--brand-red);
}

nav#navbar.scrolled .stock-dot {
    background: var(--brand-red);
}

.stock-btn:hover {
    background: white;
    color: var(--brand-red) !important;
    border-color: white;
    transform: translateY(2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

nav#navbar.scrolled .stock-btn:hover {
    background: var(--brand-red);
    color: white !important;
    border-color: var(--brand-red);
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.15);
}

.stock-btn:hover .stock-dot {
    background: var(--brand-red);
}

nav#navbar.scrolled .stock-btn:hover .stock-dot {
    background: white;
}


/* Hamburger Design */
.hamburger {
    cursor: pointer;
    width: 28px;
    height: 18px;
    position: relative;
    z-index: 1100;
    transition: var(--transition-fast);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: white;
    /* Default White */
    border-radius: 4px;
    position: absolute;
    transition: var(--transition-main);
}

nav#navbar.scrolled .hamburger span {
    background: var(--text-dark);
}

.hamburger span:nth-child(1) {
    top: 0;
    width: 100%;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
    width: 75%;
    right: 0;
}

.hamburger span:nth-child(3) {
    bottom: 0;
    width: 50%;
    right: 0;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    width: 100%;
    background: var(--brand-red);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    width: 100%;
    background: var(--brand-red);
}

/* Sidepanel Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(5px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-main);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* REFINED SIDEPANEL */
#mkjc-side-panel {
    position: fixed;
    top: 0;
    right: calc(var(--side-panel-width) * -1);
    width: var(--side-panel-width);
    height: 100vh;
    background: #ffffff;
    z-index: 1050;
    transition: 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.05);
    display: none;
    flex-direction: column;
    overflow-y: auto;
    visibility: hidden;
}

#mkjc-side-panel.active {
    display: flex !important;
    right: 0;
    visibility: visible;
}

.side-panel-header {
    padding: 45px 30px 15px 30px;
}

.side-panel-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
}

.side-content {
    padding: 15px 25px;
}

/* Adjusted padding */

.side-nav-links {
    list-style: none;
    margin-bottom: 30px;
    padding: 0;
}

/* IMPROVED: Side Panel Menu Item Styling with Button Effect */
.side-nav-links a {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    /* Added horizontal padding for button feel */
    border-radius: 12px;
    margin-bottom: 4px;
    transition: var(--transition-fast);
}

.side-nav-links a:active,
.side-nav-links a:hover {
    background: #fef2f2;
    color: var(--brand-red);
    transform: scale(0.98);
    /* Tactile press effect */
}

/* SMOOTH ACCORDION LOGIC for Mobile Dropdowns */
.accordion-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: #f8fafc;
    border-radius: 14px;
    margin: 0 8px 5px 8px;
    /* Offset to fit within button width */
}

.mobile-open>.accordion-wrapper {
    grid-template-rows: 1fr;
    margin-bottom: 12px;
}

.accordion-content {
    min-height: 0;
    padding: 5px;
}

.side-dropdown {
    list-style: none;
    padding: 0;
}

/* IMPROVED: Submenu links with same button effect */
.side-dropdown li a {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 16px;
    /* Same padding as parent */
    border-radius: 10px;
    border: none;
    justify-content: flex-start;
    gap: 12px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.side-dropdown li a:active,
.side-dropdown li a:hover {
    background: rgba(227, 30, 36, 0.05);
    color: var(--brand-red);
    transform: scale(0.98);
}

/* Contact Info Section */
.side-contact-section {
    margin-top: 10px;
    padding: 30px 15px 0 15px;
    border-top: 2px solid #f1f5f9;
}

.side-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.side-info-icon {
    width: 40px;
    height: 40px;
    background: #fef2f2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--brand-red);
    transition: var(--transition-main);
}

.side-info-item:hover .side-info-icon {
    background: var(--brand-red);
    color: white;
}

.side-info-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.side-info-text strong {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.side-info-text p {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
    margin: 0;
}

.side-panel-footer {
    padding: 0 40px 40px 40px;
    margin-top: auto;
}

.mobile-stock-btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 0.85rem;
    border-radius: 12px;
}

@media (min-width: 1025px) {
    .hamburger {
        display: none;
    }
}

@media (max-width: 1024px) {

    .nav-left-spacer,
    .nav-links-container,
    .nav-actions .stock-btn {
        display: none;
    }

    nav#navbar {
        justify-content: flex-end;
    }

    .nav-actions {
        flex: none;
    }

    #mkjc-side-panel {
        width: 85%;
        max-width: 360px;
    }
}

/* Fix Side Panel Visibility (Overrides default white header styles) */
#mkjc-side-panel .chevron {
    stroke: var(--text-dark);
    /* Make arrows visible on white background */
}

#mkjc-side-panel .stock-btn {
    color: var(--brand-red);
    border-color: var(--brand-red);
    width: 100%;
    justify-content: center;
}

#mkjc-side-panel .stock-btn .stock-dot {
    background: var(--brand-red);
}

#mkjc-side-panel .stock-btn:hover {
    background: var(--brand-red);
    color: white !important;
}

#mkjc-side-panel .stock-btn:hover .stock-dot {
    background: white;
}

/* =========================================
   Side Panel Accordion (Mobile Menu)
   ========================================= */
.accordion-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}

.accordion-content {
    overflow: hidden;
    min-height: 0;
    /* Important for grid animation */
}

/* When open, expand to auto height */
.nav-item.mobile-open>.accordion-wrapper {
    grid-template-rows: 1fr;
}

/* Sub-menu styling */
.side-dropdown {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.side-dropdown .nav-item {
    padding-left: 1rem;
    font-size: 0.95em;
    opacity: 0.9;
}

/* Ensure Chevron rotates smoothly */
.chevron {
    transition: transform 0.3s ease;
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Mobile Menu Layout Fix */
#mkjc-side-panel .nav-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    justify-content: space-between;
}

#mkjc-side-panel .nav-item>a {
    flex: 1;
    /* Take available width */
    min-width: 0;
    margin-right: 0;
    display: block;
    /* Ensure height matches */
}

#mkjc-side-panel .side-trigger {
    width: 48px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: static;
    /* Remove absolute */
    border-left: 1px solid rgba(0, 0, 0, 0.03);
    /* Subtle divider */
}

/* Ensure Accordion breaks to new line */
#mkjc-side-panel .accordion-wrapper {
    flex-basis: 100%;
    width: 100%;
}




/* Specific Style Overrides if needed */
.mkjc-team-grid .container {
    max-width: 1200px;
}