/* ============================================================
   GLOBAL CONTAINER & HERO FIXES
   ============================================================ */

/* Container class - controls max width of all content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Hero section - full width with background image support */
.hero-section {
    width: 100%;
    padding: 80px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Hero title styles */
.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Hero subtitle styles */
.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Ensure hero content respects container */
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* For templates using .hero instead of .hero-section */
.hero {
    width: 100%;
    padding: 80px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
}

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

/* Main content spacing */

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .main-content {
        padding: 40px 0;
    }
}

/* ============================================================ */

/* ============================================================
   CULTURAL / HERITAGE / CLAN TEMPLATE
   Rich, traditional, community-focused design
   For: Clan/family history, cultural organizations, traditional councils
   ============================================================ */

:root {
    /* Brand Colors - Rich, Earthy, Traditional */
    --primary-blue: #8b4513;
    --secondary-blue: #5c2e0a;
    --accent-color: #daa520;

    /* Backgrounds */
    --bg-color: #f8f2e6;
    --card-bg-light: #ffffff;
    --card-bg-alt-light: #fef5e8;

    /* Text */
    --text-color: #2a2418;
    --text-muted: #6b5b4a;

    /* Borders & Shadows */
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-full: 999px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 20px rgba(0,0,0,0.1);
}

/* ============================================================
   LAYOUT FIXES (Footer positioning & full height)
   ============================================================ */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 1.05rem;
    line-height: 1.7;
    background-image: url('/pattern-tribal.png');
    background-repeat: repeat;
    background-attachment: fixed;
    background-size: 200px;
    background-opacity: 0.02;
    transition: opacity 0.15s ease-in-out;
}

.main-content {
    flex: 1;
}

.footer {
    margin-top: auto;
    position: relative;
    z-index: 10;
}

/* ============================================================
   PROFESSIONAL NAVIGATION HEADER
   ============================================================ */
header {
    background: #1a1a2e;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand .logo {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #daa520;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a2e;
    min-width: 200px;
    padding: 0.5rem 0;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
    }
    nav ul.show {
        display: flex;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    .dropdown.active .dropdown-menu {
        display: block;
    }
}

/* ============================================================
   EXISTING CULTURAL STYLES (KEEP ALL)
   ============================================================ */

/* Typography - Traditional with Character */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

h1 {
    font-size: 3.5rem;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '✦';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    font-size: 1.5rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 8px;
}

/* Hero Section - Cultural Banner */
.hero {
    background: linear-gradient(135deg, rgba(139,69,19,0.9), rgba(92,46,10,0.95)),
                url('/cultural-pattern.png');
    background-size: cover;
    background-blend-mode: overlay;
    min-height: 60vh;
}

.hero-tagline {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0;
    text-transform: none;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
}

/* Cultural Artifact/Card */
.artifact-card {
    background: var(--card-bg-light);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(218,165,32,0.3);
    position: relative;
}

.artifact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.artifact-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.artifact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Clan/Family Tree Section */
.family-tree {
    background: var(--card-bg-alt-light);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
}

.generation {
    margin: 30px 0;
    position: relative;
}

.generation-title {
    background: var(--accent-color);
    color: white;
    display: inline-block;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.member-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin: 10px;
    display: inline-block;
    width: 180px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-left: 3px solid var(--accent-color);
}

.member-name {
    font-weight: bold;
    font-size: 1rem;
    margin: 5px 0;
}

.member-title {
    font-size: 0.75rem;
    color: var(--accent-color);
    text-transform: uppercase;
}

/* Timeline (History) */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 25px;
}

.timeline-item::before {
    content: '●';
    position: absolute;
    left: -22px;
    top: 0;
    color: var(--accent-color);
    font-size: 1rem;
}

.timeline-year {
    font-weight: bold;
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.timeline-event {
    background: var(--card-bg-light);
    padding: 15px;
    border-radius: 12px;
}

/* Gallery - Cultural Images */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 10px;
    font-size: 0.85rem;
    transform: translateY(100%);
    transition: all 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Events Calendar */
.event-card {
    background: var(--card-bg-light);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: all 0.3s;
}

.event-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.event-date {
    background: var(--accent-color);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    min-width: 80px;
}

.event-day {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.event-month {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.event-content {
    flex: 1;
}

.event-title {
    font-weight: bold;
    margin-bottom: 5px;
}

/* Buttons - Traditional */
.btn, .btn-primary, a.btn, a.btn-primary {
    border-radius: 50px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    font-size: 0.85rem !important;
    padding: 12px 28px !important;
    background: var(--primary-blue) !important;
    border: 1px solid var(--accent-color) !important;
}

.btn:hover, .btn-primary:hover {
    background: var(--secondary-blue) !important;
    border-color: var(--accent-color) !important;
    transform: translateY(-2px) !important;
}

/* Traditional Pattern Dividers */
.divider {
    text-align: center;
    margin: 40px 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    letter-spacing: 8px;
}

.divider::before,
.divider::after {
    content: '✦';
    margin: 0 10px;
    opacity: 0.5;
}

/* Footer */
footer {
    background: var(--secondary-blue) !important;
    border-top: 5px solid var(--accent-color);
    color: #d4c5a5;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        var(--accent-color),
        var(--accent-color) 20px,
        transparent 20px,
        transparent 40px
    );
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero-tagline { font-size: 1.2rem; }
    .member-card { width: 140px; }
    .event-card { flex-direction: column; text-align: center; }
    .gallery-grid { grid-template-columns: 1fr; }
}

/* Cultural Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* ===== STICKY FOOTER FIX (required for all templates) ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.main-content {
    flex: 1;
    padding: 40px 0;
    min-height: 40vh;
}
.footer {
    margin-top: auto;
}
/* ===== END STICKY FOOTER ===== */
/* Prevent footer from going too far down on short pages */
.main-content:empty {
    padding: 20px 0;
    min-height: 20vh;
}
/* ============================================================
   LOGO STYLING
   ============================================================ */
.brand .logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .brand .logo {
        height: 40px;
        max-width: 150px;
    }
}
/* =================================================================
* 
*  We added the following to correct the scrolling and overlay of footer = 202605271943
*/
/* ============================================
✅ FIX: PAGE CONTENT FLOW & SCROLL
============================================ */

main.main-content {
    width: 100%;
    display: block;
    flex: 1; /* Must remain */
}

/* Prevent content clipping */
.page-body {
    padding-bottom: 40px;
}

/* Ensure scrolling always works */
html, body {
    overflow-y: auto;
}

/* Ensure body never restricts overflow */
body {
    overflow-x: hidden;
    overflow-y: auto;
}


