/* Self-contained styles for the university landing page module.
   Not part of the Tailwind build, so all classes are prefixed "ul-"
   to avoid clashing with the main site's compiled CSS. */

/* This stylesheet is only ever loaded on the university landing page,
   so the global html rule below is safe from bleeding into other pages. */
html {
    scroll-behavior: smooth;
}

.ul-page {
    font-family: 'Inter', sans-serif;
    color: #292C35;
    background: #ffffff;
}

.ul-container {
    max-width: 84rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Header ---------- */
.ul-header {
    background: #0B1019;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ul-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.85rem 0;
}

.ul-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.ul-brand-badge {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #F59E0B, #EA580C);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.ul-brand-logo {
    height: 2.25rem;
    max-width: 8rem;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.ul-brand-name {
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: #ffffff;
}

.ul-header-actions {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-shrink: 0;
}

.ul-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: opacity 0.2s ease;
}

.ul-btn:hover {
    opacity: 0.85;
}

.ul-btn-outline {
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    background: transparent;
}

.ul-btn-dark {
    background: #101828;
    color: #fff;
}

.ul-btn-outline-dark {
    border-color: #D1D5DB;
    color: #101828;
    background: #fff;
}

.ul-btn-accent {
    background: linear-gradient(135deg, #F59E0B, #EA580C);
    color: #fff;
}

.ul-btn-primary {
    background: #1D4ED8;
    color: #fff;
}

.ul-btn-link {
    color: #101828;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ---------- Hero ---------- */
.ul-hero {
    padding: 4rem 0;
    background: #ffffff;
}

.ul-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2.5rem;
}

.ul-hero-text {
    flex: 1 1 22rem;
}

.ul-hero-text h1 {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 1rem;
    color: #101828;
}

.ul-hero-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4B5563;
    margin: 0 0 1.5rem;
    max-width: 32rem;
}

.ul-hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ul-hero-visual {
    flex: 1 1 22rem;
    max-width: 30rem;
}

.ul-hero-media {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- Hero video/image carousel ---------- */
.ul-hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 1.5rem;
}

.ul-carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.ul-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease-in-out;
    background: #0B1019;
}

.ul-carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.ul-carousel-slide-image {
    background: #ffffff;
}

.ul-carousel-slide .ul-hero-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 1.5rem;
}

.ul-carousel-bottom-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5rem;
    border-radius: 0 0 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    pointer-events: none;
    z-index: 1;
}

.ul-carousel-mute-toggle {
    position: absolute;
    bottom: 0.875rem;
    right: 0.875rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 1.125rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: opacity 0.7s ease-in-out, background 0.2s ease-in-out;
}

.ul-carousel-mute-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
}

.ul-carousel-mute-toggle.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.ul-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}

.ul-carousel-dot {
    height: 0.625rem;
    width: 0.625rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    padding: 0;
    cursor: pointer;
    transition: width 0.2s ease-in-out, background 0.2s ease-in-out;
}

.ul-carousel-dot.is-active {
    width: 1.5rem;
    background: #ffffff;
}

/* ---------- Stats ---------- */
.ul-stats {
    padding: 0.5rem 0 3rem;
}

.ul-stats-band {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #E6E6E9;
    border-radius: 0.75rem;
    overflow: hidden;
}

.ul-stat-card {
    padding: 1.25rem 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-right: 1px solid #E6E6E9;
    border-bottom: 1px solid #E6E6E9;
}

.ul-stat-card:last-child {
    border-right: none;
}

.ul-stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ul-stat-value {
    font-weight: 700;
    font-size: 1.15rem;
    color: #101828;
    display: block;
}

.ul-stat-label {
    font-size: 0.8rem;
    color: #4B5563;
}

/* ---------- Section heading ---------- */
.ul-section {
    padding: 2.5rem 0;
    border-top: 1px solid #F0F2F5;
    scroll-margin-top: 4.5rem;
}

.ul-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ul-section-heading h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #101828;
    margin: 0;
}

.ul-section-heading p {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0.25rem 0 0;
}

