/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Prevent text size adjustment on iOS */
@media screen and (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
    }
}

/* Base responsive font sizes */
@media (max-width: 1200px) {
    .section-title {
        font-size: 1.75rem; /* 28px */
        text-align: center !important;
    }
}

@media (max-width: 1024px) {
    .section-title {
        font-size: 1.625rem; /* 26px */
        text-align: center !important;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

@media (max-width: 900px) {
    .section-title {
        font-size: 1.5rem; /* 24px */
        text-align: center !important;
    }
    
    .section-title::after {
        display: none;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-content {
        margin-left: 5%;
    }
    
    .nav-container {
        margin-left: 5%;
    }
    
    /* Ensure hamburger is visible and clickable at tablet sizes */
    .hamburger {
        display: flex !important;
        z-index: 1003 !important;
        pointer-events: auto !important;
        position: relative !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2) !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }
    
    .hamburger:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    .hamburger:active {
        background-color: rgba(255, 255, 255, 0.2) !important;
        transform: scale(0.95) !important;
    }
    
    .hamburger .bar {
        pointer-events: none !important;
    }
    
    /* Hide nav-menu by default, show when hamburger is clicked */
    .nav-menu:not(.active) {
        display: none !important;
    }
}

/* Tablet size specific (912px - Surface Pro 7) */
@media (min-width: 769px) and (max-width: 968px) {
    .hamburger {
        display: flex !important;
        z-index: 1003 !important;
        pointer-events: auto !important;
        position: relative !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2) !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }
    
    .hamburger:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    .hamburger:active {
        background-color: rgba(255, 255, 255, 0.2) !important;
        transform: scale(0.95) !important;
    }
    
    .hamburger .bar {
        pointer-events: none !important;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed !important;
        right: -100% !important; /* Start off-screen to the right */
        top: 0 !important;
        height: 100vh !important;
        height: 100dvh !important; /* Use dynamic viewport height */
        width: 280px !important;
        max-width: 85vw !important;
        background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
        background-color: #5181cf !important;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1) !important;
        z-index: 1002 !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        padding-right: 0 !important;
        margin-right: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        border-radius: 0 !important;
    }
    
    .nav-menu.active {
        right: 0 !important; /* Slide into view from right - flush with edge */
        pointer-events: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1002 !important;
        display: flex !important;
        padding-top: 100px !important; /* Nav links start lower */
        padding-right: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Scroll effect for sidebar - applies to all screen sizes */
    .nav-menu.active.scrolled {
        background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease !important;
    }
    
    .nav-menu.scrolled {
        background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease !important;
    }
    
    .nav-menu.active .nav-link,
    .nav-menu .nav-link {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #ffffff !important;
        align-items: center !important;
        padding: 1.5rem 2rem !important;
        width: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        font-size: 1.1rem !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        min-height: 60px !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2) !important;
        position: relative !important;
        z-index: 1003 !important;
    }
    
    /* Reduce spacing for tablet sizes (iPad Air, etc.) */
    @media (min-width: 769px) and (max-width: 1024px) {
        .nav-menu.active .nav-link,
        .nav-menu .nav-link,
        #navMenu .nav-link,
        .nav-container .nav-menu .nav-link {
            padding: 0.625rem 1.5rem !important;
            min-height: 44px !important;
        }
    }
    
    .nav-menu.active .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    .nav-menu.active .nav-link:active {
        background-color: rgba(255, 255, 255, 0.2) !important;
    }
    
    /* Menu overlay for tablet - REMOVED duplicate, using main overlay instead */
    
    /* Ensure nav-menu and all its children are visible when active */
    .nav-menu.active,
    .nav-menu.active * {
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-menu.active .nav-link {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #ffffff !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        z-index: 1003 !important;
        position: relative !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2) !important;
    }
    
    /* Ensure nav-links are above overlay and clickable */
    .nav-menu.active {
        pointer-events: auto !important;
    }
    
    .nav-menu.active .nav-link,
    .nav-menu.active .nav-link * {
        pointer-events: auto !important;
        cursor: pointer !important;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.375rem; /* 22px */
        margin-bottom: 2rem;
        padding-bottom: 0.75rem;
        text-align: center !important;
    }
    
    .section-title::after {
        display: none;
    }
    
    .section-title .section-description {
        font-size: 0.875rem;
        margin-top: 0.5rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Center section titles on desktop */
@media (min-width: 769px) {
    .container .section-title,
    .certificates{
        padding: 4rem 1rem;
        background: #f9fafc;
    }
    .certificates-layout {
        display: flex;
        align-items: center;
        gap: 3rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .certificates-header {
        flex: 0 0 40%;
    }

    .certificates-main-title {
        font-size: 2.6rem;
        font-weight: 700;
        color: #1e40af;
        line-height: 1.2;
        margin: 0;
    }

    .certificates-actions {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .certificate-action-card {
        background: #ffffff;
        border: 2px solid #1e40af;
        border-radius: 12px;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        transition: all 0.3s ease;
    }

    .certificate-action-card:hover {
        box-shadow: 0 4px 20px rgba(30, 64, 175, 0.15);
        transform: translateY(-2px);
    }

    .certificate-action-icon {
        width: 50px;
        height: 50px;
        background: #1e40af;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .certificate-action-icon i {
        font-size: 1.5rem;
        color: #ffffff;
    }

    .certificate-action-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #1e40af;
        margin: 0 0 1.5rem 0;
        line-height: 1.4;
    }

    .certificate-action-btn {
        align-self: flex-start;
        background: #f1f5f9;
        color: #1e40af;
        border: 1px solid #e2e8f0;
        padding: 0.75rem 1.5rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .certificate-action-btn:hover {
        background: #1e40af;
        color: #ffffff;
        border-color: #1e40af;
    }

    /* Ensure certificate action buttons are clickable */
    .certificate-action-btn {
        cursor: pointer !important;
        pointer-events: auto !important;
        position: relative;
        z-index: 10;
    }

    .certificate-search-form {
        width: 100%;
    }

    .certificate-item {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 1.5rem;
        margin-bottom: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s ease;
    }

    .certificate-item:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

    .certificate-info h4 {
        margin: 0 0 0.5rem 0;
        color: #2d3748;
        font-size: 1.1rem;
    }

    .certificate-info p {
        margin: 0.25rem 0;
        color: #718096;
        font-size: 0.95rem;
    }

    .certificate-actions {
        display: flex;
        gap: 0.75rem;
    }

    .about .section-title {
        font-size: 1.875rem !important; /* 30px */
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }
}

/* Ensure no horizontal overflow */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Prevent content from overflowing on mobile */
* {
    max-width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

.section-description {
    color: #5e5a5a;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 8px;
}

.logo-img {
    height: 40px;
    /* adjust to fit navbar */
    width: auto;
    /* keeps aspect ratio */
    margin-right: 8px;
    vertical-align: middle;
}


/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, #5181cf, #626b7e 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    transition: background 0.3s ease;
    overflow: visible;
}

/* Navbar when scrolled down - matches admin dashboard */
.navbar.scrolled {
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
}

.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1001;
    height: 100%;
    min-height: 60px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: rgb(255, 255, 255);
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: 10%;
    transition: opacity 0.2s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.0rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
    margin-right: 2%;
    flex-shrink: 0;
    order: 2;
}

.nav-link {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight: 450;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 14px;
    display: inline-block;
}

/* Ensure nav links are visible in mobile menu */
@media (max-width: 768px) {
    .nav-menu .nav-link {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #ffffff !important;
    }
}

.nav-link:hover,
.nav-link.active {
    color: rgb(255, 255, 255);
    background: transparent;
    transform: translateY(-2px);
}

.nav-link:active {
    color: rgb(255, 255, 255);
    background: transparent;
}

.nav-link:focus {
    color: rgb(255, 255, 255);
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Remove background from Home navlink */
.nav-link[href="#home"],
.nav-link[href="#home"]:hover,
.nav-link[href="#home"]:active,
.nav-link[href="#home"].active {
    background: transparent !important;
}

.nav-link[href="#home"]:focus {
    background: transparent;
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.admin-link {
    color: rgb(255, 255, 255);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.admin-link:hover {
    color: rgb(255, 255, 255);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.admin-link:active {
    color: rgb(255, 255, 255);
    background: rgba(255, 255, 255, 0.3);
}

.admin-link:focus {
    color: rgb(255, 255, 255);
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1003 !important;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    background: transparent;
    border: none;
    outline: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.hamburger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger:active {
    background-color: rgba(255, 255, 255, 0.2);
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
    display: block;
    pointer-events: none; /* Allow clicks to pass through to hamburger */
    touch-action: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
    z-index: 1;
    margin-left: 10%;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile: Reset margin-left for proper centering */
@media (max-width: 968px) {
    .hero-content {
        margin-left: 0;
        text-align: center;
        padding: 0 15px;
    }
    
    .nav-container {
        margin-left: 0;
    }
}

.hero-text {
    max-width: 600px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    width: 100%;
    margin-top: 2rem;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Hero section button - smaller size for desktop */
.hero-buttons .btn {
    font-size: 0.95rem;
    padding: 12px 24px;
    white-space: nowrap;
}

/* Ensure buttons in hero section have equal sizing */
.hero-buttons .btn-secondary {
    flex: 1 1 0;
    width: 100%;
    max-width: 220px;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #1e40af;
}

.btn-secondary:hover {
    background: white;
    color: #1e40af;
    border-color: #1e40af;
    transform: translateY(-2px);
}

/* Section Styles */
/* Section Titles - Upcoming Events, Feedback, About CIT AttendEZ */
.section-title {
    font-size: 1.875rem; /* 30px - not too big */
    font-weight: 600;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 2.5rem;
    color: #1e40af;
    word-wrap: break-word;
    line-height: 1.3;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: -0.02em;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.section-title::after {
    display: none;
}

.section-title .section-description {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: #64748b;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.about {
    padding: 2.5rem 0;
    background: white;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.about-page {
    padding-top: 5.5rem;
}

.about .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    max-width: 98vw;
    width: 100%;
}

.container h2 {
    color: #2d3748;
}

/* About Intro Section */
.about-intro {
    text-align: center;
    max-width: 98vw;
    margin: 0 auto 1.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.about-intro-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1.25rem;
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 400;
}

/* View All Button */
.view-all-btn {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 0.875rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-btn i {
    transition: transform 0.3s ease;
}

.view-all-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.45);
}

.view-all-btn:hover i {
    transform: translateY(2px);
}

.view-all-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.3);
}

/* About Full Content */
.about-full-content {
    max-width: 98vw;
    margin: 1.5rem auto;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    animation: fadeIn 0.5s ease-in;
    width: 100%;
    box-sizing: border-box;
}

.about-content-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.about-content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 50%, #1e40af 100%);
}

.about-section-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    border-radius: 12px;
}

.about-section-item:hover {
    background: rgba(239, 246, 255, 0.5);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.about-section-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.about-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.about-section-header i {
    font-size: 1.75rem;
    color: #1e40af;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.about-section-header h3 {
    color: #1e40af;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.about-section-item p {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
}

.about-list li {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.875rem;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.about-list li i {
    color: #10b981;
    font-size: 1.1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.about-list li:last-child {
    margin-bottom: 0;
}

/* Team Members Section */
.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.team-member:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e0;
}

.team-member-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 5px solid #eff6ff;
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.2);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    position: relative;
    z-index: 1;
}

.team-member-image i {
    position: absolute;
    font-size: 4.5rem;
    color: #93c5fd;
    display: none;
    z-index: 0;
}

.team-member-image.no-image i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.team-member-info {
    width: 100%;
}

.team-member-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.team-member-role {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

/* Objectives Grid */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.objective-card {
    background: #ffffff;
    border: 2px dashed #3b82f6;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.objective-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.15);
    border-color: #1e40af;
    border-style: solid;
}

.objective-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
    transition: all 0.3s ease;
}

.objective-card:hover .objective-icon {
    transform: rotate(45deg) scale(1.1);
}

.objective-icon i {
    font-size: 2rem;
    color: #ffffff;
    transform: rotate(-45deg);
}

.objective-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.objective-description {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

/* Technologies Grid */
.technologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.technology-card {
    background: #ffffff;
    border: 2px dashed #3b82f6;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.technology-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.15);
    border-color: #1e40af;
    border-style: solid;
}

.technology-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
    transition: all 0.3s ease;
}

.technology-card:hover .technology-icon {
    transform: rotate(45deg) scale(1.1);
}

.technology-icon i {
    font-size: 2rem;
    color: #ffffff;
    transform: rotate(-45deg);
}

.technology-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.technology-description {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

/* Target Users List */
.target-users-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.target-user-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.target-user-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #1e40af 0%, #3b82f6 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.target-user-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.12);
    border-left-color: #1e40af;
}

.target-user-item:hover::before {
    transform: scaleY(1);
}

.target-user-icon-wrapper {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.15);
    transition: all 0.3s ease;
}

.target-user-item:hover .target-user-icon-wrapper {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.target-user-icon-wrapper i {
    font-size: 1.75rem;
    color: #1e40af;
    transition: all 0.3s ease;
}

.target-user-item:hover .target-user-icon-wrapper i {
    color: #ffffff;
}

.target-user-content {
    flex: 1;
    padding-top: 0.25rem;
}

.target-user-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.target-user-item:hover .target-user-title {
    color: #1e40af;
}

.target-user-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure section titles are centered on desktop */
@media (min-width: 769px) {
    .container h2.section-title {
        font-size: 1.875rem !important; /* 30px */
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }
}

/* Purpose & Objectives Section */
.purpose-objectives {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 4rem;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.purpose-objectives::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 50%, #1e40af 100%);
}

.purpose-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

.purpose-title::after {
    display: none;
}

.purpose-description {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #4a5568;
    margin: 0;
    max-width: 720px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    justify-items: center;
    width: 100%;
    box-sizing: border-box;
}

.feature-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #1e40af;
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

.feature-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.feature-description {
    font-size: 1rem;
    color: #718096;
    line-height: 1.6;
    margin: 0;
}

/* Tablet Styles - 2 columns for features */
@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .feature-card {
        padding: 2.25rem 1.75rem;
    }

    .about-page {
        padding-top: 6rem;
    }

    .about-intro {
        padding: 0 0.5rem;
    }

    .about-full-content {
        padding: 0 0.5rem;
        max-width: 98vw;
    }

    .objectives-grid,
    .technologies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact Modal Tablet */
    #contactModal .modal-content {
        max-width: 90vw !important;
        margin: 1rem !important;
    }

    #contactModal .contact-body {
        flex-direction: row !important;
        gap: 2rem;
    }

    #contactModal .contact-form {
        flex: 1;
    }

    #contactModal .contact-info {
        flex: 1;
    }

    #contactModal .map iframe {
        height: 350px !important;
    }
}

/* Events Section */
.events {
    padding: 5rem 0;
    background: #f8fafc;
}

/* Events Header Styles */
.events-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.events-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.events-intro-text {
    font-size: 1.15rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.events-separator {
    width: 70%;
    max-width: 500px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #60a5fa 50%, transparent 100%);
    margin: 2rem auto;
}

.events-cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e40af; /* Same color as events-main-title */
    margin-top: 1.5rem;
    line-height: 1.3;
}

/* Marquee Container for Completed Events - Auto-scroll with manual override */
.events-marquee-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    margin-top: 2rem;
    padding: 1rem 0;
    margin-left: 0;
    margin-right: 0;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.events-marquee-container::-webkit-scrollbar {
    height: 8px;
}

.events-marquee-container::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 10px;
}

