/* ==================== TABLE OF CONTENTS ==================== */
/*
1. IMPORTS & CSS VARIABLES
2. GLOBAL RESET & BASE STYLES  
3. TYPOGRAPHY & COMMON COMPONENTS
4. LAYOUT CONTAINERS
5. HEADER & NAVIGATION
   - Logo Styles
   - Main Navigation 
   - Mobile Navigation
6. FOOTER STYLES
   - Copyright
7. COLORED SECTION VARIANTS
8. PAGE-SPECIFIC STYLES
   - Home Page
   - History Page  
   - People Page
   - Agenda Page
   - Contributors Page
9. COOKIE NOTICE
10. RESPONSIVE STYLES
*/

/* ==================== 1. IMPORTS & CSS VARIABLES ==================== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Inter:wght@300;400;500;700&family=JetBrains+Mono:wght@400;700;900&family=Anton&display=swap');

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray: #e0dedb;
    --gray-mid: #666666;
    --gray-dark: #2a2a2a;
    --gold: #b59e5f;
    --gold-dark: #a08a4f;
}

/* ==================== 2. GLOBAL RESET & BASE STYLES ==================== */
/* 1. Apply box-sizing to everything (MOST IMPORTANT RULE) */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.2;
    min-height: 100vh; /* 2. Ensure body is at least full viewport height */
}

/* 3. Make images behave predictably */
img,
picture {
    max-width: 100%;
    display: block;
}

/* 4. Make form elements inherit fonts (one less thing to style manually) */
input,
button,
textarea,
select {
    font: inherit;
}

html {
    scroll-behavior: smooth;
}



/* ==================== 3. TYPOGRAPHY & COMMON COMPONENTS ==================== */
.subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.125rem, 3vw, 1.6875rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gray-mid);
    margin-bottom: 20px;
}

.main-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 400;
    line-height: 0.9;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.title-line {
    display: block;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 150px;
    height: 6px;
    background: var(--gold);
}

.content-text {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    line-height: 1.6;
    color: var(--gray-dark);
    margin-bottom: 80px;
    max-width: 900px;
}

.content-text p {
    margin-bottom: 25px;
}

.content-text strong {
    font-weight: 700;
    color: var(--black);
}

.highlight {
    background: var(--gold);
    color: var(--black);
    padding: 3px 8px;
    font-weight: 700;
}

a {
  color: var(--gold);
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  color: var(--gold-dark);
}

/* ==================== 4. LAYOUT CONTAINERS ==================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 60px 0px;
}

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 60px;
    position: relative;
}

.section-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(3.2rem, 8vw, 5.5rem);
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
    position: relative;
    text-align: left;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 150px;
    height: 6px;
    background: var(--gold);
}

.section-text {
    font-size: clamp(1.125rem, 2.2vw, 1.375rem);
    line-height: 1.4;
    max-width: 750px;
    margin-bottom: 25px;
    color: var(--gray-mid);
}

/* ==================== 5. HEADER & NAVIGATION ==================== */

/* Header Base Styles */
header {
    background: var(--black);
    color: var(--white);
    padding: 0;
    position: relative;
    transition: transform 0.3s ease;
    z-index: 1000;
}

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

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
}

.logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}


/* Main Navigation */
.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--white);
    padding: 15px 0;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: clamp(0.75rem, 2vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.2s ease;
}

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

