/* Hero Section */
.hero-section {
    background-image: url('../images/admission_hero.JPG');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--text-light);
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(76, 28, 34, 0.466) 60%, rgb(234, 197, 122, 0.466) 100%);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Merriweather', serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    animation: fadeInDown 0.8s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-icon {
    display: block;
    margin: 0.5rem auto;
    font-size: 2.5rem;
    color: var(--golden-yellow);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    animation: bounce 2s infinite;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Admissions Section */
.admissions {
    padding: 4rem 0;
    background: var(--background);
}

.section-title {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-plum);
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--deep-plum), var(--forest-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-section {
    margin: 3rem 0;
}

.sub-title {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    color: var(--forest-green);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Procedure Grid */
.procedure-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.procedure-step {
    flex: 1 1 200px;
    max-width: 250px;
    padding: 1.5rem;
    background: var(--background);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(72, 31, 36, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.procedure-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(72, 31, 36, 0.15);
}

.procedure-step h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    color: var(--forest-green);
    margin-bottom: 0.8rem;
}

.procedure-step p {
    font-size: 1rem;
    color: var(--deep-plum);
}

/* General Guidelines */
.intro-text {
    font-size: 1rem;
    color: var(--text-main);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    text-align: center;
    background: var(--section-bg);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--modern-green);
}

.age-table {
    width: 100%;
    max-width: 500px;
    margin: 1rem auto;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.age-table th,
.age-table td {
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.age-table th {
    background: var(--deep-plum);
    color: var(--text-light);
    font-weight: 600;
}

.age-table td {
    background: var(--background);
}

.age-table tr:nth-child(even) td {
    background: #f9fafb;
}

.guidelines-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.guidelines-list li {
    font-size: 0.95rem;
    color: var(--deep-plum);
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.3rem;
}

.guidelines-list li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--golden-yellow);
    font-size: 1.1rem;
}

/* Academic Structure Accordion */
.accordion {
    max-width: 700px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(72, 31, 36, 0.1);
}

.accordion-item summary {
    background: var(--section-bg);
    padding: 1rem;
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    color: var(--deep-plum);
    cursor: pointer;
    transition: background 0.3s ease;
}

.accordion-item summary:hover {
    background: #e2e8f0;
}

.accordion-item .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
}

.accordion-item[open] .accordion-content {
    max-height: 500px;
    padding: 1rem;
}

.accordion-item:not([open]) .accordion-content {
    max-height: 0;
    padding: 0 1rem;
}

.accordion-item p {
    font-size: 0.95rem;
    color: var(--deep-plum);
    background: var(--background);
    margin: 0;
}

/* Documents Required */
.documents-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.documents-list li {
    font-size: 0.95rem;
    color: var(--deep-plum);
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.3rem;
}

.documents-list li::before {
    content: '★';
    position: absolute;
    left: 0;
    color: var(--golden-yellow);
    font-size: 1.1rem;
}

/* Additional Information */
.additional-info {
    padding: 4rem 0;
    background: var(--background);
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.info-box {
    flex: 1 1 250px;
    max-width: 350px;
    padding: 1.5rem;
    background: var(--background);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(72, 31, 36, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(72, 31, 36, 0.15);
}

.info-box h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    color: var(--forest-green);
    margin-bottom: 0.8rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.info-box ul li {
    font-size: 0.95rem;
    color: var(--deep-plum);
    margin-bottom: 0.6rem;
}

.info-box p i {
    color: var(--golden-yellow);
    margin-right: 8px;
}

.info-box a {
    color: var(--modern-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-box a:hover {
    color: #2d9d68;
}

/* Fade-in Animation */
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fade-in {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        height: 350px;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }

    .info-grid {
        flex-direction: column;
        align-items: center;
    }

    .info-box {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .sub-title {
        font-size: 1.5rem;
    }

    .procedure-step,
    .info-box {
        padding: 1.2rem;
    }

    .procedure-step h3,
    .info-box h3 {
        font-size: 1.2rem;
    }

    .procedure-step p,
    .info-box p,
    .guidelines-list li,
    .documents-list li {
        font-size: 0.9rem;
    }

    .age-table {
        font-size: 0.9rem;
    }

    .accordion-item summary {
        font-size: 1.1rem;
    }

    .hero-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 250px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .hero-icon {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .sub-title {
        font-size: 1.3rem;
    }

    .admissions,
    .additional-info {
        padding: 2rem 0;
    }

    .sub-section {
        margin: 2rem 0;
    }

    .procedure-grid {
        align-items: center;
        gap: 0.3rem;
    }

    .procedure-step {
        max-width: 80%;
        min-height: 65px;
        padding: 50px 0px;
        border-radius: 6px;
        box-shadow: 0 3px 8px rgba(72, 31, 36, 0.1);
    }

    .procedure-step h3 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .procedure-step p {
        font-size: 0.7rem;
    }

    .intro-text {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .age-table th,
    .age-table td {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .info-box {
        max-width: 100%;
    }
}