/* === HTML BACKGROUND === */
body.event-page-background {
    background: linear-gradient(0deg, #ffffff, #D0E5F7, #ffffff);
    overflow-x: hidden;
}

/* Force white background on html element for event pages */
html:has(body.event-page-background) {
    background-color: white !important;
    overflow-x: hidden;
}

/* === HERO SECTION STYLES === */
.event-page-hero-section {
    padding: 100px 20px;
    text-align: center;
    margin-top: 5%;
}

.event-hero-title {
    font-family: "Phudu", sans-serif !important;
    font-weight: 600 !important; /* Semi-Bold */
    /* UPDATED: Fluid font size using clamp() */
    font-size: clamp(2.625rem, 2rem + 4vw, 5.125rem); /* Was 82px -> 56px -> 42px */
    color: #0d2c54; /* Dark Blue */
    line-height: 1.1;
    letter-spacing: 0;
    margin: 0;
}
/* === END HERO SECTION STYLES === */

.event-page-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
    padding: 40px 20px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

/* Left Section Styles - 2x width of right */
.event-page-left-section {
    flex: 2;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Right Section Styles - 1x width and sticky */
.event-page-right-section {
    flex: 1;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
    max-width: 100%;
}

.event-page-event-title {
    font-family: "Phudu", sans-serif !important;
    font-weight: 600 !important; /* Semi-Bold */
    line-height: 1.1;
    letter-spacing: 0;
    margin-bottom: 1rem;
    font-size: clamp(2.25rem, 1.5rem + 3vw, 3rem); /* Was 3rem */
}

.event-page-title-label{
    font-family: "Phudu", sans-serif !important;
    font-weight: 600 !important; /* Semi-Bold */
    line-height: 1.1;
    letter-spacing: 0;
    margin-bottom: 1rem;
    font-size: clamp(2.25rem, 1.5rem + 3vw, 3rem); /* Was 3rem */
}

/* Toggle icon */
.event-page-toggle-icon {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.event-page-toggle-icon.rotated {
    transform: rotate(180deg);
}

.event-page-icon-wrapper img {
    width: 48px;
    height: 48px;
    /* ADDED: Smooth scaling */
    transition: width 0.3s ease, height 0.3s ease;
}

/* Banner - Flexible height */
.event-page-banner-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 0 1 auto;
    max-height: 30vh;
}

.event-page-banner-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Map Container - Flexible height */
.event-page-map-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 0 1 auto;
    height: 300px; /* Fixed height for desktop */
    display: flex;
    /* ADDED: Smooth scaling */
    transition: height 0.3s ease;
}

.event-page-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Sign Up Box - Flexible sizing */
.event-page-signup-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    text-align: left;
    flex: 0 1 auto;
}

.event-page-signup-title {
    /* UPDATED: Fluid font size */
    font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.375rem); /* Was 22px */
    font-weight: 700 !important;
    margin-bottom: 6px;
    color: #000;
    text-align: left;
}

.event-page-signup-subtitle {
    /* UPDATED: Fluid font size */
    font-size: clamp(0.7rem, 0.65rem + 0.2vw, 0.75rem); /* Was 12px */
    color: #000;
    margin-bottom: 15px;
    text-align: left;
    font-weight: 400 !important;
}

/* Countdown - Compact */
.event-page-countdown {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap; /* This is great for responsiveness */
}

.event-page-countdown-item {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
    min-width: 60px;
    flex: 1;
}

.event-page-countdown-number {
    /* UPDATED: Fluid font size */
    font-size: clamp(1.5rem, 1.2rem + 1vw, 1.75rem); /* Was 28px */
    font-weight: 700 !important;
    color: #000;
    line-height: 1;
    margin-bottom: 4px;
}

.event-page-countdown-label {
    /* UPDATED: Fluid font size */
    font-size: clamp(0.5rem, 0.45rem + 0.2vw, 0.5625rem); /* Was 9px */
    color: #666;
    font-weight: 600 !important;
    text-transform: uppercase;
}

.event-page-signup-note {
    /* UPDATED: Fluid font size */
    font-size: clamp(0.65rem, 0.6rem + 0.2vw, 0.6875rem); /* Was 11px */
    color: #666;
    margin: 12px 0;
    text-align: left;
}

/* This class was in your CSS, so I converted its font-size */
.event-page-btn-signup-secondary {
    background-color: #7eb3ff;
    color: #000;
    border: none;
    padding: 10px 30px;
    /* UPDATED: Fluid font size */
    font-size: clamp(0.8rem, 0.75rem + 0.1vw, 0.8125rem); /* Was 13px */
    font-weight: 700 !important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(126, 179, 255, 0.3);
    width: 100%;
}

.event-page-btn-signup-secondary:hover {
    background-color: #6aa3ef;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(126, 179, 255, 0.4);
}

.event-page-signup-button {
    background-color: #c2deff !important;
    color: #000000 !important;
    border: none;
    border-radius: 20px;
    padding: 10px 40px;
    font-weight: bold !important;
    cursor: pointer;
    align-self: flex-start;
    font-family: "Phudu", sans-serif !important;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden !important; /* Preserved your important rule */
    text-decoration: none;
    margin-top: 20px;
    margin-bottom: 30px;
    transform: translateZ(0) !important; /* Preserved your important rule */
}

.event-page-signup-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: width 0.3s ease, height 0.3s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.event-page-signup-button:hover::before {
    width: 200px;
    height: 200px;
}