/* Mobile Navigation */
.mobile-menu {
    display: none;
    position: relative;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 10000;
    transition: all 0.3s ease;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--gold);
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:first-child {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.mobile-menu-toggle.active .hamburger-line:last-child {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10000;
    background: var(--white);
    border: 2px solid var(--black);
    box-shadow: 4px 4px 0px var(--black);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

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

.mobile-menu-item {
    display: block;
    padding: 16px 20px;
    color: var(--black);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-light);
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-item:hover {
    background-color: var(--gray-light);
    color: var(--black);
    padding-left: 24px;
}

/* ==================== 6. FOOTER STYLES ==================== */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 100px;
}

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

.footer-logo-image {
    width: 160px;
    height: 80px;
    object-fit: contain;
}

.footer-info {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.6;
    color: var(--gold);
    text-align: left;
}

.footer-info p {
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
}

.footer-link {
    color: var(--gray-light);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.125rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s ease;
    position: relative;
}

.footer-link::before {
    content: '→';
    margin-right: 10px;
    color: var(--gold);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    color: var(--gold);
    transform: translateX(10px);
}

.footer-link:hover::before {
    opacity: 1;
}

/* Digital HQ line with tooltip */
.digital-hq {
    position: relative;
    display: inline-block;
}

.tooltip-container {
    position: relative;
    display: inline-block;
    margin-left: 8px;
}

.arrow-icon {
    color: var(--gold);
    font-size: 0.8em;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.arrow-icon:hover {
    transform: scale(1.2);
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    right: 0;
    background-color: var(--gold);
    color: var(--black);
    text-align: left;
    padding: 12px 16px;
    border-radius: 6px;
    z-index: 1000;
    width: 280px;
    font-size: 0.875rem;
    line-height: 1.4;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 20px;
    margin-left: -5px;
    border-width: 8px;
    border-style: solid;
    border-color: var(--gold) transparent transparent transparent;
}

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

/* Copyright Section */
.copyright-section {
    text-align: center;
    padding: 40px 0 30px 0;
    background: var(--black);
    color: var(--gray-mid);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-style: italic;
    letter-spacing: 0.05em;
}

/* ==================== 7. COLORED SECTION VARIANTS ==================== */

/* Combined Gold & Black Sections */
.section-combined {
    margin: 0;
    max-width: none;
    padding: 0;
}

.section-gold-part {
    background: var(--gold);
    color: var(--black);
    padding: 60px 0;
}

.section-black-part {
    background: var(--black);
    color: var(--white);
    padding: 60px 0;
}

.section-gold-part .section-content,
.section-black-part .section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    text-align: center;
}

.section-gold-part .section-title {
    color: var(--black);
    text-align: center;
}

.section-gold-part .section-title::after {
    background: var(--black);
    left: 50%;
    transform: translateX(-50%);
}

.section-gold-part .section-text {
    color: var(--black);
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(1.125rem, 2.2vw, 1.375rem);
}

/* ==================== 8. PAGE-SPECIFIC STYLES ==================== */

/* Home Page Specific Styles */
.photo-section {
    width: 100%;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Lower than header */
}

.photo-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.main-photo {
    width: 100%;
    height: auto;
    display: block;
}

.photo-overlay {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--gold);
    color: var(--black);
    padding: 15px 25px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.photo-caption-home {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.75rem, 1.8vw, 0.775rem);
    color: var(--gray-mid);
    padding: 10px 60px;
    font-style: italic;
    max-width: 900px;
}

.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 60px 30px;
    position: relative;
}

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

.hero-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(5rem, 14vw, 10rem);
    font-weight: 400;
    line-height: 0.9;
    margin-bottom: 35px;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.4vw, 1.5rem);
    font-weight: 400;
    max-width: 900px;
    margin-bottom: 40px;
    color: var(--gray-mid);
    line-height: 1.4;
}

.location-alt {
    background: var(--black);
    color: var(--white);
    padding: 20px 35px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 25px;
    display: inline-block;
    position: relative;
    line-height: 1.3;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
}

/* History Page Specific Styles */

.photo-section-history {
    width: 100%;
    max-width: 900px;
    display: flex;
    position: relative;
    overflow: hidden;
    margin: 5px; 
}

.photo-container-history {
    width: 100%;
    display: flex;
    position: relative;
}

.photo-container-history img {
    width: 100%;
    height: auto; /* This is key - it maintains the image's aspect ratio */
    display: block;
}

.photo-caption {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.75rem, 1.8vw, 0.975rem);
    color: var(--gray-dark);
    margin-bottom: 100px;
    font-style: italic;
    max-width: 900px;
}

.photo-caption a {
    color: var(--gold-dark);
    font-weight: bold;
    text-decoration: none;
    font-size: 0.975rem;
}
.photo-caption a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
 }

.photo-text {
    font-family: 'Anton', sans-serif;
    color: var(--gray-mid);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
    position: relative;
}

