/* =========================================================
   AMUCTA HOMEPAGE — MODERN UNIVERSITY UI
   ========================================================= */

:root {
    --amucta-blue: #0066b3;
    --amucta-blue-dark: #004b85;
    --amucta-blue-light: #eaf5ff;
    --amucta-teal-blue: #008fa3;

    --primary: #0066b3;
    --primary-dark: #004b85;
    --accent: #00a6c7;

    --dark: #0f172a;
    --dark-soft: #1e293b;
    --text: #1f2937;
    --muted: #64748b;
    --light: #f8fafc;
    --white: #ffffff;

    --border: #e5e7eb;
    --border-light: #eef2f7;

    --shadow-sm: 0 3px 12px rgba(15, 23, 42, .06);
    --shadow: 0 10px 30px rgba(15, 23, 42, .10);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, .15);

    --radius: 16px;
    --radius-lg: 22px;

    --transition: all .3s ease;
}


/* =========================================================
   GENERAL
   ========================================================= */

html {
    scroll-behavior: smooth;
}


a {
    transition: var(--transition);
}

img {
    max-width: 100%;
}


/* =========================================================
   HERO AREA
   ========================================================= */

.heroo {
    width: min(1400px, calc(100% - 32px));
    margin: 30px auto 40px;

    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, .85fr);

    gap: 22px;
    align-items: stretch;
}


/* Hero cards */

.hero-box {
    position: relative;
    min-width: 0;
    overflow: hidden;

    background: rgba(255, 255, 255, .95);

    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);

    backdrop-filter: blur(10px);

    transition: var(--transition);
}

.hero-box:hover {
    box-shadow: var(--shadow-lg);
}


/* =========================================================
   MAIN HERO / GALLERY
   ========================================================= */

.box-main {
    min-height: 430px;
    background: #0f172a;
}


/* Swiper */

.mainSwiper {
    width: 100%;
    height: 100%;
    min-height: 430px;
}

.mainSwiper .swiper-wrapper {
    height: 100%;
}

.mainSwiper .swiper-slide {
    position: relative;

    width: 100%;
    height: 430px;

    overflow: hidden;

    background: #0f172a;
}

.mainSwiper .swiper-slide img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
            transform 8s ease,
            filter .5s ease;
}


/* Slow zoom */

.mainSwiper .swiper-slide-active img {
    transform: scale(1.06);
}


/* Dark cinematic overlay */

.mainSwiper .swiper-slide::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
            linear-gradient(
                    to top,
                    rgba(0, 0, 0, .75) 0%,
                    rgba(0, 0, 0, .25) 45%,
                    rgba(0, 0, 0, .05) 75%
            );

    pointer-events: none;
}


/* Caption */

.slide-caption {
    position: absolute;

    left: 28px;
    right: 28px;
    bottom: 28px;

    z-index: 3;

    color: #fff;

    font-size: 18px;
    font-weight: 600;

    line-height: 1.5;

    text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

.slide-caption span {
    display: inline-block;

    max-width: 700px;

    padding: 10px 16px;

    background: rgba(0, 0, 0, .35);

    border-left: 3px solid var(--accent);

    border-radius: 8px;

    backdrop-filter: blur(8px);
}


/* =========================================================
   VIEW GALLERY BUTTON
   ========================================================= */

.view-gallery-btn {
    position: absolute;

    top: 20px;
    right: 20px;

    z-index: 10;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 17px;

    color: #fff;
    background: rgba(0, 0, 0, .45);

    border: 1px solid rgba(255, 255, 255, .35);

    border-radius: 30px;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    backdrop-filter: blur(10px);
}

.view-gallery-btn::before {
    content: "\f03e";
    font-family: FontAwesome;
    margin-right: 7px;
}

.view-gallery-btn:hover {
    color: #fff;

    background: var(--primary);

    border-color: var(--primary);

    transform: translateY(-2px);
}


/* =========================================================
   SWIPER CONTROLS
   ========================================================= */

.mainSwiper .swiper-button-prev,
.mainSwiper .swiper-button-next {
    width: 40px;
    height: 40px;

    color: #fff;

    background: rgba(0, 0, 0, .35);

    border: 1px solid rgba(255, 255, 255, .25);

    border-radius: 50%;

    backdrop-filter: blur(8px);

    transition: var(--transition);
}

.mainSwiper .swiper-button-prev::after,
.mainSwiper .swiper-button-next::after {
    font-size: 15px;
    font-weight: 700;
}

.mainSwiper .swiper-button-prev:hover,
.mainSwiper .swiper-button-next:hover {
    background: var(--primary);
    transform: scale(1.08);
}

.mainSwiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;

    background: #fff;

    opacity: .6;
}

