﻿
/* =========================================
   GLOBAL STYLES
========================================= */

:root {
    --primary: #eb145d;
    --primary-dark: #c70c4a;
    --navy: #17233d;
    --text: #5f6878;
    --light-bg: #f7f8fc;
    --white: #ffffff;
    --border: #e9eaf1;
    --shadow: 0 12px 35px rgba(23, 35, 61, 0.09);
    --transition: all 0.35s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.75;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

.section-padding {
    padding: 85px 0;
}

.section-heading {
    max-width: 850px;
    margin: 0 auto;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-heading h1,
.section-title {
    color: var(--navy);
    font-weight: 800;
    line-height: 1.3;
}

.section-heading h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.section-heading h1 span,
.section-title span {
    color: var(--primary);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.7rem);
    margin-bottom: 18px;
}

.section-location {
    margin-bottom: 12px;
    color: var(--text);
}

.section-location i {
    color: var(--primary);
}

.heading-line {
    width: 75px;
    height: 4px;
    margin: 20px auto;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--primary), #ff8eb2);
}

.section-heading > p {
    margin-bottom: 0;
}


/* =========================================
   WELCOME SECTION
========================================= */

.welcome-section {
    background:
        radial-gradient(circle at 0% 0%,
        rgba(235, 20, 93, 0.06), transparent 35%),
        #ffffff;
}

.welcome-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
    background: #f1f2f7;
}

.welcome-image {
    width: 100%;
    height: 470px;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.welcome-image-wrapper:hover .welcome-image {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 14px 18px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    background: rgba(23, 35, 61, 0.88);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    backdrop-filter: blur(8px);
}

.image-caption i {
    color: #ff76a4;
    margin-right: 8px;
}


/* Vision and Mission */

.info-card {
    display: flex;
    gap: 20px;
    padding: 26px;
    margin-bottom: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(23, 35, 61, 0.05);
    transition: var(--transition);
}

.info-card:last-child {
    margin-bottom: 0;
}

.info-card:hover {
    transform: translateY(-6px);
    border-color: rgba(235, 20, 93, 0.3);
    box-shadow: var(--shadow);
}

.info-icon {
    flex: 0 0 66px;
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff0f5;
    border-radius: 15px;
}

.info-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.info-content {
    min-width: 0;
}

.info-content h3 {
    color: var(--navy);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 10px;
}

.info-content h3::after {
    content: "";
    position: absolute;
    width: 42px;
    height: 3px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 10px;
}

.info-content p {
    font-size: 0.94rem;
    margin-bottom: 12px;
}


/* =========================================
   WHY CHOOSE US
========================================= */

.why-section {
    background: var(--light-bg);
}

.institute-name {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 18px;
}

.section-description {
    margin-bottom: 25px;
}

.benefit-list {
    display: grid;
    gap: 18px;
}

.benefit-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.benefit-item > span {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: #ffe8f0;
    border-radius: 14px;
    font-size: 1.35rem;
    transition: var(--transition);
}

.benefit-item:hover > span {
    color: var(--white);
    background: var(--primary);
    transform: rotate(-5deg) scale(1.06);
}

.benefit-item h6 {
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 2px;
}

.benefit-item p {
    margin: 0;
    font-size: 0.91rem;
}

.why-image-wrapper {
    position: relative;
    padding: 0 0 35px 30px;
}

.why-image-wrapper::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 10px;
    width: 65%;
    height: 70%;
    background: #ffd9e5;
    border-radius: 25px;
}

.why-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.image-floating-card {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 18px 22px;
    max-width: calc(100% - 25px);
    color: var(--navy);
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    animation: floating 3s ease-in-out infinite;
}

.image-floating-card > i {
    font-size: 2rem;
    color: var(--primary);
}

.image-floating-card strong,
.image-floating-card small {
    display: block;
}

.image-floating-card strong {
    font-size: 1rem;
}

.image-floating-card small {
    font-size: 0.78rem;
    color: var(--text);
}


/* =========================================
   CAMPUS FEATURES
========================================= */

.campus-section {
    background: var(--white);
}

.campus-card {
    height: 100%;
    min-height: 225px;
    padding: 30px 24px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 5px 22px rgba(23, 35, 61, 0.04);
    transition: var(--transition);
}

.campus-card:hover {
    transform: translateY(-9px);
    border-color: rgba(235, 20, 93, 0.3);
    box-shadow: var(--shadow);
}

.campus-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    color: var(--primary);
    background: #fff0f5;
    border-radius: 20px;
    font-size: 1.8rem;
    transition: var(--transition);
}

.campus-card:hover .campus-icon {
    color: var(--white);
    background: var(--primary);
    transform: rotateY(180deg);
}

