/* ===== Variables ===== */

:root {
    /* ===== Colors ===== */
    --color-primary: #FFD8D1;
    /* soft pink, key color */
    --color-secondary: #F9AFB1;
    /* complementary pink */
    --color-accent: #CE325B;
    /* bold accent for buttons or highlights */
    --color-neutral-dark: #3A3F3B;
    /* dark text / backgrounds */
    --color-neutral-light: #FCFAF5;
    /* light background / cards */
    --color-muted: #99B7C6;
    /* soft blue for subtle UI elements */
    --color-green: #9AB59D;
    /* optional, for success or positive indicators */
    /* ===== Fonts ===== */
    --font-heading: 'DM Serif Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-script: 'TT Milk Script', cursive;
}


/* ===== Global Styles ===== */

body {
    font-family: var(--font-body);
    background-color: var(--color-neutral-light);
    color: var(--color-neutral-dark);
    margin: 0;
    padding: 0;
}


/* ===== Headings ===== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
}


/* ===== Links & Buttons ===== */

a,
.btn {
    font-family: var(--font-body);
    color: var(--color-accent);
    text-decoration: none;
}

a:hover,
.btn:hover {
    color: var(--color-secondary);
}


/* ===== Script / Decorative Text ===== */

.script-text {
    font-family: var(--font-script);
    color: var(--color-accent);
}

.site-header {
    background: var(--color-primary);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--color-secondary);
}

.logo {
    font-family: var(--font-heading);
    margin: 0;
}

.navbar a {
    margin-left: 1rem;
    text-decoration: none;
    font-weight: 600;
    color: var(--color-accent);
}

.navbar a:hover {
    color: var(--color-secondary);
}

.site-footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    background: var(--color-primary);
    border-top: 3px solid var(--color-secondary);
    font-weight: 600;
}


/* Ensure footer sticks to bottom */

html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    /* pushes footer to bottom */
}


/* ===== Custom Button ===== */

.custom-btn {
    background-color: var(--color-primary);
    /* soft pink background */
    color: var(--color-neutral-dark);
    /* dark text */
    font-family: var(--font-body);
    /* body font */
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--color-accent);
    /* optional border */
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.custom-btn:hover {
    background-color: var(--color-secondary);
    /* complementary pink */
    color: var(--color-neutral-dark);
    border-color: var(--color-accent);
}


/* ===== Individual Slides ===== */

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* hidden by default */
    transition: opacity 1s ease-in-out;
    z-index: 0;
    /* base layer */
}

.slide.active {
    opacity: 1;
    /* fade in */
    z-index: 1;
    /* active slide on top */
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px black;
    margin-bottom: 2rem;
    background-color: var(--color-neutral-dark);
}


/* ===== Slide Images ===== */

.slideshow-container img {
    width: 100%;
    height: 600px;
    /* fixed height for hero section */
    object-fit: cover;
    display: block;
}


/* ===== Optional: Overlay Text (for hero CTA) ===== */

.slide .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-neutral-light);
    text-align: center;
    font-family: var(--font-heading);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}


/* ===== Mission + Stats Section ===== */

.section-mission-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    padding: 4rem 2rem;
    background: var(--color-neutral-light);
}

.section-mission-stats .mission {
    flex: 1 1 45%;
    background: var(--color-primary);
    padding: 2rem;
    border-radius: 0.5rem;
}

.section-mission-stats .mission h2 {
    margin-bottom: 1rem;
}

.section-mission-stats .stats {
    flex: 1 1 45%;
    background: var(--color-neutral-light);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section-mission-stats .stats h2 {
    margin-bottom: 1rem;
}

.section-mission-stats .stats ul {
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1.8;
}


/* ===== Video Section ===== */

.section-video {
    background: var(--color-neutral-light);
    padding: 4rem 2rem;
    text-align: center;
}

.section-video video {
    width: 90%;
    max-width: 1000px;
    border-radius: 0.5rem;
    margin-top: 2rem;
}


/* Cards Section */

.section-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    padding: 4rem 2rem;
    background: var(--color-primary);
}

.section-cards .card {
    position: relative;
    flex: 1 1 30%;
    min-height: 300px;
    border-radius: 0.5rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}


/* Set individual card images */

.card1 {
    background-image: url('/images/cultural_dress.jpeg');
}

.card2 {
    background-image: url('/images/labcoats1.jpeg');
}

.card3 {
    background-image: url('/images/single_girl_desk.NEF.jpg');
}


