/* Modern Upscale Style for Team Fox South Florida */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

:root {
    --primary-color: #D06C04; /* Official Team Fox orange */
    --primary-light: #E07D15; /* Lightened version */
    --primary-dark: #B05C03; /* Darkened version */
    --secondary-color: #0088cc;
    --secondary-light: #33a6e8;
    --secondary-dark: #006699;
    --accent-color: #f8f9fa;
    --text-color: #2b2b2b;
    --text-light: #6c757d;
    --light-text: #ffffff;
    --dark-bg: #1a1a1a;
    --light-bg: #ffffff;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --section-spacing: 60px; /* Reduced from 80px */
    --container-width: 1200px;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.8em;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem; /* Added more space below headers */
}

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

h2.centered:after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-color);
    line-height: 1.8; /* Improved line height for readability */
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.slide-up {
    animation: slideUp 0.8s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; } /* Reduced from 30px */
    to { transform: translateY(0); opacity: 1; }
}
/* Button Styles */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

section {
    padding: var(--section-spacing) 0;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern for sections */
.about, .mission, .events, .join, .cta {
    position: relative;
}

.about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f1f1f1' fill-opacity='0.4' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.text-center {
    text-align: center;
}

/* Header Styles */
header {
    background-color: var(--light-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
    transition: var(--transition);
}

.logo h1 {
    font-size: 1.7rem;
    margin-bottom: 0;
    font-weight: 700;
    transition: var(--transition);
}

nav {
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    align-items: center;
    height: 100%;
}

nav ul li {
    margin-left: 30px;
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul li a {
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

nav ul li a:hover {
    color: var(--primary-color);
}
/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 140px 0;
    position: relative;
}

.hero:before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    z-index: 1;
    display: none; /* Enable for wave effect */
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    font-weight: 700;
    color: white;
}

.hero h2:after {
    display: none;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* About Section */
.about {
    background-color: var(--accent-color);
}

.two-column {
    display: flex;
    gap: 60px;
    align-items: center;
}

.two-column > div {
    flex: 1;
}

.image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.image-container img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Mission Section */
.mission {
    position: relative;
}

.mission-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.mission-item {
    text-align: center;
    padding: 30px 20px; /* Reduced from 40px 25px */
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
}

.mission-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.mission-item i {
    font-size: 2.5rem; /* Slightly reduced */
    color: var(--primary-color);
    margin-bottom: 20px; /* Reduced from 25px */
    transition: var(--transition);
}

.mission-item:hover i {
    transform: scale(1.1);
}

.mission-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Events Section */
.events {
    background-color: var(--accent-color);
}

.event-ideas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.event-card {
    text-align: center;
    padding: 30px 20px; /* Reduced from 40px 25px */
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.event-card i {
    font-size: 2.5rem; /* Reduced */
    color: var(--secondary-color);
    margin-bottom: 20px; /* Reduced from 25px */
    transition: var(--transition);
}

.event-card:hover i {
    transform: scale(1.1);
}

.event-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}
/* Join Section */
.join {
    position: relative;
}

.form-container {
    max-width: 650px;
    margin: 0 auto;
    background-color: var(--light-bg);
    padding: 30px; /* Reduced from 40px */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px; /* Reduced from 25px */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-group.checkbox label {
    margin-bottom: 0;
}

.form-group button {
    width: 100%;
    cursor: pointer;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.form-success,
.form-error {
    padding: 16px;
    margin-bottom: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
}

.form-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Two-column form layout */
.two-column-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.two-column-form .form-row .form-group {
    flex: 1;
}

/* Select and checkbox styling */
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition);
    background-color: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.2);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.checkbox-item label {
    margin-bottom: 0;
    display: inline;
    font-weight: normal;
}

/* Form validation style enhancement */
input:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

input:valid:not(:placeholder-shown),
select:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

/* Honeypot field for spam protection */
.honeypot-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
}
/* CTA Section */
.cta {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-text);
    text-align: center;
    padding: 100px 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: white;
}

.cta h2:after {
    display: none;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 35px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center; /* Changed from flex-start to center */
    text-align: center; /* Added text-align center */
}

.footer-logo img {
    height: 45px;
    margin-bottom: 15px;
}

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.footer-logo h2:after {
    display: none;
}

.footer-links h3,
.footer-contact h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after,
.footer-contact h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 18px;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.6rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 99;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}
/* Impact Section Stats */
.impact {
    background-color: #f8f9fa;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.stat-number span {
    font-size: 1.8rem;
}

.stat-text {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.4;
}

/* FAQ Accordion */
.faq {
    background-color: #fff;
}

.accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

.accordion-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #fff;
}

