/* =====================================================================
   NHEC 2026 Portal — Public website styles (index.php only)
   Requires base.css to be loaded first.
   ===================================================================== */

/* Navigation Header */
.nav-header {
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #b2c2be;
    letter-spacing: 1px;
}
.nav-links {
    display: flex;
    gap: 20px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-links a:hover { color: var(--primary-teal); }

/* ==================== FRONT PAGE COMPONENTS ==================== */
.hero-banner {
    background: linear-gradient(rgba(12, 56, 43, 0.82), rgba(12, 56, 43, 0.82)),
                url('https://i.ibb.co/3mby7WJj/image-734ec3.jpg') no-repeat center center/cover;
    height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}
.hero-banner h1 {
    font-size: 2.6rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    letter-spacing: 1px;
    max-width: 900px;
    line-height: 1.2;
}
.hero-banner p { font-size: 1rem; max-width: 700px; margin: 0 auto; opacity: 0.95; font-weight: 400; }

.section-container { padding: 60px 40px; background-color: var(--white); position: relative; overflow: hidden; }
.section-container.mint-bg { background-color: var(--background-mint); }
.section-tag { color: var(--primary-teal); font-size: 0.7rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; margin-bottom: 5px; }
.section-title { color: var(--dark-teal); font-size: 1.7rem; font-weight: 800; text-transform: uppercase; margin: 0 0 8px 0; }
.section-subtitle { color: #555; font-size: 0.85rem; margin-bottom: 35px; }

/* Crisp Single Line Slider Track Architecture */
.slider-wrapper { position: relative; width: 100%; overflow: hidden; padding: 10px 0; }

.slider-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 25px;
    transition: var(--transition);
    width: max-content;
    will-change: transform;
}

.slider-card {
    flex: 0 0 calc(50vw - 55px);
    max-width: 560px;
    position: relative;
    height: 300px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--white);
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 20px rgba(12, 56, 43, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}
.slider-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(12, 56, 43, 0.95) 0%, rgba(12, 56, 43, 0.4) 60%, transparent 100%);
    z-index: 1;
}
.slider-card-content { position: relative; z-index: 5; }
.card-date { color: var(--primary-teal); font-weight: 700; font-size: 1.1rem; margin-bottom: 5px; }
.card-title { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; margin: 0 0 8px 0; letter-spacing: 0.5px; line-height: 1.3; }
.card-desc { font-size: 0.85rem; opacity: 0.9; margin: 0; font-weight: 400; }

.arrow-indicator {
    position: absolute; top: 55%; transform: translateY(-50%);
    background-color: var(--primary-teal); color: var(--white);
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    font-weight: bold; cursor: pointer; z-index: 10; border-radius: 50%; border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: all 0.2s ease;
}
.arrow-left { left: 15px; }
.arrow-right { right: 15px; }
.arrow-indicator:hover { background-color: var(--dark-teal); scale: 1.05; }

.cta-strip { background-color: var(--dark-teal); color: var(--white); text-align: center; padding: 40px 20px; }
.cta-strip h2 { font-size: 1.5rem; font-weight: 400; margin: 0 0 15px 0; }
.btn-register-pill {
    background-color: var(--primary-teal); color: var(--white); border: none; padding: 10px 35px;
    border-radius: 20px; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease;
}
.btn-register-pill:hover { opacity: 0.9; scale: 1.02; }

