/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #C8102E;
    --dark-red: #A00C24;
    --light-red: #E31837;
    --white: #FFFFFF;
    --off-white: #F8F8F8;
    --light-gray: #E5E5E5;
    --text-dark: #2C2C2C;
    --text-gray: #666666;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--off-white);
    border-bottom: 2px solid var(--light-gray);
    padding: 1rem 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-left a,
.header-right a {
    text-decoration: none;
    transition: opacity 0.3s;
}

.header-left a:hover,
.header-right a:hover {
    opacity: 0.8;
}

.header-left .circle-logo {
    height: 80px;
    width: auto;
}

.header-title {
    font-family: Georgia, serif;
    color: var(--primary-red);
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.2;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: right;
}

.header-tagline {
    font-family: 'Brush Script MT', cursive;
    font-size: 1.5rem;
    color: var(--primary-red);
    line-height: 1.3;
    font-style: italic;
}

.header-right .square-logo {
    height: 80px;
    width: auto;
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    display: none; /* Hide the old logo in navbar since we have new header */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-red);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 4px 12px var(--shadow);
    border-radius: 8px;
    min-width: 220px;
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: var(--off-white);
    color: var(--primary-red);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-red);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-red) 100%);
    color: var(--white);
    padding: 120px 20px 80px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-tagline {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    margin-top: 0;
}

.hero-slider .slider-container {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero-slider .slide img {
    max-height: 700px;
    width: 100%;
    object-fit: cover;
}

.hero-slider .slide-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 70%, transparent 100%);
    padding: 4rem 2rem 2rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.hero-slider .slide-caption h1,
.hero-slider .slide-caption h2 {
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
}

.hero-slider .slide-caption p {
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.hero-slider .slider-btn {
    background-color: rgba(200, 16, 46, 0.9);
    width: 60px;
    height: 60px;
    font-size: 2rem;
}

.hero-slider .slider-dots {
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3));
    padding: 1rem 0 2rem;
}

.hero-slider .slider-dots .dot {
    width: 14px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-slider .slider-dots .dot.active {
    background-color: var(--white);
    border-color: var(--white);
}

.hero-slider .slider-dots .dot:hover {
    background-color: var(--white);
    border-color: var(--white);
}

.hero-buttons-overlay {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 100;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem;
}

.hero-buttons-overlay .btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-red);
}

.btn-primary:hover {
    background-color: var(--off-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* Content Sections */
.intro, .features, .content-section {
    padding: 80px 20px;
}

.intro {
    background-color: var(--off-white);
}

.intro-content h2 {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    text-align: center;
}

.intro-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.highlight-box {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px var(--shadow);
}

.highlight-box p {
    margin: 0;
}

/* Features Grid */
.features h2 {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 3rem;
    text-align: center;
}

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

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Location Section with Map */
.location-section {
    padding: 80px 20px;
    background-color: var(--off-white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

.location-info h3 {
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.location-info p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.location-info strong {
    color: var(--primary-red);
}

.location-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
}

.location-map iframe {
    display: block;
}

/* Merit Badge Grid */
.merit-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.merit-badge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    background-color: var(--white);
    box-shadow: 0 2px 8px var(--shadow);
}

.merit-badge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow);
}

.badge-image-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.badge-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.eagle-border {
    border: 4px solid #C0C0C0;
    background: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 100%);
}

