/* ==================================================
   CONTACT PAGE
================================================== */

@import url("https://fonts.googleapis.com/css2?family=Battambang:wght@400;600;700&family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
    --contact-primary: #073b7a;
    --contact-secondary: #0b63ce;
    --contact-accent: #ff9f0a;
    --contact-dark: #062b59;
    --contact-text: #365b8d;
    --contact-muted: #718096;
    --contact-border: #dce5ef;
    --contact-background: #f3f7fc;
    --contact-white: #ffffff;
    --contact-shadow: 0 15px 40px rgba(7, 59, 122, 0.1);
}

/* ==================================================
   PAGE BANNER
================================================== */

.page-banner {
    position: relative;
    padding: 60px 20px;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(
        135deg,
        #052a57 0%,
        #0b63ce 100%
    );
}

.page-banner::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -70px;
    width: 320px;
    height: 320px;
    border: 55px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.page-banner::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 159, 10, 0.12);
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    position: relative;
    display: inline-block;
    margin: 0;
    color: #ffffff;
    font-family: "Poppins", Arial, sans-serif;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.2;
}

.page-banner h1::after {
    content: "";
    display: block;
    width: 110px;
    height: 5px;
    margin: 17px auto 0;
    border-radius: 20px;
    background: var(--contact-accent);
}

/* ==================================================
   CONTACT SECTION
================================================== */

.contact-section {
    position: relative;
    padding: 80px 20px;
    background:
        radial-gradient(circle at 10% 20%, rgba(11, 99, 206, 0.07), transparent 26%),
        radial-gradient(circle at 90% 85%, rgba(255, 159, 10, 0.08), transparent 25%),
        var(--contact-background);
}

.contact-container {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.92fr);
    gap: 38px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

/* ==================================================
   LEFT CONTENT
================================================== */

.contact-content {
    min-width: 0;
}

.contact-heading {
    margin-bottom: 28px;
}

.contact-heading h2 {
    position: relative;
    margin: 0;
    padding-left: 22px;
    color: var(--contact-primary);
    font-family: "Poppins", Arial, sans-serif;
    font-size: clamp(30px, 4vw, 43px);
    font-weight: 800;
    line-height: 1.25;
}

.contact-heading h2::before {
    content: "";
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 0;
    width: 6px;
    border-radius: 20px;
    background: linear-gradient(
        to bottom,
        #073b7a,
        #38bdf8
        
    );
}

/* ==================================================
   ADDRESS
================================================== */

.contact-address {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 32px;
    padding: 30px;
    border: 1px solid var(--contact-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--contact-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-address:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(7, 59, 122, 0.15);
}

.contact-icon,
.person-avatar,
.website-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #ffb222, var(--contact-accent));
    box-shadow: 0 2px 16px rgba(255, 159, 10, 0.27);
}
.contact-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    font-size: 25px;
}

.contact-address h3 {
    margin: 2px 0 10px;
    color: var(--contact-primary);
    font-family: "Poppins", Arial, sans-serif;
    font-size: 25px;
    font-weight: 700;
}

.contact-address p {
    margin: 0;
    color: #243f63;
    font-family: "Battambang", sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 2;
}

/* ==================================================
   PERSON CARDS
================================================== */

.contact-person-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.contact-card {
    position: relative;
    min-width: 0;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--contact-border);
    border-radius: 22px;
    background: var(--contact-white);
    box-shadow: var(--contact-shadow);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        #073b7a 0%,
        #0b63ce 50%,
        #38bdf8 100%
        
    );
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.contact-card::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(11, 99, 206, 0.04);
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: rgba(11, 99, 206, 0.28);
    box-shadow: 0 22px 50px rgba(7, 59, 122, 0.16);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.person-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 82px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--contact-border);
}

.person-avatar {
    width: 70px;
    height: 70px;
    border-radius: 21px;
    font-size: 28px;
    transition: transform 0.3s ease;
}

.contact-card:hover .person-avatar {
    transform: scale(1.03);
}

