/* Achievements Page Styles */

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 70%), 
                url('../images/achievements-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 1000px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-container {
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: 0.9rem;
    color: var(--light-text);
}

.breadcrumb a {
    color: var(--light-text);
    text-decoration: none;
}

.breadcrumb span {
    color: var(--primary);
    font-weight: 500;
}

/* Main Content */
.achievements-section {
    padding: 80px 0;
    background: white;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-grid {
    margin-bottom: 60px;
}

.text-content {
    max-width: 100%;
}

.text-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Certificates Section */
.certificates-section {
    margin: 80px 0;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.certificate-item {
    text-align: center;
}

.certificate-item img {
    width: auto;
    height: auto;
    max-width: 70%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.certificate-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

/* Contract Section */
.contract-section {
    margin: 80px 0;
    text-align: center;
}

.contract-image {
    max-width: 800px;
    margin: 0 auto;
}

.contract-image img {
    width: auto;
    height: auto;
    max-width: 70%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.contract-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

.certificate-item img,
.contract-image img {
    cursor: pointer;
}

/* 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;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.modal-close:hover {
    opacity: 0.7;
}

/* Image Captions */
.image-caption {
    font-style: italic;
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
    text-align: center;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content with Side Image */
.content-with-image {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 60px;
}

.content-with-image .text-content {
    flex: 1;
}

.side-image {
    flex: 0 0 450px;
    text-align: center;
}

.side-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.side-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .achievements-section {
        padding: 60px 0;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    .content-grid {
        margin-bottom: 40px;
    }
    
    .text-content p {
        font-size: 1rem;
        text-align: left;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .certificates-section {
        margin: 60px 0;
    }
    
    .content-with-image {
        flex-direction: column;
        gap: 2rem;
    }
    
    .side-image {
        flex: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}