:root {
    --primary-blue: #0056b3;
    --accent-green: #4CAF50;
    --light-bg: #f5f9ff;
    --dark-text: #222;
    --muted-text: #666;
    --accent-orange: #ff9800;
    --border-color: #dde3f0;
    --radius: 6px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: #ffffff;
    color: var(--dark-text);
    line-height: 1.6;
}

.container {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
.site-header {
    background: var(--primary-blue);
    color: #fff;
    padding: 0.75rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.logo img {
    height: 48px;
    margin-right: 0.5rem;
}

.main-nav a {
    color: #e3f2fd;
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.btn-small {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--accent-green);
    color: #fff !important;
    font-weight: 600;
}

/* Main */
.site-main {
    padding: 2rem 0 3rem;
}

.hero {
    background: linear-gradient(135deg, var(--primary-blue), #003a80);
    color: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.hero p {
    max-width: 32rem;
}

.hero-highlight {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-highlight div {
    background: rgba(255,255,255,0.1);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent-green);
    color: #fff;
}

.btn-secondary {
    background: #ffffff;
    color: var(--primary-blue);
}

/* Cards */
.section-title {
    font-size: 1.4rem;
    margin: 2rem 0 0.75rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    background: #fff;
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9rem;
    color: var(--muted-text);
}

/* Forms */
form {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
select,
textarea {
    padding: 0.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    width: 100%;
}

textarea {
    min-height: 100px;
}

button,
input[type="submit"] {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    border: none;
    background: var(--primary-blue);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
    background: #003a80;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
}

th, td {
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    text-align: left;
}

th {
    background: var(--light-bg);
}

/* Footer */
.site-footer {
    background: #0b1726;
    color: #cfd8e3;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.site-footer h4 {
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: #e3f2fd;
    text-decoration: none;
    font-size: 0.9rem;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #9fa8b8;
}

/* Portal */
.portal-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
}

.portal-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: #fff;
}

/* Flash */
.flash-message {
    transition: opacity 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .portal-layout {
        grid-template-columns: 1fr;
    }
    .main-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}
/* --- WIX STYLE HERO SECTION --- */
.hero-wix {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 3rem 0;
}

.hero-content h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.hero-subtext {
    font-size: 1.1rem;
    color: #444;
    max-width: 500px;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- WHY SECTION --- */
.why-section {
    margin-top: 3rem;
    text-align: center;
}

.why-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.why-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.why-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* --- HOME SECTIONS --- */
.home-section {
    margin-top: 3rem;
}

.news-date {
    font-size: 0.85rem;
    color: #777;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-wix {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
}

/* --- WIX STYLE HERO SECTION --- */
.hero-wix {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 3rem 0;
}

.hero-content h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.hero-subtext {
    font-size: 1.1rem;
    color: #444;
    max-width: 500px;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- PHOTO STRIP --- */
.photo-strip {
    margin: 2rem 0;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.5rem;
}

.photo-strip-inner {
    display: flex;
    gap: 0.5rem;
}

.photo-strip-inner img {
    height: 120px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* --- WHY SECTION --- */
.why-section {
    margin-top: 3rem;
    text-align: center;
}

.why-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.why-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.why-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* --- HOME SECTIONS --- */
.home-section {
    margin-top: 3rem;
}

.news-date {
    font-size: 0.85rem;
    color: #777;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-wix {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .photo-strip-inner img {
        height: 90px;
    }
}
/* --- BIG LOGO SECTION --- */
.home-logo {
    text-align: center;
    margin-top: 2rem;
}
.home-logo img {
    width: 160px;
    margin-bottom: 1rem;
}
.home-logo h1 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}
.home-logo p {
    font-size: 1.1rem;
    color: #444;
}

/* --- SMALL HERO SECTION --- */
.hero-small {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
}
.hero-small-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.hero-small-text h2 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}
.hero-small-text p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1.5rem;
}

/* --- GALLERY GRID --- */
.gallery-grid-section {
    margin-top: 3rem;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.5rem;
}
.gallery-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}
.gallery-item img:hover {
    transform: scale(1.05);
}

/* --- ANIMATIONS --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInMove 0.8s ease forwards;
}
@keyframes fadeInMove {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-small {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .gallery-item img {
        height: 120px;
    }
}
/* ========================= */
/*   3-PANEL HERO LAYOUT     */
/* ========================= */

.hero-three-panel {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
}

/* LEFT SIDE */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

/* Logo */
.hero-logo img {
    width: 190px;
    margin: 0 auto;
    display: block;
}

/* About box */
.hero-about {
    background: #f5f9ff;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.hero-about h2 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}
.hero-about p {
    color: #444;
    margin-bottom: 1rem;
}

/* RIGHT SIDE: ANIMATED SLIDER */
.hero-right {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 420px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: slideShow 40s infinite;
}

.hero-slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeImage 40s infinite;
}

/* Fade each image in sequence */
<?php
$delay = 0;
for ($i = 1; $i <= 25; $i++):
?>
.hero-slider img:nth-child(<?php echo $i; ?>) {
    animation-delay: <?php echo $delay; ?>s;
}
<?php
$delay += 1.6; // 40s / 25 images
endfor;
?>

@keyframes fadeImage {
    0% { opacity: 0; }
    5% { opacity: 1; }
    20% { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}

/* Fade-in animation for sections */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInMove 0.8s ease forwards;
}
@keyframes fadeInMove {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-three-panel {
        grid-template-columns: 1fr;
    }
    .hero-right {
        height: 300px;
    }
}
/* ========================= */
/*   NEW 3-PANEL HERO AREA   */
/* ========================= */

.hero-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    height: 85vh;
    margin-top: 1rem;
    gap: 1rem;
}

