/* Base styles for training page */
.trainings-page {
    padding: 4rem 2rem;
    background: var(--light-bg);
}

.trainings-intro {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out;
    padding: 0 1rem;
}

.trainings-intro h1 {
    color: var(--primary-color);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.trainings-intro p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.6;
}

.trainings-container {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 3vw, 2rem);
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.training-box {
    flex: 1 1 300px;
    max-width: 500px;
    min-width: min(100%, 300px);
    background: white;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: scaleIn 0.5s ease-out;
}

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

.training-box h3 {
    color: var(--secondary-color);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.training-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.training-box p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.training-image {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.training-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.training-box:hover .training-image img {
    transform: scale(1.05);
}

/* Contact Section */
.contact-section {
    padding: clamp(2rem, 5vw, 4rem) 1rem;
    background: var(--light-bg);
    color:black;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    text-align: center;
    padding: 0 1rem;
}

.contact-container h2 {
    color: var(--secondary-color);
    font-size: clamp(1.4rem, 2vw, 2.5rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 0.5rem;
    margin-bottom: 2rem;
}

.contact-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.contact-container p {
    margin-bottom: 2rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input {
    height: 40px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
    min-height: 60px;
    max-height: 150px;
    padding-top: 12px;
}

.form-group select {
    appearance: none;
    cursor: pointer;
    width: 100%;
    padding: 8px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group select option {
    background: white;
    color: var(--text-color);
    padding: 8px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(3, 252, 136, 0.1);
    transform: translateY(-2px);
}

.contact-form .submit-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(3, 252, 136, 0.3);
}

/* Course Details */
.course-details {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.course-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-details li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.course-details li:last-child {
    margin-bottom: 0;
}

.course-details i {
    color: var(--accent-color);
    margin-right: 0.8rem;
    width: 20px;
    text-align: center;
}

.contact-note {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(3, 252, 136, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-style: italic;
}

.contact-note i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* Mining Safari Section */
.safari-box {
    background: linear-gradient(to bottom right, #fff, #f9f9f9);
    border: 1px solid rgba(3, 252, 136, 0.2);
}

.safari-details {
    margin-top: 2rem;
}

.safari-details h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.safari-details h4:first-child {
    margin-top: 0;
}

.safari-details h4 i {
    color: var(--accent-color);
}

.safari-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.safari-details li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.safari-details li:last-child {
    margin-bottom: 0;
}

.safari-details li i {
    color: var(--accent-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.safari-box .contact-note {
    margin-top: 2rem;
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 500;
    text-align: center;
}

.safari-box .contact-note i {
    color: var(--primary-color);
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .trainings-container {
        padding: 0 1rem;
    }
}

@media screen and (max-width: 768px) {
    .trainings-page {
        padding: 2rem 1rem;
    }

    .training-box {
        margin: 0 1rem;
    }

    .contact-section {
        padding: 2rem 1rem;
    }

    .contact-container {
        padding: 0;
    }

    .training-box {
        padding: 1.5rem;
    }

    .training-image img {
        height: 250px;
    }

    .training-box h3 {
        font-size: 1.3rem;
    }

    .course-details {
        padding: 1rem;
    }

    .course-details li {
        font-size: 1rem;
    }

    .safari-details h4 {
        font-size: 1.1rem;
    }

    .safari-details li {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    .trainings-intro {
        padding: 0;
    }

    .training-box {
        padding: 1.25rem;
        margin: 0 0.5rem;
    }

    .contact-form {
        padding: 0 0.5rem;
    }

    .training-image img {
        height: 200px;
    }

    .course-details {
        margin-top: 1rem;
    }

    .safari-details {
        margin-top: 1.5rem;
    }

    .safari-details h4 {
        font-size: 1rem;
    }

    .safari-box .contact-note {
        margin-top: 1.5rem;
        padding: 0.8rem;
    }
}

/* Touch Device Optimization */
@media (hover: none) {
    .training-box:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
}

/* High-DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .training-box {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Print Styles */
@media print {
    .training-box {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* Animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}