.ul-see-all {
    font-size: 0.85rem;
    color: #1D4ED8;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.ul-boxed-heading {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 700;
    color: #101828;
    margin: 0;
    padding: 0.85rem 1.5rem;
    border: 1px solid #101828;
    border-radius: 0.375rem;
}

/* ---------- Tracks ---------- */
.ul-tracks-carousel-wrap {
    position: relative;
}

.ul-tracks-swiper {
    padding: 0.25rem 0.1rem 0.5rem;
    overflow: hidden;
}

.ul-track-card {
    border: 1px solid #E6E6E9;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 4px rgba(16, 24, 40, 0.04);
}

.ul-track-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0.9rem 0.9rem 0;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #C026D3;
}

.ul-track-image {
    width: calc(100% - 1.8rem);
    margin: 0.6rem 0.9rem 0;
    height: 8rem;
    object-fit: cover;
    border-radius: 0.6rem;
    display: block;
}

.ul-track-card-body {
    padding: 0.85rem 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ul-track-card-body h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: #101828;
}

.ul-track-desc {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #6B7280;
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ul-track-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.ul-tag-chip {
    font-size: 0.65rem;
    font-weight: 500;
    border-radius: 9999px;
    padding: 0.2rem 0.6rem;
    white-space: nowrap;
}

.ul-tag-chip-green {
    color: #16A34A;
    background: #DCFCE7;
}

.ul-tag-chip-purple {
    color: #7C3AED;
    background: #F3E8FF;
}

.ul-track-cta {
    margin-top: auto;
    width: 100%;
}

.ul-tracks-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 1px solid #E6E6E9;
    background: #fff;
    color: #101828;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(16, 24, 40, 0.08);
    z-index: 2;
}

.ul-tracks-prev {
    left: -0.9rem;
}

.ul-tracks-next {
    right: -0.9rem;
}

/* ---------- Key dates / coordinator / ambassador row ---------- */
.ul-triple-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ul-panel {
    border: 1px solid #E6E6E9;
    border-radius: 0.75rem;
    padding: 1.25rem;
    background: #fff;
}

.ul-panel h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #101828;
}

.ul-date-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.ul-date-item:last-child {
    margin-bottom: 0;
}

.ul-date-badge {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.5rem;
    background: #EDF3FF;
    color: #1D4ED8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.ul-date-badge .day {
    font-weight: 700;
    font-size: 0.9rem;
}

.ul-date-badge .month {
    font-size: 0.6rem;
    text-transform: uppercase;
}

.ul-date-label {
    font-size: 0.85rem;
    color: #374151;
}

.ul-person-card {
    text-align: left;
}

.ul-person-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ul-person-photo {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
    background: #EDF3FF;
}

.ul-person-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #101828;
}

.ul-person-title {
    font-size: 0.75rem;
    color: #6B7280;
}

.ul-person-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    color: #4338CA;
    background: #EEF2FF;
    border-radius: 9999px;
    padding: 0.2rem 0.65rem;
    margin-bottom: 0.75rem;
}

.ul-person-blurb {
    font-size: 0.8rem;
    color: #4B5563;
    line-height: 1.55;
    margin: 0 0 1rem;
}

.ul-person-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ul-person-actions .ul-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
}

.ul-person-apply {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid #F0F2F5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6B7280;
}

.ul-person-apply a {
    color: #1D4ED8;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

/* ---------- Campus ambassador recruitment ad (phase-1) ---------- */
.ul-ambassador-ad {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #FFF7ED 0%, #ffffff 60%);
}

.ul-ambassador-ad-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: #FFEDD5;
    color: #EA580C;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
}

.ul-ambassador-ad h3 {
    margin-bottom: 0.5rem;
}

.ul-ambassador-ad p {
    font-size: 0.8rem;
    color: #4B5563;
    line-height: 1.55;
    margin: 0 0 1.1rem;
}

.ul-ambassador-ad-cta {
    padding: 0.55rem 1.4rem;
}

/* ---------- Footer ---------- */
.ul-footer {
    background: #0B1019;
    color: #9CA3AF;
    padding: 2.5rem 0 1.5rem;
    margin-top: 2rem;
}

