/* ========================================
   QEHS Policy Section Styles
   ======================================== */

/* Section Container */
.qehs-policy-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.qehs-policy-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 139, 34, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.qehs-policy-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.qehs-policy-header {
    text-align: center;
    margin-bottom: 60px;
}

.qehs-policy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.2);
    animation: qehs-badge-pulse 2s ease-in-out infinite;
}

@keyframes qehs-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.qehs-policy-badge i {
    font-size: 16px;
}

.qehs-policy-main-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.qehs-policy-subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* Content Grid */
.qehs-policy-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Info Column */
.qehs-policy-info-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.qehs-policy-info-title {
    font-size: 28px;
    font-weight: 700;
    color: #228B22;
    margin-bottom: 15px;
}

.qehs-policy-info-description {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

/* Policy Pillars */
.qehs-policy-pillars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qehs-pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.qehs-pillar-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(34, 139, 34, 0.15);
}

.qehs-pillar-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.qehs-pillar-icon.quality {
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
}

.qehs-pillar-icon.environment {
    background: linear-gradient(135deg, #2E8B57 0%, #3CB371 100%);
}

.qehs-pillar-icon.health {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
}

.qehs-pillar-icon.safety {
    background: linear-gradient(135deg, #FFA500 0%, #FFB830 100%);
}

.qehs-pillar-content {
    flex: 1;
}

.qehs-pillar-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.qehs-pillar-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Highlights */
.qehs-policy-highlights {
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    padding: 30px;
    border-radius: 12px;
    color: white;
}

.qehs-highlights-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qehs-highlights-title i {
    color: #FFD700;
}

.qehs-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qehs-highlights-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.qehs-highlights-list li i {
    color: #FFD700;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Certificate Column */
.qehs-policy-certificate-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qehs-policy-certificate-preview {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.qehs-certificate-image-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.qehs-certificate-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.qehs-certificate-image-wrapper:hover .qehs-certificate-thumbnail {
    transform: scale(1.05);
}

.qehs-certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 139, 34, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.qehs-certificate-image-wrapper:hover .qehs-certificate-overlay {
    opacity: 1;
}

.qehs-certificate-overlay i {
    font-size: 48px;
}

.qehs-certificate-overlay span {
    font-size: 16px;
    font-weight: 600;
}

/* Certificate Details */
.qehs-certificate-details {
    padding: 30px;
}

.qehs-certificate-title {
    font-size: 20px;
    font-weight: 700;
    color: #228B22;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qehs-certificate-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qehs-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.qehs-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.qehs-info-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.qehs-info-value {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 600;
}

.qehs-status-active {
    color: #228B22;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qehs-status-active i {
    font-size: 16px;
}

/* Action Buttons */
.qehs-policy-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.qehs-action-btn {
    padding: 16px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.qehs-btn-view {
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    color: white;
}

.qehs-btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 139, 34, 0.3);
}

.qehs-btn-download {
    background: white;
    color: #228B22;
    border: 2px solid #228B22;
}

.qehs-btn-download:hover {
    background: #228B22;
    color: white;
    transform: translateY(-2px);
}

/* Policy Note */
.qehs-policy-note {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #228B22;
    display: flex;
    gap: 15px;
}

.qehs-policy-note i {
    color: #228B22;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.qehs-policy-note p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Statistics */
.qehs-policy-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.qehs-stat-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.qehs-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(34, 139, 34, 0.15);
}

.qehs-stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.qehs-stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #228B22;
    line-height: 1;
    margin-bottom: 10px;
    display: inline-block;
}

.qehs-stat-suffix {
    font-size: 32px;
    font-weight: 800;
    color: #228B22;
    display: inline-block;
}

.qehs-stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 600;
    line-height: 1.4;
}

/* ========================================
   Modal Styles
   ======================================== */

.qehs-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qehs-modal.qehs-modal-active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.qehs-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.qehs-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: qehs-modal-slide-up 0.3s ease;
}

@keyframes qehs-modal-slide-up {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.qehs-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.qehs-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #228B22;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.qehs-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #666;
}

.qehs-modal-close:hover {
    background: #228B22;
    color: white;
    transform: rotate(90deg);
}

.qehs-modal-body {
    padding: 30px;
    overflow-y: auto;
}

.qehs-modal-image-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.qehs-modal-certificate-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.qehs-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.qehs-modal-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.qehs-modal-download {
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    color: white;
}

.qehs-modal-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 139, 34, 0.3);
}

.qehs-modal-print {
    background: white;
    color: #228B22;
    border: 2px solid #228B22;
}

