/* =========================================================
   MGCI PAT / CUET DIVISION
   COMPLETE CSS
========================================================= */

:root {
    --pat-primary: #B36410;
    --pat-primary-dark: #8F4F0C;

    --pat-blue: #063B63;
    --pat-blue-dark: #062B4A;

    --pat-white: #ffffff;
    --pat-black: #111111;
    --pat-text: #333333;
    --pat-muted: #666666;
    --pat-border: #e5e5e5;
    --pat-light: #f5f6f8;

    --pat-container: 1320px;
}


/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family: Arial, Helvetica, sans-serif;

    color: var(--pat-text);
    background: #ffffff;
}

a {
    text-decoration: none;
}

button {
    font-family: inherit;
}

img {
    max-width: 100%;
}


/* =========================================================
   CONTAINER
========================================================= */

.pat-container {
    width: 100%;
    max-width: var(--pat-container);

    margin-left: auto;
    margin-right: auto;

    padding-left: 20px;
    padding-right: 20px;
}


/* =========================================================
   TOP BAR
========================================================= */

.pat-topbar {
    width: 100%;

    background: #003846;
    color: #ffffff;

    min-height: 40px;
}

.pat-topbar .pat-container {
    min-height: 40px;

    display: flex;
    align-items: center;
}

.pat-topbar-left {
    display: flex;
    align-items: center;

    gap: 30px;

    font-size: 15px;
}

.pat-topbar-left a,
.pat-topbar-left span {
    color: #ffffff;
}

.pat-topbar-left a:hover {
    color: #ffffff;
}


/* =========================================================
   MAIN HEADER
========================================================= */

.pat-main-header {
    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #eeeeee;
}

.pat-main-header-inner {
    min-height: 116px;

    display: flex;
    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


/* =========================================================
   LOGO
========================================================= */

.pat-logo {
    flex: 0 0 auto;
}

.pat-logo a {
    display: flex;
    align-items: center;
}

.pat-logo img {
    display: block;

    width: auto;

    max-width: 150px;
    max-height: 78px;

    object-fit: contain;
}


/* =========================================================
   HEADER LINKS
========================================================= */

.pat-main-links {
    display: flex;
    align-items: center;

    justify-content: center;

    gap: 16px;

    margin-left: auto;
}

.pat-main-links a {
    color: #111111;

    font-size: 17px;
    font-weight: 700;

    white-space: nowrap;

    transition: color 0.2s ease;
}

.pat-main-links a:hover {
    color: var(--pat-primary);
}


/* =========================================================
   WINDOWS APP
========================================================= */

.pat-app-button {
    flex: 0 0 auto;
}

.pat-app-button a {
    min-height: 44px;

    padding: 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    background: var(--pat-blue);
    color: #ffffff;

    border-radius: 4px;

    font-size: 15px;
    font-weight: 700;

    transition: background 0.2s ease;
}

.pat-app-button a:hover {
    background: var(--pat-blue-dark);

    color: #ffffff;
}

.windows-icon {
    font-size: 23px;
    line-height: 1;
}


/* =========================================================
   NAVIGATION
========================================================= */

.pat-navigation-bar {
    width: 100%;

    background: var(--pat-blue-dark);

    position: relative;

    z-index: 1000;
}

.pat-navigation {
    min-height: 52px;

    display: flex;
    align-items: center;

    gap: 0;
}

.pat-navigation > a,
.pat-nav-dropdown > a {
    min-height: 52px;

    padding: 0 10px;

    display: flex;
    align-items: center;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.pat-navigation > a:hover,
.pat-nav-dropdown > a:hover {
    background: var(--pat-primary);
    color: #ffffff;
}

.pat-navigation > a.active {
    background: var(--pat-primary);
    color: #ffffff;
}


/* =========================================================
   NAV DROPDOWN
========================================================= */

.pat-nav-dropdown {
    position: relative;
}

.pat-nav-dropdown > a {
    gap: 5px;
}

.pat-nav-dropdown > a span {
    font-size: 12px;
}

.pat-dropdown-menu {
    position: absolute;

    top: 100%;
    left: 0;

    min-width: 210px;

    background: #ffffff;

    border-top: 3px solid var(--pat-primary);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;

    z-index: 2000;
}

.pat-nav-dropdown:hover .pat-dropdown-menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.pat-dropdown-menu a {
    display: block;

    padding: 12px 16px;

    background: #ffffff;

    color: #222222;

    font-size: 14px;
    font-weight: 600;

    border-bottom: 1px solid #eeeeee;
}

.pat-dropdown-menu a:hover {
    background: #f7f7f7;

    color: var(--pat-primary);
}


/* =========================================================
   PAT / CUET HERO
   70% BANNER + 30% NEWS
========================================================= */

.pat-hero-news {
    width: 100%;
    background: #f5f6f8;
    padding: 22px 0;
}


/* MAIN HERO LAYOUT */

.pat-hero-layout {
    width: 100%;

    display: grid !important;

    grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr);

    gap: 20px;

    align-items: stretch;
}


/* =========================================================
   BANNER
========================================================= */

.pat-banner-slider {
    position: relative;

    width: 100%;
    min-width: 0;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #111111;

    border-radius: 3px;
}


/* SLIDES */

.pat-banner-slide {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.6s ease;

    z-index: 1;
}

.pat-banner-slide.active {
    opacity: 1;
    visibility: visible;

    z-index: 2;
}


/* IMAGE */

.pat-banner-slide img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 1 !important;

    filter: none !important;
}


