/* Global Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* Anti-FOUC / Paint Holding */
html.js-loading body {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Ensure smooth reveal */
body {
    transition: opacity 0.5s ease-out;
    opacity: 1;
    visibility: visible;
}

body {
    background-color: #050505;
    color: white;
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    position: relative;
    max-width: 100vw;
}

/* Canvas container behind everything */
/* Canvas container behind everything */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    overflow: hidden;
    pointer-events: none;
}

#canvas-container canvas {
    display: block;
    /* Removes inline-block whitespace */
    position: absolute;
    top: 0;
    left: 0;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive typography adjustments */
.hero-text {
    mix-blend-mode: overlay;
}

/* Vertical Scanline Effect for Ares Heavy Card */
.scanlines-vertical {
    background: repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0px,
            rgba(255, 255, 255, 0) 1px,
            rgba(255, 255, 255, 0.05) 1px,
            rgba(255, 255, 255, 0.05) 2px);
    mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
}

/* Image Masking for dark mode blend */
.fade-mask {
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.sphere-mask {
    mask-image: radial-gradient(circle, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
}


/* Navbar Active State */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
}

#mobile-menu a.active {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
    border-left: 2px solid #ffffff;
}

.glass-badge {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Subtle Dot Grid Background */
.bg-dot-grid {
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Pulse Animation for Map Markers */
@keyframes ring-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.animate-ring-pulse {
    animation: ring-pulse 2s infinite cubic-bezier(0, 0, 0.2, 1);
}

/* Global Typography */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: white;
}

.section-title {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    font-family: 'DM Sans', sans-serif;
}

.text-body-lg {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    line-height: 1.7;
    color: #9ca3af;
    /* gray-400 */
    font-weight: 300;
}

.text-mono-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6b7280;
    /* gray-500 */
    font-weight: 500;
}

/* Mobile Menu Animations */
@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.animate-slide-down {
    animation: slide-down 0.3s ease-out;
}

/* Hamburger Menu Animation */
#mobile-menu-btn.active .hamburger-line-1 {
    transform: rotate(45deg) translate(8px, 8px);
}

#mobile-menu-btn.active .hamburger-line-2 {
    opacity: 0;
}

#mobile-menu-btn.active .hamburger-line-3 {
    transform: rotate(-45deg) translate(7px, -7px);
}

.hamburger-line-1,
.hamburger-line-2,
.hamburger-line-3 {
    transform-origin: center;
}

/* Dropdown Menu Styles */
.news-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.news-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    transition: transform 0.2s;
}

.dropdown-menu {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Scrolling Logos Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 60s linear infinite;
    width: max-content;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* Newsroom */
#heroCarousel {
    display: flex;
    height: 100%;
}

#heroCarousel img {
    min-width: 100%;
    height: 100%;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* OUR JOURNEY TIMELINE */
.journey-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1) 10%, rgba(255, 255, 255, 0.1) 90%, transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 60px;
    display: flex;
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 40px;
    width: 12px;
    height: 12px;
    background: #050505;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;
    transition: all 0.4s ease;
}

.timeline-item:hover .timeline-dot {
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    transform: translateX(-50%) scale(1.4);
}

.journey-card {
    width: 44%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.journey-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
}

.journey-year {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 0.1em;
}

.journey-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
    line-height: 1.4;
}

.journey-card p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

.journey-bg-year {
    position: absolute;
    top: -10px;
    font-size: 80px;
    font-weight: 900;
    color: white;
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
}

.timeline-item:nth-child(odd) .journey-bg-year {
    right: 20px;
}

.timeline-item:nth-child(even) .journey-bg-year {
    left: 20px;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
        transform: none;
    }

    .timeline-dot {
        left: 20px !important;
        transform: translateX(-50%) !important;
    }

    .timeline-item {
        justify-content: flex-start !important;
        padding-left: 50px;
        margin-bottom: 40px;
    }

    .timeline-item:nth-child(even) {
        justify-content: flex-start !important;
    }

    .journey-card {
        width: 100%;
        padding: 20px;
    }

    .journey-bg-year {
        font-size: 60px;
        right: 10px !important;
        left: auto !important;
    }
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Card Hover Glow Effect */
.hover-glow {
    transition: all 0.4s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(156, 163, 175, 0.3), 0 0 60px rgba(156, 163, 175, 0.15);
    border-color: rgba(156, 163, 175, 0.4);
}

/* Smooth horizontal scrolling */
.scroll-smooth {
    scroll-behavior: smooth;
}

