/* GDTA Conference 2026 Brand Colors - Professional White Theme */
:root {
    --gdta-bg-primary: #FFFFFF;
    /* Primary Background - White */
    --gdta-bg-card: #F8F9FA;
    /* Card / Surface - Light Grey */
    --gdta-accent: #000000;
    /* Primary Accent - Black */
    --gdta-text-primary: #212529;
    /* Primary Text - Dark Grey/Black */
    --gdta-text-secondary: #495057;
    /* Secondary Text - Medium Grey */
    --gdta-text-muted: #6C757D;
    /* Muted Text - Grey */
    --gdta-border: #DEE2E6;
    /* Border Color - Light Grey */
    --gdta-hover: #E9ECEF;
    /* Hover Background - Very Light Grey */
}

/* Global Resets */
body {
    margin: 0;
    padding: 0;
    background-color: var(--gdta-bg-primary) !important;
    color: var(--gdta-text-primary) !important;
    font-family: 'Open Sans', sans-serif !important;
}

.container-fluid {
    margin: 0 !important;
    padding: 0 !important;
}

.container-fluid>.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    color: var(--gdta-text-primary) !important;
}

h1 {
    font-weight: 800 !important;
}

p,
span,
div,
a {
    color: var(--gdta-text-secondary) !important;
}

.text-white,
.text-light {
    color: var(--gdta-text-primary) !important;
}

/* Uniform Card Heights for Scroll Effects */
.content-card {
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.content-card>div:first-child {
    flex-shrink: 0;
}

.content-card h4 {
    flex-shrink: 0;
}

.content-card p {
    flex: 1;
}

.bg-dark,
.bg-secondary {
    background-color: var(--gdta-bg-primary) !important;
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.navbar .nav-link {
    color: #000000 !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: #0066CC !important;
    transform: translateY(-1px);
}

.navbar .nav-link.active {
    color: #0066CC !important;
    font-weight: 700 !important;
}

.navbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.navbar .dropdown-item {
    color: #000000 !important;
    font-weight: 600 !important;
}

.navbar .dropdown-item:hover {
    background-color: rgba(0, 102, 204, 0.1) !important;
    color: #0066CC !important;
}


/* Button Styles */
.btn-primary {
    background-color: var(--gdta-accent) !important;
    border-color: var(--gdta-accent) !important;
    color: #FFFFFF !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #FFFFFF !important;
}

/* Navbar Register Button with Pop Animation */
.navbar-register-btn {
    background-color: var(--gdta-accent) !important;
    border-color: var(--gdta-accent) !important;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 1.1rem !important;
    padding: 0.6rem 2rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(228, 23, 121, 0.3);
    animation: pop-bounce 2s ease-in-out infinite;
}

.navbar-register-btn:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
    color: #FFFFFF !important;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    animation: none;
}

@keyframes pop-bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

/* Carousel Navigation Buttons */
.carousel-nav-btn:hover {
    background: #E91E63 !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Featured Sessions Carousel — keep same card size for every slide (home + sessions page)
   The slides swap content dynamically; we clamp text and enforce a consistent card height on lg+.
*/
.featured-article {
    --gdta-featured-card-height: 430px;
}

@media (min-width: 992px) {
    .featured-article .gradient-border-inner {
        height: var(--gdta-featured-card-height);
    }

    .featured-article .gradient-border-inner .row {
        height: 100%;
    }

    .featured-article .gradient-border-inner .row>.col-lg-5,
    .featured-article .gradient-border-inner .row>.col-lg-7 {
        height: 100%;
    }

    .featured-article #featured-img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover;
        min-height: 0 !important;
    }

    .featured-article .glass-effect {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 991.98px) {
    .featured-article #featured-img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
        min-height: 280px !important;
    }
}

.featured-article #featured-title {
    min-height: 64px;
    max-height: 64px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.featured-article #featured-subtitle {
    min-height: 24px;
    max-height: calc(1.4em * 2);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.featured-article #featured-description {
    line-height: 1.8;
    min-height: calc(1.8em * 5);
    max-height: calc(1.8em * 5);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
}

.btn-light {
    background-color: #FFFFFF !important;
    border-color: var(--gdta-border) !important;
    color: var(--gdta-text-primary) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: var(--gdta-hover) !important;
    border-color: var(--gdta-text-secondary) !important;
    color: var(--gdta-text-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    color: var(--gdta-accent) !important;
    border-color: var(--gdta-accent) !important;
    background-color: transparent !important;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--gdta-accent) !important;
    border-color: var(--gdta-accent) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Navigation Pills */
.nav-pill {
    padding: 10px 20px;
    background-color: transparent;
    color: var(--gdta-text-secondary) !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-pill:hover {
    background-color: var(--gdta-hover);
    color: var(--gdta-accent) !important;
}

/* Hero Section */
.hero-section {
    background-color: var(--gdta-bg-primary) !important;
    color: var(--gdta-text-primary) !important;
}

#heroPicture img,
#heroVideo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    background-color: transparent !important;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.hero-section p {
    color: var(--gdta-text-primary) !important;
}

/* Hero media visibility (desktop vs mobile) */
.hero-media-desktop {
    display: block;
}

.hero-media-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hero-media-desktop {
        display: none;
    }

    .hero-media-mobile {
        display: block;
    }
}

