/* ============================================
   Careers Page Styles
   ============================================ */

/* Hero Section */
.careers-hero {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.careers-hero .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.careers-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.careers-hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-banner {
    background: #ffc107;
    padding: 1.5rem 3rem;
    display: inline-block;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.careers-hero h1 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Vacancies Section */
.vacancies-section {
    padding: 4rem 0;
    background: #fff;
}

.vacancies-section h2,
.internships-section h2 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.vacancies-grid,
.internships-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    justify-items: center;
}

/* Vacancy Card */
.vacancy-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    padding-left: 2.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    width: 100%;
}

.vacancy-badge {
    position: absolute;
    left: 0;
    top: 1rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 0 4px 4px 0;
}

.vacancy-badge.job {
    background: #ffc107;
    color: #1a1a1a;
}

.vacancy-badge.internship {
    background: #ffc107;
    color: #1a1a1a;
}

.vacancy-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.vacancy-duties {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.vacancy-duties li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

.vacancy-duties li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-weight: 700;
}

/* Styles for HTML content from database */
.vacancy-duties p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

.vacancy-duties ul,
.vacancy-duties ol {
    margin: 0 0 0.75rem 0;
    padding-left: 1.5rem;
}

.vacancy-duties ul li,
.vacancy-duties ol li {
    padding-left: 0;
    margin-bottom: 0.5rem;
}

.vacancy-duties ul li::before {
    content: none;
}

.vacancy-duties strong {
    color: #1a1a1a;
    font-weight: 600;
}

.btn-readmore {
    display: inline-block;
    background: #1a237e;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.btn-readmore:hover {
    background: #283593;
    transform: translateY(-2px);
}

/* Internships Section */
.internships-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.erasmus-link {
    text-align: center;
    font-size: 1rem;
    color: #1a237e;
    margin-bottom: 2.5rem;
}

.erasmus-link a {
    color: #1a237e;
    text-decoration: underline;
}

.erasmus-link a:hover {
    color: #ffc107;
}

/* Accordion */
.internship-accordion {
    max-width: 1200px;
    margin: 2rem auto 0;
}

.internship-accordion details {
    background: #e8f5e9;
    border-radius: 8px;
    overflow: hidden;
}

.internship-accordion summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    list-style: none;
}

.internship-accordion summary::-webkit-details-marker {
    display: none;
}

.accordion-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2e7d32;
}

.accordion-content {
    padding: 0 1.5rem 1.5rem;
}

.accordion-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 0.75rem;
}

/* Testimonials Section */
.testimonials-section {
    padding-bottom: 4rem;
}

.testimonials-banner {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    margin-bottom: 3rem;
}

.testimonials-banner .banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.testimonials-banner .banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.testimonials-banner .container {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.banner-content {
    background: #ffc107;
    padding: 2rem 3rem;
    border-radius: 16px 0 0 16px;
    text-align: center;
}

.banner-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.banner-content p {
    font-size: 1rem;
    color: #1a1a1a;
    margin: 0;
}

/* Testimonials Slider */
.testimonials-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333;
    z-index: 10;
}

.slider-prev {
    left: -60px;
}

.slider-next {
    right: -60px;
}

.slider-arrow:hover {
    background: #ffc107;
    color: #1a1a1a;
}

.slider-arrow i {
    font-size: 1.25rem;
}

.testimonials-slider {
    flex: 1;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 calc(50% - 0.75rem);
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    min-width: calc(50% - 0.75rem);
}

.testimonial-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid #ffc107;
}

.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-quote {
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.quote-icon {
    font-family: Georgia, serif;
    font-size: 4rem;
    color: #ffc107;
    line-height: 1;
}

.testimonial-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.testimonial-role {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.testimonial-workplace {
    font-size: 0.9rem;
    color: #1a1a1a;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Partner Universities Section */
.partners-section {
    padding: 3rem 0;
    background: #fff;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 3rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.partner-logo img {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(0);
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    transform: scale(1.05);
}

/* Fun Staff Activities Section */
.activities-section {
    padding: 3rem 0 4rem;
    background: #fff;
}

.activities-section h2 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.activities-section .section-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Activities Gallery - Product Style */
.activities-gallery-wrapper {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
}

.gallery-thumbnails .thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.gallery-thumbnails .thumbnail:hover {
    border-color: #999;
    transform: scale(1.05);
}

.gallery-thumbnails .thumbnail.active {
    border-color: #ffc107;
}

.gallery-thumbnails .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-main {
    flex: 1;
}

.main-image-container {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    display: block;
    width: 100%;
    transition: box-shadow 0.3s ease;
}

.main-image-container:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.main-image-container .main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.gallery-hint {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
    font-style: italic;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #fff;
    color: #fff;
    font-size: 3rem;
    font-weight: 300;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    z-index: 10001;
}

.lightbox-close:hover {
    background: #ffc107;
    color: #1a1a1a;
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #fff;
    color: #fff;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #ffc107;
    color: #1a1a1a;
}

.lightbox-counter {
    color: #fff;
    font-size: 1rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Application Form Section */
.application-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.application-section h2 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    position: relative;
}

.application-section h2::after {
    content: '';
    display: block;
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
    margin: 1rem auto 2rem;
}

.application-form {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 2px solid #1a237e;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-grid.file-uploads {
    grid-template-columns: repeat(2, 1fr);
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1a237e;
}

.file-upload-area {
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.file-upload-area:hover {
    border-color: #1a237e;
    background: #f5f5f5;
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #888;
}

.upload-placeholder i {
    font-size: 2rem;
    color: #bbb;
}

.upload-placeholder span {
    font-size: 0.9rem;
}

.file-hint {
    font-size: 0.85rem;
    color: #1a237e;
    margin-top: 0.5rem;
}

.btn-submit {
    display: inline-block;
    background: #1a237e;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 2.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #283593;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid.file-uploads {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 2rem;
    }

    .activities-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .vacancies-grid,
    .internships-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .careers-hero {
        min-height: 250px;
    }

    .hero-banner {
        padding: 1rem 1.5rem;
    }

    .vacancies-section,
    .internships-section,
    .application-section {
        padding: 3rem 0;
    }

    .vacancies-grid,
    .internships-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .testimonials-slider-wrapper {
        gap: 0.5rem;
    }

    .slider-arrow {
        width: 36px;
        height: 36px;
    }

    .slider-arrow i {
        font-size: 1rem;
    }

    .testimonial-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .banner-content {
        margin: 1rem;
        border-radius: 16px;
        padding: 1.5rem;
    }

    .slider-prev {
        left: 0;
    }

    .slider-next {
        right: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .application-form {
        padding: 1.5rem;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .partner-logo img {
        max-width: 140px;
        max-height: 60px;
    }

    .activities-gallery-wrapper {
        flex-direction: column-reverse;
    }

    .gallery-thumbnails {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .gallery-thumbnails .thumbnail {
        width: 60px;
        height: 60px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-content img {
        max-height: 80vh;
    }
}

@media (max-width: 480px) {
    .careers-hero h1 {
        font-size: 1.25rem;
    }

    .vacancy-card {
        padding: 1.5rem;
        padding-left: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
