/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #7f8c8d;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #FFFCD4;
    --bg-white: #FFFCD4;
    --border-color: #e0e0e0;
    --pencil-line-color: #2f2f2f;
    --pencil-line-shadow: rgba(0, 0, 0, 0.18);
    --spacing: 1rem;
    --spacing-lg: 2rem;
    --max-width: 1200px;
}

body {
    font-family: Arial, Verdana, sans-serif;
    line-height: 1.9;
    color: #555;
    background-color: #FFFCD4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 17px;
    font-weight: 400;
}

img {
    border: 2px solid var(--pencil-line-color);
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 1px 2px var(--pencil-line-shadow);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Launch Banner */
.launch-banner {
    background-color: #0313fc;
    color: white;
    padding: 0.75rem 0;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 8px rgba(3,19,252,0.2);
    z-index: 1000;
}

.launch-banner .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.launch-banner p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Navigation */
.navbar {
    background-color: #0313fc;
    color: white;
    padding: 1.2rem 0;
    box-shadow: 0 3px 15px rgba(3,19,252,0.15);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.submit-memorial-btn {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    white-space: nowrap;
}

.submit-memorial-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
}

/* Dropdown Menu */
.nav-menu li {
    position: relative;
}

.dropdown {
    position: relative;
}

.dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown > a::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.dropdown:hover > a::after,
.dropdown.active > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFFCD4;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    border: 1px solid rgba(3, 19, 252, 0.2);
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #000000;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-menu a:hover {
    background-color: rgba(3, 19, 252, 0.15);
    color: #000000;
    opacity: 1;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: white;
    padding: 4rem var(--spacing);
    text-align: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-home {
    background: linear-gradient(135deg, rgba(3, 19, 252, 0.6) 0%, rgba(3, 19, 252, 0.8) 100%),
                url('images/hero-img.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}


.hero h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
    padding-bottom: 3rem;
}

/* Sections */
.intro {
    padding: var(--spacing-xl) var(--spacing);
    background-color: var(--bg-white);
}

.intro h2 {
    font-size: 2.25rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.intro p {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: var(--text-light);
    /* max-width: 800px; */
    line-height: 1.8;
}

.ad-rotator {
    padding: 2rem var(--spacing);
    background: var(--bg-white);
}

.ad-rotator-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    min-height: 400px;
}

.ad-rotator-inner a {
    display: inline-block;
    width: 100%;
    max-width: 1200px;
}

.ad-rotator-media {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    display: block;
    background: rgba(0, 0, 0, 0.04);
}

.ad-rotator-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ad-rotator-caption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .ad-rotator-media {
        height: 200px;
    }
    .ad-rotator-inner {
        min-height: 400px;
    }
}

.intro-split {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.intro-copy {
    flex: 1;
    min-width: 0;
}

.intro-media {
    flex: 0 0 auto;
    text-align: center;
    margin: 2rem 0;
}

.intro-media img {
    width: 100%;
    height: auto;
}

.intro-media-logo img {
    max-width: 300px;
}

.intro-media-figure img {
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Page Header */
.page-header {
    background-color: var(--bg-white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-lg) var(--spacing);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 252, 212, 0.95);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header-memorials {
    background: linear-gradient(rgba(255, 252, 212, 0.95), rgba(255, 252, 212, 0.95)),
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&h=600&fit=crop&q=80');
    background-size: cover;
    background-position: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Search Section */
.search-section {
    padding: var(--spacing-lg) var(--spacing);
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.search-box {
    display: flex;
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: center;
}

.search-box input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

.search-box input[type="text"] {
    flex: 2;
    min-width: 180px;
}

.search-box input[type="number"] {
    flex: 1;
    min-width: 140px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-box select {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    background: white;
    cursor: pointer;
    color: var(--text-color);
}

.search-box select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-box button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.3s;
    flex-shrink: 0;
    white-space: nowrap;
}

#searchButton {
    background-color: var(--primary-color);
    color: white;
}

#searchButton:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
}

.search-results {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-light);
}

/* Memorial Grid */
.featured-memorials {
    padding: var(--spacing-xl) var(--spacing);
}

.featured-memorials h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
}

.memorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0;
}

.memorial-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid var(--border-color);
}

.memorial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    border-color: rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
}

.memorial-card-image {
    /* width: 100%; */
    /* height: 240px; */
    object-fit: contain;
    display: block;
    transition: var(--transition);
    background: #FFFCD4;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border: 2px solid var(--pencil-line-color);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7) inset,
        0 2px 3px var(--pencil-line-shadow);
}

