/* location.css - Custom Stylesheet */
:root {
    --primary-green: #1b5e20;
    --secondary-green: #2e7d32;
    --accent-green: #66bb6a;
    --light-green: #e8f5e9;
    --text-dark: #212529;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-green);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

.top-bar a:hover {
    color: var(--accent-green);
}

/* Main Navigation */
.main-nav {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    min-height: 70px;
}

.brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    padding: 15px 0;
}

.brand:hover {
    color: var(--secondary-green);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 5px;
}

.nav-menu li a {
    display: block;
    padding: 25px 18px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-menu li a:hover {
    color: var(--secondary-green);
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-enroll {
    background-color: var(--secondary-green);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.btn-enroll:hover {
    background-color: var(--primary-green);
    color: white;
}

.btn-timesheets {
    background-color: white;
    color: var(--secondary-green);
    border: 2px solid var(--secondary-green);
    padding: 8px 22px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-timesheets:hover {
    background-color: var(--secondary-green);
    color: white;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: 2px solid var(--secondary-green);
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--secondary-green);
    margin: 5px 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
}

.hero-cta {
    display: inline-block;
    background-color: white;
    color: var(--secondary-green);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: var(--secondary-green);
}

.hero-note {
    margin-top: 20px;
    font-size: 16px;
    font-style: italic;
}

/* Main Content Wrapper */
.main-wrapper {
    padding: 60px 0;
    background-color: var(--bg-light);
}

/* Main Content */
.main-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hero-note .inline-link {
    color: var(--light-green);  /* Done only for hero-note because of green background */
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-green);
}

.hero-note .inline-link:hover {
    color: var(--light-green);  /* Done only for hero-note because of green background */
}

/* Locations Sections */
.locations-section,
.learning-centers-section {
    margin-bottom: 60px;
}

.learning-centers-section {
    margin-bottom: 0;
}

.section-title {
    color: var(--primary-green);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-green);
}

.section-description {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Location Cards */
.location-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    height: 100%;
}

.location-card:hover {
    border-color: var(--secondary-green);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.15);
    transform: translateY(-3px);
    color: var(--text-dark);
}

.location-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background-color: var(--light-green);
}

.location-info {
    flex: 1;
}

.location-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 8px;
}

.location-address,
.location-phone {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.location-phone {
    font-weight: 500;
    margin-bottom: 0;
}

/* Location Detail */
.location-detail {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.location-detail-hero {
    padding: 32px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(102, 187, 106, 0.22), transparent 38%),
        linear-gradient(135deg, #f5fbf5 0%, #edf7ee 56%, #ffffff 100%);
    border: 1px solid rgba(46, 125, 50, 0.14);
}

.location-detail-kicker,
.location-detail-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary-green);
    margin-bottom: 10px;
}

.location-detail-title {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.02;
    color: #143f1e;
    margin-bottom: 14px;
}

.location-detail-summary {
    max-width: 720px;
    margin: 0;
    font-size: 1.05rem;
    color: #4d5d53;
}

.location-detail-copy {
    display: grid;
    gap: 14px;
    max-width: 820px;
}

.location-detail-copy .location-detail-summary {
    max-width: none;
}

.location-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.location-detail-card,
.location-detail-hours {
    padding: 26px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(27, 94, 32, 0.1);
    box-shadow: 0 16px 36px rgba(13, 43, 20, 0.06);
}

.location-detail-card--accent {
    background: linear-gradient(180deg, #143f1e 0%, #215a2b 100%);
    color: var(--white);
}

.location-detail-card h2,
.location-detail-hours h2 {
    font-size: 1.25rem;
    margin: 0 0 16px;
    color: inherit;
}

.location-detail-list {
    display: grid;
    gap: 10px;
}

.location-detail-list p {
    margin: 0;
    color: inherit;
    font-size: 1rem;
}

.location-detail-list strong {
    color: inherit;
}

.location-detail-card a,
.location-detail-hours a {
    color: var(--secondary-green);
    font-weight: 700;
    text-decoration: none;
}

.location-detail-card--accent a {
    color: #d8f2db;
}

.location-detail-card a:hover,
.location-detail-card a:focus-visible,
.location-detail-hours a:hover,
.location-detail-hours a:focus-visible {
    text-decoration: underline;
}

.location-detail-hours {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f4faf4 100%);
}

.location-detail-hours-heading h2,
.location-detail-hours-heading p {
    margin-bottom: 0;
}

.location-detail-hours-time {
    padding: 14px 18px;
    border-radius: 999px;
    background: var(--light-green);
    color: #143f1e;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
}

.location-detail-hours-copy {
    display: grid;
    gap: 8px;
}

.location-detail-hours-copy p {
    margin: 0;
    color: #4d5d53;
    font-size: 1rem;
}

/* Footer */
.site-footer {
    background-color: var(--primary-green);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-menu li a {
        padding: 25px 12px;
        font-size: 14px;
    }

    .btn-enroll,
    .btn-timesheets {
        padding: 8px 16px;
        font-size: 14px;
    }

    .nav-actions {
        gap: 8px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 24px;
    }
}

@media (max-width: 991px) {
    .sidebar {
        order: 2;
    }

    .main-content {
        padding: 30px 20px;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .top-bar-left {
        flex-direction: column;
        gap: 8px;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        border-top: 1px solid #e9ecef;
    }

    .nav-menu li a {
        padding: 15px 20px;
    }

    .nav-actions {
        width: 100%;
        padding: 15px 0;
        border-top: 1px solid #e9ecef;
        justify-content: center;
    }

    .btn-enroll,
    .btn-timesheets {
        flex: 1;
        text-align: center;
    }

    .hero-section {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .location-detail-grid {
        grid-template-columns: 1fr;
    }

    .location-detail-hours {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .main-wrapper {
        padding: 30px 0;
    }

    .hero-cta {
        font-size: 18px;
        padding: 12px 30px;
    }

     .section-title {
        font-size: 24px;
    }

    .main-content {
        padding: 24px 16px;
    }

    .location-detail-hero,
    .location-detail-card,
    .location-detail-hours {
        padding: 22px;
        border-radius: 18px;
    }
    
    .location-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .location-img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    .locations-section,
    .learning-centers-section {
        margin-bottom: 40px;
    }
    
    .section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
}
