/* =========================================================
   CAMPUS LIFE PAGE
   Works on top of the shared style.css
   (navbar, footer, theme and tokens come from there)
========================================================= */

:root {
    --primary-soft: var(--tint-blue);
    --surface-2: var(--surface-soft);
}

/* Original page styles assumed no default margins */
main h1, main h2, main h3, main p { margin: 0; }

[hidden] { display: none !important; }


/* UNIVERSITY INTRO */

.university-section {
    max-width: 1400px;
    margin: auto;
    padding: 70px 6% 30px;
}

.section-heading { max-width: 700px; }

.eyebrow,
.section-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.eyebrow svg,
.section-label svg { width: 15px; }

.section-heading h1 {
    margin: 15px 0;
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -3px;
}

.section-heading p {
    max-width: 620px;
    color: var(--muted);
    font-size: 17px;
}


/* UNIVERSITY SELECTOR */

.university-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 45px;
}

.university-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans), background-color var(--trans);
}

.university-tab:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.university-tab.active {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.uni-logo {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.uni-logo.hawassa { background: #287a52; }

.uni-logo.more {
    background: var(--surface-2);
    color: var(--ink-blue);
    font-size: 25px;
}

.university-tab strong,
.university-tab small { display: block; }

.university-tab strong { font-size: 13px; }

.university-tab small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.coming-soon { opacity: 0.75; }


/* HERO */

.campus-hero {
    position: relative;
    width: 88%;
    max-width: 1400px;
    min-height: 570px;
    margin: 20px auto 100px;
    padding: 80px 7%;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 38px;
    background: linear-gradient(125deg, #eaf2ff 0%, #f5f8ff 55%, #eef1ff 100%);
}

:root[data-theme="dark"] .campus-hero {
    background: linear-gradient(125deg, #1c2d59 0%, #19284f 55%, #202b55 100%);
}

.campus-hero-content {
    position: relative;
    z-index: 5;
    width: 52%;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.hero-label svg { width: 17px; }

.campus-hero-content h2 {
    max-width: 680px;
    margin: 18px 0;
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -3px;
}

.campus-hero-content p {
    max-width: 570px;
    color: var(--muted);
    font-size: 17px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 19px;
    border-radius: 13px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color var(--trans), transform var(--trans);
}

.primary-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.primary-button svg { width: 16px; }


/* HERO FLOATING PHOTOS */

.floating-campus {
    position: absolute;
    right: 5%;
    width: 46%;
    height: 100%;
}

.campus-photo {
    position: absolute;
    overflow: hidden;
    border: 7px solid rgba(255, 255, 255, 0.85);
    border-radius: 26px;
    background: #dce7f7;
    box-shadow: 0 30px 70px rgba(18, 56, 110, 0.2);
}

.campus-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-one {
    width: 330px; height: 400px;
    right: 30px; top: 80px;
    z-index: 3;
    transform: rotate(5deg);
    animation: floatOne 5s ease-in-out infinite;
}

.photo-two {
    width: 230px; height: 290px;
    right: 290px; top: 125px;
    z-index: 2;
    transform: rotate(-9deg);
    animation: floatTwo 6s ease-in-out infinite;
}

.photo-three {
    width: 210px; height: 260px;
    right: 100px; top: 330px;
    z-index: 4;
    transform: rotate(-4deg);
    animation: floatThree 5.5s ease-in-out infinite;
}

@keyframes floatOne {
    0%, 100% { transform: rotate(5deg) translateY(0); }
    50% { transform: rotate(5deg) translateY(-12px); }
}

@keyframes floatTwo {
    0%, 100% { transform: rotate(-9deg) translateY(0); }
    50% { transform: rotate(-9deg) translateY(14px); }
}

@keyframes floatThree {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(-4deg) translateY(-10px); }
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
}

.orb-one {
    width: 100px; height: 100px;
    right: 20px; top: 35px;
    background: rgba(28, 105, 210, 0.15);
}

.orb-two {
    width: 70px; height: 70px;
    right: 380px; bottom: 55px;
    background: rgba(111, 84, 255, 0.16);
}


/* GENERAL SECTIONS */

.quick-section,
.content-section,
.community-section,
.living-section,
.sports-section,
.coming-section {
    width: 88%;
    max-width: 1200px;
    margin: 0 auto 120px;
}

.section-title { margin-bottom: 35px; }

.section-title span {
    color: var(--ink-blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.section-title h2,
.section-heading-row h2 {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}


/* QUICK ACCESS */

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-card {
    position: relative;
    min-height: 190px;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    text-decoration: none;
    transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
}

.quick-card:hover {
    transform: translateY(-7px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.quick-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--ink-blue);
}

.quick-icon svg { width: 21px; }

.quick-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

.quick-card p {
    max-width: 220px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.corner-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 17px;
    color: var(--muted);
    transition: transform var(--trans), color var(--trans);
}

.quick-card:hover .corner-icon {
    transform: translate(3px, -3px);
    color: var(--ink-blue);
}


/* EVENTS */

.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-blue);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.view-all svg { width: 16px; }

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
}

.event-card {
    display: flex;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.event-card-featured { grid-column: span 2; }

.event-date {
    min-width: 65px;
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--primary-soft);
    color: var(--ink-blue);
    line-height: 1;
}

.event-date strong { font-size: 25px; }

.event-date span {
    margin-top: 6px;
    font-size: 10px;
    font-weight: 800;
}

.event-info { flex: 1; }

.event-type {
    color: var(--ink-blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.event-info h3 {
    margin: 5px 0 8px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

.event-info p {
    color: var(--muted);
    font-size: 13px;
}

.event-note { margin-top: 8px !important; }

.event-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
}

.event-details div {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
}

.event-details svg {
    width: 15px;
    flex-shrink: 0;
    color: var(--ink-blue);
}

.event-closing {
    display: block;
    margin-top: 15px;
    color: var(--text);
    font-size: 12px;
}

/* Shown when a university has no events listed */
.events-empty {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 30px;
    border: 1px dashed var(--border);
    border-radius: 22px;
    background: var(--surface);
}

.events-empty > svg {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    color: var(--ink-blue);
}

.events-empty > div { flex: 1; }

.events-empty h3 {
    font-family: var(--font-display);
    font-size: 20px;
}

.events-empty p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}


/* COMMUNITY / SPORTS GALLERIES */

.community-section,
.living-section,
.sports-section {
    display: grid;
    gap: 70px;
    align-items: center;
}

.community-section { grid-template-columns: 0.9fr 1.1fr; }
.living-section { grid-template-columns: 1fr 1fr; }
.sports-section { grid-template-columns: 0.8fr 1.2fr; }

.community-text h2,
.sports-content h2,
.living-content h2,
.coming-content h2 {
    margin: 14px 0;
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.08;
}

.community-text p,
.sports-content p {
    color: var(--muted);
    font-size: 16px;
}

.sports-gallery {
    position: relative;
    min-height: 390px;
}

.sports-image {
    position: absolute;
    overflow: hidden;
    border: 6px solid var(--surface);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.sports-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sports-image-one {
    width: 240px; height: 300px;
    left: 20px; top: 20px;
    z-index: 2;
    transform: rotate(-7deg);
}

.sports-image-two {
    width: 230px; height: 290px;
    right: 20px; top: 0;
    z-index: 3;
    transform: rotate(7deg);
}

.sports-image-three {
    width: 240px; height: 190px;
    left: 150px; bottom: 0;
    z-index: 4;
    transform: rotate(-2deg);
}

.sports-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.sports-orb-one {
    width: 80px; height: 80px;
    right: 10px; bottom: 40px;
    background: rgba(28, 105, 210, 0.13);
}

.sports-orb-two {
    width: 55px; height: 55px;
    left: 0; top: 10px;
    background: rgba(111, 84, 255, 0.12);
}


/* LIVING / ACCOMMODATION */

.living-image {
    position: relative;
    height: 520px;
    overflow: hidden;
    border-radius: 30px;
    background: var(--surface-2);
}

.living-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-size: 12px;
    font-weight: 800;
}

.image-badge svg { width: 16px; }

.living-content > p {
    color: var(--muted);
    font-size: 15px;
}

.living-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.living-list > div {
    display: flex;
    gap: 14px;
}

.living-list > div > svg {
    width: 22px;
    min-width: 22px;
    margin-top: 2px;
    color: var(--ink-blue);
}

.living-list strong,
.living-list small { display: block; }

.living-list strong { font-size: 14px; }

.living-list small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}


/* TELEGRAM SECTION */

.telegram-section {
    display: flex;
    align-items: center;
    gap: 25px;
    width: 88%;
    max-width: 1200px;
    margin: 0 auto 120px;
    padding: 35px 40px;
    border-radius: 25px;
    background: var(--primary-soft);
}

.telegram-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: var(--primary);
    color: #fff;
}

.telegram-icon svg { width: 25px; }

.telegram-section > div:nth-child(2) { flex: 1; }

.telegram-section h2 {
    margin: 4px 0;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.telegram-section p {
    color: var(--muted);
    font-size: 13px;
}

.telegram-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--trans), transform var(--trans);
}

.telegram-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.telegram-button svg { width: 16px; }


/* COMING SOON */

.coming-section {
    position: relative;
    overflow: hidden;
    padding: 80px 60px;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: var(--surface-2);
    text-align: center;
}

.coming-glow {
    position: absolute;
    top: -100px;
    right: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(28, 105, 210, 0.1);
}

.coming-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: auto;
}

.coming-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 18px;
    background: var(--primary-soft);
    color: var(--ink-blue);
}

.coming-icon svg { width: 28px; }

.coming-content .section-label { justify-content: center; }

.coming-content p {
    color: var(--muted);
    font-size: 15px;
}

.coming-universities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.coming-universities span {
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
}


/* TOAST */

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 3000;
    max-width: calc(100% - 32px);
    padding: 13px 20px;
    border-radius: 12px;
    background: var(--text);
    color: var(--bg);
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity var(--trans), transform var(--trans);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}