.mainSwiper .swiper-pagination-bullet-active {
    width: 24px;

    border-radius: 10px;

    background: var(--accent);

    opacity: 1;
}


/* =========================================================
   PROGRAM SEARCH / SIDE HERO
   ========================================================= */

.box-side {
    padding: 26px;

    display: flex;
    flex-direction: column;

    justify-content: flex-start;

    background:
            radial-gradient(
                    circle at top right,
                    rgba(0, 166, 199, .12),
                    transparent 40%
            ),
            #fff;
}


/* Search */

.search-form {
    width: 100%;

    display: flex;

    height: 48px;

    margin-bottom: 24px;

    min-width: 0;
}

.search-form select {
    flex: 1;

    min-width: 0;

    height: 48px;

    padding: 0 14px;

    border: 1px solid #d9e1ea;
    border-right: 0;

    background: #f8fafc;

    color: #334155;

    font-size: 14px;

    outline: none;

    border-radius: 10px 0 0 10px;

    cursor: pointer;
}

.search-form select:focus {
    border-color: var(--primary);

    background: #fff;
}

.search-form button {
    width: 52px;

    height: 48px;

    border: 0;

    background: var(--primary);

    color: #fff;

    font-size: 16px;

    cursor: pointer;

    border-radius: 0 10px 10px 0;

    transition: var(--transition);
}

.search-form button:hover {
    background: var(--primary-dark);

    transform: translateX(2px);
}


/* =========================================================
   UNIVERSITY TITLE
   ========================================================= */

.or-title {
    max-width: 720px;

    margin: 0 auto;

    padding: 24px 30px;

    text-align: center;

    background:
            linear-gradient(
                    135deg,
                    rgba(0, 102, 179, .96),
                    rgba(0, 143, 163, .94)
            );

    border-radius: 0 0 22px 22px;

    box-shadow: 0 10px 30px rgba(0, 102, 179, .18);
}

.uni-title {
    margin: 0 0 18px;

    color: #fff;

    font-size: clamp(1.35rem, 3vw, 2rem);

    line-height: 1.25;

    font-weight: 750;

    text-align: center;
}


/* =========================================================
   APPLY BUTTON
   ========================================================= */

.apply-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 11px 22px;

    background: #fff;

    color: var(--primary);

    font-weight: 700;

    border-radius: 30px;

    text-decoration: none;

    box-shadow: 0 7px 20px rgba(0, 0, 0, .18);

    animation: none;

    transition: var(--transition);
}

.apply-btn:hover {
    color: #fff;

    background: var(--dark);

    transform: translateY(-3px);

    box-shadow: 0 12px 25px rgba(0, 0, 0, .2);
}


/* =========================================================
   INTRO SECTION
   ========================================================= */

.intro-section {
    padding: 60px 20px;

    background: #fff;
}

.intro-container {
    width: min(1280px, 100%);

    margin: 0 auto;
}

.intro-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;
}

.intro-col {
    min-width: 0;

    padding: 25px;

    background: #fff;

    border: 1px solid var(--border-light);

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}

.intro-col:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow);
}


/* Headings */

.intro-heading {
    position: relative;

    display: inline-block;

    margin: 0 0 22px;

    padding-bottom: 9px;

    color: var(--primary);

    font-size: 1.1rem;

    font-weight: 750;

    border-bottom: 0;
}

.intro-heading::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 42px;
    height: 3px;

    background: var(--accent);

    border-radius: 10px;
}


/* =========================================================
   REMARKS
   ========================================================= */

.remarks {
    display: flex;

    gap: 16px;

    margin-top: 5px;
}