/* LEFT SIDE */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

/* Logo */
.hero-left-top img {
    width: 190px;
    display: block;
    margin: 0 auto;
}

/* About box */
.hero-left-bottom {
    background: #f5f9ff;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.hero-left-bottom h2 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}
.hero-left-bottom p {
    color: #444;
    margin-bottom: 1rem;
}

/* RIGHT SIDE: ANIMATED SLIDER */
.hero-right {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero-slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeImage 40s infinite;
}

/* Fade each image in sequence */
<?php
$delay = 0;
for ($i = 1; $i <= 25; $i++):
?>
.hero-slider img:nth-child(<?php echo $i; ?>) {
    animation-delay: <?php echo $delay; ?>s;
}
<?php
$delay += 1.6;
endfor;
?>

@keyframes fadeImage {
    0% { opacity: 0; }
    5% { opacity: 1; }
    20% { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}

/* Fade-in animation for sections */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInMove 0.8s ease forwards;
}
@keyframes fadeInMove {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    .hero-right {
        height: 300px;
    }
}
/* ========================= */
/*   FIXED 3-PANEL HERO      */
/* ========================= */

.hero-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    height: 70vh; /* reduced height to remove empty space */
    margin-top: 1rem;
    gap: 1rem;
}

/* LEFT SIDE */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem; /* reduced padding */
}

/* Logo */
.hero-left-top img {
    width: 120px; /* smaller logo */
    display: block;
    margin: 0 auto;
}

/* About box */
.hero-left-bottom {
    background: #f5f9ff;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.hero-left-bottom h2 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}
.hero-left-bottom p {
    color: #444;
    margin-bottom: 1rem;
}

/* RIGHT SIDE: ANIMATED SLIDER */
.hero-right {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero-slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeImage 40s infinite ease-in-out;
}

/* Fade animation */
@keyframes fadeImage {
    0% { opacity: 0; }
    5% { opacity: 1; }
    20% { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}

/* Fade-in animation for sections */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInMove 0.8s ease forwards;
}
@keyframes fadeInMove {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    .hero-right {
        height: 300px;
    }
}
/* ========================= */
/*   FIXED 3-PANEL HERO      */
/* ========================= */

.hero-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    height: 70vh; /* reduced height to remove empty space */
    margin-top: 1rem;
    gap: 1rem;
}