/* Subtle overlay for better text visibility */

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}


/* Card content overlay */

.section-cards .card-content {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    color: var(--color-neutral-light);
}

.section-cards .card-content h3 {
    margin: 0;
    align-self: flex-end;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-cards .card-content .custom-btn {
    align-self: flex-end;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}


/* Spacer between sections */

.section-spacer {
    height: 4rem;
    background: var(--color-neutral-light);
}


/* Call to Action Hero Section */

.section-cta-hero {
    position: relative;
    min-height: 500px;
    background-image: url('/images/SummerSummit2.jpg');
    /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 3rem 2rem;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-neutral-light);
    background: var(--color-accent);
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* ensures body is full viewport height */
}

main {
    flex: 1;
    /* takes all remaining vertical space */
}

.footer-logo {
    width: 20px;
    height: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}


/* ===== Dashboard / Tableau Fix ===== */

.tableauPlaceholder {
    position: relative;
    width: 100%;
    min-height: 800px;
    /* ensures dashboard is visible and large enough */
}

.tableauViz {
    width: 100% !important;
    height: 100% !important;
    /* fills the placeholder */
    min-height: 800px;
    /* guarantees a minimum height */
    display: block !important;
    /* ensure it shows */
}


/* Optional: make sure dashboard scales on smaller screens */

@media (max-width: 1200px) {
    .tableauPlaceholder {
        min-height: 600px;
    }
    .tableauViz {
        min-height: 600px;
    }
}

@media (max-width: 768px) {
    .tableauPlaceholder {
        min-height: 500px;
    }
    .tableauViz {
        min-height: 500px;
    }
}

.admin-subnav {
    background: #f9f9f9;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 1.25rem;
    font-size: 0.95rem;
}

.admin-subnav a {
    text-decoration: none;
    font-weight: 600;
    color: #333;
}

.admin-subnav a:hover {
    color: var(--color-accent, #CE325B);
}

.admin-content {
    padding: 1.5rem;
}

/* Particle container fills main content only */
.page-content {
    position: relative;  /* establishes positioning context for particles */
    overflow: hidden;    /* keeps particles inside main area */
}

/* Particle wrapper fills the .page-content */
.screensaver-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;          /* behind content */
    pointer-events: none; /* allow clicks through */
}

/* Ensure dashboard content sits on top of particles */
.dashboard-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

/* Bubble particles */
.screensaver-box .particle {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 12px var(--color-secondary);
    animation: floatUp 12s linear infinite, driftSide 4s ease-in-out infinite;
}

/* Float upward */
@keyframes floatUp {
    0% {
        bottom: -50px;
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: scale(1.2);
    }
}

/* Gentle left-right drift */
@keyframes driftSide {
    0% { transform: translateX(0); }
    50% { transform: translateX(15px); }
    100% { transform: translateX(0); }
}

/* Force column widths to match across tables */
#eventTable th,
#eventTable td,
#pastEventTable th,
#pastEventTable td {
    width: 20%; /* Adjust to match total width */
    min-width: 120px; /* Optional for readability */
}

/* Extra column in past events table */
#pastEventTable th:nth-child(5),
#pastEventTable td:nth-child(5) {
    width: 20%;
}

/* ===== Event Tables Alignment ===== */

.events-table {
    width: 100%;
    table-layout: fixed;
    /* Forces equal column widths */
    border-collapse: collapse;
}

.events-table th,
.events-table td {
    text-align: center;
    vertical-align: middle;
    padding: 0.6rem;
}


/* ===== Standardized Event Action Buttons ===== */

.event-btn {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    min-width: 100px;
    /* ⬅ All buttons same width */
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0.35rem;
}


/* Match Delete button colors to theme */

.event-btn-delete {
    background: var(--color-accent);
    color: white;
    border: none;
}

.event-btn-delete:hover {
    background: var(--color-secondary);
}


/* Edit (using theme colors) */

.event-btn-edit {
    background: var(--color-primary);
    border: 2px solid var(--color-accent);
    color: var(--color-neutral-dark);
}

.event-btn-edit:hover {
    background: var(--color-secondary);
}


/* Survey button (optional styling) */

.event-btn-survey {
    background: var(--color-muted);
    color: white;
    border: none;
}

.event-btn-survey:hover {
    background: var(--color-secondary);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.page-content {
    flex: 1; /* takes remaining vertical space between header and footer */
    position: relative;
    overflow: hidden;
}
