:root {
    --bg: #3A1A35;
    --surface: rgba(255, 255, 255, 0.12);
    --surface-soft: rgba(255, 255, 255, 0.2);
    --text: #FFFFFF;
    --text-secondary: #F0D8E8;
    --muted: #E0C8D8;
    --accent: #E05AA0;
    --accent-2: #FCF7F8;
    --danger: #FF6B6B;
    --radius: 12px;
}

* { box-sizing: border-box; }
html {
    overflow-x: hidden;
}
body {
    margin: 0;
    padding: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background: #483248 ;
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Override body background only on about page */
body.about-page {
    background: transparent;
}

/* Override body background for FAQ, Media, Contact pages */
body.faq-page,
body.media-page,
body.contact-page {
    background: #4A2545;
}

/* Media Page uniform margins */
body.media-page .section {
    padding: 40px 0;
}

body.media-page h1 {
    margin-bottom: 24px;
}

body.media-page .stack {
    gap: 24px;
}

body.media-page .card {
    padding: 24px;
}

body.media-page .media-grid {
    margin-top: 20px;
    gap: 24px;
}

/* Make all section cards on about page have better readability */
body.about-page .section .container > article,
body.about-page .section .container > .stack {
    background: rgba(0, 0, 0, 0.4);
    padding: 24px;
    border-radius: 16px;
    backdrop-filter: blur(4px);
}
body.about-page .section .container > .stack {
    padding-top: 12px;
}

/* Make Our Values cards pink on about page */
body.about-page .why-choose-card {
    background: #D84797;
}
body.about-page .why-choose-card-alt {
    background: #c13e85;
}
body.about-page .why-choose-card h3,
body.about-page .why-choose-card p,
body.about-page .why-choose-card-alt h3,
body.about-page .why-choose-card-alt p {
    color: white;
}
.container { 
    width: min(1120px, 92%); 
    margin: 0 auto;
    overflow-x: visible !important;
    max-width: 100% !important;
}
a { color: var(--accent); text-decoration: none; }

/* WCAG: Focus indicators for all interactive elements */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 3px solid #D84797;
    outline-offset: 2px;
}

/* WCAG: Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #D84797;
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 12px 12px;
    font-weight: 700;
    font-size: 1rem;
    z-index: 10000;
    transition: top 0.3s ease-in-out;
    text-decoration: none;
    border: 2px solid #fff;
}
.skip-link:focus,
.skip-link:hover {
    top: 0;
    outline: 3px solid #fff;
    outline-offset: -3px;
}

/* Accessibility Button */
.accessibility-btn {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #D84797;
    border-radius: 8px 0 0 8px;
    padding: 12px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.accessibility-btn:hover {
    background: #f8f8f8;
}

.accessibility-btn:focus {
    outline: 3px solid #4A2545;
    outline-offset: 2px;
}

/* Accessibility Panel */
.accessibility-panel {
    position: fixed;
    top: 50%;
    right: -400px;
    transform: translateY(-50%);
    background: white;
    width: 350px;
    max-width: 90vw;
    padding: 24px;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 10000;
    transition: right 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.accessibility-panel.open {
    right: 0;
}

.accessibility-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.accessibility-close:hover {
    opacity: 0.7;
}

.accessibility-panel h3 {
    color: #4A2545;
    margin: 0 0 20px 0;
    padding-right: 32px;
}

/* Font Size Control */
.accessibility-font-control {
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 2px solid #4A2545;
}

.accessibility-font-control p {
    color: #4A2545;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-align: center;
}

.accessibility-font-control #fontSizeValue {
    color: #D84797;
    font-size: 1.2em;
}

.font-size-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.font-size-buttons .accessibility-option {
    padding: 8px 16px;
    margin: 0;
}

.accessibility-options {
    display: grid;
    gap: 12px;
}

.accessibility-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f8f8;
    border: 2px solid #4A2545;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    color: #4A2545;
    font-weight: 600;
    transition: all 0.2s ease;
}

.accessibility-option:hover {
    background: #D84797;
    color: white;
    border-color: #D84797;
}

.accessibility-option.active {
    background: #4A2545;
    color: white;
    border-color: #4A2545;
}