.qehs-modal-print:hover {
    background: #228B22;
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .qehs-policy-main-title {
        font-size: 36px;
    }

    .qehs-policy-content-grid {
        gap: 40px;
    }

    .qehs-policy-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .qehs-policy-section {
        padding: 60px 15px;
    }

    .qehs-policy-header {
        margin-bottom: 40px;
    }

    .qehs-policy-badge {
        font-size: 13px;
        padding: 8px 20px;
    }

    .qehs-policy-main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .qehs-policy-subtitle {
        font-size: 16px;
    }

    .qehs-policy-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .qehs-policy-info-title {
        font-size: 24px;
    }

    .qehs-pillar-item {
        padding: 15px;
        gap: 15px;
    }

    .qehs-pillar-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .qehs-pillar-title {
        font-size: 16px;
    }

    .qehs-pillar-text {
        font-size: 13px;
    }

    .qehs-policy-highlights {
        padding: 20px;
    }

    .qehs-highlights-title {
        font-size: 18px;
    }

    .qehs-highlights-list li {
        font-size: 14px;
    }

    .qehs-certificate-details {
        padding: 20px;
    }

    .qehs-certificate-title {
        font-size: 18px;
    }

    .qehs-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .qehs-policy-actions {
        grid-template-columns: 1fr;
    }

    .qehs-action-btn {
        padding: 14px 20px;
        font-size: 14px;
    }

    .qehs-policy-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .qehs-stat-card {
        padding: 25px;
    }

    .qehs-stat-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .qehs-stat-number {
        font-size: 40px;
    }

    .qehs-stat-suffix {
        font-size: 28px;
    }

    .qehs-stat-label {
        font-size: 14px;
    }

    /* Modal Responsive */
    .qehs-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .qehs-modal-header {
        padding: 20px;
    }

    .qehs-modal-title {
        font-size: 20px;
    }

    .qehs-modal-close {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .qehs-modal-body {
        padding: 20px;
    }

    .qehs-modal-image-container {
        padding: 15px;
    }

    .qehs-modal-actions {
        flex-direction: column;
    }

    .qehs-modal-btn {
        padding: 14px 24px;
        font-size: 14px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .qehs-policy-section {
        padding: 40px 10px;
    }

    .qehs-policy-main-title {
        font-size: 24px;
    }

    .qehs-policy-subtitle {
        font-size: 14px;
    }

    .qehs-policy-info-title {
        font-size: 20px;
    }

    .qehs-pillar-item {
        flex-direction: column;
        text-align: center;
    }

    .qehs-pillar-icon {
        margin: 0 auto;
    }

    .qehs-policy-highlights {
        padding: 15px;
    }

    .qehs-highlights-title {
        font-size: 16px;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .qehs-highlights-list li {
        font-size: 13px;
    }

    .qehs-certificate-title {
        font-size: 16px;
        flex-direction: column;
        gap: 8px;
    }

    .qehs-certificate-overlay i {
        font-size: 36px;
    }

    .qehs-certificate-overlay span {
        font-size: 14px;
    }

    .qehs-policy-note {
        flex-direction: column;
        padding: 15px;
    }

    .qehs-policy-note i {
        font-size: 18px;
    }

    .qehs-policy-note p {
        font-size: 13px;
    }

    .qehs-stat-card {
        padding: 20px;
    }

    .qehs-stat-number {
        font-size: 36px;
    }

    .qehs-stat-suffix {
        font-size: 24px;
    }

    .qehs-modal-title {
        font-size: 18px;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .qehs-policy-section {
        padding: 20px;
        background: white;
    }

    .qehs-policy-badge,
    .qehs-policy-actions,
    .qehs-modal-actions,
    .qehs-modal-close,
    .qehs-certificate-overlay {
        display: none !important;
    }

    .qehs-policy-content-grid {
        display: block;
    }

    .qehs-policy-certificate-column {
        page-break-before: always;
    }

    .qehs-modal-certificate-image {
        max-width: 100%;
        height: auto;
    }
}

/* ========================================
   Accessibility
   ======================================== */

.qehs-action-btn:focus,
.qehs-modal-btn:focus,
.qehs-modal-close:focus {
    outline: 3px solid #228B22;
    outline-offset: 2px;
}

.qehs-certificate-image-wrapper:focus {
    outline: 3px solid #228B22;
    outline-offset: 4px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .qehs-policy-badge,
    .qehs-pillar-item,
    .qehs-action-btn,
    .qehs-stat-card,
    .qehs-modal-content,
    .qehs-certificate-thumbnail {
        animation: none !important;
        transition: none !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .qehs-policy-section {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }

    .qehs-policy-main-title {
        color: #ffffff;
    }

    .qehs-policy-subtitle,
    .qehs-policy-info-description,
    .qehs-pillar-text,
    .qehs-info-label,
    .qehs-stat-label,
    .qehs-policy-note p {
        color: #cccccc;
    }

    .qehs-pillar-item,
    .qehs-policy-certificate-preview,
    .qehs-stat-card {
        background: #2d2d2d;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .qehs-pillar-title,
    .qehs-info-value {
        color: #ffffff;
    }

    .qehs-policy-note {
        background: #2d2d2d;
    }

    .qehs-btn-download {
        background: #2d2d2d;
        border-color: #32CD32;
        color: #32CD32;
    }

    .qehs-modal-content {
        background: #2d2d2d;
    }

    .qehs-modal-header {
        border-bottom-color: #3d3d3d;
    }

    .qehs-modal-close {
        background: #3d3d3d;
        color: #cccccc;
    }

    .qehs-modal-image-container {
        background: #1a1a1a;
    }

    .qehs-modal-print {
        background: #2d2d2d;
        border-color: #32CD32;
        color: #32CD32;
    }
}