/* =========================================================
   BANNER ARROWS
========================================================= */

.pat-banner-prev,
.pat-banner-next {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.50);

    color: #ffffff;

    font-size: 30px;
    line-height: 38px;

    cursor: pointer;

    z-index: 10;
}

.pat-banner-prev {
    left: 12px;
}

.pat-banner-next {
    right: 12px;
}

.pat-banner-prev:hover,
.pat-banner-next:hover {
    background: #B36410;
}


/* =========================================================
   DOTS
========================================================= */

.pat-banner-dots {
    position: absolute;

    left: 50%;
    bottom: 10px;

    transform: translateX(-50%);

    display: flex;

    gap: 7px;

    z-index: 10;
}

.pat-banner-dots button {
    width: 9px;
    height: 9px;

    padding: 0;

    border: 1px solid #ffffff;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.45);

    cursor: pointer;
}

.pat-banner-dots button.active {
    background: #B36410;
}


/* =========================================================
   NEWS PANEL
========================================================= */

.pat-news-panel {
    width: 100%;
    min-width: 0;

    background: #ffffff;

    border: 1px solid #dddddd;

    display: flex;

    flex-direction: column;

    overflow: hidden;
}


/* =========================================================
   NEWS TABS
========================================================= */

.pat-news-tabs {
    display: grid;

    grid-template-columns: 1fr 1fr;

    width: 100%;

    border-bottom: 1px solid #dddddd;
}

.pat-news-tab {
    min-height: 50px;

    padding: 8px;

    border: 0;

    background: #f3f3f3;

    color: #222222;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.pat-news-tab.active {
    background: #ffffff;

    color: #B36410;

    border-top: 3px solid #B36410;
}


/* =========================================================
   NEWS CONTENT
========================================================= */

.pat-news-content {
    display: none;

    flex: 1;

    padding: 4px 16px;
}

.pat-news-content.active {
    display: block;
}


/* =========================================================
   NEWS ITEM
========================================================= */

.pat-news-item {
    display: block;

    padding: 15px 0;

    border-bottom: 1px solid #eeeeee;
}

.pat-news-item:last-child {
    border-bottom: 0;
}

.pat-news-item a {
    color: #222222;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.5;

    text-decoration: none;
}

.pat-news-item a:hover {
    color: #B36410;
}


/* LABEL */

.pat-news-label {
    display: inline-block;

    margin-right: 8px;

    color: #B36410;

    font-size: 9px;
    font-weight: 800;
}


/* =========================================================
   VIEW MORE
========================================================= */

.pat-news-view-more {
    display: block;

    margin-top: auto;

    padding: 13px 15px;

    background: #063B63;

    color: #ffffff;

    text-align: center;

    font-size: 13px;
    font-weight: 700;
}

.pat-news-view-more:hover {
    background: #B36410;

    color: #ffffff;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .pat-hero-layout {
        grid-template-columns: 1fr;
    }

    .pat-banner-slider {
        aspect-ratio: 16 / 9;
    }

    .pat-news-panel {
        min-height: 350px;
    }

}