/* RESPONSIVE */

@media (max-width: 1100px) {
    .campus-hero { padding: 70px 5%; }
    .floating-campus { right: 2%; }

    .photo-one { width: 270px; height: 340px; }
    .photo-two { width: 190px; height: 240px; right: 230px; }
    .photo-three { width: 180px; height: 220px; }

    .quick-grid,
    .events-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 850px) {
    .campus-hero {
        display: block;
        min-height: auto;
        padding: 60px 8%;
        margin-bottom: 80px;
    }

    .campus-hero-content { width: 100%; }

    .floating-campus {
        position: relative;
        right: auto;
        width: 100%;
        height: 400px;
        margin-top: 40px;
    }

    .photo-one { right: 5%; }
    .photo-two { left: 5%; right: auto; }
    .photo-three { right: 15%; top: 260px; }

    .community-section,
    .living-section,
    .sports-section {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .sports-gallery { min-height: 420px; }
    .living-image { height: 450px; }

    .telegram-section { flex-wrap: wrap; }
    .telegram-section > div:nth-child(2) { min-width: 60%; }
}

@media (max-width: 650px) {
    .university-section { padding: 50px 6% 25px; }

    .section-heading h1 {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .section-heading p { font-size: 15px; }

    .university-selector {
        flex-direction: column;
        margin-top: 30px;
    }

    .university-tab { width: 100%; }

    .campus-hero {
        width: 92%;
        padding: 45px 7%;
        border-radius: 25px;
    }

    .campus-hero-content h2 {
        font-size: 42px;
        letter-spacing: -2px;
    }

    .campus-hero-content p { font-size: 15px; }

    .floating-campus { height: 340px; }

    .photo-one { width: 200px; height: 270px; right: 0; top: 25px; }
    .photo-two { width: 155px; height: 210px; left: 0; top: 45px; }
    .photo-three { width: 145px; height: 175px; right: 10%; top: 200px; }

    .quick-section,
    .content-section,
    .community-section,
    .living-section,
    .sports-section,
    .coming-section,
    .telegram-section {
        width: 90%;
        margin-bottom: 80px;
    }

    .quick-grid,
    .events-grid { grid-template-columns: 1fr; }

    .event-card-featured { grid-column: span 1; }

    .section-heading-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-heading-row h2,
    .section-title h2 { font-size: 30px; }

    .event-card {
        flex-direction: column;
        padding: 20px;
    }

    .events-empty {
        flex-direction: column;
        align-items: flex-start;
    }

    .community-text h2,
    .living-content h2,
    .sports-content h2,
    .coming-content h2 { font-size: 34px; }

    .sports-gallery { min-height: 360px; }
    .sports-image-one { width: 190px; height: 240px; }
    .sports-image-two { width: 180px; height: 225px; }
    .sports-image-three { width: 190px; height: 150px; left: 90px; }

    .living-image { height: 350px; }

    .telegram-section {
        align-items: flex-start;
        padding: 25px;
    }

    .telegram-icon { width: 50px; height: 50px; min-width: 50px; }
    .telegram-section > div:nth-child(2) { min-width: 0; }
    .telegram-section h2 { font-size: 23px; }
    .telegram-button { width: 100%; justify-content: center; }

    .coming-section { padding: 55px 25px; }
}

@media (max-width: 400px) {
    .campus-hero-content h2 { font-size: 36px; }

    .photo-one { width: 175px; height: 230px; }
    .photo-two { width: 130px; height: 180px; }
    .photo-three { width: 125px; height: 155px; top: 190px; }
}

@media (prefers-reduced-motion: reduce) {
    .campus-photo { animation: none; }
}