.events-marquee-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.events-marquee-container::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.events-marquee-wrapper {
    display: flex;
    gap: 2rem;
    width: fit-content;
    animation: marquee 8s linear infinite;
    will-change: transform;
}

.events-marquee-wrapper.paused {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* For completed events page only - use marquee */
#events.events .events-marquee-container .events-grid {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    gap: 2rem;
    width: max-content;
    margin: 0;
    padding: 0;
}

#events.events .events-marquee-container .events-grid .event-card {
    flex: 0 0 300px;
    min-width: 300px;
    max-width: 300px;
    margin: 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 10px;
    }
    
    /* Marquee responsive styles for tablets */
    .events-marquee-container {
        margin-top: 1.5rem;
        padding: 0.75rem 0;
    }
    
    .events-marquee-wrapper {
        gap: 1.5rem;
    }
    
    .events-marquee-container {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }
    
    .events-marquee-container .event-card {
        scroll-snap-align: start;
    }
    
    #events.events .events-marquee-container .events-grid {
        gap: 1.5rem;
    }
    
    #events.events .events-marquee-container .events-grid .event-card {
        flex: 0 0 280px;
        min-width: 280px;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .events-header {
        padding: 0 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .events-main-title {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }
    
    .events-intro-text {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        line-height: 1.6;
    }
    
    .events-separator {
        width: 50%;
        margin: 1rem auto;
    }
    
    .events-cta-title {
        font-size: 1.1rem;
        margin-top: 0.75rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 5px;
    }
    
    /* Marquee responsive styles for small screens */
    .events-marquee-container {
        margin-top: 1rem;
        padding: 0.5rem 0;
    }
    
    .events-marquee-wrapper {
        gap: 1.25rem;
    }
    
    .events-marquee-container {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }
    
    .events-marquee-container .event-card {
        scroll-snap-align: start;
    }
    
    #events.events .events-marquee-container .events-grid {
        gap: 1.25rem;
    }
    
    #events.events .events-marquee-container .events-grid .event-card {
        flex: 0 0 250px;
        min-width: 250px;
        max-width: 250px;
    }
}

.event-card {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(30, 64, 175, 0.1);
    user-select: none;
    -webkit-user-select: none;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.event-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.event-fee-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.5rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-fee-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.event-fee-badge i {
    font-size: 0.75rem;
}

.event-fee-free {
    background: rgba(34, 197, 94, 0.95);
    color: #ffffff;
}

.event-fee-paid {
    background: rgba(251, 191, 36, 0.95);
    color: #1e3a8a;
}

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

.event-content {
    padding: 2rem;
}

.event-speaker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #4a5568;
    font-size: 0.95rem;
}

.speaker-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.events-day-header {
    grid-column: 1 / -1;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 1rem 0 0.5rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid rgba(30, 58, 138, 0.2);
}

.events-day-header:first-child {
    margin-top: 0;
}

.events-day-header:not(:first-child) {
    margin-top: 1.5rem;
}

/* Sections: Registration Open vs Registration Closed (public events) */
.events-registration-section {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 2rem;
}

.events-registration-section:last-child {
    margin-bottom: 0;
}

.events-registration-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(30, 64, 175, 0.25);
}

.events-registration-section.registration-closed .events-registration-section-title {
    color: #1e40af;
    border-bottom-color: rgba(30, 64, 175, 0.25);
}

.events-registration-section.registration-closed .event-card {
    max-width: 360px;
    justify-self: flex-start;
}

.events-registration-section.registration-closed .events-grid-inner {
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 360px));
    justify-content: start;
}

.events-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

@media (max-width: 768px) {
    .events-grid-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .events-grid-inner {
        gap: 1.25rem;
    }
}

.event-multi-day-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4b5563;
    margin-top: 0.25rem;
    padding: 0.15rem 0.5rem;
    background: #e5e7eb;
    border-radius: 6px;
}

.event-date {
    color: #1e40af;
    font-weight: 500;
    margin-bottom: 1rem;
}

.events h2 {
    color: #2d3748;
}

.event-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.event-actions {
    display: flex;
    gap: 1rem;
}

.btn-small {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Feedback Section */
.feedback {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.feedback-form .optional-label {
    font-weight: normal;
    color: #718096;
    font-size: 0.9em;
}

.feedback-form .form-group input[readonly],
.feedback-form .form-group select:disabled {
    background-color: #f7fafc;
    cursor: default;
    color: #2d3748;
}

.feedback-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.feedback-form .form-group {
    margin-bottom: 1.5rem;
}

.feedback-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.feedback-form .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.feedback-form .form-group label i {
    color: #5181cf;
    font-size: 0.85rem;
}

.feedback-form .form-group input,
.feedback-form .form-group select,
.feedback-form .form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: #2d3748;
    min-height: 44px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.feedback-form .form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.feedback-form .form-group input::placeholder,
.feedback-form .form-group select::placeholder,
.feedback-form .form-group textarea::placeholder {
    color: #a0aec0;
    font-size: 0.9rem;
}

.feedback-form .form-group input:hover,
.feedback-form .form-group select:hover,
.feedback-form .form-group textarea:hover {
    border-color: #cbd5e0;
    background: #f8fafc;
}

.feedback-form .form-group input:focus,
.feedback-form .form-group select:focus,
.feedback-form .form-group textarea:focus {
    outline: none;
    border-color: #1e40af;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    transform: translateY(-1px);
}

.feedback-form .form-group input:invalid:not(:placeholder-shown),
.feedback-form .form-group select:invalid:not(:placeholder-shown),
.feedback-form .form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #e53e3e;
}

.feedback-form .form-group input:valid:not(:placeholder-shown),
.feedback-form .form-group select:valid:not(:placeholder-shown),
.feedback-form .form-group textarea:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

.feedback-form .form-text {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #718096;
}

.feedback-form .form-text i {
    font-size: 0.75rem;
    color: #5181cf;
}

.feedback-form .btn-primary {
    width: 100%;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feedback-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.4);
}

.feedback-form .btn-primary:active {
    transform: translateY(0);
}

.feedback-form .btn-primary i {
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed !important;
    z-index: 2000;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
    /* Center modal both horizontally and vertically when visible */
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Ensure modal is not clipped by parent containers */
    transform: none !important;
    will-change: auto;
}

.modal[style*="display: block"],
.modal[style*="display: flex"],
.modal.modal-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force feedback modal to show when event_id is in URL */
#feedbackModal[data-force-open="true"],
body[data-feedback-open="true"] #feedbackModal {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 99999 !important;
    position: fixed !important;
}

/* Prevent any CSS from hiding the feedback modal when it should be open */
body[data-feedback-open="true"] #feedbackModal[data-force-open="true"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 99999 !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Force certificate modals to be visible */
#certificateRequestModal.modal-open,
#certificateFAQsModal.modal-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    z-index: 2000 !important;
}

#certificateRequestModal.modal-open .modal-content,
#certificateFAQsModal.modal-open .modal-content {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 95vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    /* Ensure modal doesn't exceed viewport */
    max-width: min(90%, 700px);
    /* Prevent modal from being too small on mobile */
    min-width: 280px;
    /* Center align the modal content */
    align-self: center;
    justify-self: center;
}

/* Certificate modals - allow scrolling */
#certificateRequestModal .modal-content,
#certificateFAQsModal .modal-content {
    max-height: 95vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

#certificateRequestModal .modal-header,
#certificateFAQsModal .modal-header {
    flex-shrink: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
    color: white !important;
    border-bottom: none !important;
}

#certificateRequestModal .modal-header h2,
#certificateFAQsModal .modal-header h2 {
    color: white !important;
}

#certificateRequestModal .modal-close,
#certificateFAQsModal .modal-close {
    color: white !important;
}

#certificateRequestModal .modal-close:hover,
#certificateFAQsModal .modal-close:hover {
    color: #f1f5f9 !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

#certificateRequestModal .modal-body,
#certificateFAQsModal .modal-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 1 !important;
    min-height: 0 !important;
    max-height: calc(95vh - 80px) !important; /* Subtract header height */
    -webkit-overflow-scrolling: touch !important; /* Smooth scrolling on iOS */
}

/* Request e-Certificate modal - Step 2 form */
#certificateRequestModal .certificate-request-step2-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
#certificateRequestModal .certificate-request-back-btn {
    background: none;
    border: none;
    color: #1e40af;
    font-size: 0.9rem;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
#certificateRequestModal .certificate-request-back-btn:hover {
    background: #eff6ff;
    color: #1d4ed8;
}
#certificateRequestModal .certificate-request-step-label {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
}
#certificateRequestModal .certificate-request-step2-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
}
#certificateRequestModal .certificate-request-step2-form .form-group {
    margin-bottom: 1.25rem;
}
#certificateRequestModal .certificate-request-step2-form .form-group:last-of-type {
    margin-bottom: 0;
}
#certificateRequestModal .certificate-request-step2-form label {
    display: block;
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}
#certificateRequestModal .certificate-request-step2-form .required {
    color: #dc2626;
}
#certificateRequestModal .certificate-request-step2-form input[type="text"],
#certificateRequestModal .certificate-request-step2-form input[type="email"],
#certificateRequestModal .certificate-request-step2-form input[type="date"],
#certificateRequestModal .certificate-request-step2-form select,
#certificateRequestModal .certificate-request-step2-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#certificateRequestModal .certificate-request-step2-form input:focus,
#certificateRequestModal .certificate-request-step2-form select:focus,
#certificateRequestModal .certificate-request-step2-form textarea:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}
#certificateRequestModal .certificate-request-step2-form input[type="file"] {
    padding: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}
#certificateRequestModal .certificate-request-step2-form textarea {
    min-height: 88px;
    resize: vertical;
}
#certificateRequestModal .certificate-request-category-group {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}
#certificateRequestModal .certificate-request-category-radios {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
#certificateRequestModal .certificate-request-category-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
    font-size: 0.95rem;
    color: #475569;
}
#certificateRequestModal .certificate-request-category-option input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: #1e40af;
}
#certificateRequestModal .certificate-request-submit-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Request e-Certificate modal - Step 1 concern selection */
#certificateRequestModal .concern-option {
    transition: background 0.2s, border-color 0.2s;
}
#certificateRequestModal .concern-option:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
#certificateRequestModal .concern-option:has(input:checked) {
    background: #eff6ff;
    border-color: #1e40af;
}
#certificateRequestModal .concern-option input[type="radio"] {
    accent-color: #1e40af;
}
#certificateRequestModal #certificateRequestNextBtn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
}

/* FAQs Modal - Better spacing */
#certificateFAQsModal .modal-content {
    max-width: 800px !important;
}

#certificateFAQsModal .modal-body {
    padding: 2.5rem !important;
}

#certificateFAQsModal .faq-section {
    padding: 0 !important;
}

#certificateFAQsModal .faq-item {
    margin-bottom: 2.5rem !important;
    padding-bottom: 2rem !important;
}

#certificateFAQsModal .faq-item h4 {
    margin-bottom: 1rem !important;
    line-height: 1.5 !important;
}

#certificateFAQsModal .faq-item p {
    line-height: 1.8 !important;
    margin-top: 0.5rem !important;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.event-details-modal-content {
    max-width: 1100px;
    width: 95%;
    max-height: 92vh;
    margin: auto;
    /* Center align the modal content */
    align-self: center;
    justify-self: center;
    /* Prevent font size changes on zoom */
    font-size: 16px;
    zoom: 1;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Screenshot Style Layout */
.event-details-screenshot-style {
    width: 100%;
    height: 100%;
}

.event-details-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: auto;
    height: auto;
    flex: 1;
    overflow: visible;
}

.event-details-image-column {
    flex: 0 0 auto;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    overflow: visible;
    position: relative;
    min-height: 280px;
}

.event-details-image-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.03) 0%, rgba(37, 99, 235, 0.05) 100%);
    pointer-events: none;
    z-index: 0;
}

.event-details-image-column::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 95%;
    border: 2px solid rgba(30, 64, 175, 0.1);
    border-radius: 12px;
    pointer-events: none;
    z-index: 0;
}

.event-details-main-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 6px 20px rgba(30, 64, 175, 0.15);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-details-image-column:hover .event-details-main-image {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2), 0 10px 30px rgba(30, 64, 175, 0.25);
}

.event-details-content-column {
    flex: 1;
    padding: 2.5rem 2rem 3.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #ffffff;
    overflow: visible;
    position: relative;
}


.event-details-banner {
    display: inline-block;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.6rem 1.25rem;
    margin-bottom: 1.75rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
}

.event-details-main-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.event-details-description {
    margin-bottom: 2rem;
    line-height: 1.8;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-left: 4px solid #1e40af;
    border-radius: 8px;
}

.event-details-description p {
    color: #4a5568;
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.85;
}

.event-details-info-list {
    margin-bottom: 3rem;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
}

.event-detail-info-item {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    transition: padding-left 0.2s ease;
}

.event-detail-info-item:hover {
    padding-left: 0.5rem;
}

