/* =========================================================
   GLOBAL
========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

* {
    font-family: "Segoe UI", Arial, sans-serif;
}

html {
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: #f4f6fb;
    color: #1f2937;
}

img {
    max-width: 100%;
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
    position: relative;
    z-index: 10;
    width: 100%;
    background: #fff;
    box-shadow: 0 1px 3px #00000014;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 20px 60px;
}

.logo {
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 45px;
    list-style: none;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: #4b5563;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #111827;
}

.nav-container .logo {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 24px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;

    min-width: 0;
}

/* Enlarged visually without changing navbar layout */

.nav-container .portal-logo {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;

    transform: scale(1.35);
    transform-origin: center;
}

/* =========================================================
   STICKY SCHOOL LOGOS
========================================================= */
.logo-section {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    padding: 15px 0;
    background: #fff;
}

.logo-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 20px 30px;
    overflow: visible;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 3px 15px #0000001f;
}

.logo-item {
    position: relative;
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100px;
    overflow: visible;
}

.logo-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: visible;
    border: 0;
    outline: 0;
    text-decoration: none;
}

.logo-strip img {
    position: relative;
    width: 100%;
    max-width: 150px;
    height: 100px;
    object-fit: contain;
    cursor: pointer;
    transform-origin: center;
    transition: transform .3s, filter .3s;
}

.logo-item:hover img {
    z-index: 100;
    transform: scale(1.3);
    filter: drop-shadow(0 5px 8px #00000040);
}

.logo-item a:active img {
    transform: scale(1.2);
}

.logo-description {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    z-index: 1000;
    width: 220px;
    padding: 12px 15px;
    transform: translate(-50%, 10px);
    background: #111827f2;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
}

.logo-description::after {
    position: absolute;
    top: 100%;
    left: 50%;
    content: "";
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #111827f2;
}

.logo-item:hover .logo-description {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

.logo-section.description-below .logo-description {
    top: calc(100% + 12px);
    bottom: auto;
    transform: translate(-50%, -10px);
}

.logo-section.description-below .logo-description::after {
    top: auto;
    bottom: 100%;
    border-color: transparent transparent #111827f2;
}

.logo-section.description-below .logo-item:hover .logo-description {
    transform: translate(-50%, 0);
}

/* =========================================================
   CAMPUS AND AVAILABLE COURSES
========================================================= */
.college-content {
    display: grid;
    grid-template-columns: 47% 53%;
    width: 100%;
    min-height: 620px;
}

.campus-section {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #1f4f3d;
}

.campus-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campus-title {
    position: absolute;
    right: 25px;
    bottom: 0;
    left: 25px;
    padding: 20px 30px;
    background: #164e37e0;
}

.campus-title h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.school-official-logo {
    display: block;
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
}

.courses-section {
    min-width: 0;
    padding: 55px 80px;
    background: #28734b;
    color: #fff;
    border: 0;
    outline: none;
    box-shadow: none;
}

.courses-section h2 {
    font-size: 25px;
    font-weight: 700;
}

.title-line {
    width: 100%;
    height: 2px;
    margin: 15px 0 40px;
    background: #ffffffa6;
}

.courses-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 80px;
    row-gap: 45px;
    overflow: visible;
}

.course {
    position: relative;
    min-width: 0;
    padding-left: 18px;
    overflow-wrap: break-word;
    font-size: 17px;
    line-height: 1.4;
}

.course::before {
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
    content: "•";
    font-size: 20px;
}

/* =========================================================
   COURSE MAJORS DROPDOWN
========================================================= */
.course-with-majors,
.course-title {
    position: relative;
    min-width: 0;
    overflow: visible;
}

.course-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.course-title>a {
    min-width: 0;
    overflow-wrap: anywhere;
}

.dropdown-arrow {
    position: relative;
    z-index: 20;
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 5px;
    font: inherit;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
}

.dropdown-arrow:hover {
    background: #ffffff20;
}

.dropdown-arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.program-majors[hidden] {
    display: none !important;
}

.program-majors .majors-title {
    display: block;
    padding: 8px 12px;
    margin-bottom: 8px;
    color: #176b43;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-align: left;
}

.program-majors:not([hidden]) {
    position: fixed;
    z-index: 10000;
    display: block;
    width: max-content;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    overflow-wrap: anywhere;
    overscroll-behavior: contain;
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px #0f172a29;
    pointer-events: auto;
}

.program-majors .major-item {
    max-width: 100%;
    margin-bottom: 6px;
    padding: 10px 12px;
    overflow-wrap: anywhere;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.program-majors .major-item:last-child {
    margin-bottom: 0;
}

/* =========================================================
   ANNOUNCEMENTS
========================================================= */
.announcement-section {
    position: relative;
    z-index: 5;
    isolation: isolate;
    width: 100%;
    padding: 65px 50px 75px;
    background: #fff;
}

.announcement-container {
    position: relative;
    z-index: 6;
    width: 100%;
    max-width: 1450px;
    margin: auto;
}

.announcement-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

.announcement-header h2 {
    color: #145c3c;
    font-size: 28px;
    font-weight: 800;
}

.read-all {
    color: #2ca66f;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s;
}

.read-all:hover {
    color: #145c3c;
}

/* Announcement category filter */
.ammc-announcement-filter {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 28px;
    pointer-events: auto;
}

.ammc-announcement-filter label {
    color: #145c3c;
    font-size: 14px;
    font-weight: 600;
    pointer-events: auto;
}

#ammc-category-filter {
    position: relative;
    z-index: 11;
    display: block;
    min-width: 200px;
    min-height: 42px;
    max-width: 100%;
    padding: 11px 14px;
    color: #145c3c;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    appearance: auto;
    -webkit-appearance: auto;
    pointer-events: auto;
    touch-action: manipulation;
    transition: border-color .2s, box-shadow .2s;
}

#ammc-category-filter:hover,
#ammc-category-filter:focus {
    border-color: #087b50;
}

