@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=PT+Serif:wght@400;700&display=swap');

:root {
    --bg-color: #fdfcf0;
    --gold-border: #c09c40;
    --red-badge: #d74b2f;
    --sherwood-black: #1a1a1a;
    --heritage-green: #004d26;
    --text-blue: #002A53;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    /* Default to scroll for better compatibility */
    font-family: 'Inter', sans-serif;
    color: var(--sherwood-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Perfect vertical centering */
    padding: 20px;
    overflow-x: hidden;
}

.container {
    max-width: 1440px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 0;
    gap: 5px;
    /* Consistent spacing between header, cards, and footer */
}

/* Header / Logo Section */
.logo-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
}

.site-logo {
    width: 120px;
    height: auto;
    max-width: 80vw;
    aspect-ratio: 199.95 / 200.00;
    object-fit: contain;
}

/* Cards Section */
.cards-wrapper {
    display: flex;
    gap: 80px;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.school-card {
    width: 300px;
    max-width: 50vw;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease;
}

.school-card:hover {
    transform: translateY(-5px);
}

.card-image-full {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Footer Section */
.footer-section {
    text-align: center;
    max-width: 1000px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.philosophy-text {
    color: var(--text-blue);
    text-align: center;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    font-family: "PT Serif", serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 40px;
    margin-bottom: 20px;
}

.copyright {
    color: #333;
    text-align: center;
    font-family: "PT Serif", serif;
    font-size: 16px;
    font-weight: 400;
}

@media (max-width: 1200px) {
    .cards-wrapper {
        gap: 60px;
    }
}

@media (max-width: 1024px) {
    /* Redundant font-size removed as it matches desktop */
}

@media (min-width: 1025px) {
    body {
        background-attachment: fixed;
        /* Only enable parallax on desktop for performance */
    }
}

@media (max-width: 768px) {
    .container {
        gap: 40px;
    }

    .cards-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .site-logo {
        width: 150px;
    }

    .philosophy-text {
        font-size: 18px;
    }
}