/* Hero Section Styles */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 800px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    padding: 0 20px;
}

.hero-welcome {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.hero-welcome span {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    color: #ffffff;
    text-transform: uppercase;
}

.hero-welcome h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0.5rem 0 1.5rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.slider-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Common Section Styles */
.section-padding {
    padding: 5rem 0;
}

.section-heading {
    color: var(--primary-color);
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-heading:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 0;
}

.section-subheading {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Services Section */
.services {
    background: #f9f9f9;
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

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

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0;
    position: relative;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 98, 65, 0.1) 0%, rgba(0, 98, 65, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

/* Responsive adjustments for service grid */
@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 4rem 0;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Section spacing */
.section-padding {
    padding: 6rem 0;
}

/* Container max width for content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.service-card h3 a:hover {
    color: #004d33;
}

.service-card p {
    padding: 0 1.5rem;
    margin: 0.5rem 0 1.5rem;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 1rem;
    text-align: center;
}

.service-card .view-more-btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    margin: 0 auto 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

.service-card .view-more-btn:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.service-card .view-more-btn:hover {
    background-color: #004d33;
}

@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-heading {
        font-size: 2rem;
        padding: 0 15px 1rem;
    }
    
    .section-subheading {
        font-size: 1rem;
        padding: 0 15px 2rem;
    }
    
    .services, .staff-section {
        padding: 3rem 0;
    }
    
    .service-grid, .staff-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 1.5rem;
        padding: 0 15px;
    }
    
    .service-card, .staff-card {
        margin-bottom: 0;
    }
    
    .staff-info h3 {
        font-size: 1.1rem;
    }
    
    .staff-info p {
        font-size: 0.9rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
        padding: 1rem 1rem 0.5rem;
    }

    .service-card p {
        font-size: 0.9rem;
        padding: 0 1rem;
        margin: 0.5rem 0 1rem;
    }

    .service-card .view-more-btn {
        padding: 0.5rem 1rem;
        margin: 0 1rem 1rem;
        font-size: 0.9rem;
    }

    .service-card img {
        height: 180px;
    }
}

/* Staff Section Styles */
.staff-section {
    padding: 4rem 5%;
    background: var(--light-bg);
}

.staff-section {
    background-color: #fff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.staff-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.staff-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-bottom: 4px solid var(--primary-color);
}

.staff-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.staff-info h3 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.staff-role {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.staff-bio {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.view-more-staff {
    text-align: center;
    margin-top: 2rem;
}

.view-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 2px solid var(--primary-color);
}

.view-more-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .staff-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .staff-section {
        padding: 4rem 0;
    }
    
    .staff-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 2rem auto;
    }
    
    .staff-image {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .staff-image {
        height: 300px;
    }
}

.staff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.staff-card:hover .staff-image img {
    transform: scale(1.1);
}

.staff-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.staff-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: var(--text-color);
    text-align: center;
}

.staff-info p {
    margin: 0.5rem 0;
    color: #666;
    text-align: center;
}

/* Staff bio is hidden on index page by default */
.staff-bio {
    display: none;
}

/* Show bio on staff page */
.staff-page .staff-bio {
    display: block;
    margin: 1rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.staff-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.staff-social a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.staff-social a:hover {
    color: var(--primary-color);
}

.view-more-staff {
    text-align: center;
    margin-top: 3rem;
}

.view-more-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #008751;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #008751;
}

.view-more-btn:hover {
    background-color: transparent;
    color: #008751;
}

.view-more-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.view-more-btn:hover {
    background-color: #005234;
}

/* Map Section Styles */
.map-section {
    margin-top: 0;
    padding-top: 0;
}

.map-container {
    padding: 4rem 5%;
    text-align: center;
}

.map-container h2 {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.map-frame {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--border-radius);
}

/* YouTube Section Styles */
.youtube-links {
    padding: 4rem 5%;
    background: var(--light-bg);
}

.youtube-links h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.youtube-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.youtube-box {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.youtube-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hero-welcome h1 {
        font-size: 2rem;
    }

    .hero-welcome span {
        font-size: 1.2rem;
    }

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

    .youtube-container {
        grid-template-columns: 1fr;
    }

    .map-frame {
        height: 300px;
    }
}
