
/* =========================================================
   ACCOMMODATION PAGE
   University of Peradeniya - Centre for Global Engagements
========================================================= */

:root {
    --acc-navy: #082d59;
    --acc-blue: #123f70;
    --acc-gold: #f6c52d;
    --acc-text: #102f55;
    --acc-light: #f7f9fc;
    --acc-shadow: 0 3px 12px rgba(0, 0, 0, 0.13);
}

.acc-container {
    width: min(1200px, calc(100% - 50px));
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   HERO SECTION
========================================================= */

.acc-hero {
    min-height: 320px;
    position: relative;
    display: flex;
    align-items: center;
    background-image: url("../images/accommodation/accommodation-hero.jpg");
    background-size: cover;
    background-position: center 48%;
    overflow: hidden;
}

.acc-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(3, 31, 59, 0.96) 0%,
        rgba(3, 31, 59, 0.85) 35%,
        rgba(3, 31, 59, 0.30) 65%,
        rgba(3, 31, 59, 0.02) 100%
    );
}

.acc-hero__content {
    position: relative;
    z-index: 1;
    padding-top: 28px;
    padding-bottom: 30px;
    color: #fff;
}

.acc-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #fff;
}

.acc-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.acc-breadcrumb a:hover {
    color: var(--acc-gold);
}

.acc-hero h1 {
    margin: 0;
    max-width: 650px;
    color: #fff;
    font-size: clamp(27px, 3.1vw, 39px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.5px;
}

.acc-hero h1 span {
    color: var(--acc-gold);
}

.acc-title-line {
    width: 65px;
    height: 3px;
    background: var(--acc-gold);
    margin: 17px 0 12px;
}

.acc-hero__content > p {
    margin: 0 0 15px;
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
}

.acc-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 22px;
    border-radius: 30px;
    background: var(--acc-gold);
    color: #081f3c;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: 0.25s ease;
}

.acc-button:hover {
    background: #fff;
    color: var(--acc-navy);
    transform: translateY(-2px);
}

.acc-button span {
    font-size: 20px;
    line-height: 1;
}

.mobile-break {
    display: none;
}

/* =========================================================
   INTRODUCTION
========================================================= */

.acc-intro {
    text-align: center;
    padding-top: 18px;
    padding-bottom: 12px;
}

.acc-intro h2 {
    margin: 0 0 3px;
    color: var(--acc-text);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.5;
}

.acc-intro p {
    margin: 0;
    color: #18375b;
    font-size: 14px;
    line-height: 1.6;
}

.acc-intro-line {
    width: 85px;
    height: 2px;
    background: var(--acc-gold);
    margin: 9px auto 0;
}

/* =========================================================
   ACCOMMODATION CARDS
========================================================= */

.acc-options {
    padding-top: 5px;
    padding-bottom: 27px;
}

.acc-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.acc-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e9ef;
    border-radius: 14px;
    box-shadow: var(--acc-shadow);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.acc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.acc-card__image {
    height: 150px;
    overflow: hidden;
    background: #e7edf4;
}

.acc-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.acc-card:hover .acc-card__image img {
    transform: scale(1.05);
}

.acc-card__icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: -27px auto 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--acc-navy);
    color: #fff;
    font-size: 25px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.acc-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    padding: 5px 18px 14px;
}

.acc-card__body h3 {
    margin: 0 0 8px;
    color: var(--acc-navy);
    font-size: 17px;
    font-weight: 750;
    line-height: 1.35;
}

.acc-card__body > p {
    margin: 0 0 9px;
    color: #182d48;
    font-size: 13px;
    line-height: 1.55;
}

.acc-card__body .acc-card__note {
    color: #666;
    font-size: 12px;
    font-style: italic;
}

.acc-text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 5px;
    color: #06417c;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.acc-text-link:hover {
    color: #c18d00;
}

.acc-text-link span {
    font-size: 18px;
}

/* =========================================================
   OFFICIAL UNIVERSITY RESOURCE
========================================================= */

.acc-resource {
    position: relative;
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 165px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(110deg, #dceefa, #eaf5ff);
    box-shadow: var(--acc-shadow);
}

.acc-resource__image {
    min-height: 165px;
    overflow: hidden;
}

.acc-resource__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 165px;
    object-fit: cover;
}

.acc-resource__content {
    position: relative;
    z-index: 2;
    align-self: center;
    padding: 15px 25px;
}

.acc-resource__label {
    display: inline-block;
    margin-bottom: 7px;
    padding: 7px 18px;
    border-radius: 25px;
    background: var(--acc-gold);
    color: #101d2b;
    font-size: 12px;
    font-weight: 800;
}

.acc-resource__content h2 {
    margin: 0 0 6px;
    color: var(--acc-navy);
    font-size: 23px;
    font-weight: 800;
    line-height: 1.2;
}

