/* ==========================================================================
   FUHSI Enterprise Web Design System
   Colors: Deep Forest Green (#0F5132) & Institutional Gold (#D4AF37)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0F5132;
    --primary-light: #167046;
    --primary-dark: #0a3822;
    --secondary: #D4AF37;
    --secondary-light: #e0be53;
    --secondary-dark: #b89325;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-weight: 700;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    font-size: 13px;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--secondary);
}

.top-info span {
    margin-right: 20px;
}

.top-info a {
    color: var(--white);
    text-decoration: none;
}

.top-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 15px;
    font-weight: 500;
}

.top-links a:hover {
    color: var(--secondary);
}

header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-placeholder {
    width: 55px;
    height: 55px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--secondary);
}

.logo-placeholder span {
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
}

.logo-text h1 {
    font-size: 18px;
    line-height: 1.2;
    text-transform: uppercase;
}

.logo-text p {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 15px;
    padding: 10px 0;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: var(--secondary-dark);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 10px 0;
    border-top: 3px solid var(--secondary);
}

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

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-menu li a:hover {
    background-color: var(--light);
    color: var(--primary);
    padding-left: 25px;
}

/* Call to Action Button in Nav */
.portal-cta {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius);
    border: 1px solid var(--secondary);
    transition: all 0.3s;
}

.portal-cta:hover {
    background-color: var(--secondary);
    color: var(--primary-dark) !important;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, rgba(15, 81, 50, 0.95) 0%, rgba(10, 56, 34, 0.9) 100%), 
                radial-gradient(circle at top right, rgba(212, 175, 55, 0.3) 0%, transparent 50%);
    color: var(--white);
    padding: 100px 5% 80px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-tagline {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--secondary);
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero-content h2 {
    color: var(--white);
    font-size: 44px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--primary-dark);
    border: 1px solid var(--secondary);
}

.btn-primary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.graphic-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-lg);
}

.graphic-box h3 {
    color: var(--secondary);
    font-size: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.portal-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s;
    border-left: 4px solid var(--secondary);
}

.portal-link-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.portal-link-item span {
    font-weight: 600;
    font-size: 14px;
}

/* ==========================================================================
   Page Banners
   ========================================================================== */

.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 5%;
    text-align: center;
    border-bottom: 4px solid var(--secondary);
}

.page-banner h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 10px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a {
    color: var(--secondary);
    text-decoration: none;
}

/* ==========================================================================
   Main Grid & Sections
   ========================================================================== */

section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    margin-top: 10px;
    font-size: 16px;
}

/* General Layout Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* ==========================================================================
   Cards & Elements
   ========================================================================== */

.card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    border-top: 4px solid var(--primary);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.card p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
}

.card-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-link:hover {
    color: var(--secondary-dark);
}

/* News List Item (Home) */
.news-item {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 12px;
    color: var(--secondary-dark);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-content p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 15px;
}

/* Staff Info Card */
.staff-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    text-align: center;
    border-bottom: 4px solid var(--secondary);
}

.staff-avatar {
    width: 100px;
    height: 100px;
    background-color: var(--light);
    border-radius: 50%;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary);
}

.staff-avatar span {
    font-size: 32px;
    color: var(--primary);
}

.staff-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.staff-card p {
    color: var(--secondary-dark);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.staff-bio {
    color: var(--gray) !important;
    font-size: 13px !important;
    margin-top: 10px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Welcome Segment (Home) */
.welcome-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.welcome-text {
    flex: 3;
}

.welcome-text h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 15px;
}

.welcome-text blockquote {
    border-left: 4px solid var(--secondary);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--gray);
}

.welcome-photo {
    flex: 2;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    padding: 10px;
    border: 3px solid var(--secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome-photo .photo-box {
    width: 100%;
    height: 250px;
    background-color: rgba(255,255,255,0.1);
    border-radius: calc(var(--radius) - 4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 40px;
}

.welcome-photo p {
    color: var(--white);
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */

footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 5% 20px 5%;
    border-top: 5px solid var(--secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo .logo-box {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border: 1px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--secondary);
    font-size: 16px;
}

.footer-logo h2 {
    color: var(--white);
    font-size: 16px;
    text-transform: uppercase;
}

.footer-contact li {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact li span {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--secondary);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 5%;
        gap: 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    .nav-menu.active {
        max-height: 500px;
        border-bottom: 3px solid var(--primary);
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 15px 5%;
        border-bottom: 1px solid var(--border);
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background-color: var(--light);
        border-top: none;
        border-left: 3px solid var(--secondary);
        border-radius: 0;
    }
    
    .nav-item.active .dropdown-menu {
        display: block;
    }
    
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .welcome-container {
        flex-direction: column;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .grid-4, .grid-5 {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .top-bar {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}