/* Section Backgrounds */
.section-dark {
    background-color: var(--gdta-bg-card) !important;
}

.section-card {
    background-color: #FFFFFF !important;
}

.section-accent {
    background-color: var(--gdta-accent) !important;
}

.section-accent h1,
.section-accent h2,
.section-accent h3,
.section-accent h4,
.section-accent h5,
.section-accent p {
    color: #FFFFFF !important;
}

/* Footer */
.footer {
    background-color: #F8F9FA !important;
    border-top: 1px solid var(--gdta-border);
}

.footer h1,
.footer h2,
.footer h3,
.footer p,
.footer a {
    color: var(--gdta-text-primary) !important;
}

.footer .btn-outline-primary {
    background-color: transparent !important;
    border-color: var(--gdta-accent) !important;
    color: var(--gdta-accent) !important;
}

.footer .btn-outline-primary:hover {
    background-color: var(--gdta-accent) !important;
    border-color: var(--gdta-accent) !important;
    color: #FFFFFF !important;
}

/* Card Styles */
.committee-card,
.secretariat-card,
.content-card {
    background-color: #FFFFFF;
    border: 1px solid var(--gdta-border);
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.committee-card:hover,
.secretariat-card:hover,
.content-card:hover {
    border-color: var(--gdta-text-secondary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Remove old styles */
.navbar-brand-pill {
    display: none;
}

.logo-rounded {
    height: 50px;
}

.text-primary {
    color: var(--gdta-accent) !important;
}

.text-accent {
    color: var(--gdta-accent) !important;
}

.border-bottom {
    border-bottom-color: var(--gdta-border) !important;
}

/* Smooth scrolling - Disabled for multi-page */
html {
    scroll-behavior: auto;
}

/* Remove dark overlay from images */
.service-img::before {
    display: none !important;
}

/* Guest Modal Popup Styles - Premium Borderless Design */
.guest-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 10px; /* Keep flyer close to the top of the screen */
    overflow-y: auto; /* Enable scrolling if viewport is extremely short */
}

.guest-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.guest-modal-box {
    padding: 0; /* No padding so the image covers the card fully */
    width: fit-content;
    max-width: 88%; /* Leaves room for close button on desktop */
    margin: 5px auto; /* Centered with a minimal 5px vertical margin */
    border-radius: 16px;
    position: relative;
    transform: scale(0.85) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    background-color: transparent; /* Transparent card background */
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5); /* Strong drop shadow */
    overflow: visible; /* Allow close button to float outside */
}

.guest-modal-overlay.show .guest-modal-box {
    transform: scale(1) translateY(0);
}

.guest-modal-close-btn {
    position: absolute;
    top: 0; 
    right: -45px; /* Float on the right of the flyer */
    background: rgba(0, 0, 0, 0.65); /* Semi-transparent black */
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.guest-modal-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.guest-modal-img-container {
    display: block !important; /* Block layout ensures max-height on image is respected */
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

.guest-modal-img {
    max-width: 100%;
    max-height: 94vh; /* Maximize to 94vh for largest possible flyer display */
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 16px; /* Smooth corners on all sides */
}

.guest-modal-action-btn {
    display: none !important; /* Hide duplicate Register button inside modal */
}

/* Prevent body and HTML scrolling when modal is open */
html.modal-open,
body.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Responsive overrides for smaller heights (e.g. laptops, mobile landscape) */
@media (max-height: 720px) {
    .guest-modal-overlay {
        padding: 10px;
    }
    
    .guest-modal-box {
        padding: 0;
        margin: 5px auto;
        border-radius: 12px;
        max-width: 85%;
    }
    
    .guest-modal-img-container {
        margin: 0 auto;
        border-radius: 12px;
    }
    
    .guest-modal-img {
        max-height: 92vh; /* Maximized to 92vh on laptop viewports to make flyer text fully readable */
        border-radius: 12px;
    }
}

/* Responsive overrides for smaller widths (e.g. mobile phones) */
@media (max-width: 480px) {
    .guest-modal-overlay {
        padding: 35px 10px 10px 10px; /* Leave top space for close button on narrow screens */
    }
    
    .guest-modal-box {
        padding: 0;
        margin: 5px auto;
        border-radius: 12px;
        max-width: 100%;
    }
    
    .guest-modal-img-container {
        margin: 0 auto;
        border-radius: 12px;
    }
    
    .guest-modal-img {
        max-height: 84vh;
        border-radius: 12px;
    }
    
    .guest-modal-close-btn {
        top: -30px;
        right: 0;
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}