:root {
    --primary-green: #004d00;
    --secondary-green: #006600;
    --accent-green: #28a745;
    --light-green: #e8f5e8;
    --dark-green: #003300;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --shadow: 0 10px 30px rgba(0, 77, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 77, 0, 0.15);
}

/* Page-scoped theme: Plum */
.org-theme-plum {
    /* redefine CSS vars in scope */
    --primary-green: #5b2274; /* primary becomes plum */
    --secondary-green: #7a3696; /* secondary becomes lighter plum */
    --accent-green: #bb86fc; /* accent becomes light lavender */
    --light-green: #f5eff9; /* light background tint */
    --dark-green: #3c1551; /* dark plum */
    --shadow: 0 10px 30px rgba(91, 34, 116, 0.12);
    --shadow-hover: 0 20px 40px rgba(91, 34, 116, 0.18);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Container for centering content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    z-index: -1;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* Button styles for content sections */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--white);
}

.btn-solid {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Main content area */
.main-content {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Page header styles */
.page-header {
    text-align: center;
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, var(--light-green) 0%, var(--white) 100%);
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 1px;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--primary-green);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transform: translateY(-200%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .page-header {
        padding: 2rem 0 1.5rem;
        margin-bottom: 2rem;
    }
    
    .main-content {
        padding-top: 70px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
}

/* Org • Season • Team Management Page */
.section-header { text-align: center; margin-bottom: 1.25rem; }
.section-title { color: var(--primary-green); font-size: 2rem; font-family: 'Bebas Neue', cursive; letter-spacing: 0.5px; margin-bottom: 0.35rem; }
.section-subtitle { color: var(--text-dark); max-width: 760px; margin: 0 auto; }
.org-mgmt-overview {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.org-mgmt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.org-card {
    display: block;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    background: #fff;
}

.org-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: rgba(0,77,0,0.25);
}

.org-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--light-green), #f2fbf2);
    color: var(--primary-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.org-card-title {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.org-card-text {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.org-card-list {
    list-style: none;
    margin: 0 0 0.75rem 0;
    padding: 0;
}

.org-card-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    margin: 0.25rem 0;
}

.org-card-list i {
    color: var(--accent-green);
}

.org-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-green);
    font-weight: 600;
}

.org-mgmt-cta {
    margin-top: 2rem;
    text-align: center;
}

.org-deep-dive {
    background: linear-gradient(135deg, #f6fff6 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.org-deep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.deep-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 1.25rem;
}

.deep-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.deep-card-header i {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--light-green), #f2fbf2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.deep-list {
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0;
}

.deep-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.35rem 0;
}

.deep-list i {
    color: var(--accent-green);
}

.deep-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .deep-grid-2 {
        grid-template-columns: 1fr;
    }
}

.org-cta-band {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 16px;
    box-shadow: var(--shadow);
    color: var(--white);
    padding: 2rem;
    margin-bottom: 3rem;
}

.org-cta-content {
    text-align: center;
}

.org-cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 0.5px;
}

.org-cta-content p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
}

.org-cta-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================= */
/* Organization Page - New UI */
/* ========================= */
.org-hero {
    background: radial-gradient(1000px 400px at 80% -100%, rgba(187, 134, 252, 0.18), transparent),
                linear-gradient(135deg, var(--light-green) 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin-bottom: 2.25rem;
}

.org-hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    align-items: center;
}

.org-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--light-green);
    color: var(--primary-green);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.org-hero-copy h1 {
    font-size: 2.5rem;
    line-height: 1.15;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 0.5px;
}

.org-hero-copy p {
    color: var(--text-dark);
    max-width: 680px;
    margin-bottom: 1rem;
}

.org-hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.org-hero-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.org-hero-links a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.org-hero-visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.org-hero-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.org-hero-card.alt {
    background: linear-gradient(135deg, #f1e9fb, #ffffff);
}

.org-hero-card h3 { margin: 0.25rem 0 0.5rem 0; }
.org-hero-card ul { margin: 0; padding-left: 0; list-style: none; }
.org-hero-card li { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.org-hero-card i { color: var(--primary-green); }

.org-pillars {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.pillar {
    display: block;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.pillar-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--light-green); display: inline-flex; align-items: center; justify-content: center; color: var(--primary-green); margin-bottom: 8px; }
.pillar h3 { color: var(--primary-green); margin-bottom: 6px; }
.pillar p { color: var(--text-dark); }

.org-workflow {
    background: linear-gradient(135deg, var(--light-green), #ffffff);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}
.org-workflow h2 { text-align: center; margin-bottom: 1rem; color: var(--primary-green); font-family: 'Bebas Neue', cursive; letter-spacing: 0.5px; }
.workflow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; padding: 1rem; position: relative; }
.step-num { position: absolute; top: -12px; left: -12px; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

.org-feature-matrix { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 2rem; margin-bottom: 2rem; }
.org-feature-matrix h2 { color: var(--primary-green); text-align: center; margin-bottom: 1rem; font-family: 'Bebas Neue', cursive; }
.matrix { border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; overflow: hidden; }
.matrix-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
.matrix-head { background: var(--light-green); font-weight: 700; }
.matrix-col { padding: 0.75rem; border-bottom: 1px solid rgba(0,0,0,0.06); }
.matrix-row .matrix-col:not(:first-child) { text-align: center; }

.org-permissions { background: linear-gradient(135deg, var(--light-green), #ffffff); border-radius: 16px; box-shadow: var(--shadow); padding: 2rem; margin-bottom: 2rem; }
.org-permissions h2 { text-align: center; margin-bottom: 1rem; color: var(--primary-green); font-family: 'Bebas Neue', cursive; }
.perm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.perm-card { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; padding: 1rem; }
.perm-card h3 { color: var(--primary-green); display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.perm-card ul { margin: 0; padding-left: 1rem; }
.perm-card li { margin: 4px 0; }

.org-snack-highlight { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 2rem; margin-bottom: 2rem; }
.snack-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; align-items: center; }
.snack-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--light-green); color: var(--primary-green); padding: 4px 10px; border-radius: 999px; font-weight: 700; margin-right: 8px; }
.snack-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem; }
.snack-visual { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.snack-card { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }
.snack-card.alt { background: linear-gradient(135deg, #f1e9fb, #ffffff); }

.org-faq { background: linear-gradient(135deg, var(--light-green), #ffffff); border-radius: 16px; box-shadow: var(--shadow); padding: 2rem; margin-bottom: 2rem; }
.org-faq h2 { text-align: center; margin-bottom: 1rem; color: var(--primary-green); font-family: 'Bebas Neue', cursive; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.faq-item { background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; padding: 0.75rem 1rem; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--primary-green); }
.faq-item p { margin-top: 0.5rem; }

.org-final-cta { background: linear-gradient(135deg, var(--primary-green), var(--secondary-green)); border-radius: 16px; box-shadow: var(--shadow); color: #fff; padding: 2rem; margin-bottom: 3rem; }
.final-cta { text-align: center; }
.final-cta h2 { font-size: 2rem; margin-bottom: 0.5rem; font-family: 'Bebas Neue', cursive; }
.final-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Responsive tweaks */
@media (max-width: 1024px) {
    .org-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .workflow-steps { grid-template-columns: repeat(2, 1fr); }
    .perm-grid { grid-template-columns: repeat(2, 1fr); }
    .snack-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
}