.person-header h3 {
    margin: 0;
    color: var(--contact-primary);
    font-family: "Poppins", Arial, sans-serif;
    font-size: clamp(19px, 2vw, 25px);
    font-weight: 750;
    line-height: 1.35;
}

/* ==================================================
   CONTACT LIST
================================================== */

.contact-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--contact-text);
    font-family: "Poppins", Arial, sans-serif;
    font-size: 15px;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.contact-list li:hover {
    color: var(--contact-primary);
    background: #f1f6fc;
    transform: translateX(4px);
}

.contact-list li > i {
    flex: 0 0 22px;
    width: 22px;
    color: var(--contact-accent);
    font-size: 17px;
    text-align: center;
}

.contact-list a,
.contact-list span {
    min-width: 0;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.contact-list a {
    color: inherit;
    text-decoration: none;
}

/* ==================================================
   WEBSITE LINK
================================================== */

.website-link {
    display: flex;
    align-items: center;
    gap: 17px;
    width: fit-content;
    max-width: 100%;
    margin-top: 30px;
    padding: 16px 26px 16px 17px;
    border-radius: 18px;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, var(--contact-primary), var(--contact-secondary));
    box-shadow: 0 14px 30px rgba(7, 59, 122, 0.24);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.website-link:hover {
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 20px 38px rgba(7, 59, 122, 0.32);
}

.website-icon {
    width: 49px;
    height: 49px;
    border-radius: 14px;
    font-size: 20px;
}

.website-link span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.website-link small {
    margin-bottom: 1px;
    color: rgba(255, 255, 255, 0.75);
    font-family: "Poppins", Arial, sans-serif;
    font-size: 12px;
}

.website-link strong {
    overflow-wrap: anywhere;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
}

/* ==================================================
   GOOGLE MAP
================================================== */

.contact-map-wrapper {
    position: sticky;
    top: 100px;
    align-self: start;
    overflow: hidden;
    border: 1px solid var(--contact-border);
    border-radius: 25px;
    background: #ffffff;
    box-shadow: var(--contact-shadow);
}

.map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 26px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--contact-primary), #0d69d5);
}

.map-header h3 {
    color: #ffffff !important;
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.map-header > i {
    color: var(--contact-accent);
    font-size: 30px;
}

.contact-map {
    position: relative;
    width: 100%;
    min-height: 545px;
    background: #e9eef5;
}

.contact-map iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1050px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-map-wrapper {
        position: relative;
        top: auto;
    }

    .contact-map {
        min-height: 450px;
    }
}

@media (max-width: 700px) {
    .page-banner {
        padding: 65px 18px;
    }

    .contact-section {
        padding: 55px 16px;
    }

    .contact-person-grid {
        grid-template-columns: 1fr;
    }

    .contact-address,
    .contact-card {
        padding: 24px;
    }

    .contact-map {
        min-height: 380px;
    }
}

@media (max-width: 480px) {
    .contact-heading h2 {
        font-size: 29px;
    }

    .contact-address {
        flex-direction: column;
        gap: 15px;
    }

    .contact-icon {
        width: 55px;
        height: 55px;
        border-radius: 16px;
    }

    .person-header {
        align-items: flex-start;
    }

    .person-avatar {
        width: 58px;
        height: 58px;
        border-radius: 17px;
        font-size: 23px;
    }

    .person-header h3 {
        font-size: 19px;
    }

    .contact-list li {
        padding-inline: 4px;
        font-size: 14px;
    }

    .website-link {
        width: 100%;
    }

    .map-header {
        padding: 20px;
    }

    .map-header h3 {
        font-size: 17px;
    }

    .contact-map {
        min-height: 330px;
    }
}

.contact-list li svg {  
    width: 24px;
    height: 24px;
    min-width: 24px;
    color: #d9b93f;
    stroke-width: 2;
}

body .page-banner h1,
body .contact-section,
body .contact-section *:not(i):not(svg):not(svg *):not(
    .fa, .fas, .far, .fab,
    .fa-solid, .fa-regular, .fa-brands
) {
    font-family:
        Georgia,
        "Times New Roman",
        "Battambang",
        "Khmer OS Battambang",
        serif !important;

    font-weight: 400 !important;
    font-style: normal !important;
    letter-spacing: normal !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
    font-variant-numeric: lining-nums !important;
}



