/* Custom CSS for UXD Talks - Tailwind-inspired Colors & Overrides */

/* Color Variables */
:root {
    --black-custom: #040303;
    --red-cmyk-custom: #ef001a;
    --eggshell-custom: #f0f0f0;
    --pigment-green-custom: #47a025;
    --dark-spring-green-custom: #306b34;

    /* Bootstrap Overrides */
    --bs-primary: var(--red-cmyk-custom); /* Using Red for primary action/CTA */
    --bs-secondary: var(--dark-spring-green-custom); /* Using Dark Spring Green for secondary actions */
    --bs-success: var(--pigment-green-custom); /* For online indicators */
    --bs-dark: var(--black-custom); /* For navbar, footer */
    --bs-body-color: var(--black-custom); /* Default text color */
    --bs-body-bg: var(--eggshell-custom); /* Background color */
	
	/* NEW: Custom Form Design Variables */
        --app-input-bg: #ffffff;
        --app-input-border: #dcdcdc;
        --app-input-border-focus: var(--bs-primary);
        --app-input-placeholder: #a0a0a0;
        --app-input-text: var(--black-custom);
        --app-input-padding-y: 0.75rem;
        --app-input-padding-x: 1rem;
        --app-input-border-radius: 8px;
        --app-invalid-color: var(--red-cmyk-custom);
}

body {
    font-family: 'Poppins', sans-serif; /* Example font */
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

/* Custom Bootstrap Classes using variables */
.bg-dark-custom {
    background-color: var(--black-custom) !important;
}

.text-eggshell-custom {
    color: var(--eggshell-custom) !important;
}

.text-primary-custom {
    color: var(---red-cmyk-custom) !important;
}

.text-black-custom {
    color: var(--black-custom) !important;
}

.btn-primary-custom {
    background-color: var(--red-cmyk-custom);
    color: var(--black-custom); /* Text color for CTA */
    border-color: var(--red-cmyk-custom);
}

.btn-primary-custom:hover {
    background-color: #d10015; /* Slightly darker red on hover */
    border-color: #d10015;
    color: var(--black-custom);
}

.btn-outline-primary-custom {
    color: var(--red-cmyk-custom);
    border-color: var(--red-cmyk-custom);
}

.btn-outline-primary-custom:hover {
    background-color: var(--red-cmyk-custom);
    color: var(--eggshell-custom);
}

.btn-secondary-custom {
    background-color: var(--dark-spring-green-custom);
    color: var(--eggshell-custom);
    border-color: var(--dark-spring-green-custom);
}

.btn-secondary-custom:hover {
    background-color: #245227; /* Slightly darker green on hover */
    border-color: #245227;
    color: var(--eggshell-custom);
}

.bg-success-custom {
    background-color: var(--pigment-green-custom) !important;
}

.bg-danger-custom {
    background-color: var(--dark-spring-green-custom) !important; /* Using dark spring green for offline badge */
}

.text-primary-custom {
    color: var(--red-cmyk-custom) !important;
}


/* Navbar Enhancements */
.navbar {
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(4, 3, 3, 0.95) !important; /* Slightly more opaque when scrolled */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
}
.navbar-brand img{
    width:9rem;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex; /* Ensures it can center its content (the carousel) */
    align-items: center; /* Centers the carousel vertically */
    justify-content: center; /* Centers the carousel horizontally */
    background-color: var(--black-custom);
}

/* Owl Carousel specific adjustments within hero */
.hero-carousel .item {
    min-height: 80vh; /* Set a minimum height for each carousel slide */
    position: relative; /* Crucial for internal positioning context */
    overflow: hidden; /* Ensures contained content doesn't spill out */
    display: flex; /* Make the item a flex container */
    flex-direction: column; /* Stack content if needed, though row will take over */
    justify-content: center; /* Vertically center the content inside the item */
}

/* Ensure the Bootstrap row inside the carousel item fills its height */
.hero-carousel .item > .row {
    height: 100%; /* Makes the row take the full height of its parent .item */
    width: 100%; /* Ensure row takes full width */
    margin: 0; /* Remove default row margins if any */
}

/* Styling for the image within the new column layout */
.hero-carousel .item .hero-column-img {
    width: 100%;
    height: 400px; /* Make image fill the height of its column */
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for better text readability */
    display: block; /* Ensures it behaves as a block element */
}

/* Your existing CSS for other elements below, ensuring .carousel-caption is removed */

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center; /* Centers the carousel vertically within the hero-section */
    justify-content: center;
    background-color: var(--black-custom);
}

/* Owl Carousel specific adjustments within hero */
.hero-carousel .item {
    min-height: 80vh; /* Set a minimum height for each carousel slide */
    position: relative;
    overflow: hidden;
    /* IMPORTANT: Removed previous 'display: flex', 'flex-direction', 'justify-content' from here. */
    /* The item's height is defined, and the inner row/columns will handle the flex layout. */
}

