.hero-section{
    background-image: linear-gradient(#f5f5f2f0),url(../images/grid.png);
    background-position: 50%;
    background-size: 20%;
    display: grid;
    justify-items: center;
    height: 80vh;
    align-content: center;
    gap: 20px;
    background-color: #f5f5f2;
    text-align: center;
}
.hero-section h1{
    color: var(--primary-color);
    font-size: 3.1em;
    font-weight: 600;
    width: 70%;
    margin: 10px 0;
}
.hero-section p{
    font-size: large;
    width: 70%;
}
.hero-section div a{
    background-color: var(--primary-color);
    color:white;
    padding: 15px 25px;
    border-radius: 18px;
    transition: all 0.5s ease-in;
}
.hero-section div a:hover{
    background-color: var(--secondary-color);
}
.tech-nontech {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch; /* ensure all cards in the row have equal height */
}

.tech-nontech .single-card {
    background-color: #f5f5f2;
    padding: 10px 30px;
    border-radius: 15px;
    display: flex;             /* stack content vertically */
    flex-direction: column;
    height: 100%;              /* fill the row height */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* optional decoration */
    transition: transform 0.3s ease;       /* optional hover effect */
}

.tech-nontech .single-card:hover {
    transform: translateY(-5px); /* subtle hover lift */
}

.tech-nontech .single-card ul li {
    list-style-type: disc;
    margin: 10px 0;
    padding-left: 20px;         /* better spacing for bullets */
}

.tech-nontech .single-card h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #333;
}

.duration-pricing {
    margin-top: auto;           /* push pricing to the bottom */
    margin-left: 30px;
}

.duration-pricing div {
    font-size: 1.3em;
    margin-bottom: 5px;         /* spacing between duration options */
}

.single-card .description-box {
    margin-top: 10px;
    padding: 10px;
    background-color: #e0e0df;
    border-radius: 10px;
    min-height: 40px;
    transition: opacity 0.3s ease;
    opacity: 0;
}


.how-it-works{
    display: grid;
    justify-content: center;
    padding-top: 4%;
    padding-bottom: 40px;
}
.how-it-works h2{
    text-align: center;
    font-size: 2em;
}
.how-it-works div ol{
    list-style-type: decimal;
    padding: 0;
}
.how-it-works div ol li{
    margin: 12px 0;
    font-size: 1.2em;
}
.apply {
    padding: 80px 20px;
    background-image: linear-gradient(#f5f5f2f0),url(../images/grid.png);
    background-position: 50%;
    background-size: 20%;
    backdrop-filter: blur(50px);
    color: black;
}

.apply-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.apply-text h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.apply-text p {
    font-size: 2.0rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.apply-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    font-size: 1.7rem;
    align-items: center;
    gap: 1rem;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-item span {
    font-weight: 500;
}

.apply-form {
    background: var(--primary-color);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.apply-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
}

.internship-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #cbd5e1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
}

.form-group input.error:focus,
.form-group select.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    /*color: #1f2937;*/
    color: white;
    font-size: 0.95rem;
}

/* Required field indicator */
.required-field::after {
    content: ' *';
    color: #ef4444;
    font-weight: 700;
}

/* Form improvements */
.form-group select {
    cursor: pointer;
}

.form-group select option {
    padding: 0.5rem;
}

/* Radio Button Styles */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
    color: #4b5563;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

/*.radio-label input[type="radio"] {
    display: none;
}*/

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #4c0082;
    background: #4c0082;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-text {
    font-weight: 500;
    color: white;
}

/* Checkbox Styles */
.checkbox-group {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.5;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}
.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #4c0082;
    background: #4c0082;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    font-weight: 500;
    color: white;
}

/* File Upload Styles */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: #4c0082;
    background: #f5f3ff;
}

.file-upload-label i {
    font-size: 2rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.file-upload-label span {
    color: #6b7280;
    font-weight: 500;
}

.file-info {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f5f3ff;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #4c0082;
    display: none;
}

.file-info.show {
    display: block;
}

.submit-button {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 0, 130, 0.3);
}
.faq{
    padding-bottom: 40px;
    padding-top: 40px;
}
.faq-cont{

    display: grid;
    gap: 20px;
}
.faq-cont h2{
        font-size: 3.5rem;
}
.question{
    cursor: pointer;
    font-size: 2.0rem;
}
.answer{
    font-size: 1.7rem;
}
.hide{
      display: none;
}
@media screen and (max-width:1000px) {
    .hero-section{
         background-image: linear-gradient(rgba(245, 245, 242, 0.912)),url(../images/grid.png);
         background-position: 50%;
         background-size: 70%;
    }
    .hero-section h1{
        color: var(--primary-color);
        font-size: 2.3em;
        font-weight: 600;
        width: 100%;
        margin: 2px 0;
    }
    .hero-section p{
        font-size: large;
        width: 100%;
    }
    .hero-section .cta a{
        padding-left: 22px;
        padding-right: 22px;
        font-size: 1.2em;
    }
    .tech-nontech{
        display: grid;
        grid-template-columns: 1fr;
    }
    .apply-content {
        display: block;
        grid-template-columns: 1fr; /* stack content vertically */
        gap: 2rem;                  /* reduce gap to prevent overflow */
        align-items: start;
        padding: 0;                  /* remove extra padding inside grid */
    }
    .apply-form {
        max-width: 100%;     /* take full available width */
        padding: 1.5rem;     /* smaller padding */
        box-sizing: border-box; /* important to include padding inside width */
        margin: 0 auto;       /* center horizontally */
    }

    /* Responsive apply section */
    .apply {
        padding: 40px 15px;
        background-size: 40%;
    }
        .apply-text {
        width: 100%;
        box-sizing: border-box;
        padding: 0 10px; /* optional: prevent text from touching screen edges */
    }

    .apply-text h2 {
        font-size: 2.5rem;
        text-align: center;
    }

    .apply-text p {
        font-size: 1.6rem;
        text-align: center;
    }

    .feature-item {
        font-size: 1.4rem;
        gap: 0.6rem;
    }

    .feature-item i {
        font-size: 0.9rem;
    }

    .apply-form h3 {
        font-size: 1.2rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.85rem;
        padding: 0.7rem;
    }

    .submit-button {
        font-size: 0.95rem;
        padding: 0.7rem 1.2rem;
    }

    .faq-cont h2 {
        font-size: 2rem;
        text-align: center;
    }

    .question {
        font-size: 1.5rem;
    }

    .answer {
        font-size: 1.4rem;
    }

    .fancy::after{
        bottom: 8px;
    }
    .how-it-works{
        display: grid;
        justify-content: none;
        padding: 40px 15px;
    }
    .how-it-works h2{
        text-align: left;
        font-size: 2em;
    }
}
@media screen and (max-width: 500px) {

}

@media  screen and (max-width:480px) {
     .hero-section{
        height: 80vh;
     }

}

@media  screen and (max-width:330px) {
     .hero-section{
        height:90vh;
     }
     .hero-section h1{
        font-size: 1.8em;
     }
     
}