.event-page-signup-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-page-signup-button:active {
    transform: scale(0.98);
}

.event-page-info-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.event-page-info-title {
    font-weight: 400 !important;
}

.event-page-info-subtitle {
    font-weight: 400 !important;
}

.event-page-icon-wrapper {
    /* This rule was in your CSS but wasn't applying to the <img> */
    /* I moved the sizing to the <img> tag directly */
    color: #555;
}

.event-page-logo {
    width: 80px;
    height: 80px;
    gap: 10px;
    object-fit: contain;
    /* ADDED: Smooth scaling */
    transition: width 0.3s ease, height 0.3s ease;
}

/* Mentor item styles */
.event-page-logos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.event-page-mentor-item,
.event-page-volunteer-item,
.event-page-flexible-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.event-page-mentor-name,
.event-page-volunteer-name,
.event-page-item-caption {
    font-family: "Phudu", sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #0d2c54 !important;
    margin: 0 !important;
    max-width: 100px !important;
    word-wrap: break-word !important;
}

.event-page-section-description {
    font-family: 'Phudu', sans-serif !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: #555;
    margin-top: 12px;
}

.event-page-sponsors-section,
.event-page-organizer-section,
.event-page-mentor-section,
.event-page-volunteer-section,
.event-page-flexible-section,
.event-page-about-section {
    margin-top: 20px;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.event-page-about-content {
    max-width: 100%;
    overflow-x: auto;
}

.event-page-about-content-inner {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 400 !important;
    text-transform: none !important;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.event-page-about-content-inner img,
.event-page-about-content-inner iframe,
.event-page-about-content-inner video {
    max-width: 100% !important;
    height: auto !important;
}

.event-page-about-content-inner table {
    max-width: 100% !important;
    overflow-x: auto !important;
    display: block !important;
}

.event-page-about-content-inner pre {
    max-width: 100% !important;
    overflow-x: auto !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
}

.event-page-about-content-inner * {
    font-family: 'Roboto', sans-serif !important;
    text-transform: none !important;
}

.event-page-about-content-inner p,
.event-page-about-content-inner div,
.event-page-about-content-inner span,
.event-page-about-content-inner h1,
.event-page-about-content-inner h2,
.event-page-about-content-inner h3,
.event-page-about-content-inner h4,
.event-page-about-content-inner h5,
.event-page-about-content-inner h6 {
    font-family: 'Roboto', sans-serif !important;
    text-transform: none !important;
}

/* Allow bullet points and lists to display - override global flex styles */
.event-page-about-content-inner ul,
.event-page-about-content-inner ol {
    display: block !important;
    flex-direction: unset !important;
    justify-content: unset !important;
    align-items: unset !important;
    min-width: unset !important;
    flex-shrink: unset !important;
    gap: unset !important;
    list-style-position: inside;
    margin: 1em 0;
    padding-left: 1.5em;
}

.event-page-about-content-inner ul {
    list-style-type: disc;
}

.event-page-about-content-inner ol {
    list-style-type: decimal;
}

.event-page-about-content-inner li {
    display: list-item !important;
    margin: 0.5em 0;
}

/* === RESPONSIVE STYLES === */

@media (max-width: 768px) {
    .event-page-hero-section {
        padding: 60px 20px;
    }

    /* NEW: Stack the layout on mobile */
    .event-page-container {
        flex-direction: column;
        padding: 20px 15px;
        gap: 20px;
    }

    /* NEW: Make left/right sections full-width */
    .event-page-left-section,
    .event-page-right-section {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    /* NEW: Move right bar to top and remove sticky */
    .event-page-right-section {
        position: static;
        order: -1; /* This moves the signup box to the top */
        max-height: none; /* Remove height constraint */
    }

    /* NEW: Scale down icons */
    .event-page-icon-wrapper img {
        width: 40px;
        height: 40px;
    }

    /* NEW: Scale down logos */
    .event-page-logo {
        width: 60px;
        height: 60px;
    }

    /* NEW: Reduce map height on mobile */
    .event-page-map-container {
        height: 250px;
    }

    /* Ensure content doesn't overflow */
    .event-page-about-section,
    .event-page-sponsors-section,
    .event-page-organizer-section,
    .event-page-mentor-section,
    .event-page-volunteer-section,
    .event-page-flexible-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .event-page-info-block {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .event-page-container {
        padding: 15px 10px;
    }

    .event-page-hero-section {
        padding: 40px 15px;
    }

    .event-page-signup-box {
        padding: 15px;
    }
}

.follow-section {
    font-family: "Phudu", sans-serif;
    text-align: center;
}

.follow-upper{
    margin-bottom: 40px;
    /*background-color: #dad3cb;*/
}

/* Styling for the title */
.follow-title {
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: bold;
    color: #000000;
    margin-bottom: 2rem;
    padding: 10px;
}

.follow-title .title-blue {
    color: #6a6cff; /* A blue color similar to the image */
}

/* Container for the buttons */
.follow-buttons-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 30px;
}

/* Styling for each button */
.follow-button {
    background-color: #f8f8f8;
    border: 1px solid #f8f8f8;
    border-radius: 12px;
    padding: 1.5rem 3rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.follow-button:hover {
    background-color: #e9e9e9;
    transform: translateY(-2px);
}

/* Icon styling */
.follow-button .icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    filter: grayscale(100%);
    opacity: 0.7;
}