/* Ensure overflow-y visible to prevent clipping */
.overflow-y-visible {
    overflow-y: visible !important;
}

/* Realistic Social Icon Styling (Monochrome & Tactile) */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(156, 163, 175, 0.6);
    position: relative;
    backdrop-filter: blur(8px);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.05),
        0 2px 5px rgba(0, 0, 0, 0.2);
    transition: color 0.3s ease;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Icon Styling */
.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(156, 163, 175, 0.6);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: color 0.3s ease;
}

a:hover .contact-icon {
    color: rgba(255, 255, 255, 0.9);
}

/* Team Card Shadow Effect */
.shadow-emerald-glow {
    box-shadow: 0 0 30px rgba(156, 163, 175, 0.3), 0 0 60px rgba(156, 163, 175, 0.15);
}

/* Team Card Hover Enhancement */
.team-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover {
    transform: scale(1.02);
}

/* Utility Classes */
.cursor-pointer {
    cursor: pointer;
}

/* Modal Popup Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(30, 30, 30, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 2px solid rgba(156, 163, 175, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: white;
}

.modal-body {
    display: flex;
    flex-direction: row;
    padding: 40px;
    gap: 40px;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.modal-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(156, 163, 175, 0.3);
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-social {
    display: flex;
    gap: 12px;
}

.modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-title {
    font-size: 32px;
    font-weight: bold;
    color: white;
    margin: 0;
}

.modal-subtitle {
    font-size: 18px;
    color: rgba(156, 163, 175, 1);
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    margin: 0;
}

.modal-organization {
    font-size: 16px;
    color: rgba(209, 213, 219, 1);
    margin: 0;
}

.modal-description {
    color: rgba(209, 213, 219, 1);
    line-height: 1.8;
    font-size: 15px;
    overflow-y: auto;
    max-height: 400px;
    padding-right: 10px;
}

.modal-description::-webkit-scrollbar {
    width: 6px;
}

.modal-description::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.modal-description::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.3);
    border-radius: 3px;
}

.modal-description::-webkit-scrollbar-thumb:hover {
    background: rgba(156, 163, 175, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
    }

    .modal-left {
        width: 100%;
    }

    .modal-image {
        width: 200px;
        height: 200px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-subtitle {
        font-size: 16px;
    }
}



















/* Path to Innovation Styles */
.path-circle.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.path-circle.active span {
    color: white;
}

