* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.logo-section:hover {
    transform: scale(1.05);
}

.logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.logo-section h1 {
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: #d32f2f;
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, #d32f2f, #b71c1c);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 100%;
}

.admin-link {
    color: #666 !important;
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 50%;
    background: rgba(44, 90, 160, 0.1);
}

.admin-link:hover {
    color: #2c5aa0 !important;
    opacity: 1;
    background: rgba(44, 90, 160, 0.2);
    transform: scale(1.1);
}

.admin-link::after {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3d6f 0%, #2c5aa0 50%, #4a7bc8 100%);
    color: white;
    text-align: center;
    padding: 120px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,60 C300,120 600,0 900,60 C1050,90 1150,30 1200,60 L1200,120 L0,120 Z' fill='%23ffffff'/%3E%3C/svg%3E") repeat-x;
    animation: wave 3s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(-50px); }
}

.hero-badge {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-badge i {
    font-size: 2rem;
    color: #ffffff;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    opacity: 0;
    animation: slideInUp 1s ease 0.5s forwards;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
    opacity: 0;
    animation: slideInUp 1s ease 0.7s forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 50px 0;
    opacity: 0;
    animation: slideInUp 1s ease 0.9s forwards;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 300;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: white;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.3);
    opacity: 0;
    animation: slideInUp 1s ease 1.1s forwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(211, 47, 47, 0.4);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: rotate(180deg);
}

/* Teams Section */
.teams {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.teams h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
    color: #1e3d6f;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.teams-intro {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 60px;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.team-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.team-card.cubs {
    border-top: 5px solid #4caf50;
}