.remarks-img {
    width: 105px;
    height: 125px;

    object-fit: cover;

    flex-shrink: 0;

    border-radius: 14px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.remarks-text {
    margin: 0;

    color: #475569;

    font-size: .9rem;

    line-height: 1.7;
}


/* =========================================================
   EVENTS
   ========================================================= */

.events-list {
    list-style: none;

    padding: 0;
    margin: 0;
}

.event-item {
    margin-bottom: 12px;
}

.event-flex {
    display: flex;

    align-items: flex-start;

    gap: 13px;
}

.event-img {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 10px;
}

.event-title {
    display: block;

    color: #1e293b;

    font-size: .9rem;

    font-weight: 650;

    line-height: 1.4;

    text-decoration: none;
}

.event-title:hover {
    color: var(--primary);
}

.event-meta {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 5px;

    color: #94a3b8;

    font-size: .75rem;
}

.event-new {
    width: 24px;
    height: auto;
}

.event-divider {
    margin: 12px 0 0;

    border: 0;

    border-top: 1px solid #edf1f5;
}


/* =========================================================
   GENERAL LINKS
   ========================================================= */

.link-primary,
.view-more,
.read-more-btn {
    color: var(--primary);

    font-weight: 650;

    text-decoration: none;
}

.link-primary:hover,
.view-more:hover,
.read-more-btn:hover {
    color: var(--primary-dark);

    text-decoration: none;
}

.link-primary::after {
    content: " →";

    transition: var(--transition);
}

.link-primary:hover::after {
    margin-left: 4px;
}


/* =========================================================
   PUBLICATIONS
   ========================================================= */

.publication-list {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.publication-item {
    display: flex;

    gap: 13px;

    padding: 10px;

    background: #f8fafc;

    border: 1px solid #edf1f5;

    border-radius: 12px;

    transition: var(--transition);
}

.publication-item:hover {
    background: #fff;

    border-color: #dbeafe;

    transform: translateX(4px);

    box-shadow: var(--shadow-sm);
}

.publication-item img {
    width: 72px;
    height: 82px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 8px;
}

.publication-info {
    min-width: 0;
}

.pub-title {
    margin: 0 0 5px;

    font-size: .88rem;

    line-height: 1.35;

    font-weight: 700;
}

.pub-title a {
    color: var(--primary);

    text-decoration: none;
}

.pub-title a:hover {
    color: var(--primary-dark);
}

.pub-authors {
    margin: 0 0 8px;

    color: #64748b;

    font-size: .75rem;

    line-height: 1.4;
}

.pub-year {
    display: inline-block;

    padding: 3px 9px;

    color: #fff;

    background: var(--amucta-teal-blue);

    border-radius: 20px;

    font-size: 11px;

    font-weight: 600;
}


/* =========================================================
   NEWS + DOWNLOAD CENTER
   ========================================================= */

.news-section {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 30px;

    padding: 60px max(20px, calc((100% - 1280px) / 2));

    background:
            linear-gradient(
                    180deg,
                    #f8fafc 0%,
                    #eef6fb 100%
            );
}

.news-secion-item {
    width: 100%;

    padding: 28px;

    background: #fff;

    border: 1px solid var(--border-light);

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);
}

.section-title {
    position: relative;

    margin: 0 0 22px;

    padding-bottom: 12px;

    color: var(--primary);

    font-size: 1.2rem;

    font-weight: 750;

    text-align: left;

    border: 0;
}

.section-title::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 45px;
    height: 3px;

    background: var(--accent);

    border-radius: 10px;
}


/* =========================================================
   ATTACHMENTS
   ========================================================= */

.attachments-list {
    list-style: none;

    padding: 0;
    margin: 0;
}

.attachment-item {
    margin-bottom: 10px;

    padding: 13px 0;

    border-bottom: 1px solid #eef2f7;
}

.attachment-item:last-child {
    border-bottom: 0;
}

.attachment-title {
    margin: 0 0 7px;

    color: #334155;

    font-size: .9rem;

    font-weight: 600;
}

.attachment-title:hover {
    color: var(--primary);
}

.attachment-meta {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #94a3b8;

    font-size: .75rem;
}

.download-link {
    color: var(--primary);

    font-weight: 650;

    text-decoration: none;
}

.download-link:hover {
    color: var(--primary-dark);
}


/* =========================================================
   NEWS
   ========================================================= */

.news-item {
    display: flex;

    gap: 15px;

    margin-top: 0;
    margin-bottom: 18px;

    padding-bottom: 18px;

    border-bottom: 1px solid #eef2f7;
}

.news-item:last-child {
    border-bottom: 0;
}