#ammc-category-filter:focus {
    box-shadow: 0 0 0 3px #087b501f;
}

#ammc-filter-count {
    color: #6b7280;
    font-size: 13px;
}

.announcement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 60px;
}

.announcement-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.announcement-image-container {
    width: 100%;
    height: 270px;
    margin-bottom: 18px;
    overflow: hidden;
    background: #eee;
}

.announcement-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.announcement-card:hover .announcement-image {
    transform: scale(1.04);
}

.announcement-date {
    margin-bottom: 10px;
    color: #7b8790;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
}

.announcement-date span {
    margin: 0 12px;
    color: #9ca3af;
}

.announcement-card h3 {
    min-height: 48px;
    margin-bottom: 22px;
    color: #145c3c;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.announcement-card p {
    min-height: 65px;
    margin-bottom: 30px;
    color: #5f6368;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: break-word;
}

.announcement-btn {
    align-self: center;
    margin-top: auto;
    padding: 10px 28px;
    color: #fff;
    background: #31b66b;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, transform .2s;
}

.announcement-btn:hover {
    transform: translateY(-2px);
    background: #259b59;
}

.ammc-no-results {
    grid-column: 1 / -1;
    width: 100%;
    padding: 35px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
}

.ammc-no-results h3 {
    margin-bottom: 8px;
    color: #145c3c;
}

.ammc-no-results p {
    color: #6b7280;
}

/* =========================================================
   CONTACT POPUP
========================================================= */
.contact-info-box {
    position: fixed;
    right: 20px;
    bottom: 48px;
    z-index: 9999;
    display: block;
    width: 380px;
    max-width: calc(100vw - 40px);
    max-height: 70vh;
    margin: 0;
    padding: 0 16px 14px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid #0f5e5433;
    border-radius: 12px;
    box-shadow: 0 8px 28px #0000002e;
    text-align: left;
}