/* LEFT SIDE */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem; /* reduced padding */
}

/* Logo */
.hero-left-top img {
    width: 120px; /* smaller logo */
    display: block;
    margin: 0 auto;
}

/* About box */
.hero-left-bottom {
    background: #f5f9ff;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.hero-left-bottom h2 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}
.hero-left-bottom p {
    color: #444;
    margin-bottom: 1rem;
}

/* RIGHT SIDE: ANIMATED SLIDER */
.hero-right {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero-slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeImage 40s infinite ease-in-out;
}

/* Fade animation */
@keyframes fadeImage {
    0% { opacity: 0; }
    5% { opacity: 1; }
    20% { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}

/* Fade-in animation for sections */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInMove 0.8s ease forwards;
}
@keyframes fadeInMove {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    .hero-right {
        height: 300px;
    }
}

/* ========================= */
/*   ALTERNATING SECTIONS    */
/* ========================= */

.alt-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 3rem 0;
}

.alt-section.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.alt-section.reverse .alt-text {
    direction: ltr;
}

.alt-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.alt-text h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.alt-text p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.alt-text ul {
    list-style: none;
    padding: 0;
}

.alt-text ul li {
    margin-bottom: 0.6rem;
    font-size: 1rem;
    color: #333;
}

.alt-text ul li strong {
    color: var(--primary-blue);
}

/* Responsive */
@media (max-width: 900px) {
    .alt-section,
    .alt-section.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .alt-image img {
        height: 220px;
    }
}
/* ========================= */
/*   GENERIC PAGE LAYOUT     */
/* ========================= */

.page-hero {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem 0;
}

.page-hero-text h1 {
    font-size: 2.4rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.page-hero-text p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
}

.page-hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    object-fit: cover;
}

/* Sections */

.page-section {
    padding: 2.5rem 0;
    border-top: 1px solid #eee;
}

.page-section h2 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.page-section p {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.page-section ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.page-section ul li {
    margin-bottom: 0.5rem;
}

/* Two-column blocks */

.two-column {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: center;
}

.image-block img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    object-fit: cover;
}

/* Values grid */

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.value-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.value-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.value-card p {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive */

@media (max-width: 900px) {
    .page-hero {
        grid-template-columns: 1fr;
    }
    .two-column {
        grid-template-columns: 1fr;
    }
}
/* ========================= */
/*   SPELLING-NIST SLIDESHOW */
/* ========================= */

.spelling-nist-section {
    margin-top: 2rem;
}

.spelling-slide-container {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.spelling-slide-container img {
    position: absolute;
    width: 100%;
    height: 260px;
    object-fit: cover;
    opacity: 0;
    animation: spellingFade 20s infinite ease-in-out;
}

/* Delay each image */
.spelling-slide-container img:nth-child(1) { animation-delay: 0s; }
.spelling-slide-container img:nth-child(2) { animation-delay: 5s; }
.spelling-slide-container img:nth-child(3) { animation-delay: 10s; }
.spelling-slide-container img:nth-child(4) { animation-delay: 15s; }

@keyframes spellingFade {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

/* Responsive */
@media (max-width: 900px) {
    .spelling-slide-container {
        height: 200px;
    }
    .spelling-slide-container img {
        height: 200px;
    }
}

.language-toggle {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.lang-btn {
    padding: 6px 12px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background: #e0e0e0;
}

.lang-en { display: block; }
.lang-ta { display: none; }

body.tamil .lang-en { display: none; }
body.tamil .lang-ta { display: block; }

/* ========================= */
/*   SPELLING-NIST SLIDESHOW */
/* ========================= */

.spelling-slide-container {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.spelling-slide-container img {
    position: absolute;
    width: 100%;
    height: 260px;
    object-fit: cover;
    opacity: 0;
    animation: spellingFade 20s infinite ease-in-out;
}

@keyframes spellingFade {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

/* Responsive */
@media (max-width: 900px) {
    .spelling-slide-container {
        height: 200px;
    }
    .spelling-slide-container img {
        height: 200px;
    }
}