@keyframes bounce-slow {

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

    50% {
        transform: translateY(-12px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 4s infinite ease-in-out;
}

.path-step:hover .path-circle {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Strategic Network Specific Styles */
.network-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.network-container {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Updated Partner Card with Glass Theme */
.partner-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 180px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden;
    padding: 30px;
}

.partner-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.partner-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 255, 255, 0.02);
}

.partner-card:hover::after {
    opacity: 1;
}

.partner-card img {
    max-width: 85%;
    max-height: 90px;
    object-fit: contain;
    filter: grayscale(1) brightness(0.8) opacity(0.5);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.partner-card:hover img {
    filter: grayscale(0) brightness(1.2) opacity(1);
    transform: scale(1.1);
}

/* Moving Sub-Logos (Marquee) */
.marquee-container {
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    overflow: hidden;
    padding: 40px 0;
    width: 100%;
}

.marquee-content {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 60s linear infinite;
}

.marquee-item {
    flex-shrink: 0;
    height: 100px;
    width: 220px;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.marquee-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.marquee-item img {
    max-width: 80%;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(1) brightness(0.7) opacity(0.4);
    transition: all 0.5s ease;
}

.marquee-item:hover img {
    filter: grayscale(0) brightness(1.1) opacity(1);
}

.network-tag {
    position: absolute;
    bottom: 12px;
    font-size: 8px;
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: rgba(255, 255, 255, 0);
    font-weight: 600;
    transition: all 0.6s ease;
    z-index: 2;
    pointer-events: none;
}

.partner-card:hover .network-tag {
    color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Strategic Header Glow */
.section-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Base Card Background */
.bg-card {
    background-color: #0A0A0A;
}

@media (max-width: 768px) {
    .network-section {
        padding: 60px 0;
    }

    .partner-card {
        max-width: 100%;
        height: 150px;
    }

    .marquee-content {
        gap: 20px;
    }

    .marquee-item {
        width: 180px;
        height: 80px;
    }
}

/* Unified Heading Style (Standardized from Section 2) */
.page-heading {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 600 !important;
    /* font-semibold */
    letter-spacing: -0.025em !important;
    /* tracking-tight */
    font-size: 3rem !important;
    /* text-5xl */
    color: white !important;
    text-transform: none !important;
    /* remove default uppercase if any */
    font-style: normal !important;
}

@media (min-width: 768px) {
    .page-heading {
        font-size: 3.75rem !important;
        /* md:text-6xl */
    }
}

/* Unified Content Style */
.page-content {
    font-family: 'DM Sans', sans-serif !important;
    color: #9ca3af !important;
    /* text-gray-400 */
    font-weight: 300 !important;
    /* font-light */
    font-size: 1rem !important;
    /* text-base */
    line-height: 1.625 !important;
    /* leading-relaxed */
}

/* ===== COMPREHENSIVE RESPONSIVE FIXES ===== */

/* Mobile First - Extra Small Devices (max-width: 640px) */
@media (max-width: 640px) {

    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden !important;
    }

    /* Navbar adjustments */
    .glass-panel {
        padding: 0.75rem 1rem !important;
    }

    /* Hero sections */
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .page-heading {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .page-content {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }

    /* Section padding */
    section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Card grids */
    .grid {
        gap: 1rem !important;
    }

    /* Glass panels and cards */
    .glass-panel,
    .glass-badge {
        border-radius: 1rem !important;
    }

    /* Partner cards */
    .partner-card {
        max-width: 100% !important;
        height: 140px !important;
        padding: 20px !important;
    }

    .partner-card img {
        max-height: 70px !important;
    }

    /* Marquee items */
    .marquee-item {
        width: 160px !important;
        height: 70px !important;
        padding: 15px !important;
    }

    .marquee-item img {
        max-height: 40px !important;
    }

    /* Journey cards */
    .journey-card {
        padding: 20px !important;
    }

    .journey-bg-year {
        font-size: 50px !important;
    }

    /* Modal adjustments */
    .modal-content {
        width: 95% !important;
        max-height: 85vh !important;
    }

    .modal-body {
        padding: 20px !important;
        gap: 20px !important;
    }

    .modal-image {
        width: 150px !important;
        height: 150px !important;
    }

    .modal-title {
        font-size: 20px !important;
    }

    .modal-subtitle {
        font-size: 14px !important;
    }
}

/* Small Tablets (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }

    .page-heading {
        font-size: 2.5rem !important;
    }

    .partner-card {
        max-width: 100% !important;
        height: 160px !important;
    }

    .marquee-item {
        width: 190px !important;
        height: 85px !important;
    }
}

/* Medium Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem !important;
    }

    .page-heading {
        font-size: 3rem !important;
    }

    /* Grid adjustments */
    .grid.grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .partner-card {
        max-width: 350px !important;
    }
}

/* Large Screens (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .max-w-7xl {
        max-width: 90% !important;
    }
}

/* Extra Large Screens (1441px+) */
@media (min-width: 1441px) {
    .max-w-7xl {
        max-width: 1280px !important;
    }
}

/* Landscape Mobile Devices */
@media (max-height: 500px) and (orientation: landscape) {

    .hero-title,
    .page-heading {
        font-size: 1.75rem !important;
    }

    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .modal-content {
        max-height: 95vh !important;
    }
}

/* Fix for navbar on all screen sizes */
@media (max-width: 767px) {
    nav .glass-panel {
        max-width: 95% !important;
        padding: 0.75rem 1rem !important;
    }

    #mobile-menu {
        max-width: 95% !important;
        left: 2.5% !important;
        right: 2.5% !important;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent text overflow */
h1,
h2,
h3,
h4,
h5,
h6,
p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fix for filter buttons overflow */
.glass-badge.p-1 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
    .glass-badge.p-1 {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
    }

    .glass-badge.p-1::-webkit-scrollbar {
        height: 4px;
    }

    .glass-badge.p-1::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
    }

    .glass-badge.p-1::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
    }
}

/* Global Heading & Button Styles */
h1,
h2,
h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h4,
h5,
h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
}

button,
label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
}

/* Article Detail View Specifics */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-slide-up {
    animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#articleDetailView::-webkit-scrollbar {
    width: 8px;
}

#articleDetailView::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

#articleDetailView::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#articleDetailView::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.read-more-btn {
    cursor: pointer;
}

.prose p {
    margin-bottom: 1.5rem;
    color: #d1d5db;
    /* gray-300 */
    line-height: 1.8;
}

/* Ensure the detail view is always on top */
#articleDetailView {
    scrollbar-gutter: stable;
}

/* Skeleton Loading Styles Removed */