/* Ensure the Bootstrap row inside the carousel item fills its height */
.hero-carousel .item > .row {
    height: 100%; /* Makes the row take the full height of its parent .item */
    width: 100%; /* Ensure row takes full width */
    margin: 0; /* Remove default row margins if any */
}

/* Explicitly make columns fill parent height and center their content */
.hero-carousel .item > .row > .col-lg-8,
.hero-carousel .item > .row > .col-lg-4 {
    height: 100%; /* Ensure both columns fill the height of the row */
    display: flex; /* Make columns flex containers */
    align-items: center; /* Vertically center their direct content (caption div or image) */
    /* For the image column, this will center the image if it doesn't stretch (but it should due to img:100%) */
    /* For the text column, this will center the text-start div */
}

/* Styling for the image within the new column layout */
.hero-carousel .item .hero-column-img {
    width: 100%;
    height: 400px; /* Make image fill the height of its column */
    object-fit: cover; /* Ensures image covers the area, cropping if necessary */
    filter: brightness(0.5); /* Darken image for better text readability */
    display: block; /* Ensures it behaves as a block element */
}

/* --- Keep the rest of your CSS as is --- */

/* Hero Section Headers */
.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Event Details Meta in Hero */
.event-details-meta {
    gap: 2rem;
    margin-bottom: 2rem;
    padding-left: 0;
    justify-content: flex-start;
}

.event-details-meta .event-meta-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: auto;
    color: var(--eggshell-custom);
    background-color: rgba(4, 3, 3, 0.7);
    padding:0.5rem;
}

.event-details-meta .content-box {
    align-items: flex-start;
    width: 100%;
}

.event-details-meta .content-box small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.event-details-meta .content-box span {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Owl Carousel Navigation (Arrows, Dots) styling */
.owl-theme .owl-nav {
    margin-top: 10px;
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.owl-theme .owl-nav [class*='owl-'] {
    color: var(--eggshell-custom);
    font-size: 3rem;
    margin: 0;
    padding: 0 10px;
    background: none;
    border: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.owl-theme .owl-nav [class*='owl-']:hover {
    opacity: 1;
    background: none;
}

.owl-theme .owl-dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
    left: 0;
}

.owl-theme .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    margin: 5px 7px;
    background: var(--eggshell-custom);
    border: 2px solid var(--eggshell-custom);
    opacity: 0.6;
    transition: all 0.2s ease;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: var(--red-cmyk-custom);
    border-color: var(--red-cmyk-custom);
    opacity: 1;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 1.5rem;
    color: var(--eggshell-custom);
    font-weight: 600;
}

.countdown-timer .countdown-digit {
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 700;
}

.countdown-timer .countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    display: block;
    margin-top: 5px;
    font-weight: 400;
}

/* Event Cards */
.event-card-wrapper .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

.event-card-wrapper .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Completed Event Styling */
.completed-event-card .grayscale {
    filter: grayscale(100%);
    opacity: 0.7;
}

.completed-event-card .card-title,
.completed-event-card .card-text {
    color: #6c757d !important;
}

/* Custom 404 Page */
.page-404 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--eggshell-custom);
    color: var(--black-custom);
    text-align: center;
}

.page-404 h1 {
    font-size: 6rem;
    font-weight: bold;
    color: var(--red-cmyk-custom);
    margin-bottom: 0.5rem;
}