/* ==================================================
   MOBILE CONTACT PAGE REFINEMENTS
   Appended overrides: keep desktop layout unchanged.
================================================== */

.contact-section,
.contact-container,
.contact-content,
.contact-map-wrapper {
    min-width: 0;
}

.contact-list a,
.contact-list span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-map iframe {
    max-width: 100%;
}

@media (max-width: 700px) {
    .page-banner {
        padding: 38px 14px;
    }

    .page-banner h1 {
        font-size: clamp(27px, 8vw, 38px);
        letter-spacing: 1px;
    }

    .page-banner h1::after {
        width: 72px;
        height: 4px;
        margin-top: 10px;
    }

    .contact-section {
        padding: 28px 12px 34px;
    }

    .contact-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .contact-heading {
        margin-bottom: 18px;
    }

    .contact-heading h2 {
        padding-left: 15px;
        font-size: clamp(23px, 6vw, 30px);
        line-height: 1.35;
    }

    .contact-heading h2::before {
        top: 4px;
        bottom: 4px;
        width: 4px;
    }

    .contact-address {
        flex-direction: row;
        align-items: flex-start;
        gap: 13px;
        margin-bottom: 20px;
        padding: 17px;
        border-radius: 16px;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
        font-size: 19px;
    }

    .contact-address h3 {
        margin: 0 0 6px;
        font-size: 18px;
    }

    .contact-address p {
        font-size: 14px;
        line-height: 1.85;
        overflow-wrap: anywhere;
    }

    .contact-person-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .contact-card {
        padding: 17px;
        border-radius: 16px;
    }

    .person-header {
        min-height: 0;
        align-items: center;
        gap: 12px;
        padding-bottom: 14px;
    }

    .person-avatar {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 20px;
    }

    .person-header h3 {
        font-size: 17px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .contact-list {
        gap: 5px;
        margin-top: 13px;
    }

    .contact-list li {
        align-items: flex-start;
        gap: 9px;
        padding: 9px 7px;
        border-radius: 9px;
        font-size: 13px;
        line-height: 1.55;
    }

    .contact-list li > i {
        flex: 0 0 18px;
        width: 18px;
        margin-top: 2px;
        font-size: 15px;
    }

    .contact-list li svg {
        flex: 0 0 18px;
        width: 18px;
        height: 18px;
        min-width: 18px;
        margin-top: 2px;
    }

    .contact-list a,
    .contact-list span {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .website-link {
        width: 100%;
        max-width: 100%;
        gap: 12px;
        margin-top: 20px;
        padding: 12px 15px;
        border-radius: 14px;
        box-sizing: border-box;
    }

    .website-icon {
        width: 40px;
        height: 40px;
        border-radius: 11px;
        font-size: 17px;
    }

    .website-link small {
        font-size: 11px;
    }

    .website-link strong {
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .contact-map-wrapper {
        position: relative;
        top: auto;
        border-radius: 17px;
    }

    .map-header {
        gap: 10px;
        padding: 14px 16px;
    }

    .map-header h3 {
        font-size: 15px;
        line-height: 1.4;
    }

    .map-header > i {
        flex: 0 0 auto;
        font-size: 22px;
    }

    .contact-map {
        height: clamp(230px, 68vw, 320px);
        min-height: 0;
    }

    .contact-map iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .contact-address:hover,
    .contact-card:hover,
    .website-link:hover {
        transform: none;
    }
}

@media (max-width: 380px) {
    .contact-section {
        padding-inline: 9px;
    }

    .contact-address,
    .contact-card {
        padding: 14px;
    }

    .contact-address {
        gap: 10px;
    }

    .contact-address p {
        font-size: 13px;
    }

    .person-header h3 {
        font-size: 16px;
    }

    .contact-list li {
        font-size: 12px;
    }

    .map-header {
        padding: 12px 13px;
    }
}
