/* Environment Health & Safety Page Styles */

/* Hero Section */
.ehs-hero {
    position: relative;
    height: 100vh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ehs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/Our_vision.jpg') center/cover;
    opacity: 0.3;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #7dd87f;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Styles */
.commitment-section,
.gallery-section,
.protocols-section,
.certifications-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4a7c59, #7dd87f);
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Commitment Cards */
.commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.commitment-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.commitment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #7dd87f;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a7c59, #7dd87f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

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

.commitment-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.feature-tag {
    background: #f0f8f0;
    color: #4a7c59;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Image Slider Section */
.image-slider-section {
    background: #f8fdf8;
}

.slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slider-wrapper {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide img[src] {
    opacity: 1;
}

.slide {
    background: #f0f0f0;
}

.slide::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #4a7c59;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

.slide img[src] + .slide::before {
    display: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 85, 48, 0.9), transparent);
    color: white;
    padding: 2rem;
    text-align: center;
}

.slide-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.slide-content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.4;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #4a7c59;
    transform: scale(1.2);
}

/* Protocols Section */
.protocols-grid {
    display: grid;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.protocol-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.protocol-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.protocol-number {
    background: linear-gradient(135deg, #4a7c59, #7dd87f);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.protocol-content h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.protocol-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.protocol-content ul {
    list-style: none;
    padding: 0;
}

.protocol-content li {
    color: #4a7c59;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.protocol-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #7dd87f;
    font-weight: bold;
}

/* Certifications Section */
.certifications-section {
    background: #f8fdf8;
}

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

.cert-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.cert-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4a7c59, #7dd87f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.cert-card h3 {
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.cert-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 15px;
    text-align: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #aaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

#modalImage {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.modal-info h3 {
    color: #2c5530;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.modal-info p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

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

/* Additional Interactive Effects */
.commitment-card {
    position: relative;
}

.commitment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(125, 216, 127, 0.1), rgba(74, 124, 89, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

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

.protocol-item {
    position: relative;
}

.protocol-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #4a7c59, #7dd87f);
    border-radius: 2px;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.protocol-item:hover::before {
    transform: scaleY(1);
}

/* EHS Content Sections */
.ehs-content-section {
    padding: 5rem 0;
}

.ehs-content-section:nth-child(even) {
    background: #f8fdf8;
}

.content-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.content-row.reverse {
    flex-direction: row-reverse;
}

.content-left {
    flex: 1;
    padding-right: 2rem;
}

.content-row.reverse .content-left {
    padding-right: 0;
    padding-left: 2rem;
}

.content-right {
    flex: 1;
}

.section-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a7c59, #7dd87f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.content-left h2 {
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 2rem;
    position: relative;
}

.content-left h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4a7c59, #7dd87f);
}

.content-details h3 {
    color: #2c5530;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
}

.content-details h3:first-child {
    margin-top: 0;
}

.content-details p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.image-slideshow {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.image-slideshow:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 350px;
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    cursor: pointer;
}

.slideshow-image.active {
    opacity: 1;
}

.slideshow-image:hover {
    transform: scale(1.02);
}

.image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.image-container .main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container:hover .main-image {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-left h2 {
        font-size: 2rem;
    }
    
    .section-icon {
        margin: 0 auto 1.5rem;
    }
    .content-row,
    .content-row.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    
    .content-left {
        padding-right: 0;
        text-align: center;
    }
    
    .content-row.reverse .content-left {
        padding-left: 0;
    }
    
    .content-left h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .slideshow-container {
        height: 250px;
    }
    
    .ehs-content-section {
        padding: 3rem 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .commitment-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .commitment-card {
        padding: 2rem 1.5rem;
    }
    
    .slider-wrapper {
        height: 350px;
    }
    
    .slide-content {
        padding: 1.5rem;
    }
    
    .slide-content h3 {
        font-size: 1.4rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .protocol-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .protocol-number {
        margin: 0 auto;
    }
    
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .cert-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .commitment-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .slider-wrapper {
        height: 250px;
    }
    
    .slide-content {
        padding: 1rem;
    }
    
    .slide-content h3 {
        font-size: 1.2rem;
    }
    
    .slide-content p {
        font-size: 0.8rem;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1rem;
    }
    
    .protocols-section,
    .commitment-section,
    .gallery-section,
    .certifications-section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
}