.campus-card h5 {
    color: var(--navy);
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.campus-card p {
    font-size: 0.92rem;
    margin: 0;
}


/* =========================================
   NEWS AND NOTICE
========================================= */

.news-section {
    background: var(--light-bg);
}

.news-intro {
    padding: 32px;
    background: linear-gradient(145deg, #17233d, #263e65);
    color: var(--white);
    border-radius: 22px;
    height: 100%;
}

.news-intro-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--primary);
    border-radius: 20px;
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.news-intro h3 {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.news-intro p {
    color: #e2e8f2;
}

.news-tip {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding-top: 20px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f2;
    font-size: 0.9rem;
}

.news-tip i {
    color: #ff82ac;
    margin-top: 5px;
}

.notice-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.notice-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    color: var(--white);
    background: var(--navy);
    font-weight: 800;
}

.notice-panel-header i {
    color: #ff8db3;
    margin-right: 8px;
}

.live-dot {
    font-size: 0.7rem;
    letter-spacing: 1px;
    padding: 5px 10px;
    background: var(--primary);
    border-radius: 30px;
}

.notice-list {
    padding: 5px 22px;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f0f0f0;
}

.notice-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 18px 0;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.notice-number {
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    background: #fff0f5;
    color: var(--primary);
    border-radius: 13px;
    font-size: 1.1rem;
}

.notice-text {
    flex: 1;
    min-width: 0;
}

.notice-text h6 {
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 3px;
}

.notice-text p {
    margin: 0;
    font-size: 0.85rem;
}

.notice-arrow {
    font-size: 0.9rem;
    color: var(--primary);
}


/* =========================================
   LEADERSHIP
========================================= */

.leadership-section {
    background:
        radial-gradient(circle at 100% 0%,
        rgba(235, 20, 93, 0.06), transparent 35%),
        var(--white);
}

.leader-card {
    height: 100%;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 8px 30px rgba(23, 35, 61, 0.07);
    transition: var(--transition);
}

.leader-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 45px rgba(23, 35, 61, 0.13);
}

.leader-image-wrapper {
    height: 350px;
    position: relative;
    overflow: hidden;
    background: #f0f1f6;
}

.leader-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}

.leader-card:hover .leader-image {
    transform: scale(1.06);
}

.leader-image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(235, 20, 93, 0.0);
    opacity: 0;
    transition: var(--transition);
}

.leader-image-overlay i {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--primary);
    border-radius: 50%;
    font-size: 1.4rem;
}

.leader-card:hover .leader-image-overlay {
    background: rgba(23, 35, 61, 0.25);
    opacity: 1;
}

.leader-info {
    padding: 28px 22px;
    text-align: center;
}

.leader-role {
    display: inline-block;
    color: var(--primary);
    background: #fff0f5;
    border-radius: 30px;
    padding: 6px 15px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.leader-info h4 {
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.leader-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
}


/* =========================================
   BOTTOM STRIP
========================================= */

.welcome-bottom-strip {
    padding: 22px 0;
    background: var(--navy);
    color: #e6eaf2;
    font-size: 0.9rem;
}

.welcome-bottom-strip i {
    color: #ff75a1;
    margin-right: 7px;
}


/* =========================================
   SCROLL REVEAL ANIMATIONS
========================================= */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
}

.reveal.reveal-left {
    transform: translateX(-45px);
}

.reveal.reveal-right {
    transform: translateX(45px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.campus-card:nth-child(2),
.notice-item:nth-child(2) {
    transition-delay: 0.05s;
}


/* Floating animation */

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


/* =========================================
   TABLETS
========================================= */

@media (max-width: 991.98px) {
    .section-padding {
        padding: 65px 0;
    }

    .welcome-image {
        height: 400px;
    }

    .why-image {
        height: 380px;
    }

    .news-intro {
        padding: 25px;
    }

    .leader-image-wrapper {
        height: 310px;
    }
}


/* =========================================
   MOBILE DEVICES
========================================= */

@media (max-width: 575.98px) {
    .section-padding {
        padding: 48px 0;
    }

    .section-subtitle {
        font-size: 0.7rem;
        letter-spacing: 1.2px;
    }

    .welcome-image {
        height: 270px;
    }

    .image-caption {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .info-card {
        padding: 20px 16px;
        gap: 13px;
        border-radius: 15px;
    }

    .info-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .info-icon img {
        width: 32px;
        height: 32px;
    }

    .info-content h3 {
        font-size: 1.15rem;
    }

    .info-content p {
        font-size: 0.89rem;
    }

    .why-image-wrapper {
        padding-left: 15px;
    }

    .why-image {
        height: 280px;
        border-radius: 17px;
    }

    .image-floating-card {
        left: 0;
        padding: 12px 14px;
        gap: 10px;
    }

    .image-floating-card > i {
        font-size: 1.5rem;
    }

    .image-floating-card strong {
        font-size: 0.88rem;
    }

    .image-floating-card small {
        font-size: 0.7rem;
    }

    .campus-card {
        min-height: 200px;
        padding: 24px 14px;
    }

    .campus-card h5 {
        font-size: 0.98rem;
    }

    .campus-card p {
        font-size: 0.85rem;
    }

    .news-intro {
        padding: 23px;
        border-radius: 17px;
    }

    .notice-panel-header {
        padding: 16px;
    }

    .notice-list {
        padding: 5px 14px;
        max-height: 430px;
    }

    .notice-item {
        gap: 10px;
        padding: 15px 0;
    }

    .notice-number {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .notice-text h6 {
        font-size: 0.88rem;
    }

    .notice-text p {
        font-size: 0.76rem;
    }

    .notice-arrow {
        font-size: 0.75rem;
    }

    .leader-image-wrapper {
        height: 300px;
    }

    .leader-info {
        padding: 22px 16px;
    }

    .leader-info h4 {
        font-size: 1.08rem;
    }

    .welcome-bottom-strip {
        padding: 18px 10px;
        font-size: 0.8rem;
    }

    .welcome-bottom-strip .mx-2 {
        margin-left: 4px !important;
        margin-right: 4px !important;
    }
}


/* =========================================
   ACCESSIBILITY: REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal.reveal-left,
    .reveal.reveal-right {
        opacity: 1;
        transform: none;
    }
}
body {
}