.memorial-card:hover .memorial-card-image {
    transform: scale(1.05);
}

.memorial-card-content {
    padding: 1.5rem;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.memorial-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    letter-spacing: -0.3px;
}

.memorial-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.memorial-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 3px;
    width: auto;
    max-width: fit-content;
}

.memorial-badge[data-type="faculty"] {
    background-color: #DC2626;
    color: #FFFFFF;
}

.memorial-badge[data-type="student"] {
    background-color: #059669;
    color: #FFFFFF;
}

.memorial-badge[data-status="claimed"] {
    background-color: #2563EB;
    color: #FFFFFF;
}

.memorial-badge[data-status="unclaimed"] {
    background-color: #D97706;
    color: #FFFFFF;
}

.memorial-card-dates {
    color: var(--accent-color);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.memorial-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-all {
    text-align: center;
    padding: 2rem var(--spacing) 0;
    margin-top: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 1.0625rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Memorial Page */
.memorial-page {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    min-height: 60vh;
}

.memorial-hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem var(--spacing);
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.memorial-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 252, 212, 0.95);
    z-index: 1;
}

.memorial-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
}

.memorial-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.memorial-hero-content .memorial-dates {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-weight: 300;
}

.memorial-hero-section {
    background: linear-gradient(rgba(255, 252, 212, 0.95), rgba(255, 252, 212, 0.95)),
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&h=400&fit=crop&q=80');
    background-size: cover;
    background-position: center;
}

.back-button-container {
    text-align: center;
    margin-top: 2rem;
}

.no-memorials-message {
    text-align: center;
    color: #666;
}

.error-message {
    text-align: center;
    padding: var(--spacing-lg);
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    margin: var(--spacing);
}

.error-message p {
    color: #856404;
    margin: 0;
}

.memorial-page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing);
    background-color: var(--bg-white);
}

.memorial-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.memorial-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.memorial-header .memorial-dates {
    color: var(--text-light);
    font-size: 1.1rem;
}

.memorial-tribute {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: var(--spacing-xl);
    max-width: 100%;
}

.memorial-tribute p {
    margin-bottom: 0.75rem;
    margin-top: 0;
    line-height: 1.6;
}

.memorial-tribute p:last-child {
    margin-bottom: 0;
}

.memorial-tribute p:first-child {
    margin-top: 0;
}

.memorial-tribute p:empty {
    display: none;
}

.memorial-tribute br {
    line-height: 1.6;
}

/* Photo Gallery */
.photo-gallery {
    margin: var(--spacing-lg) 0;
}

.photo-gallery h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: var(--spacing);
    color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: var(--spacing);
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
    display: block;
    background: #FFFCD4;
    border: 2px solid var(--pencil-line-color);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7) inset,
        0 2px 3px var(--pencil-line-shadow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
}

.gallery-item:hover::after {
    background: rgba(0,0,0,0.1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 2px solid var(--pencil-line-color);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7) inset,
        0 2px 3px var(--pencil-line-shadow);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    transition: opacity 0.3s;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    transition: background 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
}

/* Memorial card image preview modal */
.card-image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
}