.contact-info-box:not(.is-open) {
    width: auto;
    max-width: calc(100vw - 40px);
    max-height: none;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.contact-toggle {
    position: sticky;
    top: 0;
    display: block;
    width: calc(100% + 32px);
    margin: 0 -16px 12px;
    padding: 12px 16px;
    color: #fff;
    background: #28734b;
    border: 0;
    border-radius: 10px 10px 0 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: left;
    cursor: pointer;
    transition: background .2s;
}

.contact-info-box:not(.is-open) .contact-toggle {
    width: auto;
    max-width: calc(100vw - 40px);
    margin: 0;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 4px 12px #0000001f;
}

.contact-info-box.is-open .contact-toggle {
    border-radius: 10px 10px 0 0;
}

.contact-toggle:hover,
.contact-toggle:focus-visible {
    background: #1a4a30;
}

.contact-toggle:focus-visible {
    outline: 3px solid #31b66b;
    outline-offset: 3px;
}

.contact-panel-content[hidden] {
    display: none !important;
}

.contact-info-box h3 {
    width: 100%;
    margin-bottom: 14px;
}

.contact-info-box .info-item {
    display: flex;
    flex: none;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #0f78661f;
}

.contact-info-box .info-icon {
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0;
    color: #0d5d52;
    background: #0f78661f;
    border: 1px solid #0f786626;
    border-radius: 50%;
}

.contact-info-box .info-text {
    flex: 1;
    width: auto;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: left;
}

.contact-info-box .info-text h4 {
    margin: 0 0 5px;
    color: #000;
    font-size: 14px;
    font-weight: 800;
}

.contact-info-box .info-text p {
    margin: 0;
    color: #20514d;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.contact-info-box .info-text a {
    color: #0f766e;
    overflow-wrap: anywhere;
}

.contact-info-box .contact-note {
    width: 100%;
    margin: 10px 0 0;
    padding: 10px 0 0;
    color: #2d514d;
    border-top: 1px solid #0f786626;
    font-size: 13px;
    font-style: italic;
    text-align: left;
}

/* =========================================================
   FOOTER
========================================================= */
.contact-footer {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.site-footer {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 55px 0 35px;
    overflow: hidden;
    color: #5f6663;
}

.site-footer::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #e5e6e4;
}

.footer-inner {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr);
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-map {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-width: 0;
    min-height: 180px;
}

.footer-map-image {
    display: block;
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 36px #3b46431f;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
}

.footer-map-image:hover,
.footer-map-image:focus {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 42px #3b46432e;
    outline: none;
}

.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 24px clamp(20px, 5vw, 96px);
    color: #a9a9a9;
    background: #202020;
    font-size: 16px;
    line-height: 1.5;
}

.footer-copyright p {
    margin: 0;
}

.footer-copyright .developer-credit {
    margin: 0;
    text-align: right;
}

/* =========================================================
   FLOATING SCHOOL INQUIRY WIDGET
========================================================= */
.inquiry-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    max-width: calc(100vw - 32px);
    font-family: "Segoe UI", Arial, sans-serif;
}

/*
   Keep the widget container from intercepting clicks
   outside its visible controls.
*/
#school-inquiry {
    pointer-events: none;
}

#school-inquiry button,
#school-inquiry a,
#school-inquiry input,
#school-inquiry textarea {
    pointer-events: auto;
}

.inquiry-toggle,
.inquiry-panel {
    pointer-events: auto;
}

.inquiry-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 20px;
    color: #fff;
    background: #17613d;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 24px #102d2061;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    transition: background .2s, transform .2s, box-shadow .2s;
}

.inquiry-toggle:hover {
    transform: translateY(-2px);
    background: #104c30;
    box-shadow: 0 11px 28px #102d2070;
}

.inquiry-toggle:focus-visible,
.inquiry-close:focus-visible {
    outline: 3px solid #70dfa0;
    outline-offset: 3px;
}