.ul-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.ul-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.ul-footer-tagline {
    font-size: 0.8rem;
    margin-top: 0.75rem;
    max-width: 20rem;
    line-height: 1.6;
}

.ul-footer-col h4 {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.9rem;
}

.ul-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ul-footer-links li {
    margin-bottom: 0.6rem;
}

.ul-footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.85rem;
}

.ul-footer-links a:hover {
    color: #fff;
}

.ul-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ul-footer-bottom a {
    color: inherit;
    text-decoration: none;
}

.ul-footer-bottom a:hover {
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
.ul-stat-card {
    flex-basis: 50%;
}

.ul-stat-card:nth-child(even) {
    border-right: none;
}

.ul-stat-card:nth-last-child(-n+2) {
    border-bottom: none;
}

@media (min-width: 767px) {
    .ul-stat-card {
        flex-basis: 16.6666%;
        border-bottom: none !important;
    }

    .ul-stat-card:nth-child(even) {
        border-right: 1px solid #E6E6E9;
    }

    .ul-stat-card:last-child {
        border-right: none;
    }
}

@media (max-width: 991px) {
    .ul-triple-row {
        grid-template-columns: 1fr;
    }

    .ul-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575px) {
    .ul-header-actions {
        gap: 0.6rem;
    }

    .ul-footer-grid {
        grid-template-columns: 1fr;
    }

    .ul-hero-text h1 {
        font-size: 1.6rem;
    }
}

.ul-hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.embed-page-btn {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}


/* Embed Modal */

.embed-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;

    background: rgba(0, 0, 0, 0.55);

    align-items: center;
    justify-content: center;
}

.embed-modal.active {
    display: flex;
}

.embed-modal-content {
    position: relative;

    width: 600px;
    max-width: calc(100% - 40px);

    background: #fff;

    padding: 30px;

    border-radius: 16px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.embed-modal-content h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.embed-modal-content p {
    margin: 0 0 20px;
    color: #666;
}

.embed-close {
    position: absolute;
    top: 12px;
    right: 18px;

    border: 0;
    background: transparent;

    font-size: 30px;
    cursor: pointer;

    color: #666;
}

#embedCode {
    width: 100%;
    height: 140px;

    box-sizing: border-box;

    padding: 15px;

    border: 1px solid #ddd;
    border-radius: 10px;

    background: #f7f7f7;

    font-family: monospace;
    font-size: 13px;

    resize: none;
}

.copy-embed-btn {
    margin-top: 12px;

    padding: 10px 20px;

    border: 0;
    border-radius: 8px;

    background: #2454d8;
    color: #fff;

    cursor: pointer;
}

.ul-hero-main-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Embed section */
.ul-embed-section {
    margin-top: 22px;
    max-width: 600px;
}

/* Attractive embed button */
.embed-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: 1px solid #dbe3f0;
    border-radius: 10px;
    background: #ffffff;
    color: #14213d;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.embed-page-btn:hover {
    border-color: #2455d6;
    box-shadow: 0 6px 18px rgba(36, 85, 214, 0.12);
    transform: translateY(-1px);
}

/* Code icon */
.embed-page-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef3ff;
    color: #2455d6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

/* Button text */
.embed-page-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.embed-page-content strong {
    font-size: 14px;
    font-weight: 700;
}

.embed-page-content small {
    margin-top: 3px;
    color: #667085;
    font-size: 11px;
}

/* Arrow */
.embed-page-arrow {
    margin-left: 8px;
    color: #2455d6;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.embed-page-btn:hover .embed-page-arrow {
    transform: translateX(3px);
}

/* Explanation */
.embed-page-note {
    margin-top: 12px;
    padding: 13px 16px;
    border-left: 3px solid #2455d6;
    background: #f7f9fc;
    border-radius: 0 8px 8px 0;
    color: #526071;
    font-size: 13px;
    line-height: 1.6;
}

.embed-page-note strong {
    color: #14213d;
}

.embed-note-instruction {
    display: block;
    margin-top: 6px;
    color: #2455d6;
    font-weight: 600;
}

.ul-hero-actions {
    display: block;
}

.ul-hero-main-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.ul-embed-section {
    display: block;
    width: 100%;
    margin-top: 22px;
}