body {
    font-family: "Nunito Sans", sans-serif;
    color: #333;
}

:where([class^="ri-"])::before {
    content: "\f3c2";
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 86, 179, 0.1), 0 10px 10px -5px rgba(0, 86, 179, 0.04);
}

.expand-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.expand-section.open {
    max-height: 500px;
}

.rotate-icon {
    transition: transform 0.3s ease;
}

.rotate-icon.rotated {
    transform: rotate(180deg);
}

.card-hover .bg-gradient-to-br {
    height: 400px;
}

/* --- Main Section Styling --- */
.jls-section-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.jls-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.jls-section-header h2 {
    font-size: 2.5rem;
    color: #1a237e;
    /* Dark blue from image */
    margin-bottom: 10px;
    font-weight: 600;
}

.jls-section-header p {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Job Listings Grid --- */
.jls-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* --- Job Card Styling --- */
.jls-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jls-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.jls-card-header {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.jls-company-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}

.jls-company-info h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #222;
}

.jls-company-info p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.jls-card-body {
    padding: 25px;
    flex-grow: 1;
}

.jls-job-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jls-job-details li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #444;
}

.jls-job-details li svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    color: #007bff;
    /* Primary blue from image */
}

.jls-card-footer {
    padding: 25px;
    background-color: #f9faff;
    border-top: 1px solid #e0e0e0;
}

.jls-apply-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background:#007bff;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.jls-apply-btn:hover {
    background: linear-gradient(90deg, #0069d9, #004085);
    transform: scale(1.02);
}

/* --- Modal Styling --- */
.jls-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1000;
    padding: 10px;
    box-sizing: border-box;
}

.jls-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.jls-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.jls-modal-overlay.active .jls-modal-content {
    transform: scale(1);
}

.jls-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.jls-modal-header h2 {
    margin: 0;
    color: #1a237e;
    font-size: 1.5rem;
}

.jls-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
    transition: color 0.3s ease;
}

.jls-close-btn:hover {
    color: #333;
}

.jls-modal-body h4 {
    font-size: 1.2rem;
    color: #007bff;
    margin-top: 25px;
    margin-bottom: 10px;
}

.jls-modal-body p,
.jls-modal-body ul {
    line-height: 1.7;
    color: #555;
}

.jls-modal-body ul {
    padding-left: 20px;
}

/* --- Application Form Styling --- */
.jls-application-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.jls-form-step {
    display: none;
}

.jls-form-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jls-form-group {
    margin-bottom: 20px;
}

.jls-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.jls-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.jls-payment-info {
    background-color: #e9f5ff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.jls-payment-info .fee {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a237e;
}

.jls-payment-details-container {
    display: flex;
    gap: 20px;
    /* flex-wrap: wrap; */
    flex-direction: column;
}

.jls-qr-code,
.jls-bank-info {
    /* flex: 1; */
    min-width: 250px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.jls-qr-code img {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.jls-payment-instructions {
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
    color: #d9534f;
}

.jls-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.jls-action-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    /* flex-grow: 1; Allow buttons to grow */
}

.jls-btn-primary {
    background-color: #007bff;
    color: white;
}

.jls-btn-primary:hover {
    background-color: #0056b3;
}

.jls-btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.jls-btn-secondary:hover {
    background-color: #ddd;
}

.jls-confirmation-message {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.jls-confirmation-message svg {
    color: #28a745;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.blueHead {
    color: #007bff;
    font-weight: 600;
}

/* --- =================================== --- */
/* ---      RESPONSIVE MEDIA QUERIES     --- */
/* --- =================================== --- */

/* --- For Tablets (e.g., iPads) --- */
@media (max-width: 768px) {
    .jls-section-header h2 {
        font-size: 2rem;
    }

    .jls-section-header p {
        font-size: 1rem;
    }

    .jls-modal-content {
        padding: 20px;
    }

    .jls-modal-header h2 {
        font-size: 1.3rem;
    }

    .jls-payment-details-container {
        flex-direction: column;
    }
}

/* --- For Mobile Phones --- */
@media (max-width: 480px) {
    .jls-section-container {
        padding: 10px;
    }

    .jls-section-container {
        margin: 20px auto;
        padding: 10px;
    }

    .jls-section-header {
        margin-bottom: 30px;
    }

    .jls-section-header h2 {
        font-size: 1.8rem;
    }

    .jls-listings-grid {
        grid-template-columns: 1fr;
        /* Stack cards vertically */
    }

    .jls-card-header,
    .jls-card-body,
    .jls-card-footer {
        padding: 20px;
    }

    .jls-company-info h3 {
        font-size: 1.2rem;
    }

    .jls-modal-content {
        padding: 15px;
        max-height: 95vh;
    }

    .jls-modal-header h2 {
        font-size: 1.2rem;
    }

    .jls-action-btn {
        width: 100%;
        /* Make buttons full width */
        margin-bottom: 10px;
    }

    .jls-form-actions {
        flex-direction: column;
    }

    .jls-form-actions .jls-btn-secondary {
        order: 2;
        /* Move back button below primary button */
    }
}


@media screen and (max-width: 480px) {
    .card-hover .bg-gradient-to-br {
        height: 300px;
    }

    img {
        object-fit: cover;
    }
}


/* ===========================================    HomePage Job Section      ========================================= */
/* Hero Section for Internships */
.internship-hero-section {
    background-image: linear-gradient(rgba(10, 20, 40, 0.85), rgba(10, 20, 40, 0.85)), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 4rem 0;
}

/* Container for centering internship content */
.internship-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Section Header Styles */
.internship-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.internship-section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.internship-section-header p {
    margin-top: 1rem;
    font-size: 1.125rem;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    color: #d1d5db;
}

.internship-section-header .internship-header-divider {
    margin-top: 1.5rem;
    height: 0.25rem;
    width: 6rem;
    background-color: #007bff;
    margin-left: auto;
    margin-right: auto;
    border-radius: 9999px;
}

/* Grid for Job Cards */
.internship-job-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

/* Job Card Styles */
.internship-job-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(30px);
}

.internship-job-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.internship-job-card .internship-card-icon-container {
    padding: 1rem;
    border-radius: 9999px;
    background-color: #ebf8ff;
    margin-bottom: 1rem;
}

.internship-job-card .internship-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: #007bff;
}

.internship-job-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.internship-job-card p {
    color: #4b5563;
}

/* Animation class to be added by JavaScript */
.internship-card-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Explore More Button Styles */
.internship-explore-container {
    text-align: center;
    margin-top: 4rem;
}

.internship-explore-button {
    background-color: #007bff;
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s ease-in-out;
}

.internship-explore-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Responsive Media Queries */
@media (min-width: 768px) {
    .internship-job-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .internship-section-header h2 {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .internship-job-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .internship-section-header h2 {
        font-size: 3rem;
    }
}