.card-image-modal img {
    max-width: min(1100px, 95vw);
    max-height: 90vh;
    object-fit: contain;
    background: #FFFCD4;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.card-image-modal .card-image-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 999px;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Elements */
textarea,
input[type="text"],
input[type="email"],
input[type="search"] {
    background-color: #FFFCD4;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 15px;
    padding: 0.8rem 1rem;
    font-family: Arial, Verdana, sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus {
    border-color: #0313fc;
    box-shadow: 0 0 0 3px rgba(3,19,252,0.1);
    outline: none;
}

/* Utilities */
.loading {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-light);
    font-size: 1.125rem;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.no-results {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Footer */
footer {
    margin-top: 6rem;
    background-color: #0313fc;
    color: white;
    padding: 3rem var(--spacing) 1.5rem;
    box-shadow: 0 -3px 15px rgba(3,19,252,0.15);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: white;
    font-weight: 600;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.3s, padding-left 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .memorial-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.9rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #FFFCD4;
        margin-top: 0.5rem;
        border-radius: 4px;
        border: 1px solid rgba(3, 19, 252, 0.2);
    }

    .dropdown-menu a {
        color: #000000;
        padding: 0.5rem 1rem;
    }

    .dropdown-menu a:hover {
        background-color: rgba(3, 19, 252, 0.15);
        color: #000000;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo img {
        width: 50px;
        height: 50px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        width: 40px;
        height: 40px;
        line-height: 40px;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
        width: 40px;
        height: 40px;
        line-height: 40px;
    }

    .search-box {
        flex-direction: column;
        max-width: 100%;
    }

    .search-box input[type="text"],
    .search-box input[type="number"],
    .search-box select,
    .search-box button {
        width: 100%;
        flex: none;
    }

    .memorial-card-content {
        padding: 1rem;
        min-height: auto;
    }

    .memorial-card h3 {
        font-size: 1.3rem;
    }

    .intro-media-logo img,
    .intro-media-figure img {
        max-width: 100%;
    }

    .intro-split {
        flex-direction: column;
    }

    .intro-media {
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem var(--spacing);
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .intro h2,
    .page-header h1 {
        font-size: 1.5rem;
    }

    .intro p,
    .page-content p {
        font-size: 0.95rem;
    }

    .nav-menu {
        font-size: 0.85rem;
        gap: 0.3rem;
    }

    .nav-menu a {
        padding: 0.3rem 0.5rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* Accessibility */
:focus-visible {
    outline: 3px solid rgba(3, 19, 252, 0.7);
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid rgba(3, 19, 252, 0.7);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Comments Section */
.comments-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.comments-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.comments-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.comments-list {
    margin-bottom: 3rem;
}

.comment-item {
    background: var(--bg-white);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-soft);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--primary-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-author {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.comment-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.comment-text {
    color: var(--text-color);
    line-height: 1.7;
    white-space: pre-wrap;
}

.no-comments {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
}

.comment-form-container {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius-soft);
    border: 2px solid rgba(3, 19, 252, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    margin-top: 2rem;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-guidelines-btn {
    border: 1px solid var(--border-color);
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
}

.comment-guidelines-btn:hover {
    background: rgba(3, 19, 252, 0.08);
}

.comment-guidelines-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2000;
    overflow: auto;
}

.comment-guidelines-modal.is-visible {
    display: flex;
}

.comment-guidelines-card {
    background: #fffcd4;
    border-radius: 12px;
    max-width: 760px;
    width: 100%;
    max-height: 85vh;
    overflow: auto;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    padding: 1.5rem 1.5rem 2rem;
}

.comment-guidelines-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-guidelines-title h3 {
    margin: 0;
    color: var(--primary-color);
}

.comment-guidelines-close {
    border: none;
    background: transparent;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    color: var(--primary-color);
}

.comment-guidelines-body h4 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.comment-guidelines-body p {
    margin-bottom: 0.75rem;
    color: var(--text-light);
    line-height: 1.7;
}

.comment-guidelines-body ul {
    margin: 0.5rem 0 1rem 1.2rem;
    color: var(--text-light);
}

.comment-form .form-group {
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-input);
    font-size: 1rem;
    font-family: Arial, Verdana, sans-serif;
    background: var(--bg-white);
    color: var(--text-color);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.comment-form button {
    margin-top: 1rem;
}

#commentFormMessage {
    margin-top: 1rem;
}

.success-message {
    padding: 1rem;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    border-radius: var(--border-radius-input);
    text-align: center;
}

.error-message {
    padding: 1rem;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #dc2626;
    border-radius: var(--border-radius-input);
    text-align: center;
}

/* Founder Cards */
.founder-card {
    background: #FFFCD4;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.founder-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0313fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.founder-info {
    flex: 1;
    min-width: 0;
}

.founder-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.founder-title {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 400;
}

.founder-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #fafaf5;
}

/* Founders Grid Responsive */
@media (max-width: 1024px) {
    .founders-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
    }
}

@media (max-width: 768px) {
    .founders-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .founder-card {
        padding: 1rem;
    }
    
    .founder-avatar {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .founder-name {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .founders-grid {
        grid-template-columns: 1fr !important;
        gap: 0.875rem !important;
    }
    
    .founder-card {
        padding: 1rem;
    }
    
    .founder-avatar {
        width: 50px;
        height: 50px;
        font-size: 0.95rem;
    }
    
    .founder-name {
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .search-section,
    footer,
    .lightbox,
    .btn,
    .comment-form-container {
        display: none;
    }

    .memorial-page {
        max-width: 100%;
    }
}