.event-detail-info-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.event-detail-label {
    font-weight: 600;
    color: #4a5568;
    min-width: 140px;
    flex-shrink: 0;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.event-detail-value {
    color: #1e40af;
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

/* Buttons moved to modal footer - remove from content */
.event-details-actions {
    display: none;
}

.btn-register-event {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 0 auto;
    min-width: auto;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-register-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-register-event:hover::before {
    left: 100%;
}

.btn-register-event:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

.btn-register-event:active {
    transform: translateY(0);
}

.btn-view-speaker {
    background: #ffffff;
    color: #374151;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 0 auto;
    min-width: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-view-speaker:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #1e40af;
}

.btn-view-speaker:active {
    transform: translateY(0);
}

/* Responsive for screenshot style */
@media (max-width: 1200px) {
    .event-details-modal-content {
        max-width: 900px;
        width: 95%;
    }
    
    .event-details-content-column {
        padding: 2.5rem 2rem 3.5rem 2rem;
    }
    
    .event-details-image-column {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 968px) {
    .event-details-modal-content {
        max-width: 95%;
        width: 95%;
        max-height: 98vh;
    }
    
    .event-details-layout {
        flex-direction: column;
        min-height: auto;
        height: auto;
        max-height: calc(98vh - 80px);
    }
    
    .event-details-image-column {
        flex: 0 0 auto;
        padding: 2rem 1.5rem;
        min-height: 280px;
        overflow: visible;
    }
    
    .event-details-image-column::after {
        width: 95%;
        height: 95%;
        border-radius: 12px;
    }
    
    .event-details-main-image {
        border-radius: 12px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 6px 20px rgba(30, 64, 175, 0.15);
    }
    
    .event-details-content-column {
        flex: 1;
        padding: 2.5rem 2rem 3.5rem 2rem;
        max-height: none;
        overflow-y: visible;
        overflow-x: hidden;
    }
    
    .event-details-main-title {
        font-size: 2.25rem;
    }
    
    .event-details-description {
        padding: 1.25rem;
    }
    
    .event-details-info-list {
        margin-bottom: 3rem;
        padding: 1.25rem;
    }
    
    .event-details-modal-content .modal-footer {
        justify-content: center;
        gap: 1rem;
        padding: 1.5rem 2rem;
    }
    
    .btn-register-event,
    .btn-view-speaker {
        flex: 1;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .event-details-modal-content {
        max-width: 98%;
        width: 98%;
        max-height: 98vh;
        height: auto;
        display: flex;
        flex-direction: column;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .event-details-layout {
        max-height: none;
        min-height: auto;
        height: auto;
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }
    
    .event-details-image-column {
        padding: 1.5rem 1rem;
        min-height: 220px;
        flex-shrink: 0;
        overflow: visible;
    }
    
    .event-details-image-column::after {
        width: 95%;
        height: 95%;
        border-radius: 10px;
        border-width: 1.5px;
    }
    
    .event-details-main-image {
        border-radius: 10px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(30, 64, 175, 0.15);
    }
    
    .event-details-content-column {
        padding: 2rem 1.5rem 3rem 1.5rem;
        max-height: none;
        overflow-y: visible;
        overflow-x: hidden;
        flex: 1;
        min-height: 0;
    }
    
    .event-details-banner {
        font-size: 0.65rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .event-details-main-title {
        font-size: 1.875rem;
        margin-bottom: 1.5rem;
    }
    
    .event-details-description {
        margin-bottom: 2rem;
        padding: 1rem;
    }
    
    .event-details-description p {
        font-size: 1rem;
    }
    
    .event-details-info-list {
        margin-bottom: 3rem;
        padding: 1rem;
    }
    
    .event-detail-info-item {
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .event-detail-label {
        min-width: 100%;
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .event-detail-value {
        font-size: 0.95rem;
        width: 100%;
    }
    
    .event-details-modal-content .modal-footer {
        justify-content: center;
        padding: 1.25rem 1.5rem;
        gap: 0.875rem;
    }
    
    .btn-register-event,
    .btn-view-speaker {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .event-details-modal-content {
        max-width: 100%;
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        display: flex;
        flex-direction: column;
        border-radius: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .event-details-layout {
        max-height: none;
        min-height: auto;
        height: auto;
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }
    
    .event-details-image-column {
        padding: 1rem;
        min-height: 180px;
        flex-shrink: 0;
        overflow: visible;
    }
    
    .event-details-image-column::after {
        width: 96%;
        height: 96%;
        border-radius: 8px;
        border-width: 1px;
    }
    
    .event-details-main-image {
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(30, 64, 175, 0.12);
    }
    
    .event-details-content-column {
        padding: 1.5rem 1.25rem 2.5rem 1.25rem;
        max-height: none;
        overflow-y: visible;
        overflow-x: hidden;
        flex: 1;
        min-height: 0;
    }
    
    .event-details-banner {
        font-size: 0.6rem;
        padding: 0.45rem 0.875rem;
        margin-bottom: 1.25rem;
    }
    
    .event-details-main-title {
        font-size: 1.625rem;
        margin-bottom: 1.25rem;
    }
    
    .event-details-description {
        margin-bottom: 1.75rem;
        padding: 0.875rem;
    }
    
    .event-details-description p {
        font-size: 0.95rem;
        line-height: 1.75;
    }
    
    .event-details-info-list {
        margin-bottom: 3rem;
        padding: 0.875rem;
    }
    
    .event-detail-info-item {
        margin-bottom: 1rem;
        padding-bottom: 0.875rem;
    }
    
    .event-detail-label {
        font-size: 0.85rem;
    }
    
    .event-detail-value {
        font-size: 0.9rem;
    }
    
    .event-details-modal-content .modal-footer {
        justify-content: center;
        padding: 1.25rem 1.25rem;
        gap: 0.75rem;
    }
    
    .btn-register-event,
    .btn-view-speaker {
        padding: 0.8rem 1.25rem;
        font-size: 0.875rem;
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 360px) {
    .event-details-content-column {
        padding: 1.25rem 1rem 2rem 1rem;
        overflow-y: visible;
        overflow-x: hidden;
    }
    
    .event-details-main-title {
        font-size: 1.5rem;
    }
    
    .event-details-banner {
        font-size: 0.55rem;
        padding: 0.4rem 0.75rem;
    }
}

/* Invitation Style */
.invitation-wrapper {
    position: relative;
    background: #ffffff;
    padding: 0;
}

.invitation-border-top,
.invitation-border-bottom {
    height: 8px;
    background: linear-gradient(90deg, #1e40af 0%, #2563eb 50%, #1e40af 100%);
    position: relative;
}

.invitation-border-top::before,
.invitation-border-top::after,
.invitation-border-bottom::before,
.invitation-border-bottom::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #1e40af;
    border-radius: 50%;
    background: #ffffff;
    top: 50%;
    transform: translateY(-50%);
}

.invitation-border-top::before {
    left: 30px;
}

.invitation-border-top::after {
    right: 30px;
}

.invitation-border-bottom::before {
    left: 30px;
}

.invitation-border-bottom::after {
    right: 30px;
}

.invitation-content {
    padding: 3rem 2.5rem;
    text-align: center;
}

.invitation-image-section {
    margin-bottom: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.15);
}

.invitation-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    display: block;
}

.invitation-header {
    margin-bottom: 2rem;
}

.invitation-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1e40af;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(30, 64, 175, 0.1);
    border-radius: 20px;
}

.invitation-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    margin: 1rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.invitation-divider {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #1e40af 50%, transparent 100%);
    margin: 2rem auto;
    position: relative;
}

.invitation-divider::before,
.invitation-divider::after {
    content: '❦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #1e40af;
    font-size: 1.2rem;
}

.invitation-divider::before {
    left: -40px;
}

.invitation-divider::after {
    right: -40px;
}

.invitation-divider-small {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #1e40af 50%, transparent 100%);
    margin: 1.5rem auto;
}

.invitation-description {
    margin: 2rem 0;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.invitation-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    font-style: italic;
}

.invitation-details {
    margin: 2.5rem 0;
    text-align: left;
}

.invitation-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.invitation-detail-row:last-of-type {
    border-bottom: none;
}

.invitation-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.invitation-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.invitation-detail-content {
    flex: 1;
}

.invitation-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.invitation-detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.5;
}

.speaker-invitation {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.speaker-avatar-invitation {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1e40af;
}

.invitation-speaker-section {
    margin: 2.5rem 0;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.invitation-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1rem;
    text-align: center;
}

.invitation-speaker-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a5568;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.invitation-footer {
    margin-top: 3rem;
    padding-top: 2rem;
}

.invitation-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.invitation-stat-item {
    text-align: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid rgba(30, 64, 175, 0.1);
    transition: all 0.3s ease;
    min-width: 120px;
}

.invitation-stat-item:hover {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.invitation-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.invitation-stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive for invitation style */
@media (max-width: 768px) {
    .invitation-content {
        padding: 2rem 1.5rem;
    }
    
    .invitation-title {
        font-size: 2rem;
    }
    
    .invitation-detail-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .invitation-stats {
        gap: 1.5rem;
    }
    
    .invitation-stat-item {
        min-width: 100px;
        padding: 1.25rem 1.5rem;
    }
    
    .invitation-stat-value {
        font-size: 1.75rem;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
    flex-shrink: 0;
    /* Ensure header stays at top */
    position: relative;
    z-index: 1;
    min-height: 70px;
}

.event-details-modal-content .modal-header {
    padding: 1.25rem 2.5rem;
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 0;
}

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

.modal-body {
    padding: 0;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    /* Smooth scrolling */
    scroll-behavior: smooth;
}

.event-details-modal-content .modal-body {
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
}


/* Ensure registration modal body scrolls properly */
.registration-modal-content .modal-body {
    max-height: calc(95vh - 180px); /* Slightly more space for registration forms */
    padding: 1.5rem 2rem;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2.5rem;
    border-top: 2px solid #f1f5f9;
    background: #f8fafc;
    flex-shrink: 0;
    /* Ensure footer stays at bottom */
    position: relative;
    z-index: 1;
}

.event-details-modal-content .modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2.5rem;
    border-top: 2px solid #e2e8f0;
    background: #ffffff;
    flex-wrap: wrap;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    z-index: 10;
}

.close:hover {
    color: #333;
}

/* Registration Modal Specific Styles */
.registration-modal-content {
    max-width: 700px;
    width: 90%;
    max-height: 95vh;
    margin: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Ensure proper sizing on all screens */
    min-width: 280px;
    /* Center align the modal content */
    align-self: center;
    justify-self: center;
}

/* Category Selection */
.category-selection {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.875rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: 44px;
}

.category-btn i {
    font-size: 1rem;
}

.category-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-btn.active {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    border-color: #1e40af;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    transform: translateY(-2px);
}

.category-btn.active:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.4);
}

/* Registration Forms */
.registration-form {
    display: none;
    animation: fadeInForm 0.3s ease;
}

/* ===== Event ID Card Status Modal ===== */
#idStatusModal .modal-content.id-status-modal-content {
    max-width: 560px;
    width: 92%;
    min-width: 320px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.15);
}

#idStatusModal .modal-body.id-status-modal-body {
    padding: 2rem 2.25rem 2.25rem;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#idStatusModal .id-status-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0 0 1rem 0;
}

#idStatusModal .id-status-question {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 1.5rem 0;
}

#idStatusModal .id-status-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 0 1.5rem 0;
}

#idStatusModal .id-status-btn {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#idStatusModal .id-status-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.25);
}

#idStatusModal .id-status-btn:active {
    transform: translateY(0);
}

#idStatusModal .id-status-disclaimer {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #64748b;
    margin: 0;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #e2e8f0;
}

@media (max-width: 600px) {
    #idStatusModal .modal-content.id-status-modal-content {
        width: 95%;
        max-width: 95%;
        margin: 1rem auto;
    }
    #idStatusModal .modal-body.id-status-modal-body {
        padding: 1.5rem 1.25rem 1.75rem;
    }
    #idStatusModal .id-status-intro {
        font-size: 1rem;
    }
    #idStatusModal .id-status-question {
        font-size: 1.05rem;
        margin-bottom: 1.25rem;
    }
    #idStatusModal .id-status-btn {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
    #idStatusModal .id-status-disclaimer {
        font-size: 0.9rem;
        padding: 0.9rem 1rem;
    }
}

/* ID status choice buttons (global fallback) */
.id-status-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

@keyframes fadeInForm {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registration-form.active {
    display: block;
}

.form-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.75rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.form-title i {
    color: #1e40af;
    font-size: 1.5rem;
}

/* Enhanced Form Styling */
.registration-form .form-group {
    margin-bottom: 1.5rem;
}

.registration-form .form-group[id$="ReceiptGroup"] {
    display: none;
}

.registration-form .form-group[id$="ReceiptGroup"][style*="display: block"] {
    display: block !important;
}

.registration-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.required {
    color: #e53e3e;
    font-weight: 700;
    margin-left: 2px;
}

.registration-form .form-group input,
.registration-form .form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: #2d3748;
    min-height: 44px;
    box-sizing: border-box;
}

.registration-form .form-group input::placeholder,
.registration-form .form-group select::placeholder {
    color: #a0aec0;
    font-size: 0.9rem;
}

.registration-form .form-group input:hover,
.registration-form .form-group select:hover {
    border-color: #cbd5e0;
    background: #f8fafc;
}

.registration-form .form-group input:focus,
.registration-form .form-group select:focus {
    outline: none;
    border-color: #1e40af;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    transform: translateY(-1px);
}

.registration-form .form-group input:invalid:not(:placeholder-shown),
.registration-form .form-group select:invalid:not(:placeholder-shown) {
    border-color: #e53e3e;
}

.registration-form .form-group input:valid:not(:placeholder-shown),
.registration-form .form-group select:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

/* Multi-select with search (standard design) */
.multi-select-search-wrapper {
    position: relative;
    margin-bottom: 0;
}

.multi-select-search-wrapper .multi-select-search-input {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2d3748;
    box-sizing: border-box;
}

.multi-select-search-wrapper .multi-select-search-input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.multi-select-search-wrapper .multi-select-search-icon {
    position: absolute;
    right: 1rem;
    top: 1.25rem;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.875rem;
    pointer-events: none;
}

.registration-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

/* Enhanced Button Styles */
.registration-submit-btn {
    min-width: 140px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.registration-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.4);
}

.registration-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
    background: #f1f5f9;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #2d3748;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

/* Responsive Design */
@media (max-width: 968px) {
    .navbar {
        background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
        min-height: 60px;
        display: flex;
        align-items: center;
    }
    
    .navbar.scrolled {
        background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
    }
    
    .nav-container {
        padding: 0 15px;
        position: relative;
        z-index: 1001;
        height: 100%;
        min-height: 60px;
        align-items: center;
        width: 100%;
        margin-left: 0;
    }
    
    .nav-container .hamburger {
        position: relative;
        z-index: 1003 !important;
        pointer-events: auto !important;
        margin-left: auto; /* Push to right side to align with navbar */
        flex-shrink: 0;
        order: 2; /* Ensure it's after nav-menu */
    }
    
    .nav-logo {
        font-size: 1.1rem;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        order: 1;
    }
    
    .nav-logo span {
        font-size: 1rem;
        white-space: nowrap;
    }

    .logo-img {
        height: 35px;
        width: auto;
        flex-shrink: 0;
    }

    .container {
        padding: 0 15px;
    }
    
    /* Hide nav menu on tablets and mobile, show hamburger */
    .nav-menu {
        display: none !important;
    }
    
    .hamburger {
        display: flex !important;
        position: relative !important;
        z-index: 1003 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2) !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }
    
    .hamburger:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    .hamburger:active {
        background-color: rgba(255, 255, 255, 0.2) !important;
        transform: scale(0.95) !important;
    }
    
    .hamburger .bar {
        pointer-events: none !important;
    }
    
    /* Hero Section Responsive */
    .hero-content {
        margin-left: 0;
        padding: 0 20px;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1.15rem;
    }
}

