/* Trail Life Troop PA-1997 Styles */

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

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

header {
    background: url('image_6.jpeg') center center / cover no-repeat;
    color: white;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.logo-container {
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
}

.logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

nav {
    background: #1e4620;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    align-items: center;
}

nav li {
    flex: 1;
    min-width: 100px;
}

nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1rem;
    text-align: center;
    transition: background 0.3s;
    font-size: 0.95rem;
}

nav a:hover,
nav a.active {
    background: #2c5f2d;
}

#installAppBtn {
    background: #A73638;
    color: white;
    padding: 0.8rem 1rem;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-family: 'Open Sans', sans-serif;
    border-radius: 5px;
    width: 100%;
    display: none;
}

#installAppBtn:hover {
    background: #8b2b2d;
    transform: scale(1.05);
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23228B22" width="1200" height="600"/><path fill="%23186418" d="M0 400L50 383C100 367 200 333 300 333C400 333 500 367 600 383C700 400 800 400 900 383C1000 367 1100 333 1150 317L1200 300V600H0Z"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    color: #A73638;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.cta-button {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    color: #2c5f2d;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #97d700;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 4px solid #2c5f2d;
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.info-card h3 {
    color: #2c5f2d;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-card p {
    color: #555;
    line-height: 1.8;
}

.calendar-event {
    background: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ff6b35;
}

.calendar-event h3 {
    color: #2c5f2d;
    margin-bottom: 0.5rem;
}

.calendar-event .date {
    color: #ff6b35;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44,95,45,0.9);
    color: white;
    padding: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    font-weight: bold;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c5f2d;
    font-weight: bold;
}

input, textarea, select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #2c5f2d;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

button[type="submit"] {
    background: #2c5f2d;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background: #1e4620;
}

.leadership {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.leader-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.leader-photo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #2c5f2d 0%, #97d700 100%);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    overflow: hidden;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-card h3 {
    color: #2c5f2d;
    margin-bottom: 0.5rem;
}

.leader-card .role {
    color: #ff6b35;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

footer {
    background: #1e4620;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer a {
    color: #97d700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        align-items: center;
        padding: 2rem 1rem;
    }

    .logo-container {
        width: 180px;
        height: 180px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    nav ul {
        flex-direction: row;
        justify-content: center;
    }

    nav li {
        flex: 0 0 auto;
        min-width: auto;
    }

    nav a {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    nav a {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
}