@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200..900;1,200..900&display=swap');

:root {
    --primary-navy: #ffffff;
    --accent-blue: #38bdf8;
    --bg-light: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-light);
    background-image: url('WEB_BG.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow-x: hidden;
}

/* --- Navigation Bar Styles --- */
.navbar {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-img {
    height: 35px;
    width: auto;
    display: block;
}

/* Mobile Hamburger Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-wrapper {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding-bottom: 0.25rem;
    transition: color 0.2s ease, border-bottom 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}

/* --- Dropdown Navigation Menu --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    list-style: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 200;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.65rem 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-blue);
}

/* --- Main Container & Layout --- */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 3rem;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

/* --- Header Section --- */
.portal-header {
    width: 100%;
    max-width: 950px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.portal-header.center-header {
    max-width: 950px;
    text-align: center;
    margin: 0 auto 3rem auto;
}

/* Main Title Header */
.portal-header .main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: -5px !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.portal-header .title-light {
    font-weight: 200;
    color: rgba(255, 255, 255, 0.9);
}

.portal-header .title-bold {
    font-weight: 900;
    color: #ffffff;
}

/* Header Subtext Paragraphs */
.portal-header p {
    font-family: 'Times New Roman', Times, serif !important;
    font-style: normal;
    font-size: 1.35rem !important;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    line-height: 1.6;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

.portal-header .social-bar {
    margin-top: 0 !important;
}

/* Tagalog text italicization */
.portal-header p i,
.portal-header p em {
    font-style: italic;
}

/* --- Section Headings (Montserrat) --- */
h2, h3, 
.mv-card h2, 
.purpose-card h2, 
.cv-title, 
.purpose-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.mv-card h2, 
.purpose-card h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.cv-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.purpose-title {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    text-align: center;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Card Subtext / Descriptions (Times New Roman) --- */
.mv-card p,
.purpose-list li,
.cv-box p,
.purpose-box p {
    font-family: 'Times New Roman', Times, serif;
}

.mv-card p {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8);
}

/* --- Section Layouts --- */
.mission-vision-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.cards-wrapper {
    display: flex;
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
}

.mv-card {
    flex: 1;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.mv-card:hover,
.purpose-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.4);
}

.mv-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

/* --- Dedicated Purpose Card Styling --- */
.purpose-card {
    width: 100%;
    max-width: 1000px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2.5rem 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.purpose-list {
    list-style-type: lower-alpha;
    text-align: left;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.purpose-list li {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.purpose-list li::marker {
    color: var(--accent-blue);
    font-weight: 700;
}

/* --- Core Values Grid Layout --- */
.purpose-card.core-values-container {
    max-width: 1200px;
}

.core-values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.core-value-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cv-box {
    background-color: rgba(56, 189, 248, 0.8);
    border-radius: 6px;
    padding: 1.25rem 1rem;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cv-box p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ffffff;
    text-align: center;
    font-weight: 500;
}

/* --- Purpose Grid Layout --- */
.purpose-card.purpose-container {
    max-width: 1350px;
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.purpose-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.purpose-box {
    background-color: rgba(56, 189, 248, 0.8);
    border-radius: 6px;
    padding: 1.25rem 0.85rem;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.purpose-box p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #ffffff;
    text-align: center;
    font-weight: 500;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 1200px) {
    .purpose-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .core-values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.8rem 1.25rem !important;
        position: relative !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .mobile-menu-toggle {
        display: block !important;
        z-index: 1002;
    }

    .nav-wrapper {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        z-index: 1001;
    }

    .nav-wrapper.active {
        display: block !important;
    }

    .nav-menu {
        display: flex !important;
        flex-direction: column !important;
        padding: 1.5rem !important;
        gap: 1.25rem !important;
        align-items: flex-start !important;
        width: 100%;
        list-style: none;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        border: none;
        margin-top: 0.5rem;
        padding-left: 1rem;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.open > .dropdown-menu {
        display: block !important;
    }

    .container {
        padding: 2rem 1.25rem;
    }

    .portal-header .main-title {
        font-size: 2.2rem;
    }

    .portal-header p {
        font-size: 1.1rem !important;
    }

    .cards-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .core-values-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .purpose-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