/* Desktop - Show nav menu, hide hamburger */
@media (min-width: 969px) {
    .nav-menu {
        display: flex !important;
    }
    
    .hamburger {
        display: none !important;
    }
    
    /* Desktop scroll effect */
    .navbar.scrolled {
        background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        background: linear-gradient(135deg, #5181cf, #626b7e 100%);
        padding: 0.75rem 0;
    }
    
    .navbar.scrolled {
        background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
    }
    
    .nav-container {
        padding: 0 15px;
        position: relative;
        z-index: 1001;
    }
    
    .nav-container .hamburger {
        position: relative;
        z-index: 1003 !important;
        pointer-events: auto !important;
    }
    
    .nav-logo {
        font-size: 1rem;
    }
    
    .nav-logo span {
        font-size: 0.95rem;
    }
    
    .logo-img {
        height: 32px;
        width: auto;
    }
    
    .hamburger {
        display: flex !important;
        z-index: 1003 !important;
        position: relative !important;
        width: 44px;
        height: 44px;
        min-width: 44px; /* Ensure minimum touch target size */
        min-height: 44px;
        padding: 8px;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
        cursor: pointer !important;
        user-select: none;
        -webkit-user-select: none;
        pointer-events: auto !important;
        background: transparent;
        border: none;
        outline: none;
        -webkit-touch-callout: none;
    }
    
    .hamburger:active {
        background-color: rgba(255, 255, 255, 0.2) !important;
        transform: scale(0.95);
    }
    
    .hamburger .bar {
        pointer-events: none; /* Allow clicks to pass through to hamburger */
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        right: -100%; /* Start off-screen to the right */
        top: 0;
        height: 100vh;
        height: 100dvh; /* Use dynamic viewport height for mobile */
        width: 280px;
        max-width: 85vw;
        flex-direction: column;
        background: linear-gradient(135deg, #5181cf, #626b7e 100%);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3); /* Shadow on the left */
        padding: 0;
        padding-top: 70px; /* Nav links start aligned with navbar items (60px navbar + 10px spacing) */
        padding-right: 0 !important;
        margin: 0;
        margin-right: 0 !important;
        gap: 0;
        z-index: 10000; /* Much higher than overlay (1001) */
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease; /* Slide from right + background transition */
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        border-radius: 0;
        display: flex !important;
        align-items: stretch;
        justify-content: flex-start;
        pointer-events: auto;
        visibility: visible;
        opacity: 1;
        touch-action: pan-y; /* Allow vertical scrolling */
        will-change: right; /* Optimize animation */
        /* Prevent blur - ensure crisp rendering */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        -webkit-font-smoothing: subpixel-antialiased;
        -moz-osx-font-smoothing: auto;
        text-rendering: optimizeSpeed;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Mobile nav menu when scrolled - matches desktop standard blue */
    .nav-menu.scrolled {
        background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease !important;
    }
    

    .nav-menu.active {
        right: 0 !important; /* Slide into view from right - flush with edge */
        pointer-events: auto !important;
        padding-top: 100px !important; /* Nav links start lower, aligned with navbar content */
        padding-right: 0 !important;
        margin-right: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 10000 !important; /* Much higher than overlay (1001) */
        background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease !important;
        /* Ensure no blur when active */
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* When scrolled, use dark blue gradient */
    .nav-menu.active.scrolled {
        background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease !important;
    }
    
    /* Force all nav links to be visible in mobile menu */
    .nav-menu.active .nav-link,
    .nav-menu .nav-link,
    #navMenu .nav-link,
    .nav-container .nav-menu .nav-link {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #ffffff !important;
        text-shadow: none !important;
        -webkit-text-fill-color: #ffffff !important;
        background-color: transparent !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        z-index: 10001 !important; /* Higher than menu (10000) */
        position: relative !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2) !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }
    
    /* CRITICAL: Ensure nav-links are always clickable - override everything */
    .nav-menu.active a.nav-link,
    .nav-menu.active .nav-link[href] {
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 10001 !important;
        position: relative !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3) !important;
    }

    /* Menu Overlay - REMOVED - No dark overlay on left side */
    body::after {
        display: none !important;
    }

    body.menu-open::after {
        display: none !important;
    }
    
    /* CRITICAL FIX: Ensure menu and links are above overlay and clickable */
    body.menu-open .nav-menu.active {
        z-index: 10000 !important; /* Much higher than overlay (1001) */
        pointer-events: auto !important;
        position: fixed !important;
        padding-top: 100px !important; /* Nav links start lower */
        background: linear-gradient(135deg, #5181cf, #626b7e 100%) !important; /* Lighter gradient on refresh */
    }
    
    /* When scrolled, use dark blue gradient */
    body.menu-open .nav-menu.active.scrolled {
        background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease !important;
    }
    
    body.menu-open .nav-menu.active .nav-link {
        z-index: 10001 !important; /* Even higher for links */
        pointer-events: auto !important;
        position: relative !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
    }
    
    /* Force all children of nav-menu to be clickable */
    body.menu-open .nav-menu.active * {
        pointer-events: auto !important;
    }
    
    /* EXTRA FIX: Ensure nav-links are always on top and clickable */
    body.menu-open .nav-menu.active .nav-link,
    body.menu-open .nav-menu.active a.nav-link {
        z-index: 10001 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        position: relative !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3) !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Prevent any pseudo-elements from blocking clicks */
    body.menu-open .nav-menu.active .nav-link::before,
    body.menu-open .nav-menu.active .nav-link::after {
        pointer-events: none !important;
    }
    
    /* Ensure nav-menu and nav-links are above overlay and clickable */
    .nav-menu.active {
        pointer-events: auto !important;
        z-index: 10000 !important; /* Much higher than overlay (1001) */
        position: fixed !important;
    }
    
    .nav-menu.active .nav-link {
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 10001 !important; /* Even higher for links */
        position: relative !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2) !important;
    }
    
    /* Ensure nav-links are clickable on iPad */
    .nav-menu.active .nav-link,
    .nav-menu.active .nav-link * {
        pointer-events: auto !important;
        cursor: pointer !important;
    }
    
    /* Prevent overlay from blocking nav-menu clicks */
    .nav-menu.active,
    .nav-menu.active * {
        pointer-events: auto !important;
    }
    
    /* Specific fix for iPad - ensure nav-links are always clickable */
    @media (max-width: 768px) {
        .nav-menu.active .nav-link {
            pointer-events: auto !important;
            cursor: pointer !important;
            touch-action: manipulation !important;
            z-index: 10001 !important; /* Higher than menu (10000) */
            position: relative !important;
            -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2) !important;
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
        
        /* Ensure nav-menu itself is interactive on iPad */
        .nav-menu.active {
            pointer-events: auto !important;
            z-index: 10000 !important; /* Much higher than overlay */
        }
        
    }
    
    /* Ensure menu content is sharp and clear */
    .nav-menu {
        -webkit-font-smoothing: subpixel-antialiased;
        -moz-osx-font-smoothing: auto;
        text-rendering: auto;
    }
    
    .nav-menu * {
        -webkit-font-smoothing: subpixel-antialiased;
        -moz-osx-font-smoothing: auto;
        text-rendering: auto;
    }

    /* Close Button - Removed */
    .menu-close-btn {
        display: none !important;
    }
    
    /* Mobile Menu Close Button - Removed */
    .menu-close-btn {
        display: none !important;
    }

    .nav-link {
        display: flex !important;
        align-items: center;
        padding: 1.5rem 2rem;
        width: 100%;
        border-radius: 0;
        margin: 0;
        font-size: 1.1rem;
        font-weight: 500;
        color: #ffffff !important;
        text-decoration: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, transform 0.2s ease;
        position: relative;
        min-height: 60px; /* Minimum touch target size */
        box-sizing: border-box;
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 1003 !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2) !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
        user-select: none;
        -webkit-user-select: none;
        opacity: 0;
        transform: translateX(-10px); /* Animate from right */
        visibility: visible !important;
        text-shadow: none !important;
        -webkit-text-fill-color: #ffffff !important;
        touch-action: manipulation; /* Optimize touch interactions */
        -webkit-touch-callout: none; /* Disable iOS callout menu */
    }
    
    /* Exclude admin sidebar nav links from mobile menu animation */
    .admin-sidebar .nav-link,
    .admin-sidebar .sidebar-nav .nav-link,
    .admin-sidebar .nav-menu .nav-link,
    .admin-sidebar .nav-item .nav-link {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        display: flex !important;
    }
    
    /* Animate nav links when menu opens */
    .nav-menu.active .nav-link {
        opacity: 1 !important;
        transform: translateX(0);
    }
    
    /* Stagger animation for nav links - account for logo header as first child */
    .nav-menu.active .nav-link:nth-child(2) {
        transition-delay: 0.05s;
    }
    .nav-menu.active .nav-link:nth-child(3) {
        transition-delay: 0.1s;
    }
    .nav-menu.active .nav-link:nth-child(4) {
        transition-delay: 0.15s;
    }
    .nav-menu.active .nav-link:nth-child(5) {
        transition-delay: 0.2s;
    }
    .nav-menu.active .nav-link:nth-child(6) {
        transition-delay: 0.25s;
    }
    .nav-menu.active .nav-link:nth-child(7) {
        transition-delay: 0.3s;
    }
    
    /* Reduce nav-link spacing for tablet sizes (iPad Air, etc.) */
    @media (min-width: 769px) and (max-width: 1024px) {
        .nav-menu.active .nav-link,
        .nav-menu .nav-link,
        #navMenu .nav-link,
        .nav-container .nav-menu .nav-link,
        .nav-link {
            padding: 0.625rem 1.5rem !important;
            min-height: 44px !important;
        }
        
        .nav-link:hover {
            padding-left: 1.5rem !important;
        }
        
        /* Scroll effect for tablet sizes - dark blue when scrolled */
        .nav-menu.scrolled {
            background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
            transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease !important;
        }
        
        .nav-menu.active.scrolled {
            background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
            transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease !important;
        }
        
        body.menu-open .nav-menu.active.scrolled {
            background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
            transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease !important;
        }
    }
    
    /* Logo header should not animate */
    .mobile-menu-logo {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Additional specificity for nav links */
    .nav-menu .nav-link,
    #navMenu .nav-link {
        color: #ffffff !important;
        display: flex !important;
        visibility: visible !important;
    }

    .nav-link:first-of-type {
        margin-top: 0;
    }

    .nav-link:hover {
        background: transparent !important;
        color: #ffffff !important;
        padding-left: 1.75rem;
    }

    .nav-link:active {
        background: transparent !important;
        color: #ffffff !important;
    }
    
    .nav-link:visited {
        color: #ffffff !important;
    }

    /* Remove background from Home navlink on mobile */
    .nav-link[href="#home"],
    .nav-link[href="#home"]:hover,
    .nav-link[href="#home"]:active,
    .nav-link[href="#home"].active {
        background: transparent !important;
        color: #ffffff !important;
    }

    /* Remove the white bar indicator for Home link on mobile */
    .nav-link[href="#home"]::before {
        display: none !important;
    }

    .nav-link:focus {
        outline: 2px solid rgba(255, 255, 255, 0.5);
        outline-offset: -2px;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 4px;
        background: #ffffff;
        transform: scaleY(0);
        transition: transform 0.3s ease;
        border-radius: 0 2px 2px 0;
    }

    .nav-link:hover::before,
    .nav-link.active::before {
        transform: scaleY(1);
    }

    .nav-link.active {
        background: transparent !important;
        color: #ffffff !important;
        font-weight: 600;
    }
    
    /* Override for admin sidebar - allow background colors */
    .admin-sidebar .nav-link.active,
    .admin-sidebar .sidebar-nav .nav-link.active,
    .admin-sidebar .nav-menu .nav-link.active,
    .admin-sidebar .nav-item .nav-link.active {
        background: #1e40af !important;
    }
    
    .admin-sidebar .nav-link:hover,
    .admin-sidebar .sidebar-nav .nav-link:hover,
    .admin-sidebar .nav-menu .nav-link:hover,
    .admin-sidebar .nav-item .nav-link:hover {
        background: #1e3a8a !important;
    }

    /* Admin Link - Visual Separation */
    .nav-link.admin-link {
        background: transparent !important;
        color: #ffffff !important;
        font-weight: 500;
        margin-top: 0 !important;
        border-top: none !important;
        border-bottom: none !important;
        position: relative;
    }

    .nav-link.admin-link::after {
        content: '' !important;
        display: none !important;
    }

    .nav-link.admin-link:hover {
        background: transparent !important;
        color: #ffffff !important;
        border-top: none !important;
        border-bottom: none !important;
    }

    .nav-link:hover {
        background: transparent !important;
        color: #ffffff !important;
        transform: none;
    }
    
    /* Ensure nav menu and links are visible */
    /* Force all nav links to be visible in mobile menu - multiple selectors for maximum specificity */
    .nav-menu.active .nav-link,
    .nav-menu .nav-link,
    #navMenu .nav-link,
    .nav-container .nav-menu .nav-link,
    .nav-container #navMenu .nav-link {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #ffffff !important;
        text-shadow: none !important;
        -webkit-text-fill-color: #ffffff !important;
        background-color: transparent !important;
        font-size: 1.1rem !important;
        font-weight: 500 !important;
    }
    
    /* Exclude admin sidebar from mobile menu styles - ensure admin nav links are always visible */
    .admin-sidebar .nav-link,
    .admin-sidebar .sidebar-nav .nav-link,
    .admin-sidebar .nav-menu .nav-link,
    .admin-sidebar .nav-item .nav-link,
    .admin-sidebar .nav-link .link-text,
    .admin-sidebar .nav-link i {
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    /* Hero Section */
    .hero {
        height: 100vh;
        min-height: 600px;
        padding-top: 70px;
        background: transparent;
    }

    .hero-content {
        padding: 0 15px;
        text-align: center;
        margin-left: 0 !important;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-text {
        max-width: 100%;
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 3rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .hero-description {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        padding: 0 10px;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 1rem;
    }

    .hero-buttons .btn {
        justify-content: center;
        width: auto;
        max-width: 280px;
        padding: 0.9rem 1.5rem;
        font-size: 1.05rem;
    }

    /* About Section */
    .about {
        padding: 3rem 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .about .container {
        width: 100%;
        max-width: 98vw;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .section-title {
        font-size: 1.5rem; /* 24px */
        margin-bottom: 2rem;
        padding: 0 15px;
        padding-bottom: 1rem;
        text-align: center !important;
        width: 100%;
        max-width: 100%;
        display: block;
        box-sizing: border-box;
    }
    
    .section-title::after {
        display: none;
    }
    
    .events-header {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .events-main-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .events-intro-text {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .events-separator {
        width: 60%;
        margin: 1.5rem auto;
    }
    
    .events-cta-title {
        font-size: 1.4rem;
        margin-top: 1rem;
    }

    .section-description {
        font-size: 0.9rem;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .about-text h3 {
        font-size: 1.3rem;
    }

    .about-text p,
    .about-text li {
        font-size: 0.9rem;
    }

    .about-features {
        gap: 1.2rem;
    }

    .about-intro {
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .about-intro-text {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    .view-all-btn {
        padding: 0.75rem 2rem;
        font-size: 0.95rem;
    }

    .about-full-content {
        margin: 2rem auto;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        width: 100%;
        max-width: 98vw;
        box-sizing: border-box;
    }

    .about-content-wrapper {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .about-section-item {
        margin-bottom: 2.5rem;
        padding-bottom: 2.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .about-section-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
        justify-content: center;
    }

    .about-section-header i {
        font-size: 1.5rem;
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .about-section-header h3 {
        font-size: 1.3rem;
        text-align: center;
    }

    .about-section-item {
        text-align: center;
    }

    .about-section-item p {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: center;
    }

    .about-list {
        text-align: left;
        display: inline-block;
        width: 100%;
        max-width: 100%;
    }

    .about-list li {
        font-size: 0.95rem;
        line-height: 1.7;
        justify-content: flex-start;
        text-align: left;
    }

    .team-members {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .team-member {
        padding: 1.75rem 1.25rem;
        text-align: center;
        align-items: center;
    }

    .team-member-image {
        width: 150px;
        height: 150px;
        margin-bottom: 1.25rem;
        border-width: 4px;
        margin-left: auto;
        margin-right: auto;
    }

    .team-member-image i {
        font-size: 4rem;
    }

    .team-member-name {
        font-size: 1.15rem;
        text-align: center;
    }

    .team-member-role {
        font-size: 0.95rem;
        text-align: center;
    }

    .team-member-info {
        text-align: center;
        width: 100%;
    }

    .objectives-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .objective-card {
        padding: 1.75rem 1.5rem;
    }

    .objective-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }

    .objective-icon i {
        font-size: 1.75rem;
    }

    .objective-title {
        font-size: 1.1rem;
    }

    .objective-description {
        font-size: 0.9rem;
    }

    .technologies-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .technology-card {
        padding: 1.75rem 1.5rem;
    }

    .technology-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }

    .technology-icon i {
        font-size: 1.75rem;
    }

    .technology-title {
        font-size: 1.1rem;
    }

    .technology-description {
        font-size: 0.9rem;
    }

    .target-users-list {
        gap: 1.25rem;
    }

    .target-user-item {
        padding: 1.5rem 1.75rem;
        gap: 1.25rem;
    }

    .target-user-icon-wrapper {
        width: 65px;
        height: 65px;
        min-width: 65px;
    }

    .target-user-icon-wrapper i {
        font-size: 1.6rem;
    }

    .target-user-title {
        font-size: 1.15rem;
    }

    .target-user-description {
        font-size: 0.95rem;
    }
    
    .purpose-objectives {
        width: 100% !important;
        max-width: 100% !important;
        padding: 2rem 1.5rem !important;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 3rem;
        box-sizing: border-box;
    }
    
    .purpose-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .purpose-description {
        font-size: 0.9rem;
        line-height: 1.6;
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .feature-card {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .feature-card i {
        font-size: 2.5rem;
    }

    .feature-card h4 {
        font-size: 1.1rem;
    }

    /* Events Section */
    .events {
        padding: 3rem 0;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
    }

    .event-card {
        margin: 0 auto;
        max-width: 100%;
    }

    .event-image-container {
        height: 180px;
    }

    /* Feedback Section */
    .feedback {
        padding: 3rem 0;
    }

    .feedback-form {
        padding: 1.5rem;
        max-width: 100%;
    }

    .feedback-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 0.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        max-width: 100%;
        margin: 1% auto;
        padding: 1.5rem;
        max-height: 98vh;
        overflow-y: auto;
    }
    
    .registration-modal-content {
        margin: 1% auto;
        max-height: 98vh;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .modal-content h3 {
        font-size: 1.2rem;
    }

    .category-selection {
        flex-direction: column;
        gap: 0.8rem;
    }

    .category-btn {
        width: 100%;
        padding: 0.9rem;
        font-size: 0.95rem;
        justify-content: center;
    }

    .registration-form {
        padding: 0;
    }
    
    .registration-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }

    .close {
        font-size: 2rem;
        top: 10px;
        right: 15px;
    }

    /* Contact Section */
    .contact-bg {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .contact-bg h2 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .contact-bg h3 {
        font-size: 1rem;
        padding-top: 60px;
    }

    .contact-bg .text {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .contact-body {
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .contact-info {
        width: 100%;
        gap: 1rem;
    }

    .contact-info div {
        padding: 1.5rem 1rem;
    }

    .contact-form {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .map iframe {
        height: 300px;
    }

    .contact-footer {
        padding: 1.5rem 0;
    }

    .contact-footer h3 {
        font-size: 1.1rem;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    /* Navigation */
    .nav-logo span {
        font-size: 0.9rem;
    }

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

    .navbar {
        background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
        padding: 0.7rem 0;
    }
    
    .navbar.scrolled {
        background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
    }
    
    .nav-container {
        padding: 0 12px;
    }
    
    .hamburger {
        width: 44px; /* Maintain minimum touch target */
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 8px;
    }
    
    .bar {
        width: 24px;
        height: 3px;
    }

    .nav-menu {
        background: linear-gradient(135deg, #5181cf, #626b7e 100%);
        max-width: 90vw;
    }

    .nav-menu.scrolled {
        background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
    }
    
    .nav-link {
        font-size: 1.15rem;
        padding: 1.3rem 1.5rem;
        min-height: 58px;
    }

    /* Hero Section */
    .hero {
        min-height: 500px;
        height: auto;
        padding-top: 70px;
        padding-bottom: 3rem;
        background: transparent;
    }
    
    .hero-content {
        margin-left: 0;
        padding: 0 20px;
        text-align: center;
        width: 100%;
    }
    
    .hero-text {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0;
        line-height: 1.5;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .btn {
        max-width: 100%;
        padding: 0.85rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Sections */
    .section-title {
        font-size: 1.25rem; /* 20px */
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
        text-align: center !important;
        width: 100%;
        display: block;
    }
    
    .section-title::after {
        display: none;
    }
    
    .section-title .section-description {
        font-size: 0.875rem;
        margin-top: 0.5rem;
    }
    
    .events-header {
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }
    
    .events-main-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .events-intro-text {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        line-height: 1.6;
    }
    
    .events-separator {
        width: 50%;
        margin: 1rem auto;
    }
    
    .events-cta-title {
        font-size: 1.2rem;
        margin-top: 0.75rem;
    }

    .section-description {
        font-size: 0.85rem;
    }

    .about {
        padding: 2.5rem 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .about-page {
        padding-top: 5rem;
    }
    
    .about .container {
        width: 100%;
        max-width: 98vw;
        padding: 0 15px;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .about-intro {
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .about-intro-text {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }

    .view-all-btn {
        padding: 0.7rem 1.75rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .about-full-content {
        margin: 1.5rem auto;
        padding: 0 0.5rem;
        max-width: 98vw;
    }

    .about-content-wrapper {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
        text-align: center;
    }

    .about-section-item {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
        text-align: center;
    }

    .about-section-item:hover {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .about-section-header {
        gap: 0.625rem;
        margin-bottom: 0.875rem;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .about-section-header i {
        font-size: 1.35rem;
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .about-section-header h3 {
        font-size: 1.2rem;
        text-align: center;
        width: 100%;
    }

    .about-section-item {
        text-align: center;
    }

    .about-section-item p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        text-align: center;
    }

    .about-list {
        margin: 1rem auto;
        text-align: left;
        display: inline-block;
        width: 100%;
        max-width: 100%;
    }

    .about-list li {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 0.75rem;
        gap: 0.625rem;
        justify-content: flex-start;
        text-align: left;
    }

    .about-list li i {
        font-size: 1rem;
        margin-top: 0.2rem;
    }

    .team-members {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 1.25rem;
    }

    .team-member {
        padding: 1.5rem 1rem;
        border-radius: 16px;
        text-align: center;
        align-items: center;
    }

    .team-member-image {
        width: 140px;
        height: 140px;
        margin-bottom: 1rem;
        border-width: 3px;
        margin-left: auto;
        margin-right: auto;
    }

    .team-member-image i {
        font-size: 3.5rem;
    }

    .team-member-name {
        font-size: 1.1rem;
        margin-bottom: 0.375rem;
        text-align: center;
    }

    .team-member-role {
        font-size: 0.9rem;
        text-align: center;
    }

    .team-member-info {
        text-align: center;
        width: 100%;
    }

    .objectives-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .objective-card {
        padding: 1.5rem 1.25rem;
        border-radius: 14px;
    }

    .objective-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 1rem;
        border-radius: 16px;
    }

    .objective-icon i {
        font-size: 1.6rem;
    }

    .objective-title {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
    }

    .objective-description {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .technologies-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .technology-card {
        padding: 1.5rem 1.25rem;
        border-radius: 14px;
    }

    .technology-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 1rem;
        border-radius: 16px;
    }

    .technology-icon i {
        font-size: 1.6rem;
    }

    .technology-title {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
    }

    .technology-description {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .target-users-list {
        gap: 1rem;
    }

    .target-user-item {
        padding: 1.25rem 1.5rem;
        gap: 1rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-left: none;
        border-top: 4px solid #3b82f6;
    }

    .target-user-item::before {
        display: none;
    }

    .target-user-item:hover {
        transform: translateY(-4px);
    }

    .target-user-icon-wrapper {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }

    .target-user-icon-wrapper i {
        font-size: 1.5rem;
    }

    .target-user-content {
        padding-top: 0;
    }

    .target-user-title {
        font-size: 1.1rem;
        margin-bottom: 0.375rem;
    }

    .target-user-description {
        font-size: 0.9rem;
    }

    /* Contact Modal Mobile */
    #contactModal .modal-content {
        max-width: 95vw !important;
        margin: 0.5rem !important;
        max-height: 95vh !important;
        padding: 0 !important;
    }

    #contactModal .modal-header {
        padding: 1rem !important;
    }

    #contactModal .modal-body {
        padding: 1rem !important;
    }

    #contactModal .contact-bg {
        padding: 1.5rem 0 !important;
    }

    #contactModal .contact-bg h3 {
        font-size: 1.2rem !important;
    }

    #contactModal .contact-bg h2 {
        font-size: 1.5rem !important;
    }

    #contactModal .contact-body {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    #contactModal .contact-form,
    #contactModal .contact-info {
        width: 100% !important;
    }

    #contactModal .form-row {
        flex-direction: column !important;
    }

    #contactModal .form-group {
        width: 100% !important;
    }

    #contactModal .map {
        margin-top: 1rem !important;
    }

    #contactModal .map iframe {
        height: 250px !important;
    }

    /* About Section Title Mobile */
    .about .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem;
        padding: 0 10px;
        text-align: center;
    }

    /* Additional Mobile Centering */
    .about-content-wrapper {
        text-align: center !important;
    }

    .about-section-item {
        text-align: center !important;
    }

    .about-section-header {
        justify-content: center !important;
    }

    .about-section-header h3 {
        text-align: center !important;
        width: 100% !important;
    }

    .about-section-item p {
        text-align: center !important;
    }

    .team-member {
        text-align: center !important;
        align-items: center !important;
    }

    .team-member-image {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .team-member-info {
        text-align: center !important;
        width: 100% !important;
    }

    .team-member-name,
    .team-member-role {
        text-align: center !important;
    }

    /* Fix Unequal Spacing */
    .about-full-content {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 98vw !important;
    }

    .about-content-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .about .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 98vw !important;
    }

    .about-section-item {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Contact Modal Responsive */
    #contactModal .modal-content {
        max-width: 95vw !important;
        margin: 1rem !important;
        max-height: 95vh !important;
    }

    #contactModal .contact-body {
        flex-direction: column !important;
    }

    #contactModal .contact-form,
    #contactModal .contact-info {
        width: 100% !important;
        margin-bottom: 1.5rem;
    }

    #contactModal .map {
        margin-top: 1rem !important;
    }

    #contactModal .map iframe {
        height: 300px !important;
    }

    /* About Section Title */
    .about .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }

    .purpose-objectives {
        padding: 1.5rem 1rem !important;
        margin-bottom: 2.5rem;
        border-radius: 16px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .purpose-title {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .purpose-title::after {
        display: none;
    }

    .purpose-description {
        font-size: 0.85rem;
        line-height: 1.6;
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .feature-card {
        padding: 1.75rem 1.25rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .feature-icon i {
        font-size: 1.75rem;
    }

    .feature-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .feature-description {
        font-size: 0.875rem;
    }

    /* Events */
    .events {
        padding: 2.5rem 0;
    }

    .events-grid {
        gap: 1.2rem;
    }

    .event-image-container {
        height: 160px;
    }

    .event-card {
        border-radius: 12px;
    }

    /* Feedback */
    .feedback {
        padding: 2.5rem 0;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.7rem;
    }

    /* Modals */
    .modal {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 1rem;
    }
    
    .modal-content {
        width: 98%;
        margin: auto;
        padding: 0;
        border-radius: 12px;
        max-height: 98vh;
    }
    
    .registration-modal-content {
        width: 98%;
        max-height: 98vh;
    }
    
    .modal-body {
        padding: 1.25rem 1rem;
        max-height: calc(98vh - 130px);
    }
    
    .registration-modal-content .modal-body {
        max-height: calc(98vh - 150px);
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .modal-content h2 {
        font-size: 1.3rem;
    }

    .modal-content h3 {
        font-size: 1.1rem;
    }

    .category-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .registration-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }

    /* Contact */
    .contact-bg {
        padding: 1.5rem 1rem;
    }

    .contact-bg h2 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .contact-bg h3 {
        font-size: 0.95rem;
        padding-top: 50px;
    }

    .contact-bg .text {
        font-size: 0.85rem;
    }

    .contact-body {
        padding: 1.5rem 0.8rem;
    }

    .contact-info div {
        padding: 1.2rem 0.8rem;
    }

    .contact-info i {
        font-size: 1.5rem;
    }

    .contact-info div span:nth-child(2) {
        font-size: 1rem;
    }

    .contact-info div span.text {
        font-size: 0.85rem;
    }

    .contact-form {
        padding: 1.5rem 1rem;
    }

    .form-control {
        padding: 0.75rem 0.9rem;
        font-size: 0.9rem;
    }

    .send-btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }

    .map iframe {
        height: 250px;
    }

    .contact-footer {
        padding: 1.2rem 0;
    }

    .contact-footer h3 {
        font-size: 1rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 0.3rem;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    /* Ensure touch targets are at least 44x44px */
    .btn,
    .nav-link,
    .category-btn,
    .send-btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Improve scrolling */
    body {
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent horizontal scroll */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Better spacing for touch */
    .form-group {
        margin-bottom: 1.5rem;
    }

    input,
    select,
    textarea,
    button {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1e40af;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Event Details */
/* Event Details Modal Styles */
.event-details-image-section {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-details-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.event-detail-card {
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.event-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.detail-label {
    font-size: 14px !important;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.5rem 0;
}

.detail-value {
    font-size: 16px !important;
    color: #2d3748;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
}

.detail-value .no-data {
    color: #a0aec0;
    font-style: italic;
}

.speaker-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.speaker-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.detail-email {
    display: block;
    color: #718096;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.capacity-display {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
}

.capacity-display.capacity-full {
    color: #e53e3e;
}

.capacity-progress {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.capacity-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1e40af 0%, #2563eb 100%);
    transition: width 0.3s ease;
}

.capacity-text {
    display: block;
    color: #718096;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.status-upcoming {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.status-ongoing {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.status-done {
    background: #d1fae5;
    color: #065f46;
}

/* Event Status Badges (for event details modal) */
.event-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.event-status-badge i {
    font-size: 0.875rem;
}

.event-status-badge.status-upcoming {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
}

.event-status-badge.status-upcoming:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(251, 191, 36, 0.3);
}

.event-status-badge.status-ongoing {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
    color: #1e40af;
    border: 1px solid #60a5fa;
}

.event-status-badge.status-ongoing:hover {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(96, 165, 250, 0.3);
}

.event-status-badge.status-completed {
    background: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 100%);
    color: #065f46;
    border: 1px solid #34d399;
}

.event-status-badge.status-completed:hover {
    background: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 211, 153, 0.3);
}

.event-status-badge.status-cancelled {
    background: linear-gradient(135deg, #fee2e2 0%, #fca5a5 100%);
    color: #991b1b;
    border: 1px solid #f87171;
}

.event-status-badge.status-cancelled:hover {
    background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(248, 113, 113, 0.3);
}

.status-badge.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.status-present {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-absent {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.status-late {
    background: #fef3c7;
    color: #d97706;
}

.event-description-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* Fixed font sizes for event details modal sections - not affected by zoom */
.event-description-section .section-title,
.event-stats-section .section-title {
    font-size: 15px !important;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-description-section .section-title i,
.event-stats-section .section-title i {
    color: #1e40af;
    font-size: 14px !important;
}

.description-content {
    color: #4a5568;
    line-height: 1.8;
    font-size: 15px !important;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.event-stats-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    background: white;
    padding: 1.25rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-card-clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.stat-card-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    background: #f0f7ff;
}

.stat-card-clickable:active {
    transform: translateY(0);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-icon.stat-registered {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

.stat-icon.stat-checked-in {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.stat-icon.stat-capacity {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 24px !important;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.2;
}

.stat-label {
    font-size: 14px !important;
    color: #718096;
    margin-top: 0.25rem;
}

.error-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #e53e3e;
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.error-message h3 {
    color: #2d3748;
    margin: 1rem 0;
}

.error-message p {
    color: #718096;
    margin-bottom: 1rem;
}

/* Responsive styles for event details modal */
@media (max-width: 768px) {
    .event-details-modal-content {
        width: 98%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    .event-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Us */

.contact {
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(images/cit-bg.png.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 60px 0;
}

.contact .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact h1 {
    color: #ffffff;
    margin-bottom: 40px;
    padding: 0;
}


.cn-btn {
    text-decoration: none;
    border-radius: 10px;
    margin-left: 20px;
    margin-bottom: 15%;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

.cn-btn:hover {
    border: 1px solid #c4badd;
    background: #e6e6e6;
    color: black;
    transition: 1s;

}

@media(max-width:700px) {
    .contact {
        width: 95%;
        padding: 40px 0;
        margin: 50px auto;
    }

    .contact .container {
        padding: 0 1rem;
    }
}


* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

/* Contact Section Base Styles */
.contact-section {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.contact-bg {
    min-height: 50vh;
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.contact-bg h3 {
    margin-bottom: 0.5rem;
    padding-top: 80px;
    font-size: 1.3rem;
    font-weight: 400;
    font-family: "Poppins", sans-serif;
}

.contact-bg h2 {
    font-size: 2.5rem;
    font-family: "Poppins", sans-serif;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 4px;
}

.line {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

.line div {
    width: 50px;
    height: 3px;
    background: #fff;
    margin: 0 5px;
    border-radius: 2px;
}

.text {
    max-width: 700px;
    font-size: 1rem;
    line-height: 1.6rem;
    font-family: "Poppins", sans-serif;
    margin-top: 1rem;
}

/* 📱 Responsive Styles - Contact Section */
@media (max-width: 968px) {
    .contact-bg {
        min-height: 40vh;
        padding: 2rem 1.5rem;
    }

    .contact-bg h3 {
        padding-top: 70px;
        font-size: 1.2rem;
    }

    .contact-bg h2 {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

    .contact-body {
        flex-direction: column !important;
        gap: 2rem;
        padding: 2.5rem 1.5rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .contact-info {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        order: 1;
        box-sizing: border-box;
        padding: 0 !important;
    }

    .contact-form {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        order: 2;
        box-sizing: border-box;
        overflow-x: hidden;
        padding: 1.5rem 1rem !important;
    }
    
    .contact-form form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .map iframe {
        height: 400px;
    }
    
    /* About Section - 968px breakpoint */
    .about {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .about .container {
        width: 100%;
        max-width: 98vw;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    .purpose-objectives {
        width: 100% !important;
        max-width: 100% !important;
        padding: 2.5rem 2rem !important;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    .feature-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
.contact-section {
    padding-top: 70px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
}

    .contact-bg {
        min-height: auto;
        padding: 2rem 1rem;
        padding-top: 80px;
    }

    .contact-bg h3 {
        font-size: 1.1rem;
        padding-top: 0;
        margin-bottom: 0.5rem;
    }

    .contact-bg h2 {
        font-size: 1.8rem;
        letter-spacing: 2px;
        margin-bottom: 0.8rem;
        word-break: break-word;
    }

    .contact-bg .text {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0 1rem;
        margin-top: 1rem;
    }

    .line {
        margin: 0.8rem 0;
    }

    .line div {
        width: 30px;
        height: 2px;
        margin: 0 3px;
    }

    .line div:nth-child(1),
    .line div:nth-child(3) {
        width: 50px;
        height: 2px;
    }

    .line div:nth-child(2) {
        width: 8px;
        height: 8px;
    }

    .contact-body {
        flex-direction: column !important;
        padding: 2rem 1rem;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .contact-info {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 1rem;
        padding: 0 !important;
        order: 1;
        box-sizing: border-box;
    }

    .contact-info div {
        padding: 1.5rem 1rem;
        border-radius: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-info i {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .contact-info div span:nth-child(2) {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .contact-info div span.text {
        font-size: 0.9rem;
        line-height: 1.5;
        word-break: break-word;
    }

    .contact-form {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.5rem 1rem;
        border-radius: 12px;
        order: 2;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .contact-form form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr !important;
        column-gap: 0 !important;
        row-gap: 0.8rem;
        margin-bottom: 0.8rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-form .form-group {
        margin-bottom: 0.8rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .contact-form .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .form-control {
        padding: 0.85rem 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-form textarea.form-control {
        min-height: 120px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .send-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        margin-top: 0.8rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-height: 44px; /* Touch target size */
    }

    .map {
        width: 100%;
    }

    .map iframe {
        height: 300px;
    }

    .contact-footer {
        padding: 1.5rem 0;
    }

    .contact-footer h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin: 0.3rem;
    }
}

@media (max-width: 480px) {
    .contact-bg {
        padding: 1.5rem 1rem;
        padding-top: 70px;
    }

    .contact-bg h3 {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    .contact-bg h2 {
        font-size: 1.5rem;
        letter-spacing: 1px;
        margin-bottom: 0.6rem;
    }

    .contact-bg .text {
        font-size: 0.85rem;
        line-height: 1.4;
        padding: 0 0.5rem;
        margin-top: 0.8rem;
    }

    .line {
        margin: 0.6rem 0;
    }

    .line div {
        width: 25px;
        height: 2px;
        margin: 0 2px;
    }

    .line div:nth-child(1),
    .line div:nth-child(3) {
        width: 40px;
        height: 2px;
    }

    .line div:nth-child(2) {
        width: 6px;
        height: 6px;
    }

    .contact-body {
        padding: 1.5rem 0.8rem !important;
        gap: 1.5rem;
        flex-direction: column !important;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .contact-info {
        gap: 0.8rem;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }

    .contact-info div {
        padding: 1.2rem 0.8rem;
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-info i {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }

    .contact-info div span:nth-child(2) {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }

    .contact-info div span.text {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .contact-form {
        padding: 1.5rem 1rem !important;
        border-radius: 10px;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .contact-form form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr !important;
        margin-bottom: 0.6rem;
        width: 100%;
        max-width: 100%;
        gap: 0.6rem;
        box-sizing: border-box;
    }

    .contact-form .form-group {
        margin-bottom: 0.6rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .contact-form .form-group label {
        font-size: 0.8rem;
    }

    .form-control {
        padding: 0.75rem 0.9rem;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 6px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-form textarea.form-control {
        min-height: 100px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .send-btn {
        padding: 0.85rem 1.2rem;
        font-size: 0.9rem;
        margin-top: 0.6rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-height: 44px; /* Touch target size */
    }

    .send-btn i {
        font-size: 0.85rem;
    }

    .map iframe {
        height: 250px;
    }

    .contact-footer {
        padding: 1.2rem 0;
    }

    .contact-footer h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 0.25rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .contact-bg h2 {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
    }

    .contact-bg h3 {
        font-size: 0.9rem;
    }

    .contact-bg .text {
        font-size: 0.8rem;
    }

    .contact-info div {
        padding: 1rem 0.6rem;
    }

    .contact-form {
        padding: 1.2rem 0.8rem;
    }

    .form-control {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }

    .map iframe {
        height: 200px;
    }
}

.line div {
    margin: 0 0.2rem;
}

.line div:nth-child(1),
.line div:nth-child(3) {
    height: 3px;
    width: 70px;
    background: blue;
    border-radius: 5px;
}

.line {
    display: flex;
    align-items: center;
}

.line div:nth-child(2) {
    width: 10px;
    height: 10px;
    background: blue;
    border-radius: 50%;
}

.text {
    font-weight: 300;
    opacity: 0.9;
}

.contact-bg .text {
    margin: 1.6rem 0;
}

.contact-body {
    max-width: 1320px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    align-items: flex-start;
    background: #f5f5f5;
    width: 100%;
    box-sizing: border-box;
}

.contact-info {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    order: 2;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-info div {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.2rem 1rem;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.contact-info div:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-info span {
    display: block;
}

.contact-info i {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: #1e40af;
}

.contact-info div span:nth-child(2) {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: #333;
}

.contact-info div span.text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* CONTACT FORM */
.contact-form {
    flex: 0 0 60%;
    padding: 2rem;
    background: #ffffff !important;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    order: 1;
    position: relative;
    overflow: visible;
}

/* Ensure form is fully visible in modal */
#contactModal .contact-form {
    min-height: auto;
    max-height: none;
}

#contactModal .contact-body {
    padding: 1.5rem 1rem;
    gap: 2rem;
}

.contact-form form {
    position: relative;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748 !important;
    font-size: 0.9rem;
}

.contact-form .form-group label i {
    color: #1e40af;
    font-size: 0.85rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.contact-form input.form-control,
.contact-form textarea.form-control,
.contact-form select.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white !important;
    color: #2d3748 !important;
    min-height: 44px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.contact-form textarea,
.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.contact-form select,
.contact-form select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232d3748' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.contact-form input.form-control::placeholder,
.contact-form textarea.form-control::placeholder {
    color: #a0aec0 !important;
    font-size: 0.9rem;
}

.contact-form input:hover,
.contact-form textarea:hover,
.contact-form select:hover,
.contact-form input.form-control:hover,
.contact-form textarea.form-control:hover,
.contact-form select.form-control:hover {
    border-color: #cbd5e0;
    background: #f8fafc !important;
    color: #2d3748 !important;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.contact-form input.form-control:focus,
.contact-form textarea.form-control:focus,
.contact-form select.form-control:focus {
    outline: none;
    border-color: #1e40af;
    background: white !important;
    color: #2d3748 !important;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    transform: translateY(-1px);
}

.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown),
.contact-form select:invalid:not(:placeholder-shown) {
    border-color: #e53e3e;
}

.contact-form input:valid:not(:placeholder-shown),
.contact-form textarea:valid:not(:placeholder-shown),
.contact-form select:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

.contact-form select:disabled {
    background-color: #f7fafc !important;
    color: #a0aec0 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.contact-form .form-text {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #718096;
}

.contact-form .form-text i {
    font-size: 0.75rem;
    color: #5181cf;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-form .form-row:last-of-type {
    margin-bottom: 1.5rem;
}

.contact-form .form-group:last-of-type {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
}

.send-btn {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(180deg, #1e40af 0%, #2563eb 100%);
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-top: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
}

.send-btn i {
    font-size: 0.9rem;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.5);
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
    filter: brightness(1.1);
}

.send-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.4);
}

/* Removed unused image container styles */

.map {
    width: 100%;
    margin: 0;
    padding: 0;
}

.map iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

.contact-footer {
    padding: 2rem 0;
    background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
}

.contact-footer h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
}

.social-links a {
    text-decoration: none;
    width: 40px;
    height: 40px;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.4rem;
    transition: all 0.4s ease;
}

.social-links a:hover {
    color: #1e40af;
    background: #fff;
    border-color: #fff;
    transform: translateY(-3px);
}

/* ============================================
   COMPREHENSIVE RESPONSIVE ENHANCEMENTS
   ============================================ */

/* Prevent horizontal overflow globally */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Base responsive font sizes for different breakpoints */
@media (max-width: 1200px) {
    .section-title {
        font-size: 1.75rem; /* 28px */
    }
}

@media (max-width: 1024px) {
    .section-title {
        font-size: 1.625rem; /* 26px */
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-content {
        margin-left: 5%;
    }
}

@media (max-width: 900px) {
    .section-title {
        font-size: 1.5rem; /* 24px */
    }
    
    .section-title::after {
        display: none;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
}

/* Medium Tablets and Large Phones (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .section-title {
        font-size: 1.375rem; /* 22px */
        margin-bottom: 2rem;
        padding-bottom: 0.75rem;
    }
    
    .section-title::after {
        display: none;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1.15rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 10px;
    }
    
    .event-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .event-content {
        padding: 1.5rem;
    }
    
    .event-title {
        font-size: 1.2rem;
    }
    
    .event-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .event-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .feature-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .purpose-objectives {
        padding: 2rem 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .purpose-title {
        font-size: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .purpose-description {
        font-size: 0.9rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Landscape orientation for mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        height: auto;
        padding: 4rem 0 2rem;
        background: transparent;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem; /* 20px */
        margin-bottom: 2rem;
        padding-bottom: 0.75rem;
    }
    
    .section-title::after {
        display: none;
    }
    
    .section-title .section-description {
        font-size: 0.875rem;
        margin-top: 0.5rem;
    }
    
    .events {
        padding: 3rem 0;
    }
    
    .feedback {
        padding: 3rem 0;
    }
    
    .about {
        padding: 3rem 0;
    }
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    /* Ensure all images are responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Make sure iframes are responsive */
    iframe {
        max-width: 100%;
    }
    
    /* Form inputs should be touch-friendly */
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Buttons should be touch-friendly */
    .btn,
    .category-btn,
    .send-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Extra Small Devices (320px and below) - Enhanced */
@media (max-width: 360px) {
    .section-title {
        font-size: 1.75rem !important;
        margin-bottom: 1.25rem;
        padding: 0 10px;
        text-align: center !important;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .events-header {
        padding: 0 0.5rem;
        margin-bottom: 1.25rem;
    }
    
    .events-main-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .events-intro-text {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }
    
    .events-separator {
        width: 45%;
        margin: 0.75rem auto;
    }
    
    .events-cta-title {
        font-size: 1rem;
        margin-top: 0.5rem;
    }
    
    .nav-logo span {
        font-size: 0.9rem;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .purpose-title {
        font-size: 1.25rem;
    }
    
    .purpose-description {
        font-size: 0.85rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        width: 55px;
        height: 55px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .feature-title {
        font-size: 1rem;
    }
    
    .feature-description {
        font-size: 0.8rem;
    }
    
    .event-card {
        border-radius: 10px;
    }
    
    .event-content {
        padding: 1.5rem;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
    
    .feedback-form {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .feedback-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-bg h2 {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
    }
    
    .contact-bg h3 {
        font-size: 1rem;
    }
    
    .contact-info div {
        padding: 1.25rem 0.75rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .modal {
        padding: 0.25rem;
        align-items: flex-start;
        padding-top: 0.5rem;
    }
    
    .modal-content {
        width: 98%;
        margin: auto;
        padding: 0;
        max-height: 98vh;
        border-radius: 12px;
    }
    
    .registration-modal-content {
        width: 98%;
        max-height: 98vh;
    }
    
    .modal-header {
        padding: 1rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-body {
        max-height: calc(98vh - 120px);
        padding: 1rem 0.75rem;
    }
    
    .registration-modal-content .modal-body {
        max-height: calc(98vh - 140px);
        padding: 1rem 0.75rem;
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    .modal-header {
        padding: 1rem 1.25rem;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 1rem 1.25rem;
    }
    
    .modal-footer {
        padding: 1rem 1.25rem;
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
}

/* Tablet Styles Enhancement (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
    
    .hero-content {
        margin-left: 8%;
    }
    
    .purpose-objectives {
        padding: 2.75rem 2.25rem;
    }
    
    .contact-body {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-form {
        width: 100%;
    }
    
    /* Marquee responsive styles for medium screens */
    .events-marquee-container {
        margin-top: 1.75rem;
        padding: 0.875rem 0;
    }
    
    .events-marquee-wrapper {
        gap: 1.75rem;
    }
    
    #events.events .events-marquee-container .events-grid {
        gap: 1.75rem;
    }
    
    #events.events .events-marquee-container .events-grid .event-card {
        flex: 0 0 290px;
        min-width: 290px;
        max-width: 290px;
    }
}

/* Large Desktop (1440px and above) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content {
        max-width: 1200px;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .features-grid {
        gap: 4rem;
    }
    
    /* Large Desktop scroll effect */
    .navbar.scrolled {
        background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
    }
    
    /* Marquee responsive styles for extra large screens */
    .events-marquee-container {
        margin-top: 2.5rem;
        padding: 1.25rem 0;
    }
    
    .events-marquee-wrapper {
        gap: 2.5rem;
    }
    
    #events.events .events-marquee-container .events-grid {
        gap: 2.5rem;
    }
    
    #events.events .events-marquee-container .events-grid .event-card {
        flex: 0 0 320px;
        min-width: 320px;
        max-width: 320px;
    }
}

/* Extra Large Desktop (1920px and above) */
@media (min-width: 1920px) {
    /* Marquee responsive styles for ultra wide screens */
    .events-marquee-container {
        margin-top: 3rem;
        padding: 1.5rem 0;
    }
    
    .events-marquee-wrapper {
        gap: 3rem;
    }
    
    #events.events .events-marquee-container .events-grid {
        gap: 3rem;
    }
    
    #events.events .events-marquee-container .events-grid .event-card {
        flex: 0 0 350px;
        min-width: 350px;
        max-width: 350px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    .section-title {
        font-size: 4.5rem;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    /* Extra Large Desktop scroll effect */
    .navbar.scrolled {
        background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVENESS FIXES
   ============================================ */

/* Very Small Mobile Devices (320px - 375px) */
@media (max-width: 375px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-logo span {
        font-size: 0.85rem;
    }
    
    .logo-img {
        height: 24px;
    }
    
    .hamburger {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .nav-menu {
        width: 260px;
        max-width: 92vw;
    }

    .nav-menu.scrolled {
        background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 1.2rem;
        padding: 0 10px;
    }
    
    .event-card {
        margin: 0 5px;
    }
    
    .event-content {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0 10px;
    }
}

/* Small Mobile Devices (376px - 480px) */
@media (min-width: 376px) and (max-width: 480px) {
    .nav-menu {
        background: #1e40af;
        width: 270px;
    }

    .nav-menu.scrolled {
        background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
    }
    
    .hero-title {
        font-size: 1.9rem;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        height: auto;
        padding-top: 80px;
        padding-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .nav-menu {
        height: 100vh;
        height: 100dvh;
    }
}

/* Fix for iOS Safari viewport issues */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .hero {
            min-height: -webkit-fill-available;
        }
        
        .nav-menu {
            height: -webkit-fill-available;
        }
    }
}

/* Ensure all interactive elements have proper touch targets */
@media (max-width: 768px) {
    button,
    a,
    input[type="submit"],
    input[type="button"],
    .btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(57, 115, 209, 0.2);
    }
    
    /* Prevent text selection on buttons during touch */
    button,
    .btn {
        user-select: none;
        -webkit-user-select: none;
    }
    
    /* Ensure modals are properly sized on mobile */
    .modal-content {
        width: 95vw;
        max-width: 95vw;
        margin: 5vh auto;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix table overflow on mobile */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ensure forms are properly sized */
    form {
        width: 100%;
        max-width: 100%;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Fix for contact form on mobile */
    .contact-form {
        width: 100%;
        max-width: 100%;
    }
    
    .contact-form input,
    .contact-form textarea {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Fix z-index stacking for mobile menu */
@media (max-width: 768px) {
    .navbar {
        background: linear-gradient(135deg, #5181cf, #626b7e 100%) !important;
        z-index: 1000;
    }
    
    .navbar.scrolled {
        background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%) !important;
    }
    
    .hamburger {
        z-index: 1003;
    }
    
    .nav-menu {
        z-index: 1002;
    }
    
    body.menu-open::after {
        z-index: 1001;
    }
    
    /* Ensure modals are above menu */
    .modal {
        z-index: 2000;
    }
    
    /* Ensure dropdowns are above menu */
    .dropdown,
    .select-dropdown {
        z-index: 1004;
    }
}

/* Prevent horizontal scroll on all devices */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }
    
    section {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Improve touch feedback on mobile */
@media (max-width: 768px) {
    .nav-link:active,
    .btn:active,
    button:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .hamburger:active {
        transform: scale(0.95);
    }
}

/* Certificates Section Responsive - Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .certificates {
        padding: 3.5rem 1.5rem;
    }

    .certificates-layout {
        flex-direction: column;
        gap: 2.5rem;
        max-width: 100%;
    }

    .certificates-header {
        flex: 1;
        text-align: center;
        width: 100%;
        margin-bottom: 2rem;
    }

    .certificates-main-title {
        font-size: 2.25rem;
        line-height: 1.3;
    }

    .certificates-actions {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .certificate-action-card {
        background: #ffffff;
        border: 2px solid #1e40af;
        border-radius: 12px;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        transition: all 0.3s ease;
    }

    .certificate-action-card:hover {
        box-shadow: 0 4px 20px rgba(30, 64, 175, 0.15);
        transform: translateY(-2px);
    }

    .certificate-action-icon {
        width: 50px;
        height: 50px;
        background: #1e40af;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .certificate-action-icon i {
        font-size: 1.5rem;
        color: #ffffff;
    }

    .certificate-action-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #1e40af;
        margin: 0 0 1.5rem 0;
        line-height: 1.4;
    }

    .certificate-action-btn {
        align-self: flex-start;
        background: #f1f5f9;
        color: #1e40af;
        border: 1px solid #e2e8f0;
        padding: 0.75rem 1.5rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .certificate-action-btn:hover {
        background: #1e40af;
        color: #ffffff;
        border-color: #1e40af;
    }

    /* Certificate Search Container - Tablet */
    .certificates-search-container {
        max-width: 90% !important;
        padding: 2rem 1.5rem !important;
        margin: 2rem auto 0 !important;
    }
}

/* Certificates Section Responsive - Tablet (Small) */
@media (max-width: 968px) {
    .certificates-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .certificates-header {
        flex: 1;
        text-align: center;
        width: 100%;
        margin-bottom: 2rem;
    }

    .certificates-main-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .certificates-actions {
        width: 100%;
        max-width: 100%;
    }

    .certificate-action-card {
        background: #ffffff;
        border: 2px solid #1e40af;
        border-radius: 12px;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        transition: all 0.3s ease;
    }

    .certificate-action-card:hover {
        box-shadow: 0 4px 20px rgba(30, 64, 175, 0.15);
        transform: translateY(-2px);
    }

    .certificate-action-icon {
        width: 50px;
        height: 50px;
        background: #1e40af;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .certificate-action-icon i {
        font-size: 1.5rem;
        color: #ffffff;
    }

    .certificate-action-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #1e40af;
        margin: 0 0 1.5rem 0;
        line-height: 1.4;
    }

    .certificate-action-btn {
        align-self: flex-start;
        background: #f1f5f9;
        color: #1e40af;
        border: 1px solid #e2e8f0;
        padding: 0.75rem 1.5rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .certificate-action-btn:hover {
        background: #1e40af;
        color: #ffffff;
        border-color: #1e40af;
    }
}

/* Certificates Section Responsive - Mobile */
@media (max-width: 768px) {
    .certificates {
        padding: 2.5rem 1rem;
    }

    .certificates-layout {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0;
    }

    .certificates-header {
        flex: 1;
        text-align: center;
        width: 100%;
        padding: 0 0.5rem;
        margin-bottom: 2rem;
    }

    .certificates-main-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0;
    }

    .certificates-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .certificate-action-card {
        background: #ffffff;
        border: 2px solid #1e40af;
        border-radius: 12px;
        padding: 2rem;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        transition: all 0.3s ease;
    }

    .certificate-action-card:hover {
        box-shadow: 0 4px 20px rgba(30, 64, 175, 0.15);
        transform: translateY(-2px);
    }

    .certificate-action-icon {
        width: 50px;
        height: 50px;
        background: #1e40af;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .certificate-action-icon i {
        font-size: 1.5rem;
        color: #ffffff;
    }

    .certificate-action-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #1e40af;
        margin: 0 0 1.5rem 0;
        line-height: 1.4;
    }

    .certificate-action-btn {
        align-self: flex-start;
        background: #f1f5f9;
        color: #1e40af;
        border: 1px solid #e2e8f0;
        padding: 0.75rem 1.5rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .certificate-action-btn:hover {
        background: #1e40af;
        color: #ffffff;
        border-color: #1e40af;
    }

    /* Certificate Search Container - Mobile */
    .certificates-search-container {
        max-width: 100% !important;
        padding: 1.5rem 1rem !important;
        margin: 1.5rem auto 0 !important;
        border-radius: 12px !important;
    }

    /* Certificate Request Modal Responsive */
    #certificateRequestModal .modal-content {
        max-width: 95% !important;
        margin: 2% auto !important;
        max-height: 98vh !important;
    }

    .certificate-request-layout {
        flex-direction: column !important;
        min-height: auto !important;
    }

    .certificate-request-info {
        flex: 1 !important;
        padding: 2rem 1.5rem !important;
        border-radius: 12px 12px 0 0 !important;
    }

    .certificate-request-form-container {
        padding: 1.5rem 1rem !important;
        border-radius: 0 0 12px 12px !important;
    }

    .certificate-request-form-container h3 {
        font-size: 1.25rem !important;
        margin-bottom: 1.5rem !important;
    }

    #certificateRequestForm {
        padding: 1.5rem 1rem !important;
    }

    #certificateRequestForm .form-row {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    #certificateRequestForm .form-group {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }

    #certificateRequestForm .form-group label {
        font-size: 0.9rem !important;
    }

    #certificateRequestForm .form-group input,
    #certificateRequestForm .form-group textarea {
        font-size: 0.9rem !important;
        padding: 0.75rem !important;
    }

    #certificateRequestForm .form-group input[type="file"] {
        padding: 0.5rem !important;
        font-size: 0.85rem !important;
    }

    /* Category radio buttons - stack on mobile */
    #certificateRequestForm .category-radio-group {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    #certificateRequestForm .category-radio-group label {
        width: 100% !important;
        padding: 0.75rem !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        background: #f8fafc !important;
        transition: all 0.3s ease !important;
        margin: 0 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 1 !important;
        -webkit-tap-highlight-color: rgba(30, 64, 175, 0.2) !important;
        touch-action: manipulation !important;
        user-select: none !important;
        -webkit-user-select: none !important;
    }

    #certificateRequestForm .category-radio-group label input[type="radio"] {
        pointer-events: auto !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 10 !important;
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        margin: 0 !important;
        margin-right: 0.5rem !important;
        flex-shrink: 0 !important;
        -webkit-tap-highlight-color: rgba(30, 64, 175, 0.3) !important;
        touch-action: manipulation !important;
        -webkit-appearance: radio !important;
        appearance: radio !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    #certificateRequestForm .category-radio-group label:hover {
        background: #e2e8f0 !important;
        border-color: #1e40af !important;
    }

    #certificateRequestForm .category-radio-group label:active {
        background: #cbd5e0 !important;
    }

    #certificateRequestForm .send-btn {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem !important;
    }
}

/* Certificates Section Responsive - Small Mobile */
@media (max-width: 480px) {
    .certificates {
        padding: 2rem 0.75rem;
    }

    .certificates-layout {
        gap: 1.5rem;
    }

    .certificates-header {
        margin-bottom: 1.5rem;
    }

    /* Certificate Request Modal - Extra Small Mobile */
    #certificateRequestModal .modal-content {
        max-width: 98% !important;
        margin: 1% auto !important;
        max-height: 99vh !important;
    }

    .certificate-request-form-container {
        padding: 1rem 0.75rem !important;
    }

    .certificate-request-form-container h3 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }

    #certificateRequestForm {
        padding: 1rem 0.75rem !important;
    }

    #certificateRequestForm .form-group label {
        font-size: 0.85rem !important;
    }

    #certificateRequestForm .form-group input,
    #certificateRequestForm .form-group textarea {
        font-size: 0.85rem !important;
        padding: 0.625rem !important;
    }

    #certificateRequestForm .form-group input[type="file"] {
        padding: 0.5rem !important;
        font-size: 0.8rem !important;
    }

    #certificateRequestForm .category-radio-group {
        gap: 0.625rem !important;
    }

    #certificateRequestForm .category-radio-group label {
        padding: 0.625rem !important;
        font-size: 0.85rem !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
    }

    #certificateRequestForm .category-radio-group label input[type="radio"] {
        pointer-events: auto !important;
        cursor: pointer !important;
        min-width: 20px !important;
        min-height: 20px !important;
        width: 20px !important;
        height: 20px !important;
        flex-shrink: 0 !important;
    }

    #certificateRequestForm .send-btn {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9rem !important;
    }

    .certificates-main-title {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    .certificate-action-card {
        background: #ffffff;
        border: 2px solid #1e40af;
        border-radius: 12px;
        padding: 1.75rem;
        display: flex;
        flex-direction: column;
        transition: all 0.3s ease;
    }

    .certificate-action-card:hover {
        box-shadow: 0 4px 20px rgba(30, 64, 175, 0.15);
        transform: translateY(-2px);
    }

    .certificate-action-icon {
        width: 50px;
        height: 50px;
        background: #1e40af;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .certificate-action-icon i {
        font-size: 1.5rem;
        color: #ffffff;
    }

    .certificate-action-title {
        font-size: 1.05rem;
        font-weight: 600;
        color: #1e40af;
        margin: 0 0 1.5rem 0;
        line-height: 1.4;
    }

    .certificate-action-btn {
        align-self: flex-start;
        background: #f1f5f9;
        color: #1e40af;
        border: 1px solid #e2e8f0;
        padding: 0.75rem 1.5rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .certificate-action-btn:hover {
        background: #1e40af;
        color: #ffffff;
        border-color: #1e40af;
    }

    .certificates-search-container {
        padding: 1.25rem 0.75rem !important;
    }
}

/* Fix spacing issues on very small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .section-title {
        font-size: 1.1rem;
        padding: 0 8px;
    }
    
    .hero-content {
        padding: 0 10px;
    }

    .certificates {
        padding: 1.5rem 0.5rem;
    }

    .certificates-header {
        margin-bottom: 1.5rem;
    }

    .certificates-main-title {
        font-size: 1.35rem;
    }

    .certificate-action-card {
        background: #ffffff;
        border: 2px solid #1e40af;
        border-radius: 12px;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        transition: all 0.3s ease;
    }

    .certificate-action-card:hover {
        box-shadow: 0 4px 20px rgba(30, 64, 175, 0.15);
        transform: translateY(-2px);
    }

    .certificate-action-icon {
        width: 50px;
        height: 50px;
        background: #1e40af;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .certificate-action-icon i {
        font-size: 1.5rem;
        color: #ffffff;
    }

    .certificate-action-title {
        font-size: 1rem;
        font-weight: 600;
        color: #1e40af;
        margin: 0 0 1.5rem 0;
        line-height: 1.4;
    }

    .certificate-action-btn {
        align-self: flex-start;
        background: #f1f5f9;
        color: #1e40af;
        border: 1px solid #e2e8f0;
        padding: 0.75rem 1.5rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .certificate-action-btn:hover {
        background: #1e40af;
        color: #ffffff;
        border-color: #1e40af;
    }
    
    .event-content {
        padding: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .btn,
    .modal,
    .contact-footer {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-title {
        color: black;
        page-break-after: avoid;
    }
}

/* Registered Attendees Table Styles */
.registered-attendees-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    min-width: 600px; /* Ensure table doesn't compress too much on mobile */
}

/* Responsive wrapper for registered attendees table */
.registered-attendees-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-top: 1rem;
}

.registered-attendees-table thead {
    background: #f8fafc;
}

.registered-attendees-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.registered-attendees-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 0.95rem;
}

.registered-attendees-table tbody tr:hover {
    background: #f8fafc;
    transition: background 0.2s ease;
}

.registered-attendees-table tbody tr:last-child td {
    border-bottom: none;
}

.registered-attendees-table tbody td:first-child {
    color: #718096;
    font-weight: 500;
    width: 50px;
}

.registered-attendees-table tbody td:nth-child(2) {
    font-weight: 500;
    color: #2d3748;
}

#registeredAttendeesTableContainer {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 100%;
}

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

#registeredAttendeesTableContainer::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
}

#registeredAttendeesTableContainer::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

#registeredAttendeesTableContainer::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-info:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-info:active {
    transform: translateY(0);
}

/* Receipt Upload Styles */
.file-upload-label {
    display: inline-block !important;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: #ffffff !important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    width: 100%;
    border: 2px dashed transparent;
}

.file-upload-label:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.file-upload-label i {
    margin-right: 0.5rem;
}

.file-upload-text {
    display: inline-block;
    color: #ffffff !important;
}

.file-upload-label i {
    color: #ffffff !important;
}

.receipt-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.receipt-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* Responsive Table Styles */
@media (max-width: 768px) {
    /* Make all tables scrollable horizontally */
    .registered-attendees-table-wrapper,
    #registeredAttendeesTableContainer {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .registered-attendees-table {
        min-width: 600px;
        font-size: 0.85rem;
    }
    
    .registered-attendees-table th,
    .registered-attendees-table td {
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .registered-attendees-table-wrapper,
    #registeredAttendeesTableContainer {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .registered-attendees-table {
        min-width: 500px;
        font-size: 0.75rem;
    }
    
    .registered-attendees-table th,
    .registered-attendees-table td {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .file-upload-label {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Footer Styles */
.main-footer {
    background: #1e40af;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
}

.footer-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact-item i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 20px;
}

.footer-contact-item span {
    flex: 1;
}

.footer-contact-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
}

.footer-contact-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

/* Footer Responsive Styles */
@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 1.5rem 0 0.75rem;
        margin-top: 2rem;
    }
    
    .footer-container {
        padding: 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .footer-brand {
        grid-column: 1;
        gap: 0.5rem;
    }
    
    .footer-logo {
        font-size: 1.2rem;
        margin-bottom: 0;
    }
    
    .footer-logo-img {
        width: 30px;
        height: 30px;
    }
    
    .footer-description {
        max-width: 100%;
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .footer-section {
        gap: 0.5rem;
    }
    
    .footer-title {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    .footer-links {
        gap: 0;
    }
    
    .footer-link {
        font-size: 0.85rem;
        padding: 0;
        margin: 0;
    }
    
    .footer-contact {
        gap: 0.5rem;
    }
    
    .footer-contact-item {
        font-size: 0.85rem;
        gap: 0.5rem;
        line-height: 1.5;
    }
    
    .footer-contact-item i {
        font-size: 0.9rem;
        margin-top: 0.1rem;
    }
    
    .footer-bottom {
        padding-top: 0.75rem;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 1.25rem 0 0.5rem;
        margin-top: 1.5rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-content {
        gap: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-brand {
        gap: 0.4rem;
    }
    
    .footer-logo {
        font-size: 1.1rem;
    }
    
    .footer-logo-img {
        width: 28px;
        height: 28px;
    }
    
    .footer-description {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .footer-section {
        gap: 0.4rem;
    }
    
    .footer-title {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .footer-links {
        gap: 0;
    }
    
    .footer-link {
        font-size: 0.8rem;
        padding: 0;
        margin: 0;
    }
    
    .footer-contact {
        gap: 0.4rem;
    }
    
    .footer-contact-item {
        font-size: 0.8rem;
        gap: 0.4rem;
        line-height: 1.4;
    }
    
    .footer-contact-item i {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding-top: 0.5rem;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .main-footer {
        padding: 1rem 0 0.5rem;
        margin-top: 1rem;
    }
    
    .footer-content {
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-logo {
        font-size: 1rem;
    }
    
    .footer-logo-img {
        width: 26px;
        height: 26px;
    }
    
    .footer-description {
        font-size: 0.75rem;
    }
    
    .footer-title {
        font-size: 0.85rem;
    }
    
    .footer-link {
        font-size: 0.75rem;
        padding: 0;
        margin: 0;
    }
    
    .footer-contact-item {
        font-size: 0.75rem;
    }
    
    .footer-copyright {
        font-size: 0.7rem;
    }
}

/* Analytics date range filter pills */
.analytics-date-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.analytics-date-pill {
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    padding: 0.25rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.analytics-date-pill:hover {
    background: #e5edff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.1);
}

.analytics-date-pill.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.analytics-custom-date-range {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.analytics-custom-date-range input[type="date"] {
    padding: 0.35rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #cbd5e1;
    font-size: 0.85rem;
}

/* ══════════════════════════════════════════════════════════════
   HOMEPAGE PHOTO CAROUSEL  —  3-card portrait slider
   ══════════════════════════════════════════════════════════════ */

.homepage-carousel-wrapper {
    width: 100%;
    padding: 2rem 0 2.5rem;
    position: relative;
}

/* Outer: holds arrows + viewport */
.homepage-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3.5rem;   /* room for outside arrows */
}

/* Clipping box — overflow:hidden lives here, NOT on .homepage-carousel */
.hc-viewport {
    overflow: hidden;
    border-radius: 16px;
}

/* Track: all slides in a row */
.homepage-carousel-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Each slide — portrait 3:4 */
.hc-slide {
    flex: 0 0 calc(33.333% - 0.667rem);   /* 3 visible */
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #0f172a;
    box-shadow: 0 6px 24px rgba(0,0,0,0.22);
}

/* Image fills slide — Ken Burns motion */
.hc-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    animation: hcKenBurns 10s ease-in-out infinite alternate;
}

/* Alternate direction for even slides so they don't all move the same way */
.hc-slide:nth-child(even) img {
    animation: hcKenBurns2 13s ease-in-out infinite alternate;
}

.hc-slide:nth-child(3n) img {
    animation: hcKenBurns3 11s ease-in-out infinite alternate;
}

@keyframes hcKenBurns {
    0%   { transform: scale(1)    translate(0%,    0%);   }
    100% { transform: scale(1.09) translate(-2.5%, -2%);  }
}
@keyframes hcKenBurns2 {
    0%   { transform: scale(1.06) translate(2%,  1%);  }
    100% { transform: scale(1)    translate(-1%, -3%); }
}
@keyframes hcKenBurns3 {
    0%   { transform: scale(1)    translate(-1%, 2%); }
    100% { transform: scale(1.07) translate(2%, -1%); }
}

/* Caption overlay */
.hc-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.25rem 1rem 1rem;
    background: linear-gradient(0deg, rgba(10,15,40,0.85) 55%, transparent 100%);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    pointer-events: none;
}
.hc-caption:empty { display: none; }

/* Arrows — sit outside the viewport clip box */
.hc-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: #1e40af;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(30,64,175,0.45);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hc-arrow:hover {
    background: #1e3a8a;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 24px rgba(30,64,175,0.6);
}
.hc-arrow:active { transform: translateY(-50%) scale(0.95); }
.hc-arrow-prev { left: 0; }
.hc-arrow-next { right: 0; }

/* Dots — below the viewport */
.hc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.1rem;
}
.hc-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}
.hc-dot.active {
    background: #1e40af;
    transform: scale(1.4);
}

/* Loading skeleton */
.hc-skeleton {
    width: 100%;
    height: 400px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: hcShimmer 1.4s infinite;
    border-radius: 14px;
}
@keyframes hcShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .homepage-carousel { padding: 0 2.75rem; }
    .hc-slide {
        flex: 0 0 calc(50% - 0.5rem); /* 2 visible on tablet */
    }
}
@media (max-width: 480px) {
    .homepage-carousel { padding: 0 2.25rem; }
    .hc-slide {
        flex: 0 0 calc(80% - 0rem); /* 1 + peek on mobile */
    }
    .hc-arrow { width: 36px; height: 36px; font-size: 0.85rem; }
}

/* ── Admin carousel settings card ───────────────────────────── */
.carousel-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.carousel-admin-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1f36;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: grab;
}
.carousel-admin-item:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.22); }
.carousel-admin-item.dragging { opacity: 0.5; cursor: grabbing; }
.carousel-admin-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.carousel-admin-item.inactive img { opacity: 0.4; }
.carousel-item-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.72) 45%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0.5rem; gap: 0.25rem;
    opacity: 0; transition: opacity 0.22s;
}
.carousel-admin-item:hover .carousel-item-overlay { opacity: 1; }
.carousel-item-caption { font-size: 0.65rem; color: rgba(255,255,255,0.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carousel-item-btns { display: flex; gap: 0.2rem; flex-wrap: wrap; }
.carousel-item-btn { padding: 0.2rem 0.4rem; font-size: 0.65rem; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; transition: opacity 0.2s; line-height: 1; }
.carousel-item-btn:hover { opacity: 0.85; }
.carousel-item-btn.del { background: #ef4444; color: #fff; }
.carousel-item-btn.tog { background: #f59e0b; color: #fff; }
.carousel-item-btn.pos { background: #3b82f6; color: #fff; }
.carousel-item-order { position: absolute; top: 0.3rem; left: 0.3rem; background: rgba(30,64,175,0.85); color: #fff; font-size: 0.6rem; font-weight: 700; border-radius: 4px; padding: 0.1rem 0.3rem; }
.carousel-item-inactive-badge { position: absolute; top: 0.3rem; right: 0.3rem; background: rgba(239,68,68,0.85); color: #fff; font-size: 0.6rem; font-weight: 700; border-radius: 4px; padding: 0.1rem 0.3rem; }