.green-border {
    border: 4px solid #556B2F;
    background: linear-gradient(135deg, #6B8E23 0%, #556B2F 100%);
}

.badge-name {
    text-align: center;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
}

.merit-badge-card.eagle-required .badge-name {
    color: var(--primary-red);
    font-weight: 600;
}

.merit-badge-card.optional-badge .badge-name {
    color: var(--text-dark);
}

@media (max-width: 968px) {
    .location-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .location-map iframe {
        height: 350px;
    }
    
    .merit-badge-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .badge-image-placeholder {
        width: 100px;
        height: 100px;
    }
}

/* Content Pages */
.content-section {
    background-color: var(--white);
}

.page-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-content h2 {
    color: var(--primary-red);
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content h3 {
    color: var(--dark-red);
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.page-content ul, .page-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.info-box {
    background-color: var(--off-white);
    border-left: 4px solid var(--primary-red);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.info-box strong {
    color: var(--primary-red);
}

/* Contact Form */
.contact-form {
    background-color: var(--off-white);
    padding: 3rem;
    border-radius: 12px;
    max-width: 600px;
    margin: 2rem auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-red);
}

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

.form-submit {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-submit:hover {
    background-color: var(--dark-red);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 60px 20px 20px;
}

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

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--light-red);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--light-gray);
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
}

/* Responsive Design */
@media (max-width: 968px) {
    .header-top-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-left {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .header-title {
        font-size: 1.5rem;
    }
    
    .header-right {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }
    
    .header-tagline {
        font-size: 1.2rem;
    }
    
    .header-left .circle-logo,
    .header-right .square-logo {
        height: 60px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px var(--shadow);
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: var(--off-white);
        margin-top: 0;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* Hero Slider Responsive */
    .hero-slider .slide img {
        max-height: 500px;
    }

    .hero-slider .slide-caption h1 {
        font-size: 2rem !important;
    }

    .hero-slider .slide-caption h2 {
        font-size: 1.8rem !important;
    }

    .hero-slider .slide-caption p {
        font-size: 1.1rem !important;
    }

    .hero-slider .slide-caption {
        padding: 2rem 1rem 1rem;
    }

    .hero-buttons-overlay {
        bottom: 60px;
    }

    .hero-slider .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        margin: 0 0.5rem;
    }
}

@media (max-width: 640px) {
    .header-title {
        font-size: 1.2rem;
    }
    
    .header-tagline {
        font-size: 1rem;
    }
    
    .header-left .circle-logo,
    .header-right .square-logo {
        height: 50px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    /* Hero Slider Mobile */
    .hero-slider .slide img {
        max-height: 400px;
    }

    .hero-slider .slide-caption h1 {
        font-size: 1.5rem !important;
    }

    .hero-slider .slide-caption h2 {
        font-size: 1.4rem !important;
    }

    .hero-slider .slide-caption p {
        font-size: 0.95rem !important;
    }

    .hero-slider .slide-caption {
        padding: 1.5rem 0.75rem 0.75rem;
        font-size: 1rem !important;
    }

    .hero-buttons-overlay {
        bottom: 50px;
        flex-direction: column;
        width: 90%;
    }

    .hero-buttons-overlay .btn {
        width: 100%;
        text-align: center;
    }

    .hero-slider .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .hero-slider .slider-dots {
        padding: 0.75rem 0 1.5rem;
    }

    .hero-slider .slider-dots .dot {
        width: 10px;
        height: 10px;
    }
}

/* Image Slider/Gallery */
.photo-gallery {
    background-color: var(--off-white);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--shadow);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: contain;
    background-color: var(--text-dark);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 2rem 1rem 1rem;
    text-align: center;
    font-size: 1.1rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-btn {
    pointer-events: all;
    background-color: rgba(200, 16, 46, 0.8);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
}

.slider-btn:hover {
    background-color: var(--primary-red);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-dots {
    text-align: center;
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-gray);
    border: 2px solid var(--light-gray);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transform: scale(1.3);
}

.dot:hover {
    background-color: var(--light-red);
    border-color: var(--light-red);
}

/* Photo Grid (alternative to slider) */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.photo-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow);
    cursor: pointer;
    transition: transform 0.3s;
}

.photo-grid-item:hover {
    transform: scale(1.05);
}

.photo-grid-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.photo-grid-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--white);
    padding: 1rem 0.5rem 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-caption {
    text-align: center;
    color: var(--white);
    padding: 1rem;
    font-size: 1.1rem;
}

/* Placeholder for images */
.placeholder-gallery {
    background: linear-gradient(135deg, var(--off-white) 0%, var(--light-gray) 100%);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

.placeholder-gallery p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.section-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-red), transparent);
    margin: 3rem 0;
    border: none;
}