/* =========================================================
   INTRO
========================================================= */

.pat-home-intro {
    width: 100%;

    background: #ffffff;

    padding: 50px 0;
}

.pat-section-heading {
    max-width: 900px;
}

.pat-section-heading > span {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--pat-primary);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.pat-section-heading h1 {
    margin: 0 0 12px;

    color: #173b24;

    font-size: 36px;
    line-height: 1.2;
}

.pat-section-heading p {
    margin: 0;

    color: #555555;

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================================
   FOOTER
========================================================= */

.pat-footer {
    width: 100%;

    color: #ffffff;

    background: #0a1d38;
}


/* =========================================================
   FOOTER MAIN
========================================================= */

.pat-footer-main {
    background: #0b1d38;

    padding: 45px 0 35px;
}

.pat-footer-grid {
    display: grid;

    grid-template-columns:
        1.25fr
        1.25fr
        1fr
        1fr
        1.2fr;

    gap: 35px;
}

.pat-footer-column h3 {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: 17px;
    font-weight: 700;

    text-transform: uppercase;

    text-decoration: underline;

    text-underline-offset: 5px;
}

.pat-footer-column ul {
    list-style: none;

    padding: 0;
    margin: 0;
}

.pat-footer-column li {
    position: relative;

    margin-bottom: 11px;

    padding-left: 13px;
}

.pat-footer-column li::before {
    content: "›";

    position: absolute;

    left: 0;
    top: -1px;

    color: #f1b400;

    font-size: 17px;

    font-weight: 700;
}

.pat-footer-column a {
    color: #eeeeee;

    font-size: 14px;

    line-height: 1.5;
}

.pat-footer-column a:hover {
    color: #f1b400;
}


/* =========================================================
   FOOTER CONTACT
========================================================= */

.pat-footer-contact {
    background: #07162b;

    padding: 35px 0 40px;

    border-top: 1px solid rgba(255,255,255,0.08);
}

.pat-footer-contact-grid {
    display: grid;

    grid-template-columns: 0.85fr 1.5fr;

    gap: 45px;

    align-items: start;
}

.pat-footer-section-title {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 18px;
}

.pat-footer-section-title span {
    width: 4px;
    height: 25px;

    display: block;

    background: #f1b400;
}

.pat-footer-section-title h3 {
    margin: 0;

    color: #ffffff;

    font-size: 18px;
    font-weight: 700;
}

.pat-footer-contact-info h4 {
    margin: 0 0 12px;

    color: #f1b400;

    font-size: 18px;
}

.pat-footer-contact-info p {
    margin: 0 0 10px;

    color: #dddddd;

    font-size: 14px;

    line-height: 1.7;
}

.pat-footer-contact-info a {
    color: #ffffff;
}

.pat-footer-phone a {
    color: #f1b400;

    font-size: 20px;

    font-weight: 700;
}

.pat-footer-email a:hover,
.pat-footer-phone a:hover {
    color: #ffffff;
}


/* =========================================================
   SOCIAL
========================================================= */

.pat-social-links {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 20px;
}

.pat-social-links a {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #27466c;

    color: #ffffff;

    font-size: 15px;

    font-weight: 700;
}

.pat-social-links a:hover {
    background: var(--pat-primary);

    color: #ffffff;

    transform: translateY(-2px);
}


/* =========================================================
   GOOGLE MAP
========================================================= */

.pat-footer-map {
    width: 100%;
}

.pat-map-wrapper {
    width: 100%;

    overflow: hidden;

    border-radius: 5px;

    border: 1px solid rgba(255,255,255,0.15);

    background: #ffffff;
}

.pat-map-wrapper iframe {
    display: block;

    width: 100%;

    height: 300px;

    border: 0;
}

.pat-map-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-top: 12px;

    padding: 10px 18px;

    background: var(--pat-primary);

    color: #ffffff;

    border-radius: 4px;

    font-size: 14px;

    font-weight: 700;
}