.page-404 p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) { /* Medium devices and below */
    .navbar-collapse {
        background-color: var(--black-custom);
        padding: 1rem;
        margin-top: 10px;
        border-radius: 5px;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section .lead {
        font-size: 1.2rem;
    }
    /* Responsive adjustment for padding if needed, but not position */
    .hero-carousel .item .col-lg-8 .text-start {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    /* Force event details meta to stack on medium devices and below */
    .event-details-meta {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 1rem;
        justify-content: flex-start;
        align-items: flex-start;
    }
    .event-details-meta .event-meta-item {
        width: 100%;
    }
}

@media (max-width: 767.98px) { /* Small devices and below */
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
    .countdown-timer {
        gap: 10px;
        justify-content: flex-start; /* Ensure left-aligned */
    }
    .countdown-timer .countdown-digit {
        font-size: 2rem;
    }
    .page-404 h1 {
        font-size: 4rem;
    }
    .page-404 p {
        font-size: 1.2rem;
    }
    /* Hide owl nav arrows on very small screens */
    .owl-theme .owl-nav {
        display: none;
    }
}


        /* --- HERO SECTION STYLES --- */
        .event-detail-hero {
            position: relative;
            min-height: 60vh;
            /* Increased height for better visual impact */
            display: flex;
            align-items: center;
            /* Vertically center content */
            background-color: var(--black-custom);
            color: var(--eggshell-custom);
            padding: 80px 0;
            /* Keep vertical padding */
            overflow: hidden;
            text-align: left;
            /* Default text alignment */
        }

        .event-detail-hero .hero-column-img {
            width: 100%;
            height: 400px;
            object-fit: cover;
            display: block;
        }

        .event-detail-hero-img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: brightness(0.4) blur(25px);
            /* Darken for text readability */
            z-index: 1;
        }

        .event-details-hero-meta .event-meta-item {

            overflow: hidden;
            height: auto;
            color: var(--eggshell-custom);
            padding: 1rem 2rem;
        }

        .event-detail-hero-content {
            position: relative;
            z-index: 2;
            /* Ensure content is above the image */
            width: 100%;
            /* Make sure container uses full width */
        }

        /* New styles for event meta details in hero */
        .event-meta-details .d-flex {
            align-items: center;
            margin-bottom: 0.5rem;
        }

        .event-meta-details i {
            color: var(--red-cmyk-custom);
            /* Use accent color for icons */
            font-size: 1.5rem;
            /* Larger icons */
            margin-right: 0.75rem;
        }

        .event-meta-details span {
            font-size: 1.25rem;
            /* Larger text for these details */
            font-weight: 500;
        }

        .event-detail-content-section {
            background-color: var(--eggshell-custom);
            color: var(--black-custom);
            padding: 60px 0;
        }

        .event-detail-sidebar {
            background-color: #f8f9fa;
            /* Or var(--eggshell-custom) for a lighter sidebar */
            border-radius: 8px;
            padding: 25px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 100px;
        }

        .event-detail-meta-item {
            margin-bottom: 15px;
        }

        .event-detail-meta-item strong {
            display: block;
            font-size: 0.9rem;
            color: #6c757d;
            text-transform: uppercase;
            margin-bottom: 5px;
        }

        .event-detail-meta-item span {
            font-size: 1.1rem;
            font-weight: 600;
        }

        .event-detail-description h2,
        .event-detail-benefits h2,
        .event-detail-schedule h2,
        .event-detail-speakers h2,
        .event-detail-sponsors h2 {
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 25px;
            color: var(--primary-custom);
        }

        .event-detail-description p {
            line-height: 1.8;
            margin-bottom: 20px;
        }

        .event-detail-benefits ul {
            list-style: none;
            padding-left: 0;
        }

        .event-detail-benefits ul li {
            margin-bottom: 10px;
            font-size: 1.1rem;
            line-height: 1.6;
        }

        .event-detail-benefits ul li i {
            content: "\2713";
            /* Checkmark icon */
            color: var(--red-cmyk-custom);
            font-weight: bold;
            display: inline-block;
            width: 1.5em;
        }



        /* Speakers Section */
        .event-detail-speakers .speaker-item {
            text-align: center;
            margin-bottom: 30px;
        }

        .event-detail-speakers .speaker-item img {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--primary-custom);
            margin-bottom: 15px;
        }

        .event-detail-speakers .speaker-item h5 {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 5px;
        }

        .event-detail-speakers .speaker-item p {
            font-size: 0.95rem;
            color: #6c757d;
        }

        /* Sponsors Section */
        .event-detail-sponsors .sponsor-item img {
            max-height: 80px;
            max-width: 100%;
            object-fit: contain;
            margin-bottom: 20px;
            filter: grayscale(100%);
            transition: filter 0.3s ease;
        }

        .event-detail-sponsors .sponsor-item img:hover {
            filter: grayscale(0%);
        }

        /* Floating Register Button */
        .sticky-register-btn {
            position: fixed;
            bottom: 25px;
            right: 25px;
            z-index: 1000;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        /* Responsive adjustments */
        @media (max-width: 991.98px) {
            .event-detail-sidebar {
                position: static;
                margin-top: 30px;
            }

            .event-detail-hero {
                min-height: 40vh;
                padding: 60px 0;
            }

            .event-detail-hero h1 {
                font-size: 2.5rem;
            }

            .event-detail-hero p {
                font-size: 1rem;
            }

            .event-detail-description h2,
            .event-detail-benefits h2,
            .event-detail-schedule h2,
            .event-detail-speakers h2,
            .event-detail-sponsors h2 {
                font-size: 1.8rem;
                margin-bottom: 20px;
            }
        }

        /* --- NEW/UPDATED STYLES FOR CONSISTENCY (copy these here too) --- */

        /* Event Schedule Section - Overall Container */
        .event-detail-schedule {
            margin-bottom: 3rem;
        }

        /* Tab Navigation Styling */
        .event-detail-schedule .nav-tabs {
            border-bottom: none;
            background-color: var(--eggshell-custom) !important;
            /* Use your eggshell for the tab bar background */
            border-radius: 8px 8px 0 0;
            padding: 0.5rem 0.5rem 0;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
            position: relative;
            z-index: 1;
        }

        .event-detail-schedule .nav-tabs-scrollable {
            overflow-x: auto;
            flex-wrap: nowrap;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .event-detail-schedule .nav-tabs-scrollable::-webkit-scrollbar {
            display: none;
        }

        .event-detail-schedule .nav-item {
            margin-bottom: 0;
        }

        .event-detail-schedule .nav-link {
            border: none;
            border-radius: 6px 6px 0 0;
            padding: 0.75rem 1.25rem;
            font-weight: 600;
            color: var(--black-custom) !important;
            background-color: transparent !important;
            transition: all 0.3s ease;
            margin-right: 5px;
            opacity: 0.8;
        }

        .event-detail-schedule .nav-link:hover:not(.active) {
            color: var(--bs-primary) !important;
            background-color: rgba(0, 0, 0, 0.03) !important;
            opacity: 1 !important;
        }

        .event-detail-schedule .nav-link.active {
            color: var(--eggshell-custom) !important;
            background-color: var(--bs-primary) !important;
            border-color: var(--primary-custom) !important;
            cursor: default !important;
            opacity: 1 !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        }

        /* Tab Content Panes Styling */
        .event-detail-schedule .tab-content {
            background-color: #fff;
            border: none;
            border-radius: 0 0 8px 8px;
            padding: 2rem;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            margin-top: -8px;
            /* Visual overlap with tabs */
            position: relative;
            z-index: 0;
        }

        /* Schedule Card Styling (inside tab content) */
        .event-detail-schedule .tab-pane .card {
            border: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            margin-bottom: 1.5rem;
        }

        .event-detail-schedule .tab-pane .card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .event-detail-schedule .tab-pane .card-title {
            color: var(--primary-custom);
            /* Use custom primary for titles */
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .event-detail-schedule .tab-pane .card-text small.text-muted {
            font-size: 0.85rem;
            display: block;
            margin-bottom: 0.75rem;
        }

        .event-detail-schedule .tab-pane .card-text {
            line-height: 1.6;
        }

        .event-detail-schedule .tab-pane .card-text strong {
            font-weight: 600;
        }
		

	form label.required {
    font-weight: 600;
    color: var(--black-custom);
    margin-bottom: 0.5rem;
    display: block;
}

/* NEW: Style for the required asterisk */
form label.required::after {
    content: '*'; /* Add the asterisk content */
    color: var(--red-cmyk-custom); /* Make it red to stand out */
    margin-left: 4px; /* A little space from the label text */
    font-weight: 700; /* Make the asterisk bolder */
}

.ticket-card {
        background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
        border: none;
        border-radius: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .main-content-section {
        background-color: #fff;
    }

    .ticket-event-logo {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border: 3px solid #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .ticket-event-logo i {
        color: var(--bs-primary);
    }

    .ticket-title {
        font-weight: 700;
        font-size: 2.2rem;
        margin-bottom: 0;
        line-height: 1.2;
    }
    .ticket-subtitle {
        font-size: 1.1rem;
        color: #6c757d;
        font-weight: 500;
    }

    .ticket-label {
        font-weight: 600;
        color: var(--bs-primary);
        margin-bottom: 0.3rem;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .ticket-value {
        font-size: 1rem;
        color: #343a40;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    /* Print-specific styles */
    @media print {
        
        .ticket-card {
            box-shadow: none;
            border: 1px solid #ccc;
            width: 100%;
            margin: 0;
            border-radius: 0;
        }
        
    }
	
	.btn-success-custom {
        background-color: #28a745; /* Bootstrap green success color */
        border-color: #28a745;
        color: #fff !important;
    }
	.btn-success-custom:disabled {
        background-color: #28a745; /* Bootstrap green success color */
        border-color: #28a745;
        color: #fff !important;
    }
    .btn-success-custom:hover:disabled {
        background-color: #28a745; /* Keep background on hover for disabled */
        border-color: #28a745;
        color: #fff;
        cursor: not-allowed;
    }
    
    .social-icon {
    /* Style for the rounded square container */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    margin: 0 6px; /* Spacing between icons */
    background-color: #343a40; /* A darker background color */
    color: #f5f5dc; /* Eggshell color for the icons */
    border-radius: 6px; /* Adjust for desired roundness */
    text-decoration: none;
    transition: background-color 0.3s ease; /* Smooth hover transition */
}

/* Hover and Focus effect for user feedback */
.social-icon:hover,
.social-icon:focus {
    background-color: #495057; /* A slightly lighter shade on hover */
}