.acc-resource__content p {
    max-width: 430px;
    margin: 0 0 10px;
    color: #18375b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.acc-resource__button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 9px 19px;
    border-radius: 25px;
    background: var(--acc-navy);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: 0.25s ease;
}

.acc-resource__button:hover {
    background: var(--acc-gold);
    color: #10233e;
}

.acc-resource__globe {
    position: absolute;
    top: 50%;
    right: 15px;
    z-index: 1;
    transform: translateY(-50%);
    color: rgba(31, 128, 190, 0.10);
    font-size: 175px;
    line-height: 1;
    pointer-events: none;
}

/* =========================================================
   PLAN YOUR STAY
========================================================= */

.acc-plan {
    padding-top: 18px;
    padding-bottom: 18px;
}

.acc-section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-bottom: 8px;
}

.acc-section-heading span {
    flex: 1;
    height: 2px;
    background: var(--acc-gold);
}

.acc-section-heading h2 {
    margin: 0;
    color: var(--acc-navy);
    font-size: 23px;
    font-weight: 800;
    white-space: nowrap;
}

.acc-plan__steps {
    display: grid;
    grid-template-columns: 1fr 45px 1fr 45px 1fr;
    align-items: center;
    text-align: center;
}

.acc-plan__step {
    padding: 0 5px;
}

.acc-plan__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 7px;
    border-radius: 50%;
    background: var(--acc-navy);
    color: #fff;
    font-size: 27px;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
}

.acc-plan__step h3 {
    margin: 0;
    color: var(--acc-text);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
}

.acc-plan__arrow {
    color: var(--acc-gold);
    font-size: 34px;
    font-weight: 400;
}

/* =========================================================
   IMPORTANT INFORMATION
========================================================= */

.acc-important {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-top: 0;
    margin-bottom: 23px;
    padding: 15px 19px;
    border: 1px solid #f5df9c;
    border-radius: 14px;
    background: linear-gradient(100deg, #fff4d5, #ffedbd);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.09);
}

.acc-important__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--acc-navy);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 700;
    font-style: italic;
}

.acc-important__content {
    padding-left: 17px;
    border-left: 2px solid var(--acc-gold);
}

.acc-important__content h2 {
    margin: 0 0 4px;
    color: var(--acc-navy);
    font-size: 16px;
    font-weight: 800;
}

.acc-important__content p {
    margin: 0;
    color: #172b43;
    font-size: 13px;
    line-height: 1.5;
}



/* ================= PAGE BANNER ================= */

.acc-page-banner {
    position: relative;
    width: 100%;
    height: 315px;
    overflow: hidden;
    background: #0b2352;
}

.acc-page-banner .banner-flex {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
}


/* =========================
   FULL HERO IMAGE
========================= */

.acc-page-banner .banner-media {
    position: absolute;
    top: 0;
    right: 0;

    width: 82%;
    height: 100%;

    overflow: hidden;
    z-index: 1;
}

.acc-page-banner .banner-photo {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}


/* =========================
   LEFT DARK / BLURRED AREA
========================= */

.acc-page-banner .banner-text {
    position: absolute;
    top: 0;
    left: 0;

    width: 48%;
    height: 100%;

    z-index: 3;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 30px 40px 30px 70px;

    background: rgba(11, 35, 82, 0.88);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


/* Slanted transition */

.acc-page-banner .banner-text::after {
    content: "";

    position: absolute;

    top: 0;
    right: -100px;

    width: 150px;
    height: 100%;

    background: rgba(11, 35, 82, 0.88);

    clip-path: polygon(
        35% 0,
        100% 0,
        65% 100%,
        0 100%
    );

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    z-index: -1;
}


/* =========================
   TITLE
========================= */

.acc-page-banner .banner-text h1 {
    margin: 0 0 12px 0;

    color: #ffffff;

    font-size: 32px;
    line-height: 1.2;

    font-weight: 800;

    letter-spacing: 1px;
}


/* =========================
   DESCRIPTION
========================= */

.acc-page-banner .banner-text p {
    margin: 0 0 14px;

    max-width: 430px;

    color: #ffffff;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================
   GOLD TITLE LINE
========================= */

.acc-page-banner .acc-title-line {
    width: 60px;
    height: 3px;

    background: #e1a80b;

    margin: 5px 0 12px;
}


/* =========================
   EXPLORE BUTTON
========================= */

.acc-page-banner .acc-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    width: fit-content;

    padding: 10px 18px;

    background: #e1a80b;
    color: #0b2352;

    border-radius: 25px;

    text-decoration: none;
    font-size: 12px;
    font-weight: 700;

    transition: 0.3s ease;
}

.acc-page-banner .acc-button:hover {
    background: #ffffff;
    color: #0b2352;
}

.acc-page-banner .acc-button span {
    font-size: 18px;
}


/* =========================
   BREADCRUMB
========================= */

.acc-page-banner .breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 15px;

    font-size: 12px;
}

.acc-page-banner .breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.acc-page-banner .breadcrumb a:hover {
    color: #e1a80b;
}

