/* Custom CSS for Pack 338 Website */

/* Global Styles */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Typography */
.section-title {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Hero title styling to prevent wrapping */
.hero-section h1 {
    white-space: nowrap;
    line-height: 1.2;
}

@media (max-width: 1200px) {
    .hero-section h1 {
        white-space: normal;
        line-height: 1.3;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/fire_pit.jpg') center center/cover no-repeat;
    opacity: 0.4;
}

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

/* Enhanced hero section with image */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/fire_pit.jpg') center center/cover no-repeat;
    opacity: 0.4;
}

/* Add a dark overlay for better text readability */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-buttons .btn {
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}

.feature-card i {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

/* Activity Cards */
.activity-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

.activity-card i {
    transition: all 0.3s ease;
}

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

/* Learning Cards */
.learning-card {
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.learning-card:hover {
    transform: translateY(-3px);
}

.learning-card i {
    transition: all 0.3s ease;
}

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

/* Newsletter Signup */
.newsletter-signup {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-signup h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Center the Groups.io signup form elements */
#groupsio_embed_signup .email {
    display: block;
    margin: 0 auto 10px auto !important;
    text-align: center;
    width: 80% !important;
    min-width: 200px;
}

#groupsio_embed_signup label {
    text-align: center;
}

#groupsio_embed_signup .button {
    display: block;
    margin: 0 auto !important;
}

/* Contact Cards */
.contact-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--success-color);
}

.contact-card i {
    transition: all 0.3s ease;
}

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

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

footer a:hover {
    color: var(--accent-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 60px 0;
    }
    
    /* Optimize image for mobile */
    .hero-section::before {
        background-position: center center;
        background-size: cover;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .feature-card,
    .activity-card,
    .learning-card,
    .contact-card {
        margin-bottom: 20px;
    }
    
    .newsletter-signup {
        margin: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

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

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.activity-card,
.learning-card,
.contact-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Upcoming Events */
.upcoming-events {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.upcoming-events h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.events-list {
    max-height: 300px;
    overflow-y: auto;
}

.event-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.event-item:hover {
    /* Removed hover effects to prevent weird black popup */
}

.event-date {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.event-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.event-title-link {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.calendar-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.loading-event {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 20px;
}

.no-events {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    font-style: italic;
}

.event-error {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.event-error i {
    color: #3b82f6;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.event-error strong {
    color: #3b82f6;
    display: block;
    margin-bottom: 10px;
}

.event-error .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.4;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
