/* Animations */
@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-text {
    opacity: 0;
    animation: fadeInText 0.8s ease-out forwards;
}

/* Hero Section */
.hero-image-section {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay::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 {
    max-width: 90%;
    position: relative;
    z-index: 2;
    color: var(--text-light);
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Resources Section */
.resources {
    padding: 4rem 0;
    background: var(--background);
}

.section-title {
    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;
}

.intro-text {
    font-size: 1rem;
    color: var(--text-main);
    max-width: 600px;
    margin: 0 auto 2rem;
    text-align: center;
    background: var(--section-bg);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--modern-green);
}

/* Table Styling */
.resources-table-wrapper {
    overflow-x: auto;
    margin: 0 auto;
    max-width: 100%;
    padding: 0 1.5rem;
}

.resources-table {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-collapse: collapse;
    background: var(--background);
    box-shadow: 0 6px 20px rgba(72, 31, 36, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.resources-table th,
.resources-table td {
    padding: 1.5rem;
    text-align: left;
}

.resources-table th {
    background: var(--deep-plum);
    color: var(--text-light);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
}

.resources-table td {
    font-size: 1.1rem;
    color: var(--deep-plum);
    border-bottom: 1px solid rgba(72, 31, 36, 0.1);
}

.resources-table tr {
    transition: background 0.3s ease;
}

.resources-table tr:hover {
    background: rgba(234, 197, 122, 0.1);
}

.resources-table td:first-child {
    font-weight: 600;
    color: var(--forest-green);
}

.resources-table td:nth-child(2) {
    color: var(--text-main);
}

.school-intro__cta {
    white-space: nowrap;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .resources-table-wrapper {
        padding: 0 1.2rem;
    }

    .resources-table th,
    .resources-table td {
        padding: 1.2rem;
    }

    .resources-table th {
        font-size: 1.2rem;
    }

    .resources-table td {
        font-size: 0.95rem;
    }

    .school-intro__cta {
        padding: 0.9rem 2.2rem;
        font-size: 1.1rem;
        min-height: 48px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 900px) {
    .resources-table-wrapper {
        padding: 0 1rem;
    }

    .resources-table th,
    .resources-table td {
        padding: 1rem;
    }

    .resources-table th {
        font-size: 1.1rem;
    }

    .resources-table td {
        font-size: 0.9rem;
    }

    .school-intro__cta {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        min-height: 46px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 1.8rem;
    }

    .resources {
        padding: 2rem 0;
    }

    .intro-text {
        padding: 0.8rem;
        font-size: 0.9rem;
        max-width: 90%;
    }

    .resources-table {
        display: block;
        overflow-x: auto;
    }

    .resources-table thead {
        display: none;
    }

    .resources-table tr {
        display: block;
        margin-bottom: 1.2rem;
        border: 1px solid rgba(72, 31, 36, 0.1);
        border-radius: 8px;
        padding: 0.6rem;
        box-shadow: 0 4px 12px rgba(72, 31, 36, 0.05);
    }

    .resources-table td {
        display: block;
        text-align: center;
        border: none;
        padding: 0.5rem;
        overflow-wrap: break-word;
    }

    .resources-table td:first-child {
        font-size: 1rem;
        font-weight: 700;
        color: var(--forest-green);
        margin-bottom: 0.6rem;
    }

    .resources-table td:nth-child(2) {
        margin-bottom: 0.6rem;
        font-size: 0.85rem;
    }

    .school-intro__cta {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1.4rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .hero-image-section {
        height: 50vh;
    }

    .hero-content {
        padding: 0.8rem;
        max-width: 80%;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 400px) {
    .section-title {
        font-size: 1.7rem;
    }

    .resources {
        padding: 1.8rem 0;
    }

    .intro-text {
        font-size: 0.85rem;
        padding: 0.7rem;
        max-width: 92%;
    }

    .resources-table-wrapper {
        padding: 0 0.6rem;
    }

    .resources-table tr {
        margin-bottom: 1.1rem;
        padding: 0.5rem;
        box-shadow: 0 3px 10px rgba(72, 31, 36, 0.04);
    }

    .resources-table td {
        padding: 0.4rem;
    }

    .resources-table td:first-child {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .resources-table td:nth-child(2) {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .school-intro__cta {
        padding: 0.6rem 1.3rem;
        font-size: 0.85rem;
        min-height: 42px;
    }

    .hero-image-section {
        height: 45vh;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

    .hero-content p {
        font-size: 0.85rem;
        max-width: 85%;
    }
}

@media (max-width: 320px) {
    .section-title {
        font-size: 1.5rem;
    }

    .resources {
        padding: 1.5rem 0;
    }

    .intro-text {
        font-size: 0.8rem;
        padding: 0.6rem;
        max-width: 95%;
    }

    .resources-table-wrapper {
        padding: 0 0.5rem;
    }

    .resources-table tr {
        margin-bottom: 0.9rem;
        padding: 0.4rem;
        box-shadow: 0 2px 6px rgba(72, 31, 36, 0.03);
    }

    .resources-table td {
        padding: 0.3rem;
    }

    .resources-table td:first-child {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .resources-table td:nth-child(2) {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }

    .school-intro__cta {
        padding: 0.5rem 1.1rem;
        font-size: 0.8rem;
        min-height: 40px;
    }

    .hero-image-section {
        height: 40vh;
    }

    .hero-content {
        padding: 0.6rem;
        max-width: 90%;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero-content p {
        font-size: 0.8rem;
        max-width: 90%;
    }
}