/* People Page Specific Styles */
.institutional-structure {
    font-size: clamp(1.125rem, 2.2vw, 1.375rem);
    color: var(--gray-dark);
    margin-top: 25px;
    line-height: 1.6;
}

.institutional-structure strong {
    font-weight: 700;
    color: var(--black);
}

.institutional-structure p {
    margin-bottom: 2px;
}

.council-list {
    margin: 25px 0;
    padding: 0;
    list-style: none;
}

.council-member {
    margin-bottom: 8px; /* Reduced from 15px */
    font-size: clamp(1.125rem, 2.2vw, 1.375rem);
    line-height: 1.3; /* Reduced line height */
    display: flex;
    flex-direction: column;
}

.member-name {
    font-weight: 700;
    color: var(--black);
    margin-bottom: 2px;
}

.member-title {
    font-style: italic;
    color: var(--gray-dark);
    margin-left: 0;
}

.leadership-note {
    font-size: clamp(1.125rem, 2.2vw, 1.125rem);
    color: var(--gray-dark);
    margin-top: 25px;
    font-style: italic;
}

/* Gray section People Page */
.section-gray-part {
    background: var(--gray);
    color: var(--white);
    padding: 60px 0;
    margin: 0;
    max-width: none;
}

.section-gray-part .section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    text-align: left; /* Keep left alignment */
}

.section-gray-part .institutional-structure {
    font-size: clamp(1.125rem, 2.2vw, 1.375rem);
    color: var(--black);
    margin-top: 25px;
    line-height: 1.6;
}

.section-gray-part .institutional-structure strong {
    font-weight: 700;
    color: var(--black);
}

.section-gray-part .leadership-note {
    font-size: clamp(1.125rem, 2.2vw, 1.125rem);
    color: var(--gray-dark);
    margin-top: 25px;
    font-style: italic;
}

/* Agenda Page Specific Styles */
.current-themes-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin: 50px 0 30px 0;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.theme-intro {
    margin-bottom: 30px;
    font-size: clamp(1.125rem, 2.2vw, 1.375rem);
    line-height: 1.6;
}

.theme-list-item {
    margin-bottom: 25px;
    font-size: clamp(1.125rem, 2.2vw, 1.375rem);
    line-height: 1.6;
}

.theme-list-item strong {
    font-weight: 700;
    color: var(--black);
    display: block;
    margin-bottom: 8px;
}

/* Contributors Page Specific Styles */
.memorial-content {
    background: var(--white);
    min-height: 80vh;
    padding: 100px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.memorial-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 0.9;
    margin-bottom: 80px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--black);
    text-align: center;
    position: relative;
}

.memorial-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 6px;
    background: var(--gold);
}

.memorial-note {
  text-align: left;
  display: block;
  margin-top: 2.5rem; /* 40px */
  margin-bottom: 2.5rem; /* 40px */
  color: var(--gray-mid);
}
.memorial-note-two {
    text-align: center;
    display: block;
  margin-top: 2.5rem; /* 40px */
  color: var(--gray-dark);
}


.names-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.name-item {
    font-family: 'Anton', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    text-align: center;
    padding: 2px;
    transition: color 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
    line-height: 1;
    opacity: 0;
    transform: translateY(20px);
}

.name-item:hover {
    color: var(--black);
}

.name-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.name-item.deceased {
    display: flex;
    align-items: center;
    justify-content: center;
}

.name-item.deceased::before {
    content: '✠';
    color: var(--gold);
    font-size: 0.7em;
    margin-right: 8px;
    opacity: 0.8;
    display: inline-block;
}

/* ==================== 9. COOKIE NOTICE ==================== */

.cookie-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--black);
    color: var(--white);
    padding: 20px;
    border: 1px solid var(--gold);
    max-width: 320px;
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.4;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.cookie-notice.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-notice.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.cookie-notice p {
    margin: 0 0 15px 0;
    font-family: 'Inter', sans-serif;
}

.cookie-notice-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-accept,
.cookie-decline {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 80px;
}

.cookie-accept {
    background-color: var(--gold);
    color: var(--black);
}

.cookie-accept:hover,
.cookie-accept:focus {
    background-color: var(--gold-dark);
    outline: none;
}