.accordion-header {
    padding: 18px 25px;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: var(--accent-color);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.accordion-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.accordion-item.active .accordion-icon i {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 0 25px 20px;
    max-height: 300px;
}

/* Resources Section */
.resources {
    background-color: var(--accent-color);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.resource-card {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.resource-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(208, 108, 4, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.resource-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.resource-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.resource-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.resource-card ul li {
    margin-bottom: 10px;
}

.resource-card ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    padding-left: 20px;
}

.resource-card ul li a:before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.resource-card ul li a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}
/* Admin Styles Enhancement */
.admin-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.admin-header h1 {
    color: var(--primary-color);
}

.login-form {
    max-width: 450px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--accent-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.login-error {
    color: #721c24;
    background-color: #f8d7da;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    font-weight: 600;
}

.admin-message {
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    font-weight: 600;
}

.admin-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.admin-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.stat-card p {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table th, .data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--secondary-color);
    color: var(--light-text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.data-table tbody tr:hover {
    background-color: var(--accent-color);
}

.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-download {
    background-color: #28a745;
}

.btn-download:hover {
    background-color: #218838;
}

.btn-logout {
    background-color: #dc3545;
    color: var(--light-text);
}

.btn-logout:hover {
    background-color: #c82333;
    color: var(--light-text);
}

.tab-container {
    margin-top: 40px;
}

.tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.tab {
    padding: 12px 25px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-right: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.tab.active {
    border-color: var(--border-color);
    background-color: var(--light-bg);
    border-bottom-color: var(--light-bg);
    margin-bottom: -1px;
    color: var(--primary-color);
}

.tab:hover:not(.active) {
    background-color: var(--accent-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-delete {
    background-color: #dc3545;
    color: var(--light-text);
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-delete:hover {
    background-color: #c82333;
    color: var(--light-text);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}
.modal-content {
    background-color: var(--light-bg);
    margin: 15% auto;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    max-width: 550px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: #dc3545;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close:hover {
    color: #dc3545;
}

.modal-body {
    margin-bottom: 25px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Newsletter Form Styles */
.newsletter-form {
    background-color: var(--accent-color);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.form-row input[type="text"],
.form-row input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.2);
}

.radio-group {
    margin-top: 12px;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    margin-right: 25px;
    font-weight: normal;
}

.radio-group input {
    margin-right: 8px;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.btn-send {
    background-color: #28a745;
}

.btn-send:hover {
    background-color: #218838;
}

.btn-back {
    background-color: #6c757d;
    color: var(--light-text);
}

.btn-back:hover {
    background-color: #5a6268;
    color: var(--light-text);
}

/* Enhanced Summernote customization */
.note-editor {
    border-radius: var(--border-radius) !important;
    border-color: var(--border-color) !important;
}

.note-toolbar {
    background-color: var(--accent-color) !important;
    border-bottom-color: var(--border-color) !important;
    border-top-left-radius: var(--border-radius) !important;
    border-top-right-radius: var(--border-radius) !important;
}

.note-btn {
    border-color: var(--border-color) !important;
}

.previous-newsletters {
    margin-top: 50px;
}

.newsletter-list {
    list-style: none;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.newsletter-list li {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.newsletter-list li:last-child {
    border-bottom: none;
}

.newsletter-list li:hover {
    background-color: var(--accent-color);
}

.newsletter-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    :root {
        --section-spacing: 60px;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 50px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    
    .two-column {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center; /* This ensures vertical centering */
        padding: 15px;
        height: 80px;
    }
   
    .logo img {
        height: 40px;
    }
    
    /* Mobile menu styling */
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--light-bg);
        padding: 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        z-index: 100;
        height: auto; /* Reset height for mobile */
    }
    
    nav ul.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
        height: auto; /* Reset height for mobile */
    }
    
    nav ul li a {
        padding: 12px; /* Slightly reduced padding */
        font-size: 0.9rem; /* Slightly smaller font */
    }
    
    .btn-primary {
        margin: 10px auto; /* Center the button in mobile menu */
        display: inline-block;
        width: 80%; /* Make it slightly narrower */
    }
    
    nav ul li:last-child a {
        border-bottom: none;
    }
    
    nav ul li a:after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        transition: var(--transition);
    }
    
    .form-container {
        padding: 25px;
    }
    
    .mission-item, .event-card {
        padding: 30px 20px;
    }
    
    .mission-item i, .event-card i {
        font-size: 2.2rem;
    }
    
    /* Two-column form goes to single column */
    .two-column-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    /* Stats for impact section */
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-number span {
        font-size: 1.5rem;
    }
    
    /* Accordion adjustments */
    .accordion-header {
        padding: 15px 20px;
    }
    
    .accordion-content {
        padding: 0 20px;
    }
    
    .accordion-item.active .accordion-content {
        padding: 0 20px 15px;
    }
    
    /* Resources adjustments */
    .resource-card {
        padding: 25px;
    }
    
    /* Admin mobile styles */
    .admin-container {
        padding: 25px;
    }
    
    .admin-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .modal-content {
        width: 90%;
    }
}

@media (max-width: 576px) {
    :root {
        --section-spacing: 40px;
    }
    
    .container {
        width: 95%;
    }
    
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.5rem; }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .footer-links h3:after, 
    .footer-contact h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .tabs {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .tab {
        flex: 1 0 40%;
        text-align: center;
        font-size: 0.9rem;
        padding: 10px;
    }
}