/* Speakers Grid Layout */
.speaker-section { padding: 60px 40px; background-color: var(--white); }
.speaker-timeline { display: flex; flex-direction: column; gap: 40px; margin-top: 30px; }
.speaker-block-row { display: grid; grid-template-columns: 0.28fr 0.72fr; gap: 35px; border-bottom: 1px solid #eee; padding-bottom: 35px; }
.speaker-block-row:last-child { border-bottom: none; }
.speaker-meta-profile { text-align: center; }
.speaker-avatar { width: 115px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-teal); box-shadow: 0 4px 10px rgba(0,0,0,0.1); margin-bottom: 12px; }
.speaker-name { font-size: 1.05rem; color: var(--dark-teal); font-weight: 800; margin: 0; text-transform: uppercase; line-height: 1.3; }
.speaker-role { font-size: 0.7rem; color: #666; text-transform: uppercase; font-weight: 700; display: block; margin-top: 4px; line-height: 1.2; }
.speaker-details-panel h4 { font-size: 1.25rem; color: var(--text-dark); margin: 0 0 10px 0; font-weight: 700; }
.speaker-details-panel p { font-size: 0.88rem; color: #555; margin: 0 0 12px 0; }
.bullet-highlights { margin: 0; padding-left: 20px; font-size: 0.85rem; color: #444; }
.bullet-highlights li { margin-bottom: 6px; }

.contact-section {
    background: linear-gradient(rgba(12, 56, 43, 0.96), rgba(12, 56, 43, 0.96)),
                url('https://i.ibb.co/3mby7WJj/image-734ec3.jpg') no-repeat center center/cover;
    color: var(--white); padding: 80px 60px; display: grid; grid-template-columns: 0.40fr 0.60fr; gap: 60px; position: relative;
}
.watermark-bg { position: absolute; font-size: 6.5rem; font-weight: 900; color: rgba(255, 255, 255, 0.03); text-transform: uppercase; line-height: 1.1; pointer-events: none; left: 40px; bottom: 40px; }
.contact-info-panel h2 { font-size: 1.8rem; font-weight: 400; margin: 0 0 5px 0; }
.contact-info-panel p { font-size: 0.85rem; opacity: 0.7; margin-bottom: 40px; }
.contact-item { margin-bottom: 20px; font-size: 0.85rem; }
.contact-item strong { display: block; font-size: 0.95rem; margin-bottom: 5px; }

.embedded-form-box { border: 1px solid rgba(255, 255, 255, 0.2); padding: 40px; border-radius: 4px; background-color: rgba(12, 56, 43, 0.4); position: relative; z-index: 5; }
.embedded-form-box h3 { margin: 0 0 5px 0; font-size: 1.4rem; text-align: center; font-weight: 400; }
.embedded-form-box p { font-size: 0.8rem; opacity: 0.7; text-align: center; margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.input-line { width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.5); padding: 10px 0; color: var(--white); font-size: 0.9rem; box-sizing: border-box; }
.input-line:focus { outline: none; border-bottom-color: var(--primary-teal); }
.input-line::placeholder { color: rgba(255, 255, 255, 0.5); }
select.input-line { background-color: var(--dark-teal); color: white; }
select.input-line option { background-color: var(--dark-teal); color: white; }

/* Registration fee summary + payment note (inside .embedded-form-box) */
.fee-line {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 0; margin-bottom: 5px;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.fee-line strong { font-size: 1.15rem; color: var(--primary-teal); letter-spacing: 0; }
.embedded-form-box .pay-note {
    font-size: 0.72rem; opacity: 0.6; text-align: center; margin: 12px 0 0 0; line-height: 1.5;
}

@media (max-width: 992px) {
    .slider-card { flex: 0 0 calc(100vw - 80px); max-width: 100%; }
    .speaker-block-row, .contact-section { grid-template-columns: 1fr; }
    .watermark-bg { display: none; }
}

/* ==================== RESPONSIVE — PUBLIC WEBSITE ====================
   Card widths are kept in step with the section padding so a slide always
   spans exactly the content width: card = 100vw - (left + right padding).
   ==================================================================== */

@media (max-width: 768px) {
    /* Logo above centred, wrapping nav links */
    .nav-header { flex-direction: column; gap: 12px; padding: 15px 20px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 10px 18px; }

    /* Fixed 560px is too tall for a phone; grow with the text instead. */
    .hero-banner { height: auto; min-height: 430px; padding: 70px 20px; }
    .hero-banner h1 { font-size: 1.75rem; letter-spacing: 0.5px; }
    .hero-banner p { font-size: 0.9rem; }

    .section-container, .speaker-section { padding: 45px 20px; }
    .section-title { font-size: 1.35rem; }
    .section-subtitle { margin-bottom: 25px; }

    /* 20px padding each side -> card spans 100vw - 40px */
    .slider-row { gap: 15px; }
    .slider-card { flex: 0 0 calc(100vw - 40px); height: 265px; padding: 22px; }
    .card-title { font-size: 1.05rem; }

    .arrow-indicator { width: 36px; height: 36px; font-size: 0.8rem; }
    .arrow-left { left: 6px; }
    .arrow-right { right: 6px; }

    .speaker-timeline { gap: 28px; margin-top: 22px; }
    .speaker-block-row { gap: 20px; padding-bottom: 28px; }
    .speaker-details-panel h4 { font-size: 1.1rem; }

    .contact-section { padding: 45px 20px; gap: 35px; }
    .contact-info-panel h2 { font-size: 1.5rem; }
    .contact-info-panel p { margin-bottom: 26px; }

    .embedded-form-box { padding: 26px 20px; }
    .embedded-form-box h3 { font-size: 1.2rem; }
    .embedded-form-box p { margin-bottom: 22px; }
    /* Paired inputs stack — two fields side by side are unusable on a phone. */
    .form-row { grid-template-columns: 1fr; gap: 18px; margin-bottom: 18px; }
}

@media (max-width: 480px) {
    .nav-links { gap: 8px 14px; }
    .nav-links a { font-size: 0.7rem; }

    .hero-banner { min-height: 380px; padding: 60px 18px; }
    .hero-banner h1 { font-size: 1.45rem; }
    .hero-banner p { font-size: 0.85rem; }

    /* 16px padding each side -> card spans 100vw - 32px */
    .section-container, .speaker-section, .contact-section { padding: 38px 16px; }
    .slider-card { flex: 0 0 calc(100vw - 32px); height: 245px; padding: 18px; }
    .section-title { font-size: 1.2rem; }
    .section-subtitle { font-size: 0.8rem; }

    .speaker-avatar { width: 96px; height: 92px; }
    .embedded-form-box { padding: 22px 16px; }
}