/* Accessibility Features */
body.high-contrast {
    filter: contrast(1.5);
}

body.grayscale {
    filter: grayscale(100%);
}

body.invert-colors {
    filter: invert(100%);
}

body.invert-colors img,
body.invert-colors video {
    filter: invert(100%);
}

body.underline-links a {
    text-decoration: underline !important;
}

body.big-cursor {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path fill="%23D84797" d="M4 4 L12 20 L8 20 L10 28 L14 20 L16 20 Z"/></svg>') 4 4, auto;
}

/* Font Size Levels */
body.font-size-80 {
    font-size: 80%;
}

body.font-size-100 {
    font-size: 100%;
}

body.font-size-125 {
    font-size: 125%;
}

body.font-size-150 {
    font-size: 150%;
}

body.font-size-175 {
    font-size: 175%;
}

body.font-size-200 {
    font-size: 200%;
}

.site-header { 
    position: sticky; 
    top: 0; 
    backdrop-filter: blur(8px); 
    background: #FFFFFF; 
    border-bottom: 1px solid #eee; 
    z-index: 20; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.site-header .brand, .site-header .main-nav a {
    color: #4A2545;
}
.site-header .main-nav a:hover {
    color: #D84797;
}
.site-header .main-nav a.btn-outline {
    background: #D84797;
    color: #FFFFFF;
    border: none;
}
.site-header .main-nav a.btn-outline:hover {
    opacity: 0.9;
    color: #FFFFFF;
}
.site-header .main-nav a.btn-download {
    background: #D84797;
    color: #FFFFFF;
}
.site-header .main-nav a.btn-download:hover {
    opacity: 0.9;
}
.nav-wrap { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 8px 0; 
    gap: 20px; 
}
.brand {
    margin-right: auto;
}
.main-nav {
    display: flex; 
    gap: 20px; 
    align-items: center; 
    justify-content: center;
    flex: 1;
}
.download-buttons {
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Download Dropdown */
.download-dropdown {
    position: relative;
}

.download-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 260px;
    z-index: 100;
    display: none;
}

.download-menu.open {
    display: block;
}

.download-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #4A2545;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.download-menu-item:hover {
    background: rgba(216, 71, 151, 0.1);
}

/* Nav spacing */
.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    gap: 40px;
}

.brand {
    margin-right: 0;
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.download-buttons {
    margin-left: 0;
    flex-shrink: 0;
}
.mobile-download-buttons { 
    display: none; 
}

/* WCAG: Nav toggle button */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: #4A2545;
    position: relative;
}
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: #4A2545;
}
.hamburger-icon::before { top: -7px; }
.hamburger-icon::after { top: 7px; }

.brand { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    color: #4A2545; 
    font-weight: 700; 
    text-decoration: none;
    flex-shrink: 0;
}
.brand-logo { 
    width: 40px; 
    height: 40px; 
    object-fit: contain; 
    border-radius: 6px; 
    background: transparent;
}

.hero { 
    padding: 80px 0 48px; 
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Fixed background image for entire ABOUT page only */
body.about-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/Our-Story-Collage.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -3;
}

body.about-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 37, 69, 0.7) 0%, rgba(123, 62, 114, 0.7) 100%);
    z-index: -2;
}

/* Remove hero-specific background since it's now body-wide */
body.about-page .hero .hero-video { display: none; }
body.about-page .hero .hero-overlay { display: none; }

/* Audio control button */
.audio-control {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pause-icon {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}
.pause-icon span {
    display: block;
    width: 5px;
    height: 18px;
    background: #4A2545;
    border-radius: 2px;
}
.play-icon {
    display: none;
    width: 0;
    height: 0;
    border-left: 18px solid #4A2545;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}
.audio-control.paused .pause-icon { display: none; }
.audio-control.paused .play-icon { display: block; }

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 37, 69, 0.7) 0%, rgba(123, 62, 114, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .07em; font-size: .8rem; font-weight: 700; }
h1,h2,h3,h4 { line-height: 1.2; margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
.lead { color: var(--muted); max-width: 62ch; }
.actions { display: flex; gap: 12px; margin-top: 20px; align-items: center; flex-wrap: wrap; }
.btn, button.btn, a.btn {
    border: none;
    background: var(--accent);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: Inter, Segoe UI, Arial, sans-serif;
}
.btn:hover, button.btn:hover, a.btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid var(--accent);
}
.btn-info-audio {
    background: white;
    color: #D84797;
    border: none;
}
.btn-info-audio:hover {
    background: #fce8f2;
    transform: translateY(-1px);
}
.btn-download {
    white-space: nowrap;
}
.section { padding: 44px 0; }
.why-choose-header {
    text-align: center;
    margin-bottom: 40px;
}
.why-choose-header h2 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}
.why-choose-header p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 800px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
}

