:root {
    --font-main: 'Outfit', sans-serif;

    /* Black & White Palette */
    --bg-body: #ffffff;
    --bg-card: #f9fafb;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;

    --accent-dark: #000000;
    --accent-primary: #000000;
    /* Default Accent is Black */
    --accent-hover: #333333;

    /* Great Commission Specifics */
    --gc-blue: #2563eb;
    --gc-blue-hover: #1d4ed8;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);

    --radius-md: 8px;
    /* Sharper corners for B&W feel */
    --radius-lg: 12px;

    --header-height: 80px;
}

/* --- RESET & BASIC STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-body);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: var(--header-height);
    background-image: none;
    /* Removed colorful gradient */
}

/* Fish School Animation Container */
#fish-container {
    padding: 60px 20px;
    background-color: #f0f9ff;
    /* Very light blue bg */
    border: 1px solid #bae6fd;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

/* Simple CSS Fish Animation */
.fish {
    position: absolute;
    font-size: 24px;
    opacity: 0.6;
    animation: swim linear infinite;
    color: var(--gc-blue);
}

@keyframes swim {
    from {
        transform: translateX(-100px);
    }

    to {
        transform: translateX(100vw);
    }
}

/* Floating Orbs (Layout effect via pseudo elements on main container potentially, 
   but for now the gradientBG usually suffices for 'stylistic' without clutter) */

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-view {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: #000000;
    color: #fff;
    padding: 0 40px;
    height: 100px;
    /* Increased height */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border-bottom: 1px solid #333;
    opacity: 1 !important;
    /* Force solid */
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease;
}

.header-brand:hover {
    transform: scale(1.02);
}

.header-brand img {
    height: 72px;
    /* Enlarge Logo */
    width: auto;
}

header h1 {
    font-size: 2rem;
    /* Enlarge Name */
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
}


/* --- NAVIGATION MENU STYLES --- */
nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
}

/* Top level links */
nav>ul>li {
    position: relative;
}

nav>ul>li>a {
    color: #e5e7eb;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.95rem;
}

nav>ul>li>a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Dropdown Menus */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 240px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    /* Bridge gap for hover stability */
    margin-top: 10px;
    /* Visual gap */
}

/* Fix for right-most dropdown going off screen */
nav>ul>li:last-child .dropdown-menu {
    left: auto;
    right: 0;
}

/* Invisible bridge so mouse doesn't lose hover when moving to menu */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    /* Covers the gap */
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

nav li:hover>.dropdown-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu a {
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: #f3f4f6;
    color: var(--text-primary);
}

/* Nested Submenu */
.submenu {
    top: 0;
    left: calc(100% + 8px);
    margin-top: -8px;
}

.has-submenu>a::after {
    content: " ›";
    float: right;
    font-size: 1.2em;
    line-height: 1;
    margin-left: 8px;
}

/* --- MAIN CONTENT --- */
main {
    padding-top: 40px;
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 80px;
}

/* --- SECTIONS --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    position: relative;
    color: #000000;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #000000;
    margin: 20px auto 0;
    border-radius: 2px;
}

.container-center {
    text-align: center;
    margin-bottom: 60px;
}

/* --- MISSION STATEMENT --- */
#mission {
    background: #ffffff;
    padding: 80px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 80px;
    text-align: center;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

#mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #000000;
}

#mission p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.5;
}

/* --- CARDS & GRIDS --- */
.council-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: #ffffff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #000;
}

.card h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 700;
}

.name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.email {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.email:hover {
    color: #000000;
    text-decoration: underline;
}

.term {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 99px;
    display: inline-block;
    border: 1px solid #eee;
}

/* --- FORMS & BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #000000;
    color: white;
    border: 1px solid transparent;
    border-radius: 4px;
    /* More standard button shape */
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: none;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Special Blue Button for Commission */
.btn-blue {
    background: var(--gc-blue) !important;
}

.btn-blue:hover {
    background: var(--gc-blue-hover) !important;
}

.btn:active {
    transform: translateY(1px);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background-color: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.2s;
    margin-left: 10px;
    width: 32px;
    height: 32px;
}

.btn-icon:hover {
    background-color: #ef4444;
    color: white;
    transform: scale(1.1);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f9fafb;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background-color: white;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
}

/* --- FOOTER --- */
footer {
    background-color: var(--accent-dark);
    color: #9ca3af;
    padding: 60px 20px;
    text-align: center;
    margin-top: auto;
}

#verse-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#verse-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #e5e7eb;
    margin-bottom: 12px;
    line-height: 1.6;
}

#verse-ref {
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- RESPONSIVE --- */
@media (max-width: 850px) {
    body {
        padding-top: 0;
    }

    header {
        height: auto;
        padding: 15px 20px;
        background-color: var(--accent-dark);
        /* Solid background on mobile */
        flex-wrap: wrap;
        /* Allow wrapping */
        position: relative;
    }

    .header-brand {
        margin-right: auto;
        /* Push everything else to right */
    }

    #auth-container {
        margin-left: 0;
        margin-right: 15px;
    }

    /* Hamburger Toggle */
    #mobile-menu-toggle {
        display: inline-flex !important;
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }

    /* Hide Nav by Default on Mobile */
    nav {
        width: 100%;
        display: none;
        /* JS will toggle this to block/flex */
        margin-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 10px;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    nav.nav-active {
        display: block;
    }

    nav>ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    nav>ul>li {
        width: 100%;
        text-align: left;
    }

    nav>ul>li>a {
        display: block;
        padding: 12px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Mobile Dropdowns: Show flat or allow tap to expand. 
       For simplicity, let's keep them hidden until hover/click, 
       but ensure they push content down relative-style */
    .dropdown-menu {
        position: static;
        /* Flow in document */
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.05);
        width: 100%;
        border: none;
        opacity: 1;
        transform: none;
        display: none;
        /* Hide submenu by default */
        padding-left: 20px;
    }

    /* Show submenu on HOVER (works on touch as a 'tap' mostly) for parent li */
    nav li:hover>.dropdown-menu,
    nav li:focus-within>.dropdown-menu {
        display: flex;
    }

    .dropdown-menu a {
        color: #ddd;
        padding: 10px;
    }

    main {
        padding-top: 100px;
        /* Reduced since header is compacted usually */
    }

    .section-title {
        font-size: 2rem;
    }

    /* Responsive Modals */
    .card {
        width: 95% !important;
        /* Force fit mobile width */
        margin: 10px auto;
        padding: 20px;
    }
}