.pat-map-button:hover {
    background: var(--pat-primary-dark);

    color: #ffffff;
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.pat-footer-bottom {
    background: #061326;

    border-top: 1px solid rgba(255,255,255,0.08);
}

.pat-footer-bottom-inner {
    min-height: 52px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.pat-footer-bottom p {
    margin: 0;

    color: #bfc8d4;

    font-size: 13px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .pat-main-header-inner {
        min-height: 100px;

        gap: 18px;
    }

    .pat-logo img {
        max-width: 130px;
    }

    .pat-main-links {
        gap: 10px;
    }

    .pat-main-links a {
        font-size: 14px;
    }

    .pat-app-button a {
        padding: 0 15px;

        font-size: 13px;
    }

    .pat-navigation > a,
    .pat-nav-dropdown > a {
        padding: 0 7px;

        font-size: 11px;
    }

}


/* =========================================================
   HERO TABLET
========================================================= */

@media (max-width: 900px) {

    .pat-hero-news-grid {
        flex-direction: column !important;
    }

    .pat-banner-slider,
    .pat-news-panel {
        flex: 0 0 100% !important;

        width: 100% !important;

        max-width: 100% !important;
    }

    .pat-banner-slider {
        aspect-ratio: 16 / 9;
    }

    .pat-news-panel {
        min-height: 350px;
    }

}


/* =========================================================
   FOOTER TABLET
========================================================= */

@media (max-width: 1000px) {

    .pat-footer-grid {
        grid-template-columns: repeat(3, 1fr);

        gap: 30px;
    }

    .pat-footer-contact-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .pat-topbar {
        min-height: auto;
    }

    .pat-topbar .pat-container {
        min-height: auto;

        padding-top: 8px;
        padding-bottom: 8px;
    }

    .pat-topbar-left {
        width: 100%;

        justify-content: space-between;

        gap: 10px;

        font-size: 11px;

        flex-wrap: wrap;
    }


    /* Main header */

    .pat-main-header-inner {
        min-height: auto;

        padding-top: 15px;
        padding-bottom: 15px;

        flex-wrap: wrap;

        justify-content: center;
    }

    .pat-logo {
        width: 100%;

        display: flex;

        justify-content: center;
    }

    .pat-logo img {
        max-width: 125px;

        max-height: 65px;
    }

    .pat-main-links {
        width: 100%;

        margin-left: 0;

        justify-content: center;

        flex-wrap: wrap;

        gap: 8px 14px;
    }

    .pat-main-links a {
        font-size: 12px;
    }

    .pat-app-button {
        width: 100%;

        text-align: center;
    }

    .pat-app-button a {
        width: 100%;
    }


    /* Navigation */

    .pat-navigation-bar {
        overflow-x: auto;
    }

    .pat-navigation {
        min-width: max-content;
    }

    .pat-navigation > a,
    .pat-nav-dropdown > a {
        min-height: 46px;

        padding: 0 9px;

        font-size: 11px;
    }


    /* Hero */

    .pat-hero-news {
        padding: 15px 0;
    }

    .pat-hero-news-grid {
        gap: 15px;
    }

    .pat-banner-prev,
    .pat-banner-next {
        width: 34px;
        height: 34px;

        line-height: 34px;

        font-size: 25px;
    }

    .pat-news-tab {
        min-height: 46px;

        font-size: 11px;
    }

    .pat-news-item {
        padding: 12px 0;
    }

    .pat-news-item a {
        font-size: 12px;
    }


    /* Intro */

    .pat-home-intro {
        padding: 35px 0;
    }

    .pat-section-heading h1 {
        font-size: 28px;
    }

    .pat-section-heading p {
        font-size: 15px;
    }


    /* Footer */

    .pat-footer-main {
        padding: 35px 0 25px;
    }

    .pat-footer-grid {
        grid-template-columns: 1fr 1fr;

        gap: 28px 20px;
    }

    .pat-footer-column h3 {
        font-size: 15px;
    }

    .pat-footer-column a {
        font-size: 13px;
    }

    .pat-footer-contact {
        padding: 30px 0;
    }

    .pat-footer-contact-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .pat-map-wrapper iframe {
        height: 260px;
    }

    .pat-footer-bottom-inner {
        min-height: auto;

        padding: 15px 0;

        flex-direction: column;

        align-items: flex-start;

        gap: 5px;
    }

}


@media (max-width: 480px) {

    .pat-footer-grid {
        grid-template-columns: 1fr;
    }

}