.why-choose-card {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.why-choose-card-alt {
    background: #D84797;
}
.why-choose-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.why-choose-card h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
}
.why-choose-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}
.why-choose-card-alt p {
    color: #f8e8f0;
}
.why-choose-card-alt h3 {
    color: white;
}
.card { 
    background: var(--surface); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: var(--radius); 
    padding: 24px; 
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
}
.media-item {
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
}
.stack { display: grid; gap: 12px; }
.media-grid { 
    display: grid !important; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; 
    gap: 20px !important; 
    margin-top: 24px;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}
.media-grid .media-item {
    background: var(--surface); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: var(--radius); 
    padding: 12px; 
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    overflow: visible !important;
    position: relative;
}

.media-files {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 450px;
}

.media-files > :not(.slideshow) {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}
.media-grid .card {
    padding: 12px;
}
/* Extremely specific styles to force media display on ALL devices */
html body .media-grid img,
html body .media-grid video,
html body .media-item img,
html body .media-item video { 
    max-width: 100% !important; 
    max-height: 400px !important;
    width: auto !important;
    height: auto !important; 
    display: block !important;
    object-fit: contain !important;
    border-radius: 6px !important;
}
html body .media-grid video {
    border: 2px solid var(--accent); 
    background: linear-gradient(135deg, rgba(74, 37, 69, 0.85) 0%, rgba(123, 62, 114, 0.85) 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.media-files {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    position: relative;
}
.media-image-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease;
    border: 2px solid var(--accent); 
    border-radius: 8px;
    padding: 0;
    width: auto;
    max-width: 100%;
    overflow: hidden;
}
.media-grid .media-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.media-image-link:hover {
    transform: scale(1.02);
}
.media-image-link img,
.media-image-link video {
    cursor: zoom-in;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}
.media-item-title {
    margin: 8px 0 4px;
}
.media-caption {
    margin: 4px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--surface-soft);
    font-size: 0.95rem;
    color: var(--text-secondary);
}
/* Slideshow styles */
.slideshow {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Ensure container is stacking context */
    z-index: 1;
    background: rgba(0,0,0,0.1);
    border-radius: var(--radius);
}
.slideshow-track {
    display: flex;
    transition: transform 0.3s ease-out;
    width: 100%;
    position: relative;
}
.slideshow-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background: transparent;
    position: relative;
}
.slideshow-slide img,
.slideshow-slide video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 400px !important;
    object-fit: scale-down !important;
    display: block !important;
}
.slideshow .slideshow-slide .media-image-link {
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.slideshow .slideshow-slide .media-image-link img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 400px !important;
    object-fit: scale-down !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: zoom-in;
}
.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 20;
}
.slideshow-btn:hover {
    background: rgba(0,0,0,0.8);
}
.slideshow-prev {
    left: 10px;
}
.slideshow-next {
    right: 10px;
}
.slideshow-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}
.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.slideshow-dot.active {
    background: white;
}
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.lightbox.active {
    display: flex;
}
.lightbox-content {
    max-width: 90%;
    max-height: 50%;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 8px;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1001;
    line-height: 1;
}
.site-footer { 
    margin-top: 50px; 
    border-top: 1px solid var(--surface-soft); 
    background: #3a1a35; 
    padding: 24px 0;
}
.footer-social {
    text-align: center;
}
.footer-follow-title {
    font-size: 1.25rem;
    margin: 0 0 16px;
    color: var(--text);
}
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}
.footer-copyright {
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
    margin: 0;
    color: var(--text);
}
.site-footer .social-links a:hover,
.social-btn:hover {
    opacity: 0.88 !important;
    transform: translateY(-1px);
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; padding: 24px 0; }
.footer-grid a { display: block; margin-bottom: 8px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #D84797; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2); padding: 4px 12px; word-wrap: break-word; overflow-wrap: break-word; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 4px 0; font-size: 0.95rem; }
.faq-item[open] summary { margin-bottom: 4px; }
.faq-item p { margin: 0 0 4px 0; font-size: 0.9rem; line-height: 1.4; }
.login-body, .admin-body { background: var(--bg); }
.login-card { width: min(430px, 92%); margin: 10vh auto; display: grid; gap: 16px; background: var(--surface); padding: 32px; border-radius: 16px; border: 1px solid var(--surface-soft); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
input,textarea,select { width: 100%; padding: 12px 14px; border: 1px solid var(--surface-soft); background: #3a1a35; color: var(--text); border-radius: 10px; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(216, 71, 151, 0.2); }
label { display: grid; gap: 8px; font-size: .95rem; color: var(--muted); font-weight: 500; }
.error { color: var(--danger); font-weight: 600; }
.admin-layout { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.admin-sidebar { background: linear-gradient(180deg, #3a1a35 0%, #2a1028 100%); border-right: 1px solid rgba(255,255,255,0.1); padding: 24px 20px; display: flex; flex-direction: column; gap: 8px; align-content: start; }
.admin-sidebar h2 { color: #fff; margin: 0 0 20px 0; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.admin-sidebar a { padding: 12px 16px; background: rgba(255,255,255,0.05); border-radius: 10px; color: #fff; text-decoration: none; transition: all 0.2s; display: flex; align-items: center; gap: 10px; }
.admin-sidebar a:hover { background: rgba(255,255,255,0.12); transform: translateX(4px); }
.admin-sidebar form { margin-top: auto; padding-top: 20px; }
.admin-content { padding: 32px; display: grid; gap: 24px; overflow-y: auto; }
.admin-content h1 { margin: 0 0 8px 0; }
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--surface-soft); }
table { width: 100%; border-collapse: collapse; }
thead { background: rgba(255,255,255,0.05); }
th,td { border-bottom: 1px solid rgba(255,255,255,0.1); text-align: left; padding: 14px 16px; }
th { font-weight: 600; color: #fff; }
tr:hover td { background: rgba(255,255,255,0.03); }
.btn-danger { background: #ef4444 !important; }
.btn-danger:hover { background: #dc2626 !important; }
.btn-secondary { background: #4a5568 !important; }
.btn-secondary:hover { background: #2d3748 !important; }
.admin-content .card { background: rgba(255,255,255,0.08); border-radius: 16px; padding: 24px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
@media (max-width: 1100px) {
    .download-buttons .btn-download {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    .main-nav {
        gap: 16px;
    }
}
@media (max-width: 900px) {
    .footer-grid, .admin-layout { grid-template-columns: 1fr; }
    .nav-wrap { flex-direction: column; gap: 10px; text-align: center; }
    .main-nav { margin: 0; justify-content: center; width: 100%; font-size: 0.9rem; gap: 12px; }
    .download-buttons { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .nav-wrap {
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
        order: 2;
    }

    .brand {
        order: 1;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        gap: 0;
        justify-content: flex-start;
        width: 100%;
        font-size: 1.05rem;
        padding: 16px 0;
        order: 3;
        background: var(--surface);
        border-radius: var(--radius);
        margin-top: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .main-nav a {
        width: 100%;
        padding: 14px 40px 14px 20px;
        text-align: right;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: background 0.2s ease;
    }
    
    .main-nav a:hover {
        background: rgba(255,255,255,0.05);
    }

    .main-nav.open {
        display: flex;
    }

    .download-buttons {
        display: none;
    }

    .mobile-download-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: 16px;
        padding: 0 20px;
    }

    .mobile-download-buttons .download-dropdown {
        width: 100%;
    }

    .mobile-download-buttons .download-toggle {
        width: 100%;
    }

    .mobile-download-buttons .download-menu {
        right: auto;
        left: 0;
        width: 100%;
    }
    
    /* Ensure media items and images are fully visible on mobile */
    .media-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .media-grid img,
    .media-grid video {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: contain !important;
    }
}