.acc-page-banner .breadcrumb .sep {
    color: #ffffff;
}

.acc-page-banner .breadcrumb .current {
    color: #e1a80b;
    font-weight: 600;
}


/* =========================
   WORLD MAP CIRCLE
========================= */

.acc-resource__globe {
    position: absolute;
    top: 50%;
    right: 35px;

    width: 190px;
    height: 190px;

    transform: translateY(-50%);

    color: rgba(31, 128, 190, 0.18);

    z-index: 1;
    pointer-events: none;
}

.acc-resource__globe svg {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 650px) {
    .acc-resource__globe {
        width: 120px;
        height: 120px;
        right: 10px;
        top: 30px;
        transform: none;
    }
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 900px) {

    .acc-page-banner .banner-text {
        width: 58%;
        padding-left: 35px;
    }

    .acc-page-banner .banner-text h1 {
        font-size: 27px;
    }

}

@media (max-width: 600px) {

    .acc-page-banner {
        height: auto;
        min-height: 390px;
    }

    .acc-page-banner .banner-flex {
        min-height: 390px;
    }

    .acc-page-banner .banner-media {
        width: 100%;
    }

    .acc-page-banner .banner-text {
        width: 100%;
        padding: 30px 22px;

        background: rgba(11, 35, 82, 0.85);
    }

    .acc-page-banner .banner-text::after {
        display: none;
    }

    .acc-page-banner .banner-text h1 {
        font-size: 25px;
    }

    .acc-page-banner .banner-text p {
        font-size: 13px;
    }

    .acc-page-banner .breadcrumb {
        gap: 8px;
        font-size: 11px;
    }
}


/* =========================================================
   RESPONSIVE DESIGN
========================================================= */

@media (max-width: 900px) {

    .acc-hero {
        min-height: 300px;
    }

    .acc-card-grid {
        gap: 14px;
    }

    .acc-card__image {
        height: 130px;
    }

    .acc-card__body {
        padding-left: 12px;
        padding-right: 12px;
    }

    .acc-card__body h3 {
        font-size: 15px;
    }

    .acc-resource {
        grid-template-columns: 40% 60%;
    }

    .acc-resource__content h2 {
        font-size: 20px;
    }
}

@media (max-width: 650px) {

    .acc-container {
        width: calc(100% - 30px);
    }

    .acc-hero {
        min-height: 340px;
        background-position: 60% center;
    }

    .acc-hero__overlay {
        background: linear-gradient(
            90deg,
            rgba(3, 31, 59, 0.94),
            rgba(3, 31, 59, 0.70)
        );
    }

    .acc-hero__content {
        padding-top: 22px;
        padding-bottom: 25px;
    }

    .acc-breadcrumb {
        gap: 7px;
        margin-bottom: 22px;
        font-size: 11px;
    }

    .acc-hero h1 {
        font-size: 29px;
    }

    .acc-hero__content > p {
        font-size: 14px;
    }

    .desktop-break {
        display: none;
    }

    .mobile-break {
        display: initial;
    }

    .acc-intro {
        padding-top: 20px;
        padding-bottom: 17px;
    }

    .acc-intro h2 {
        font-size: 15px;
    }

    .acc-intro p {
        font-size: 13px;
    }

    .acc-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .acc-card__image {
        height: 190px;
    }

    .acc-card__body {
        padding: 7px 20px 17px;
    }

    .acc-card__body h3 {
        font-size: 17px;
    }

    .acc-card__body > p {
        font-size: 13px;
    }

    .acc-resource {
        grid-template-columns: 1fr;
    }

    .acc-resource__image {
        height: 175px;
        min-height: 175px;
    }

    .acc-resource__image img {
        min-height: 175px;
    }

    .acc-resource__content {
        padding: 18px;
    }

    .acc-resource__content h2 {
        font-size: 21px;
    }

    .acc-resource__globe {
        font-size: 120px;
    }

    .acc-section-heading {
        gap: 12px;
    }

    .acc-section-heading h2 {
        font-size: 20px;
    }

    .acc-plan__steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .acc-plan__arrow {
        transform: rotate(90deg);
        font-size: 27px;
        line-height: 1;
    }

    .acc-plan__step h3 {
        font-size: 13px;
    }

    .acc-important {
        align-items: flex-start;
        gap: 12px;
        padding: 13px;
    }

    .acc-important__icon {
        width: 35px;
        height: 35px;
        font-size: 22px;
    }

    .acc-important__content {
        padding-left: 12px;
    }

    .acc-important__content h2 {
        font-size: 14px;
    }

    .acc-important__content p {
        font-size: 12px;
    }
}

@media (max-width: 380px) {

    .acc-hero h1 {
        font-size: 25px;
    }

    .acc-button {
        padding: 11px 16px;
        font-size: 12px;
    }

    .acc-resource__content h2 {
        font-size: 19px;
    }
}