.cookie-decline {
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.cookie-decline:hover,
.cookie-decline:focus {
    background-color: var(--gold);
    color: var(--black);
    outline: none;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gold);
    color: var(--black);
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    font-size: 14px;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ==================== 10. RESPONSIVE STYLES ==================== */

/* Mobile Navigation Responsive Behavior */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }

    .cookie-notice {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 15px;
    }
    
    .cookie-notice-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-accept,
    .cookie-decline {
        flex: none;
        width: 100%;
    }

    .section-gray-part .section-content {
        padding: 0 20px;
    }

    .section-gray-part {
        padding: 40px 0; /* Reduced padding on mobile */
    }
}

/* Ensure header container accommodates both menus */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    position: relative;
}

@media (max-width: 768px) {
    .header-container {
        padding: 20px 30px;
    }

    .council-member {
        margin-bottom: 6px;
    }
    
    .current-themes-title {
        margin: 30px 0 20px 0;
    }
    
    .theme-list-item {
        margin-bottom: 20px;
    }

    .photo-overlay {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px; /* Reduced padding on mobile */
        font-size: clamp(0.6rem, 2.5vw, 0.75rem); /* More responsive font scaling */
    }
}

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    .header-container,
    .hero,
    .section,
    .section-content,
    .main-content {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .section-gold-part .section-content,
    .section-black-part .section-content {
        padding: 0 40px;
    }

    .section-gray-part .section-content {
        padding: 0 40px;
    }
    
    .footer-container {
        padding: 0 40px;
        gap: 60px;
    }
}

/* Mobile Styles (768px and below) */
@media (max-width: 768px) {
    /* Show mobile menu on mobile */
    .mobile-menu {
        display: block;
    }
    
    /* Hide regular navigation on mobile */
    .nav {
        display: none;
    }
    
    /* Mobile responsive tooltip */
@media (max-width: 768px) {
   .hero {
        padding-top: 30px; /* Reduce top padding on mobile */
        padding-bottom: 20px;
    } 
    
    .tooltip {
        width: 240px;
        right: -20px;
        font-size: 0.8rem;
        padding: 10px 14px;
    }
    
    .tooltip::after {
        right: 40px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 20px; /* Reduce even more on very small screens */
        padding-bottom: 15px;
    }
    
    .section-gray-part .section-content {
        padding: 0 15px;
    }

    .section-gray-part {
        padding: 30px 0;
    }
    
    .council-member {
        margin-bottom: 5px;
    }
        
    .tooltip {
        width: 200px;
        right: -40px;
        bottom: 140%;
        font-size: 0.75rem;
        padding: 8px 12px;
    }
    
    .tooltip::after {
        right: 60px;
    }

    .photo-overlay {
        bottom: 10px;
        right: 10px;
        padding: 6px 10px;
        letter-spacing: 0.1em; /* Slightly reduce letter spacing on very small screens */
    }
}
    /* Mobile Location Arrow */
   .location-alt {
        padding: 12px 20px;
        line-height: 1.2;
        clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
    }
    
    /* Mobile Footer Improvements */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
        text-align: center;
        max-width: 100%;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
        gap: 20px;
    }

    .logo-image {
        width: 32px;
        height: 32px;
    }
    
    .footer-logo-image {
        width: 45px;
        height: 45px;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    /* Mobile Layout Adjustments */
    .header-container,
    .hero,
    .section,
    .section-content,
    .main-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .section-gold-part .section-content,
    .section-black-part .section-content {
        padding: 0 20px;
    }

    .photo-overlay {
        bottom: 15px;
        right: 15px;
        padding: 10px 15px;
    }

    .main-content {
        padding: 60px 20px;
    }

    /* Mobile Page-Specific Adjustments */
    .memorial-content {
        padding: 60px 20px;
    }
    
    .names-grid {
        gap: 15px;
    }
}



/* Small Mobile Styles (480px and below) */
@media (max-width: 480px) {
    .header-container,
    .hero,
    .section,
    .section-content,
    .main-content,
    .section-gold-part .section-content,
    .section-black-part .section-content {
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 0px;
    }
    
    .footer-container {
        padding: 0 15px;
    }
}