.inquiry-toggle svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.inquiry-panel {
    width: min(370px, calc(100vw - 32px));
    max-height: min(70vh, 540px);
    overflow: auto;
    color: #1f2937;
    background: #fff;
    border: 1px solid #dce7df;
    border-radius: 16px;
    box-shadow: 0 18px 55px #14251c40;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px) scale(.98);
    transform-origin: bottom right;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.inquiry-widget.is-open .inquiry-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.inquiry-panel-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 19px 20px 16px;
    color: #fff;
    background: #17613d;
}

.inquiry-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #c8f3d8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}

.inquiry-panel-header h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.inquiry-panel-header p {
    margin: 5px 0 0;
    color: #e0f4e7;
    font-size: 13px;
    line-height: 1.4;
}

.inquiry-close {
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #fff;
    background: #ffffff1c;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font: inherit;
    font-size: 24px;
    line-height: 1;
}

.inquiry-close:hover {
    background: #ffffff30;
}

.inquiry-panel-body {
    padding: 8px 20px 18px;
}

.inquiry-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e7eee9;
}

.inquiry-icon {
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #17613d;
    background: #eaf5ee;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
}

.inquiry-item>div {
    min-width: 0;
    padding-top: 1px;
}

.inquiry-label {
    display: block;
    margin-bottom: 3px;
    color: #647168;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

.inquiry-item p {
    margin: 0;
    color: #24352a;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.inquiry-item a {
    color: #12653d;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.inquiry-details {
    margin: 14px 0 0;
    color: #46564c;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.inquiry-empty {
    margin: 10px 0 0;
    color: #56645b;
    font-size: 13px;
    line-height: 1.55;
}

/* =========================================================
   BACK BUTTON
========================================================= */
.college-back-wrap {
    width: min(1200px, calc(100% - 40px));
    margin: 2px 0;
}


/* =========================================================
   RESPONSIVE: LAPTOP
========================================================= */
@media (max-width: 1200px) {
    .nav-container {
        padding: 18px 40px;
    }

    .logo-strip {
        justify-content: flex-start;
        gap: 10px;
        padding: 18px 20px;
        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: thin;
    }

    .logo-item {
        flex: 0 0 auto;
        height: 90px;
    }

    .logo-strip img {
        width: 120px;
        max-width: 120px;
        height: 90px;
    }

    .logo-description {
        width: 200px;
        font-size: 13px;
    }

    .college-content {
        grid-template-columns: 48% 52%;
    }

    .courses-section {
        padding: 45px 40px;
    }

    .courses-grid {
        column-gap: 35px;
        row-gap: 35px;
    }

    .announcement-section {
        padding: 55px 35px 65px;
    }

    .announcement-grid {
        gap: 35px;
    }
}

/* =========================================================
   RESPONSIVE: TABLET
========================================================= */
@media (max-width: 1000px) {
    .nav-container {
        padding: 18px 30px;
    }

    .logo {
        font-size: 21px;
    }

    .nav-links {
        gap: 25px;
    }

    .nav-links a {
        font-size: 15px;
    }

    .logo-strip {
        justify-content: flex-start;
        gap: 25px;
        padding: 16px 20px;
        overflow-x: auto;
        overflow-y: visible;
    }

    .logo-item {
        flex: 0 0 auto;
        height: 85px;
    }

    .logo-strip img {
        width: 105px;
        height: 85px;
    }

    .logo-description {
        width: 190px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .college-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .campus-section {
        min-height: 500px;
    }

    .courses-section {
        padding: 45px 45px 55px;
    }

    .courses-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 50px;
        row-gap: 30px;
    }

    .announcement-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
    }

    .announcement-image-container {
        height: 250px;
    }

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
        padding: 0 24px;
    }

    .footer-map {
        justify-content: flex-start;
    }
}