.team-card.cubs .team-icon {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.team-card.scouts {
    border-top: 5px solid #2196f3;
}

.team-card.scouts .team-icon {
    background: linear-gradient(135deg, #2196f3, #1565c0);
}

.team-card.rovers {
    border-top: 5px solid #ff9800;
}

.team-card.rovers .team-icon {
    background: linear-gradient(135deg, #ff9800, #e65100);
}

.team-header {
    padding: 30px 30px 20px;
    text-align: center;
    position: relative;
}

.team-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.team-icon i {
    font-size: 2.5rem;
    color: white;
}

.team-header h3 {
    font-size: 1.8rem;
    color: #1e3d6f;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.team-grades {
    display: inline-block;
    background: linear-gradient(135deg, #1e3d6f, #2c5aa0);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.team-content {
    padding: 0 30px 20px;
    flex: 1;
}

.team-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.team-highlights h4 {
    color: #1e3d6f;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.team-highlights ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.team-highlights li {
    position: relative;
    padding: 8px 0 8px 25px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.team-highlights li::before {
    content: '⚓';
    position: absolute;
    left: 0;
    top: 8px;
    color: #2c5aa0;
    font-size: 1rem;
}

.team-footer {
    padding: 20px 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.team-age {
    font-weight: 600;
    color: #1e3d6f;
    font-size: 1rem;
}

.team-meeting-info {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.team-meeting-info h3 {
    font-size: 2rem;
    color: #1e3d6f;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
}

.meeting-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.schedule-item {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border-left: 4px solid #2c5aa0;
}

.schedule-item strong {
    color: #1e3d6f;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* Meeting Tracker Section */
.meeting-tracker {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e3d6f 0%, #2c5aa0 50%, #4a7bc8 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.meeting-tracker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M0,10 Q25,0 50,10 T100,10 V20 H0 Z' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E") repeat-x;
    animation: wave-slow 8s ease-in-out infinite;
}

@keyframes wave-slow {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(-25px); }
}

.meeting-tracker h2 {
    text-align: center;
    font-size: 3rem;
    color: white;
    margin-bottom: 60px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.tracker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.tracker-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tracker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffffff, rgba(255,255,255,0.5));
}

.tracker-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.tracker-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.tracker-card:hover .tracker-icon {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 255, 255, 0.3);
}

.tracker-icon i {
    font-size: 2.5rem;
    color: white;
}

.tracker-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    font-family: 'Playfair Display', serif;
}

.meeting-date {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.meeting-time {
    font-size: 1rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.countdown-label {
    font-size: 0.9rem;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.week-number {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    font-family: 'Playfair Display', serif;
}

.program-progress {
    font-size: 1rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

.theme-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.theme-description {
    font-size: 1rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Special styles for different states */
.tracker-card.meeting-today {
    background: rgba(211, 47, 47, 0.2);
    border-color: rgba(211, 47, 47, 0.3);
}

.tracker-card.meeting-today::before {
    background: linear-gradient(90deg, #d32f2f, #b71c1c);
}

.tracker-card.meeting-tomorrow {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.3);
}

.tracker-card.meeting-tomorrow::before {
    background: linear-gradient(90deg, #ffc107, #ff8f00);
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.about h2 {
    text-align: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.about p {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #666;
    line-height: 1.8;
}

.meeting-info {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    margin-top: 50px;
    border: 1px solid rgba(44, 90, 160, 0.1);
}

.meeting-info h3 {
    text-align: center;
    color: #2c5aa0;
    font-size: 2.2rem;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.schedule-item {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.schedule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.schedule-item:hover::before {
    opacity: 0.05;
}

.schedule-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(211, 47, 47, 0.15);
}

.schedule-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.schedule-item:hover .schedule-icon {
    transform: scale(1.1) rotate(10deg);
}

.schedule-icon i {
    font-size: 1.8rem;
    color: white;
}

.schedule-item h4 {
    color: #2c5aa0;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.schedule-item p {
    color: #666;
    font-weight: 500;
    line-height: 1.6;
}

/* Program Section */
.program {
    padding: 100px 0;
    background: white;
}

.program h2 {
    text-align: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 60px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.theme-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 90, 160, 0.1);
    position: relative;
    overflow: hidden;
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d32f2f, #b71c1c);
}

.theme-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.theme-card h3 {
    color: #d32f2f;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.theme-card h4 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.theme-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Activities Section */
.activities {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.activities h2 {
    text-align: center;
    font-size: 3rem;
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 60px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.activity-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid rgba(44, 90, 160, 0.1);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #2c5aa0, #1e3d6f);
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(44, 90, 160, 0.15);
}

.activity-card h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.activity-card ul {
    list-style: none;
}

.activity-card li {
    color: #666;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    font-size: 1.05rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.activity-card li:hover {
    color: #2c5aa0;
}

.activity-card li:before {
    content: "⚓";
    position: absolute;
    left: 0;
    color: #d32f2f;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.activity-card li:hover:before {
    transform: scale(1.2);
}

/* Join Section */
.join {
    padding: 100px 0;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3d6f 100%);
    color: white;
}

.join h2 {
    text-align: center;
    font-size: 3rem;
    color: white;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.join > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

.join-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.join-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.join-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.join-card h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.join-card ul {
    list-style: none;
}

.join-card li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.join-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #fff;
    font-weight: bold;
    font-size: 1.3rem;
    width: 25px;
    height: 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
}

.join-card p {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-button {
    display: block;
    width: fit-content;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    color: #2c5aa0;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
}

.team-guide {
    text-align: left;
}

.guide-item {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border-left: 4px solid rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    line-height: 1.4;
}

.guide-item strong {
    color: white;
    display: block;
    margin-bottom: 5px;
}

/* Contact Section Styles */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 20px;
    color: #1e3c72;
}

.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.contact-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #1e3c72;
}

.contact-details, .location-details, .social-details {
    text-align: left;
}

.contact-item, .address {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.contact-item i, .address i {
    color: #1e3c72;
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-item a, .address a {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover, .address a:hover {
    color: #2a5298;
    text-decoration: underline;
}

.directions {
    margin-top: 20px;
}

.directions-btn, .footer-directions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.directions-btn:hover, .footer-directions:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #1e3c72;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #2a5298;
    transform: translateY(-2px);
}

.location-info {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.location-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1e3c72;
    text-align: center;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.location-feature {
    text-align: center;
    padding: 20px;
}

.location-feature i {
    font-size: 2.5rem;
    color: #27ae60;
    margin-bottom: 15px;
}

.location-feature h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1e3c72;
}

.location-feature p {
    color: #666;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e3d6f 0%, #0d1b2a 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #e8f4fd;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.footer-logo h3 {
    color: white;
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.footer-info {
    text-align: left;
}

.footer-info p {
    margin-bottom: 10px;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-contact, .footer-location, .footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.9;
}

.footer-contact-item i {
    color: #64b5f6;
    font-size: 1.1rem;
    width: 20px;
}

.footer-contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: #64b5f6;
    text-decoration: underline;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.footer-links a:hover {
    color: #64b5f6;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 8px;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Photo Gallery Preview Styles (Home Page) */
.gallery-preview {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.gallery-preview-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-cta {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.gallery-cta:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.gallery-cta h3 {
    color: #1e293b;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.gallery-cta p {
    color: #64748b;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.gallery-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.gallery-link-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: white;
}

.gallery-link-btn i {
    font-size: 1.2rem;
}

/* Legacy Gallery Styles (for the separate gallery page compatibility) */
.gallery {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.gallery-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: #1e40af;
    color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
}

.filter-btn.active {
    background: #1e40af;
    border-color: #1e40af;
    color: white;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: white;
    margin-bottom: 1rem;
}

.gallery-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.gallery-description {
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    opacity: 0.9;
}

.gallery-date {
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.gallery-expand {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.gallery-item:hover .gallery-expand {
    opacity: 1;
}

.gallery-expand:hover {
    background: white;
    transform: scale(1.1);
}

.gallery-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-category-badge.cubs {
    background: #10b981;
}

.gallery-category-badge.scouts {
    background: #3b82f6;
}

.gallery-category-badge.rovers {
    background: #8b5cf6;
}

.gallery-category-badge.events {
    background: #f59e0b;
}

.gallery-category-badge.activities {
    background: #ef4444;
}

.gallery-loading, .gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.gallery-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1e40af;
}

.gallery-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.gallery-empty h3 {
    margin: 0 0 0.5rem 0;
    color: #475569;
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.image-modal .modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.modal-info {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.modal-info h3 {
    margin: 0 0 0.5rem 0;
    color: #1e293b;
}

.modal-info p {
    margin: 0 0 1rem 0;
    color: #64748b;
}

.modal-category {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 70px;
        padding: 15px 20px;
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px 20px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        margin-top: 0;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        background: rgba(44, 90, 160, 0.1);
        transform: none;
    }

    .admin-link {
        background: rgba(44, 90, 160, 0.1) !important;
        border-radius: 10px !important;
        padding: 15px 20px !important;
    }

    main {
        margin-top: 70px;
    }
    
    .hero {
        padding: 80px 20px;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        margin: 30px 0;
    }

    .stat {
        margin: 0 auto;
        max-width: 250px;
        padding: 15px;
    }

    .cta-button {
        padding: 16px 30px;
        font-size: 1rem;
        margin-top: 20px;
    }

    /* Meeting Tracker Mobile Styles */
    .meeting-tracker {
        padding: 80px 0;
    }

    .meeting-tracker h2 {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    .tracker-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .tracker-card {
        padding: 25px;
    }
    
    .tracker-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .tracker-icon i {
        font-size: 2rem;
    }
    
    .countdown-display {
        gap: 15px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .teams-grid, .themes-grid, .activities-grid, .join-info {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .team-card, .theme-card, .activity-card, .join-card {
        margin: 0 10px;
    }

    .about, .program, .activities, .join {
        padding: 60px 0;
    }

    .about h2, .program h2, .activities h2 {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }

    .about p {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    /* Gallery Preview Mobile Styles */
    .gallery-preview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-preview-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .gallery-cta {
        padding: 2rem;
        order: -1; /* Show CTA first on mobile */
    }

    .gallery-link-btn {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    /* Legacy Gallery Styles */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .gallery-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-height: 44px;
        min-width: 44px;
    }

    /* Enhanced touch targets for mobile */
    .calendar-nav {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .rsvp-btn {
        padding: 12px 20px;
        min-height: 44px;
        font-size: 0.9rem;
    }

    .btn-primary, .btn-secondary {
        padding: 14px 25px;
        min-height: 48px;
        font-size: 1rem;
    }

    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        padding: 8px;
    }

    .gallery-expand {
        width: 48px;
        height: 48px;
    }

    .gallery-overlay {
        padding: 1rem;
    }

    .gallery-title {
        font-size: 1rem;
    }

    .gallery-description {
        font-size: 0.8rem;
    }

    .image-modal .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .modal-info {
        padding: 1rem;
    }

    .teams h2 {
        font-size: 2.5rem;
    }

    .team-meeting-info {
        padding: 30px;
    }

    .meeting-schedule {
        grid-template-columns: 1fr;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }

    /* Contact Section Mobile */
    .contact h2 {
        font-size: 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .social-links {
        flex-direction: column;
        gap: 10px;
    }

    .location-info {
        padding: 30px 20px;
    }
    
    .about h2, .program h2, .activities h2 {
        font-size: 2.5rem;
    }
    
    .join h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 10px 15px;
        height: 60px;
    }

    .nav-menu {
        top: 60px;
        padding: 20px 15px;
    }

    .logo {
        height: 45px;
    }

    .logo-section h1 {
        font-size: 1.4rem;
    }

    main {
        margin-top: 60px;
    }

    .hero {
        padding: 50px 15px;
        min-height: 70vh;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-badge {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .hero-badge i {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .cta-button {
        padding: 14px 25px;
        font-size: 0.95rem;
    }

    .teams, .about, .program, .activities, .join {
        padding: 80px 0;
    }

    .teams h2 {
        font-size: 2rem;
    }

    .team-card {
        margin-bottom: 30px;
    }

    .team-header {
        padding: 25px 25px 15px;
    }

    .team-content {
        padding: 0 25px 15px;
    }

    .team-meeting-info {
        padding: 25px;
    }

    .meeting-info, .theme-card, .activity-card, .join-card {
        padding: 30px;
    }
    
    .themes-grid, .activities-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .join-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Improved mobile performance */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }

    .hero-waves {
        animation: none; /* Disable on mobile for better performance */
    }

    .hero-badge {
        animation: none;
    }

    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1e3d6f, #0d1b2a);
}

/* Announcements Feed Styles */
.announcements-feed {
    background: linear-gradient(135deg, #f8f9fc 0%, #e8ecf7 100%);
    padding: 80px 0;
    position: relative;
}

.announcements-feed h2 {
    text-align: center;
    color: #2c5aa0;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
}

.announcements-feed h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    border-radius: 2px;
}

.announcements-feed-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.announcement-item {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(44, 90, 160, 0.1);
    border-left: 6px solid #ddd;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.announcement-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(44, 90, 160, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.announcement-item:hover::before {
    transform: translateX(100%);
}

.announcement-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(44, 90, 160, 0.15);
}

.announcement-item.priority-high {
    border-left-color: #f44336;
}

.announcement-item.priority-medium {
    border-left-color: #ff9800;
}

.announcement-item.priority-low {
    border-left-color: #4CAF50;
}

.announcement-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.announcement-badge i {
    font-size: 1.5rem;
    color: #2c5aa0;
}

.priority-label {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.announcement-item.priority-high .priority-label {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.announcement-item.priority-medium .priority-label {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.announcement-item.priority-low .priority-label {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.announcement-body {
    flex: 1;
}

.announcement-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 15px;
    line-height: 1.3;
}

.announcement-content {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Hyperlink styles for announcements */
.announcement-content a,
.announcement-text a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.announcement-content a:hover,
.announcement-text a:hover {
    color: #1e3a8a;
    border-bottom: 1px solid #2c5aa0;
    background-color: rgba(44, 90, 160, 0.05);
    padding: 2px 4px;
    border-radius: 3px;
}

.announcement-content a:visited,
.announcement-text a:visited {
    color: #6366f1;
}

/* External link indicator */
.announcement-content a[target="_blank"]::after,
.announcement-text a[target="_blank"]::after {
    content: "↗";
    font-size: 0.8em;
    margin-left: 4px;
    opacity: 0.7;
}

.announcement-meta {
    display: flex;
    align-items: center;
    color: #999;
    font-size: 0.9rem;
}

.announcement-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcement-date i {
    color: #2c5aa0;
}

.no-announcements {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-announcements i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.no-announcements p {
    font-size: 1.1rem;
    color: #999;
}

/* Announcement Images Grid Styles */
.announcement-images {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}


.announcement-images.single-image {
    max-width: 100%;
}

.announcement-images.single-image .announcement-image {
    width: 100%;
    height: 300px;
}

.announcement-images.single-image .announcement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.announcement-images.two-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    max-height: 250px;
}

.announcement-images.two-images .announcement-image {
    height: 250px;
}

.announcement-images.two-images .announcement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.announcement-images.three-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    max-height: 250px;
}

.announcement-images.three-images .announcement-image:first-child {
    grid-row: 1 / 3;
    height: 100%;
}

.announcement-images.three-images .announcement-image {
    height: 123px;
}

.announcement-images.three-images .announcement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.announcement-images.four-plus-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    max-height: 250px;
}

.announcement-images.four-plus-images .announcement-image {
    height: 123px;
    position: relative;
}

.announcement-images.four-plus-images .announcement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.announcement-image {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.announcement-image:hover {
    transform: scale(1.02);
}

.announcement-image img {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.image-count-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Modal styles for image enlargement */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    z-index: 2;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.2);
}

.image-gallery-viewer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
    transition: all 0.3s ease;
    z-index: 3;
}

.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: -70px;
}

.gallery-next {
    right: -70px;
}

.image-counter {
    color: white;
    font-size: 1.1rem;
    margin-top: 20px;
    text-align: center;
}

/* About Section - Subsections Styles */
.teams-section,
.program-section,
.activities-section {
    margin-top: 60px;
    margin-bottom: 40px;
}

.teams-section h2,
.program-section h2,
.activities-section h2 {
    color: #2c5aa0;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.teams-section h2::after,
.program-section h2::after,
.activities-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d32f2f, #b71c1c);
    border-radius: 2px;
}

/* Responsive adjustments for announcement images */
@media (max-width: 768px) {
    .announcement-images.three-images,
    .announcement-images.four-plus-images {
        max-height: 200px;
    }

    .announcement-images.three-images .announcement-image {
        height: 98px;
    }

    .announcement-images.four-plus-images .announcement-image {
        height: 98px;
    }

    .announcement-images.two-images {
        max-height: 200px;
    }

    .announcement-images.two-images .announcement-image {
        height: 200px;
    }

    .announcement-images.single-image .announcement-image {
        height: 250px;
    }


    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .gallery-prev {
        left: -50px;
    }

    .gallery-next {
        right: -50px;
    }

    .modal-image {
        max-width: 95vw;
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .announcement-images.three-images,
    .announcement-images.four-plus-images,
    .announcement-images.two-images {
        max-height: 150px;
    }

    .announcement-images.three-images .announcement-image,
    .announcement-images.four-plus-images .announcement-image {
        height: 73px;
    }

    .announcement-images.two-images .announcement-image {
        height: 150px;
    }

    .announcement-images.single-image .announcement-image {
        height: 200px;
    }


    .gallery-nav {
        display: none;
    }
}

/* Calendar Section Styles */
.calendar-section {
    background: linear-gradient(135deg, #f8f9fc 0%, #e8ecf7 100%);
    padding: 80px 0;
    position: relative;
}

.calendar-section h2 {
    text-align: center;
    color: #2c5aa0;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.calendar-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #d32f2f, #b71c1c);
    border-radius: 2px;
}

.calendar-intro {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.calendar-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(44, 90, 160, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.calendar-header {
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.calendar-nav {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.calendar-day-header {
    background: #f8f9fa;
    padding: 15px 5px;
    text-align: center;
    font-weight: 600;
    color: #2c5aa0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.calendar-day:hover {
    background: #f8f9fc;
}

.calendar-day.other-month {
    color: #ccc;
    background: #fafafa;
}

.calendar-day.today {
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    color: white;
}

.calendar-day.has-events {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.calendar-day.has-meetings {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
}

.day-number {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.day-events {
    flex: 1;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
    box-sizing: border-box;
}

.event-dot {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    font-size: 0.7rem;
    padding: 1px 3px;
    text-align: center;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-dot.meeting {
    background: #4CAF50;
}

.event-dot.event {
    background: #ff9800;
}

.event-dot.special {
    background: #f44336;
}

/* New event item styles with titles */
.event-item {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1px;
    border-radius: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.2s ease;
    box-sizing: border-box;
    min-height: 0;
    flex-shrink: 0;
}

.event-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    position: relative;
}

.event-bar {
    width: 100%;
    height: 2px;
    border-radius: 2px 2px 0 0;
    flex-shrink: 0;
}

.event-title {
    padding: 1px 3px;
    font-size: 0.4rem;
    font-weight: 500;
    color: #2c3e50;
    text-align: left;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Event type colors for bars */
.event-item.meeting .event-bar {
    background: #4CAF50;
}

.event-item.event .event-bar {
    background: #ff9800;
}

.event-item.special .event-bar {
    background: #f44336;
}

.event-item.camping .event-bar {
    background: #8BC34A;
}

.event-item.volunteer .event-bar {
    background: #2196F3;
}

/* Multi-day event styles */
.event-item.start {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    margin-right: -1px;
}

.event-item.middle {
    border-radius: 0;
    margin-right: -1px;
    margin-left: -1px;
}

.event-item.end {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    margin-left: -1px;
}

.event-item.start .event-bar,
.event-item.middle .event-bar,
.event-item.end .event-bar {
    position: relative;
}

.event-item.start .event-bar::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: inherit;
}

.event-item.end .event-bar::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: inherit;
}

.event-item.middle .event-bar::before,
.event-item.middle .event-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: inherit;
}

.event-item.middle .event-bar::before {
    left: -2px;
}

.event-item.middle .event-bar::after {
    right: -2px;
}

.upcoming-events {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(44, 90, 160, 0.1);
}

.upcoming-events h3 {
    color: #2c5aa0;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-item {
    background: #f8f9fc;
    border-radius: 15px;
    padding: 20px;
    border-left: 5px solid #2c5aa0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.15);
}

.event-item.meeting {
    border-left-color: #4CAF50;
}

.event-item.special {
    border-left-color: #f44336;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c5aa0;
    margin: 0;
}

.event-type {
    background: #2c5aa0;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.event-type.meeting {
    background: #4CAF50;
}

.event-type.special {
    background: #f44336;
}

.event-datetime {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-description {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.event-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rsvp-btn {
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rsvp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.rsvp-status {
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 500;
}

.rsvp-status.attending {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.rsvp-status.not-attending {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

/* RSVP Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.rsvp-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
}

.event-details {
    background: #f8f9fc;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.event-info h4 {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin: 0 0 10px 0;
}

.event-info p {
    margin: 5px 0;
    color: #666;
}

.rsvp-form .form-group {
    margin-bottom: 20px;
}

.rsvp-form label {
    display: block;
    color: #2c5aa0;
    font-weight: 600;
    margin-bottom: 8px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.rsvp-form small {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.radio-option:hover {
    background-color: rgba(44, 90, 160, 0.05);
}

/* Scout Search Styles */
.scout-search-container {
    position: relative;
}

.scout-search-input {
    position: relative;
    margin-top: 10px;
}

.scout-search-input input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.scout-search-input input:focus {
    outline: none;
    border-color: #2c5aa0;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.3s ease;
}

.search-result-item:hover {
    background-color: #f8f9fc;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-name {
    font-weight: 600;
    color: #2c5aa0;
}

.search-result-details {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

.no-results {
    padding: 12px 15px;
    text-align: center;
    color: #999;
    font-style: italic;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #2c5aa0;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #2c5aa0;
    border-radius: 50%;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.btn-secondary {
    background: #f8f9fc;
    color: #666;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-section {
        padding: 60px 0;
    }

    .calendar-section h2 {
        font-size: 2rem;
    }

    .calendar-header {
        padding: 15px;
    }

    .calendar-header h3 {
        font-size: 1.2rem;
    }

    .calendar-day {
        min-height: 60px;
        padding: 3px 1px;
        max-width: 100%;
    }

    .day-number {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }

    .event-dot {
        height: 3px;
        font-size: 0.6rem;
    }

    .event-title {
        font-size: 0.35rem;
        padding: 1px 2px;
        line-height: 1;
    }

    .event-bar {
        height: 2px;
    }

    .event-item {
        margin-bottom: 1px;
    }

    .upcoming-events {
        padding: 20px;
    }

    .event-item {
        padding: 15px;
    }

    .event-title {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 20px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .calendar-day {
        min-height: 45px;
        padding: 2px 1px;
        max-width: 100%;
    }

    .day-number {
        font-size: 0.65rem;
        margin-bottom: 1px;
    }

    .event-dot {
        height: 2px;
        font-size: 0.5rem;
    }

    .event-title {
        font-size: 0.3rem;
        padding: 0px 1px;
        line-height: 0.9;
    }

    .event-bar {
        height: 1px;
    }

    .event-item {
        margin-bottom: 0px;
        border-radius: 2px;
    }

    .calendar-header {
        padding: 10px;
    }

    .calendar-nav {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .rsvp-modal-content {
        width: 95%;
        margin: 10px;
    }

    .event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Intersection Observer Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design for Announcements */
@media (max-width: 768px) {
    .announcements-feed {
        padding: 60px 0;
    }

    .announcements-feed h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .announcement-item {
        padding: 20px;
        margin: 0 10px;
    }

    .announcement-title {
        font-size: 1.3rem;
    }

    .announcement-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .announcement-item {
        padding: 15px;
        border-radius: 15px;
    }

    .announcement-title {
        font-size: 1.2rem;
    }

    .announcement-content {
        font-size: 0.95rem;
    }
}

/* Name Input Group for RSVP Form */
.name-input-group {
    display: flex;
    gap: 15px;
    width: 100%;
}

/* Join Us Form Styles */
.signup-card {
    max-width: 600px;
    margin: 0 auto;
}

.join-form {
    margin-top: 20px;
}

.join-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.join-form .form-group {
    margin-bottom: 20px;
}

.join-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.join-form input,
.join-form select,
.join-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e7ff;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.join-form input::placeholder,
.join-form textarea::placeholder {
    color: #9ca3af;
}


.join-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.join-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.join-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.privacy-note {
    text-align: center;
    margin-top: 15px;
    color: #6b7280;
}

.success-message {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 12px;
    margin-top: 20px;
}

.success-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.success-message h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.success-message p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .join-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .join-form input {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .join-submit-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .success-message {
        padding: 20px;
    }

    .success-message i {
        font-size: 2.5rem;
    }

    .success-message h4 {
        font-size: 1.3rem;
    }
}

.name-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.name-field label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.name-field input {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #fff;
}

.name-field input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.name-field input:invalid {
    border-color: #ef4444;
}

@media (max-width: 768px) {
    .name-input-group {
        flex-direction: column;
        gap: 10px;
    }

    .rsvp-form input,
    .rsvp-form select,
    .rsvp-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 15px;
        min-height: 48px;
    }

    .radio-group {
        gap: 15px;
        margin-top: 15px;
    }

    .radio-option {
        padding: 12px 15px;
        min-height: 48px;
    }
}

/* Payment Acknowledgment Styles */
.payment-acknowledgment {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.payment-acknowledgment:hover {
    border-color: #0ea5e9;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.payment-acknowledgment input[type="checkbox"] {
    margin: 0;
    position: relative;
    top: 2px;
}

.payment-text {
    font-size: 14px;
    line-height: 1.5;
    color: #2c3e50;
}

.payment-text strong {
    color: #d32f2f;
    font-weight: 600;
}

/* OHIP Number Input Formatting */
#ohipNumber {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Responsive adjustments for payment */
@media (max-width: 768px) {
    .payment-acknowledgment {
        padding: 12px;
        gap: 10px;
    }

    .payment-text {
        font-size: 13px;
    }
}
