/* ============================================
   PSND - Shared Base Styles
   Premium Professional Design System
   ============================================ */

:root {
    /* Primary Colors - Forest Green Theme */
    --primary-900: #0d3320;
    --primary-800: #134429;
    --primary-700: #1a5c3a;
    --primary-600: #22754b;
    --primary-500: #2a8e5c;
    --primary-400: #4aa876;
    --primary-300: #7bc49e;
    --primary-200: #a8dbbf;
    --primary-100: #d4eedf;
    --primary-50: #eef8f3;

    /* Accent Colors - Warm Gold */
    --accent-600: #b8860b;
    --accent-500: #d4a017;
    --accent-400: #e8b839;
    --accent-300: #f5d060;
    --accent-200: #fae89a;
    --accent-100: #fdf4ce;

    /* Neutrals */
    --neutral-900: #111827;
    --neutral-800: #1f2937;
    --neutral-700: #374151;
    --neutral-600: #4b5563;
    --neutral-500: #6b7280;
    --neutral-400: #9ca3af;
    --neutral-300: #d1d5db;
    --neutral-200: #e5e7eb;
    --neutral-100: #f3f4f6;
    --neutral-50: #f9fafb;
    --white: #ffffff;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* Container */
    --container-max: 1320px;
    --container-padding: 1.5rem;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #1a1a1a;
    background: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.header.scrolled {
    border-bottom-color: var(--neutral-200);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    transition: padding 0.3s;
}

.header.scrolled .header-inner {
    padding: 0.5rem 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    z-index: 1001;
}

.logo-mark {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

/* Logo styles defined in header.php to match homepage */

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2d6a4f;
}

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

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.nav-dropdown-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 0.5rem;
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
}

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

.nav-dropdown-item {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: var(--neutral-700);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    transition: all var(--transition-base);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: #2d6a4f;
    color: white;
}

.btn-primary:hover {
    background: #1b4332;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45,106,79,0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-700);
    border-color: var(--primary-700);
}

.btn-secondary:hover {
    background: var(--primary-700);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-700);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: transparent;
    color: var(--primary-700);
    border-color: var(--primary-700);
}

.btn-outline:hover {
    background: var(--primary-700);
    color: var(--white);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-700);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Page Hero Section
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--primary-800), var(--primary-600));
    padding: 11rem 0 5rem;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--neutral-50);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: var(--primary-50);
    color: var(--primary-700);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--neutral-900);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--neutral-600);
    line-height: 1.7;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--neutral-100);
}

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

.card-title {
    font-size: 1.25rem;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--neutral-600);
    line-height: 1.7;
}

/* ============================================
   Content Cards (Events/Articles)
   ============================================ */
.content-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.content-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-card-image .placeholder {
    font-size: 3rem;
    opacity: 0.3;
}

.content-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    background: var(--white);
    color: var(--primary-700);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.content-card-body {
    padding: 1.5rem;
}

.content-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-600);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.content-card-title {
    font-size: 1.25rem;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.content-card-title a {
    color: inherit;
    transition: color var(--transition-fast);
}

.content-card-title a:hover {
    color: var(--primary-600);
}

.content-card-excerpt {
    font-size: 0.9375rem;
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.content-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-600);
    transition: gap var(--transition-base);
}

.content-card-link:hover {
    gap: 0.75rem;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   Filters & Search
   ============================================ */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--neutral-200);
    background: var(--white);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--neutral-700);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-700);
    border-color: var(--primary-700);
    color: var(--white);
}

.search-form {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.search-form input {
    padding: 0.5rem 1rem;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    width: 250px;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-500);
}

.search-form button {
    padding: 0.5rem 1rem;
    background: var(--primary-700);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-form button:hover {
    background: var(--primary-800);
}

/* ============================================
   Vision/Mission Cards
   ============================================ */
.vm-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-600);
    transition: all var(--transition-base);
}

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

.vm-card h3 {
    font-size: 1.25rem;
    color: var(--primary-700);
    margin-bottom: 0.75rem;
}

.vm-card p {
    color: var(--neutral-600);
    line-height: 1.7;
}

/* ============================================
   Team/Board Cards
   ============================================ */
.team-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    text-align: center;
}

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

.team-card-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 2rem auto 1rem;
    border: 4px solid var(--neutral-100);
}

.team-card-info {
    padding: 0 1.5rem 2rem;
}

.team-card-name {
    font-size: 1.1rem;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
}

.team-card-position {
    color: var(--primary-600);
    font-weight: 500;
    font-size: 0.9rem;
}

.team-card-credentials {
    color: var(--neutral-500);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--neutral-500);
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section,
.cta {
    padding: 4.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-800), var(--primary-600));
}

.cta-content,
.cta-container {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.cta-title,
.cta h2,
.cta-section h2 {
    font-size: 1.85rem;
    color: var(--white);
    margin-bottom: 0.85rem;
}

.cta-description,
.cta p,
.cta-section p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    opacity: 0.9;
    margin-bottom: 1.75rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-secondary,
.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-cta-secondary:hover {
    background: var(--white);
    color: var(--primary-700);
    border-color: var(--white);
}

/* ============================================
   Footer (matching homepage)
   ============================================ */
.footer {
    background: #1b4332;
    color: white;
    padding: 3rem 2rem 1.25rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.75rem;
}

.footer-brand h3 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.4rem;
}

.footer-brand .tagline {
    font-style: italic;
    opacity: 0.85;
    font-size: 0.8rem;
    margin-bottom: 0.85rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    transition: all 0.3s;
}

.footer-social-link:hover {
    background: #95d5b2;
    color: #1b4332;
    transform: translateY(-3px);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

.footer-column h4,
.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.85rem;
}

.footer-links {
    list-style: none;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #95d5b2;
}

.footer-bottom {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
}

.footer-legal {
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.footer-legal a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: white;
    text-decoration: underline;
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary-600);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-700);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary-700); }
.text-accent { color: var(--accent-500); }
.text-muted { color: var(--neutral-500); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-2xl);
        transform: translateX(100%);
        transition: transform var(--transition-base);
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        width: 100%;
    }

    .mobile-toggle {
        display: flex;
    }

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

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

@media (max-width: 768px) {
    .page-hero {
        padding: 9rem 0 4rem;
    }

    .section {
        padding: 3rem 0;
    }

    .grid-2,
    .grid-3 { grid-template-columns: 1fr; }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form {
        margin-left: 0;
        width: 100%;
    }

    .search-form input {
        flex: 1;
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.25rem;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .btn {
        width: 100%;
    }
}
