/* Training School Page Styles */

/* Hero Section */
.training-hero {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    padding: 6rem 2rem;
    text-align: center;
    margin-top: 170px;
}

.training-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.training-hero-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.cta-btn {
    background: #ffffff;
    color: #ff0000;
    padding: 1.25rem 3rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cta-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2;
}

/* Main Content */
.training-main {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

/* Introduction Section */
.intro-section {
    margin-bottom: 5rem;
}

.intro-text {
    font-size: 1.125rem;
    color: #cccccc;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 2px solid rgba(255, 0, 0, 0.2);
    transition: transform 0.3s, border-color 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #ff0000;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ff0000;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    color: #cccccc;
}

/* Levels Section */
.levels-section {
    margin-bottom: 5rem;
}

.level-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: linear-gradient(135deg, #1a1a1a, #000000);
    padding: 2rem;
    border-radius: 1.5rem;
    margin-bottom: 3rem;
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s;
}

.level-card:hover {
    border-color: #ff0000;
}

.level-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    height: 300px;
}

.level-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.level-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
}

.level-content {
    display: flex;
    flex-direction: column;
}

.level-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.level-duration {
    font-size: 1.125rem;
    color: #ff4444;
    margin-bottom: 1rem;
    font-weight: 600;
}

.level-description {
    font-size: 1.125rem;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.level-topics {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.level-topics li {
    padding: 0.75rem 0;
    color: #cccccc;
    font-size: 1rem;
    position: relative;
    padding-left: 2rem;
}

.level-topics li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff0000;
    font-weight: 700;
    font-size: 1.25rem;
}

.apply-level-btn {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    align-self: flex-start;
}

.apply-level-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 0, 0, 0.4);
}

/* Gallery Section */
.gallery-section {
    margin-bottom: 5rem;
}

.gallery-subtitle {
    text-align: center;
    color: #cccccc;
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.gallery-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-container {
    overflow: hidden;
    border-radius: 1rem;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #ffffff;
    padding: 2rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #ff0000;
    color: #ffffff;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
    z-index: 10;
}

.gallery-nav:hover {
    background: #ff0000;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 1rem;
}

.gallery-nav.next {
    right: 1rem;
}

.gallery-nav svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 3;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.gallery-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.gallery-dot.active {
    background: #ff0000;
    transform: scale(1.3);
}

/* Application Section */
.application-section {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    padding: 4rem 2rem;
    border-radius: 1.5rem;
    border: 2px solid rgba(255, 0, 0, 0.2);
}

.application-subtitle {
    text-align: center;
    color: #cccccc;
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* Application Status Styles */
.application-status {
    margin-bottom: 3rem;
    text-align: center;
}

.status-closed,
.status-open {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 3rem 2rem;
    border: 2px solid rgba(255, 0, 0, 0.3);
}

.status-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    stroke-width: 2;
    color: #ff0000;
}

.status-icon.success {
    color: #22c55e;
}

.status-closed h3,
.status-open h3 {
    font-size: 1.75rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.status-closed p,
.status-open p {
    font-size: 1.125rem;
    color: #cccccc;
    margin-bottom: 1.5rem;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

/* Application Form */
.application-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s, background-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff0000;
    background-color: rgba(255, 255, 255, 0.08);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.field-hint {
    font-size: 0.875rem;
    color: #999999;
    margin-top: 0.25rem;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #cccccc;
    font-weight: 400;
}

.radio-label input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: #ff0000;
}

.radio-label span {
    font-size: 1rem;
}

/* Address Section */
.address-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Validation Message */
.validation-message {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    display: none;
}

.validation-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
    display: block;
}

.validation-message.success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
    display: block;
}

/* File Upload Styles */
.upload-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.upload-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.file-info {
    font-size: 0.875rem;
    color: #999999;
    font-weight: 400;
}

.form-group input[type="file"] {
    padding: 0.875rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

.form-group input[type="file"]:hover {
    border-color: #ff0000;
    background-color: rgba(255, 0, 0, 0.05);
}

.form-group input[type="file"]:focus {
    outline: none;
    border-color: #ff0000;
    background-color: rgba(255, 255, 255, 0.08);
}

.file-preview {
    margin-top: 1rem;
    display: none;
}

.file-preview.active {
    display: block;
}

.preview-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preview-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid #ff0000;
}

.preview-info {
    flex: 1;
}

.preview-filename {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.preview-size {
    color: #999999;
    font-size: 0.875rem;
}

.preview-remove {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #ff0000;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.3s;
}

.preview-remove:hover {
    background: #ff0000;
    color: #ffffff;
}

.pdf-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ff0000;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
    padding: 1.25rem 2.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 0, 0, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

/* Form Message */
.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    background-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 2px solid #22c55e;
    display: block;
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 2px solid #ef4444;
    display: block;
}

/* Responsive Design */
@media (min-width: 768px) {
    .training-hero-title {
        font-size: 4.5rem;
    }

    .level-card {
        grid-template-columns: 400px 1fr;
    }

    .level-card.reverse {
        grid-template-columns: 1fr 400px;
    }

    .level-card.reverse .level-image {
        order: 2;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .radio-group {
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .training-hero {
        padding: 8rem 2rem;
    }

    .level-card {
        grid-template-columns: 450px 1fr;
        padding: 3rem;
    }

    .level-card.reverse {
        grid-template-columns: 1fr 450px;
    }
}