.news-img {
    width: 95px;
    height: 82px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 11px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.news-content {
    flex: 1;

    min-width: 0;
}

.news-title {
    color: var(--primary);

    font-size: .92rem;

    font-weight: 700;

    line-height: 1.35;

    cursor: pointer;
}

.news-title:hover {
    color: var(--primary-dark);
}

.new-icon {
    width: 22px;
    height: 22px;

    vertical-align: middle;
}

.news-desc {
    margin: 6px 0;

    color: #64748b;

    font-size: .8rem;

    line-height: 1.5;
}

.read-more {
    color: var(--primary);

    font-weight: 650;

    text-decoration: none;
}

.news-date {
    margin: 4px 0 0;

    color: #94a3b8;

    font-size: .72rem;
}

.read-more-container {
    margin-top: 15px;

    text-align: left;
}


/* =========================================================
   STATS
   ========================================================= */

.stats-section {
    position: relative;

    padding: 70px 20px;

    overflow: hidden;

    background:
            linear-gradient(
                    135deg,
                    #004b85,
                    #0066b3 55%,
                    #008fa3
            );

    color: #fff;
}

.stats-section::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    top: -180px;
    right: -100px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .06);
}

.stats-section::after {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    bottom: -130px;
    left: -80px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .05);
}

.stats-container {
    position: relative;

    z-index: 1;

    width: min(1250px, 100%);

    margin: 0 auto;
}

.stats-title {
    margin: 0 0 40px;

    color: #fff;

    font-size: 1.8rem;

    font-weight: 750;

    text-align: center;
}

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}

.stat-item {
    padding: 24px 15px;

    text-align: center;

    background: rgba(255, 255, 255, .09);

    border: 1px solid rgba(255, 255, 255, .13);

    border-radius: 16px;

    backdrop-filter: blur(8px);

    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, .15);

    transform: translateY(-5px);
}

.stat-number {
    color: #fff !important;

    font-size: 2rem;

    font-weight: 800;

    line-height: 1.2;
}

.stat-label {
    margin: 8px 0 0;

    color: rgba(255, 255, 255, .8);

    font-size: .85rem;

    font-weight: 500;
}


/* Visitor details */

.visitor-stat {
    text-align: left;
}

.visitor-details {
    margin-top: 10px;

    color: rgba(255, 255, 255, .82);

    font-size: .75rem;

    line-height: 1.5;
}

.visitor-details p {
    margin: 5px 0;
}

.visitor-details ul {
    padding-left: 18px;

    margin: 5px 0;
}

.visitor-details a {
    color: #fff;
}


/* =========================================================
   SEARCH / MISC
   ========================================================= */

.section {
    padding: 2rem 1rem;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .heroo {
        grid-template-columns: 1fr;

        width: min(900px, calc(100% - 30px));
    }

    .box-main,
    .mainSwiper,
    .mainSwiper .swiper-slide {
        min-height: 450px;
        height: 450px;
    }

    .intro-grid {
        grid-template-columns: 1fr 1fr;
    }

    .intro-col:last-child {
        grid-column: span 2;
    }

    .stats-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .heroo {
        width: calc(100% - 20px);

        margin: 15px auto 25px;

        gap: 15px;
    }

    .box-main,
    .mainSwiper,
    .mainSwiper .swiper-slide {
        min-height: 300px;
        height: 300px;
    }

    .slide-caption {
        left: 15px;
        right: 15px;
        bottom: 15px;

        font-size: 14px;
    }

    .slide-caption span {
        padding: 8px 12px;
    }

    .view-gallery-btn {
        top: 12px;
        right: 12px;

        padding: 7px 12px;

        font-size: 11px;
    }

    .mainSwiper .swiper-button-prev,
    .mainSwiper .swiper-button-next {
        width: 32px;
        height: 32px;
    }

    .mainSwiper .swiper-button-prev::after,
    .mainSwiper .swiper-button-next::after {
        font-size: 11px;
    }


    /* Search box */

    .box-side {
        padding: 18px;
    }


    /* Intro */

    .intro-section {
        padding: 40px 15px;
    }

    .intro-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .intro-col:last-child {
        grid-column: auto;
    }

    .intro-col {
        padding: 20px;
    }

    .remarks-img {
        width: 85px;
        height: 105px;
    }


    /* News */

    .news-section {
        grid-template-columns: 1fr;

        padding: 40px 15px;

        gap: 15px;
    }

    .news-secion-item {
        padding: 20px;
    }


    /* Stats */

    .stats-section {
        padding: 50px 15px;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 10px;
    }

    .stat-item {
        padding: 20px 10px;
    }

    .stat-number {
        font-size: 1.6rem;
    }


    /* Publications */

    .publication-item img {
        width: 65px;
        height: 75px;
    }

    .pub-title {
        font-size: .82rem;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .remarks {
        flex-direction: column;
    }

    .remarks-img {
        width: 80px;
        height: 90px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        gap: 10px;
    }

    .news-img {
        width: 75px;
        height: 70px;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;
    }

    .mainSwiper .swiper-slide-active img {
        transform: none;
    }
}