:root {
    --primary: #2563eb;
    --dark: #1f2937;
    --light: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #1e2937;
}

/* Make homepage paragraphs larger */
#home p {
    font-size: 1.25rem;        /* Adjust this number */
    line-height: 1.7;
    max-width: 800px;
    margin: 1.5rem auto;
}

header {
    background: linear-gradient(135deg, var(--dark), #334155);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

nav {
    background: rgba(0, 0, 0, 0.35);
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    backdrop-filter: blur(8px);
}

nav ul {  /* Mobile responsive  */
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

nav a:hover {
    color: #60a5fa;
    background: rgba(255,255,255,0.1);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #60a5fa;
    transition: width 0.3s ease;
}

nav a.active::after {
    width: 100% !important;
    background-color: #de1b1b;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

main {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 2rem;
}

section {
    background: white;
    margin-bottom: 3rem;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

section h2 {
    color: var(--primary);
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    position: relative;
    padding-bottom: 0.75rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

section h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1e40af;
    font-size: 1.35rem;
}

/* Improved spacing rules */
p {
    margin-bottom: 1.25rem;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

ul li, ol li {
    margin-bottom: 0.75rem;
}

/* KILEY SECTION */
.kiley {
    display: block;           /* Simple and reliable */
    width: 100%;
    max-width: 100%;
}

.response-cont { /* CSS for Personal notes, Opinions */
        border-bottom: 2px solid #ccc; /* Adjust the thickness and color to your liking */
        padding-bottom: 15px; /* Bottom line here */
        margin-bottom: 15px;

}

.ama-resp {
    background-color: #f0f4f8;     /* Light blue-gray for facts */
    font-style: italic;
    padding: 15px;
    border-left: 4px solid #2563eb;
    margin: 1.5rem 0;
}

.persnote { 
    background-color: #fff8e1;     /* Light yellow/amber like your example */
    padding: 15px;
    border-left: 4px solid #f59e0b;
    margin: 1.5rem 0;
    font-style: italic;
}

.disclaimer {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    background-color: #f8fafc;
    padding: 1rem;
    border-left: 4px solid #2563eb;
    margin: 1.5rem 0;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #1f2937;
    color: #94a3b8;
    font-size: 0.95rem;
}

.links {
    list-style-type: none;
}

/* ==================== STRONG VIDEO GRID FIX ==================== */
#kiley .video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 28px;
    width: 100%;
    margin: 1.5rem 0;
}

#kiley .video-container {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

#kiley .video-container video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.activism-video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0 8px 0;
    border-radius: 4px;
}

/* Added for auto scaling video */

/* General responsive video */
video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
}

/* For video containers (recommended) */
.video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;     /* Keeps 16:9 ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Added fo Auto scaling images */

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
}

/* For images inside sections */
section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Optional: Center and constrain very large images */
.kiley img,
.activism-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* Images grid */
.row {
  display: flex;
  flex-wrap: wrap;
    gap: 10px;
}

.column {
    flex: 1;
    min-width: 300px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ========== MOBILE NAVIGATION ========== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px 12px;
}

@media (max-width: 768px) {
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 1.2rem;
        position: relative;
    }

    .menu-toggle {
        display: block;
        z-index: 110;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1f2937;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        z-index: 100;
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    }

    nav.open {
        max-height: 500px; /* Adjust if you have more/less links */
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    nav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    nav a {
        display: block;
        padding: 15px 20px;
        width: 100%;
    }

    main {
        padding: 1.5rem 1rem;
    }

    section {
        padding: 1.8rem 1.3rem;
    }

    .column {
        flex: 1 1 100%;
    }
}