/* =========================================================
   RESPONSIVE: SMALL TABLET
========================================================= */
@media (max-width: 800px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 18px 25px;
    }

    .logo {
        font-size: 22px;
    }

    .nav-links {
        justify-content: space-between;
        width: 100%;
        gap: 12px;
    }

    .nav-links a {
        font-size: 15px;
    }

    .logo-section {
        padding: 8px 0;
    }

    .logo-strip {
        gap: 20px;
        padding: 15px 20px;
        overflow-x: auto;
        overflow-y: hidden;
        border-radius: 0;
        scrollbar-width: thin;
    }

    .logo-item {
        flex: 0 0 auto;
        height: 80px;
    }

    .logo-strip img {
        width: 90px;
        height: 80px;
    }

    .logo-description {
        display: none;
    }

    .logo-item:hover img {
        transform: none;
    }

    .campus-section {
        min-height: 430px;
    }

    .campus-title {
        right: 15px;
        left: 15px;
        padding: 18px 20px;
    }

    .campus-title h1 {
        font-size: 27px;
    }

    .courses-section {
        padding: 40px 30px;
    }

    .courses-section h2 {
        font-size: 23px;
    }

    .title-line {
        margin-bottom: 30px;
    }

    .announcement-section {
        padding: 45px 25px 55px;
    }
}

