/* ----- COLOR VARIABLES ----- */
:root {
    --bg: #FEFAE0;
    --sidebar-bg: #FDFFB8;
    --card-bg: #0D7377;
    --dark-bg: #062925;
    --glow: #FAF3E1;
    --text-dark: #2c3e2c;
    --text-light: #f0f7da;
    --text-on-sidebar: #2c3e2c;
    --text-on-card: #f0f7da;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, .sidebar h3, .card h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* ----- TOP BAR ----- */
.top-bar {
    background: var(--dark-bg);
    padding: 0.6rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.lang-switcher {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.lang-switcher button {
    background: transparent;
    border: 1px solid var(--glow);
    color: var(--text-light);
    padding: 0.3rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-switcher button:hover {
    background: var(--glow);
    color: var(--dark-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.donate-top-btn {
    background: var(--glow);
    border: none;
    color: var(--dark-bg);
    padding: 0.3rem 1.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.2s;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 2px rgba(0,0,0,0.2);
}

.donate-top-btn:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

/* ----- HEADER (1600x400 responsive) ----- */
.header {
    width: 100%;
    aspect-ratio: 16 / 4;
    max-height: 400px;
    min-height: 200px;
    background: url('../images/header-bg.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: inset 0 0 100px rgba(0,90,97,0.3);
    animation: headerGlow 4s infinite alternate ease-in-out;
}

@keyframes headerGlow {
    from { box-shadow: inset 0 0 30px var(--glow); }
    to   { box-shadow: inset 0 0 80px var(--glow); }
}

.header .overlay {
    background: rgba(6,41,37,0.65);
    backdrop-filter: blur(2px);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.header h1 {
    font-size: clamp(1.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    padding: 0 1rem;
}

/* ----- NAVIGATION ----- */
nav {
    background: var(--dark-bg);
    padding: 0.8rem 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: clamp(1rem, 3vw, 2.5rem);
    flex-wrap: wrap;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    transition: background 0.3s, transform 0.2s;
    border-radius: 20px;
    letter-spacing: 0.3px;
    font-family: 'Inter', sans-serif;
}

nav a:hover {
    background: rgba(250,243,225,0.2);
    transform: translateY(-2px);
}

/* ----- MAIN LAYOUT ----- */
main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

section {
    margin-bottom: 4rem;
    padding: 2rem 1.5rem;
    border-radius: 28px;
    background-color: rgba(255,255,255,0.5);
    transition: box-shadow 0.3s;
}

section:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--card-bg);
    letter-spacing: -0.5px;
    font-family: 'Playfair Display', serif;
}

/* ----- SIDEBAR ----- */
.content-with-sidebar {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.main-content {
    flex: 2;
    min-width: 300px;
}

.sidebar {
    flex: 1;
    min-width: 260px;
    background: var(--sidebar-bg);
    border-radius: 20px;
    padding: 1.8rem 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.1);
    height: fit-content;
    color: var(--text-on-sidebar);
}

.sidebar h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-on-sidebar);
    border-bottom: 2px solid var(--glow);
    padding-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.update-list {
    list-style: none;
}

.update-item {
    margin-bottom: 1.3rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--dark-bg);
}

.update-date {
    font-weight: 500;
    color: var(--dark-bg);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.update-title {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-on-sidebar);
    text-decoration: none;
    transition: color 0.2s;
    font-family: 'Inter', sans-serif;
}

.update-title:hover {
    color: var(--card-bg);
    text-decoration: underline;
}

.update-description {
    font-size: 0.9rem;
    color: var(--text-on-sidebar);
    opacity: 0.8;
    margin-top: 0.2rem;
    font-family: 'Inter', sans-serif;
}

/* Highlight for admission announcement */
.highlight-announcement {
    background: rgba(255,215,0,0.2);
    border-left: 4px solid gold;
    padding-left: 10px;
    animation: subtlePulse 2s infinite;
}

@keyframes subtlePulse {
    0% { background-color: rgba(255,215,0,0.2); }
    50% { background-color: rgba(255,215,0,0.4); }
    100% { background-color: rgba(255,215,0,0.2); }
}

/* ----- CARDS ----- */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.8rem;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.1);
    color: var(--text-on-card);
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.3), 0 12px 40px rgba(0,0,0,0.2);
    transform: translateY(-4px);
}

.card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 1rem 0 0.8rem;
    color: var(--text-on-card);
    font-family: 'Playfair Display', serif;
}

.card p {
    color: var(--text-on-card);
    font-weight: 400;
    opacity: 0.9;
    font-family: 'Inter', sans-serif;
}

.card-icon {
    font-size: 3.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* ----- GALLERY GRID ----- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    aspect-ratio: 4/3;
    background: var(--card-bg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.gallery-item:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transform: scale(1.02);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ----- BUTTONS ----- */
.btn-material {
    background: var(--glow);
    border: none;
    color: var(--dark-bg);
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: box-shadow 0.3s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-material:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.btn-material:active {
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transform: translateY(0);
}

/* ----- CONTACT FORM & ADMISSION FORM ----- */
.contact-form, .admission-form {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

input, textarea, select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: #f5f5f5;
    border: none;
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: box-shadow 0.3s, background 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px var(--glow);
}

label {
    font-weight: 500;
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.required {
    color: #c0392b;
}

/* ----- MAP PLACEHOLDER ----- */
.map-placeholder {
    height: 280px;
    background: var(--card-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-card);
    margin-top: 2rem;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-family: 'Inter', sans-serif;
}

/* ----- FOOTER ----- */
footer {
    background: var(--dark-bg);
    text-align: center;
    padding: 2rem 1rem;
    box-shadow: 0 -4px 8px rgba(0,0,0,0.2);
}

footer p {
    color: var(--text-light);
    font-weight: 300;
    font-size: 0.95rem;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
}

/* ----- UTILITY ----- */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 1rem;
}