/* =========================================================
   RESPONSIVE: MOBILE
========================================================= */
@media (max-width: 650px) {
    .nav-container {
        align-items: center;
        padding: 16px 18px;
    }

    .logo {
        width: 100%;
        font-size: 20px;
        text-align: center;
        white-space: normal;
    }

    .nav-links {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        gap: 5px;
    }

    .nav-links li {
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 8px 3px;
        font-size: 13px;
    }

    .inquiry-widget {
        right: 12px;
        bottom: 12px;
    }

    .inquiry-toggle {
        min-height: 48px;
        padding: 0 15px;
        font-size: 14px;
    }

    .inquiry-panel {
        max-height: 65vh;
    }

    .logo-section {
        padding: 15px 0;
    }

    .logo-strip {
        justify-content: flex-start;
        gap: 15px;
        padding: 12px 15px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .logo-item {
        flex: 0 0 auto;
        height: 65px;
    }

    .logo-strip img {
        width: 75px;
        height: 65px;
    }

    .college-content {
        display: block;
    }

    .campus-section {
        min-height: 360px;
    }

    .campus-title {
        right: 10px;
        left: 10px;
        padding: 15px;
    }

    .campus-title h1 {
        font-size: 21px;
        line-height: 1.3;
    }

    .courses-section {
        padding: 35px 22px 40px;
    }

    .courses-section h2 {
        font-size: 22px;
    }

    .title-line {
        margin: 12px 0 25px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .course {
        font-size: 15px;
    }

    .announcement-section {
        padding: 40px 18px 50px;
    }

    .announcement-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
        margin-bottom: 25px;
    }

    .announcement-header h2 {
        font-size: 24px;
    }

    .announcement-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .announcement-image-container {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .announcement-card h3 {
        min-height: 0;
        margin-bottom: 12px;
        font-size: 17px;
    }

    .announcement-card p {
        min-height: 0;
        margin-bottom: 20px;
    }

    .announcement-date {
        font-size: 11px;
    }

    .announcement-btn {
        align-self: flex-start;
        padding: 9px 25px;
    }

    .ammc-announcement-filter {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    #ammc-category-filter {
        width: 100%;
    }

    .site-footer {
        padding: 45px 0 25px;
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
        padding: 0 18px;
    }

    .footer-map {
        min-height: auto;
        justify-content: center;
    }

    .footer-map-image {
        max-width: 100%;
    }

    .contact-info-box {
        right: 12px;
        bottom: 50px;
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        max-height: 65vh;
    }

    .contact-info-box:not(.is-open) {
        width: auto;
        max-width: calc(100vw - 24px);
        max-height: none;
    }

    .contact-info-box:not(.is-open) .contact-toggle {
        max-width: calc(100vw - 24px);
        font-size: 14px;
    }

    .contact-info-box h3 {
        font-size: 16px;
        letter-spacing: .1rem;
    }

    .contact-info-box .contact-note,
    .contact-info-box .info-text p {
        font-size: 13px;
    }
}

/* =========================================================
   RESPONSIVE: SMALL MOBILE
========================================================= */
@media (max-width: 480px) {
    .nav-container {
        padding: 14px 12px;
    }

    .logo {
        font-size: 18px;
    }

    .nav-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    .nav-links a {
        padding: 9px 5px;
        background: #f4f6fb;
        border-radius: 5px;
        font-size: 13px;
    }

    .nav-links a.active {
        background: #edf7f1;
        color: #145c3c;
    }

    .logo-section {
        padding: 12px 0;
    }

    .logo-strip {
        gap: 12px;
        padding: 10px;
    }

    .logo-item {
        height: 60px;
    }

    .logo-strip img {
        width: 65px;
        height: 60px;
    }

    .campus-section {
        min-height: 300px;
    }

    .campus-title {
        right: 8px;
        left: 8px;
        padding: 12px;
    }

    .campus-title h1 {
        font-size: 18px;
    }

    .courses-section {
        padding: 30px 18px;
    }

    .courses-section h2 {
        font-size: 20px;
    }

    .course {
        padding-left: 16px;
        font-size: 14px;
    }

    .announcement-section {
        padding: 35px 15px 45px;
    }

    .announcement-header h2 {
        font-size: 21px;
    }

    .read-all {
        font-size: 13px;
    }

    .announcement-grid {
        gap: 40px;
    }

    .announcement-date span {
        margin: 0 6px;
    }

    .announcement-card h3 {
        font-size: 16px;
    }

    .announcement-card p {
        font-size: 13px;
    }

    .announcement-btn {
        padding: 9px 22px;
        font-size: 14px;
    }
}

/* =========================================================
   RESPONSIVE: VERY SMALL MOBILE
========================================================= */
@media (max-width: 360px) {
    .logo {
        font-size: 17px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .logo-item {
        height: 55px;
    }

    .logo-strip img {
        width: 58px;
        height: 55px;
    }

    .campus-section {
        min-height: 260px;
    }

    .campus-title h1 {
        font-size: 16px;
    }

    .courses-section {
        padding: 25px 15px;
    }

    .announcement-section {
        padding-right: 12px;
        padding-left: 12px;
    }

    .announcement-header h2 {
        font-size: 19px;
    }

    .announcement-card h3 {
        font-size: 15px;
    }
}

img,
iframe {
    max-width: 100%;
}

body,
main,
section,
article,
nav,
footer {
    min-width: 0;
}

h1,
h2,
h3,
p,
a,
button,
label,
span {
    overflow-wrap: anywhere;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

@media (max-width: 420px) {

    .contact-info-box,
    .contact-info-box.is-open {
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }

    .contact-info-box.is-open {
        bottom: 12px;
        max-height: calc(100vh - 24px);
        max-height: calc(100svh - 24px);
    }

    .announcement-header,
    .ammc-announcement-filter {
        min-width: 0;
    }
}

@media (max-width: 650px) {
    .inquiry-panel {
        width: min(370px, calc(100vw - 56px));
    }
}

.logo-description {
    max-width: min(220px, calc(100vw - 24px));
    overflow-wrap: anywhere;
}

.logo-item:last-child .logo-description {
    right: 0;
    left: auto;
    transform: translateY(10px);
}

.logo-item:last-child:hover .logo-description {
    transform: translateY(0);
}

.logo-section.description-below .logo-item:last-child .logo-description {
    transform: translateY(-10px);
}

.logo-section.description-below .logo-item:last-child:hover .logo-description {
    transform: translateY(0);
}

/* ================================
   BACK BUTTON ABOVE PROGRAM LOGOS
================================ */

.school-back-container {
    width: 100%;
    padding: 12px 30px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.school-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    background: transparent;
    color: #000000;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
}

.school-back-button:focus-visible {
    outline: 3px solid #91d5b1;
    outline-offset: 3px;
}

.school-back-button span {
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 600px) {
    .school-back-container {
        padding: 10px 16px;
    }

    .school-back-button {
        padding: 8px 12px;
        font-size: 13px;
    }
}