/* General Setup */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom, #e3f2fd, #ffffff);
    min-height: 100vh;
    text-align: center;
}

/* Header & Announcement */
.announcement-bar {
    background: #ffeb3b;
    padding: 10px;
    font-weight: bold;
    font-size: 0.9rem;
}

.main-header {
    background: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 10px;
}

.top-nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #1565c0;
    font-weight: 500;
}

/* Cards Grid */
.main-content {
    padding: 40px 20px;
}

.welcome-text {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.grades-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.grade-card {
    background: white;
    border-radius: 25px;
    padding: 25px;
    width: 260px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
    border: 6px solid white;
}

.grade-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

.grade-title {
    margin: 10px 0;
    font-size: 1.4rem;
}

/* Themes */
.kg-theme { border-color: #ffcdd2; color: #c62828; }
.g123-theme { border-color: #bbdefb; color: #1565c0; }
.g45-theme { border-color: #c8e6c9; color: #2e7d32; }

/* Footer */
.bottom-nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    background: white;
    padding: 15px;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

.nav-btn {
    text-decoration: none;
    color: #1565c0;
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
}

.nav-btn span {
    font-size: 0.7rem;
    font-weight: bold;
}

.copyright {
    padding: 15px;
    font-size: 0.8rem;
    color: #777;
}
/* --- Kindergarten Learning Page Styles --- */
.learning-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 100px; /* Space for footer */
}

.back-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.back-btn {
    text-decoration: none;
    background: #1565c0;
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
}

.page-title { color: #d32f2f; margin: 0; font-size: 1.5rem; }

/* The Grid Layout */
.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

/* The 3D Block Look */
.letter-block {
    background: white;
    border: 4px solid #ddd;
    border-radius: 12px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 6px 0 #bbb; /* The 3D bottom shadow */
    transition: 0.1s;
    user-select: none;
}

/* Letter Colors (Rotating through colors) */
.letter-block:nth-child(4n+1) { color: #ff5252; border-color: #ff5252; }
.letter-block:nth-child(4n+2) { color: #448aff; border-color: #448aff; }
.letter-block:nth-child(4n+3) { color: #ffab40; border-color: #ffab40; }
.letter-block:nth-child(4n+4) { color: #4caf50; border-color: #4caf50; }

/* Animation when clicked */
.letter-block:active, .letter-block.pressed {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #bbb;
}
/* Dashboard Container */
.dashboard-container {
    background: #7cb342; /* The green background from Starfall */
    min-height: 80vh;
    padding: 20px;
    border-radius: 20px;
    margin: 20px;
}

.dashboard-title { color: #fff; text-shadow: 2px 2px #333; }

/* 3 Column Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.column {
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent */
    padding: 15px;
    border-radius: 20px;
}

.col-title {
    color: #fff;
    background: rgba(0,0,0,0.2);
    padding: 5px;
    border-radius: 10px;
    font-size: 1.2rem;
}

/* Item Buttons */
.item-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-card {
    background: white;
    padding: 12px;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 0 #689f38;
    transition: 0.2s;
}

.item-card:hover {
    transform: scale(1.05);
    background: #f1f8e9;
}

.item-card .icon {
    font-size: 1.5rem;
    margin-right: 15px;
    background: #f0f0f0;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
}

/* Make the ABC card stand out */
.main-card {
    background: #fff9c4;
    border: 3px solid #fbc02d;
}
/* --- Header & Logo Styling --- */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.school-logo-img {
    height: 50px; /* Adjust based on your logo shape */
    width: auto;
    border-radius: 8px;
}

.logo-text {
    font-family: 'Fredoka', sans-serif; /* Rounder, friendlier font for schools */
    font-size: 1.8rem;
    font-weight: 600;
    color: #1565c0;
    letter-spacing: 1px;
}

/* --- Improved Sign In Button --- */
.login-btn {
    background: #1565c0;
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
    transition: 0.3s;
    font-size: 0.9rem;
    box-shadow: 0 4px 0 #0d47a1;
}

.login-btn:hover {
    background: #1976d2;
    transform: translateY(-2px);
}

.announcement-bar {
    background: #ffeb3b;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #fbc02d;
}
/* --- Clickable Logo Improvements --- */
.logo-link {
    text-decoration: none; /* Removes underline from the school name */
    display: block;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.8; /* Subtle fade effect when hovering over the logo */
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.school-logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #1565c0; /* Keeps your blue color */
}

/* Ensure the header content remains spaced correctly */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}
/* --- Kids Life Style Footer --- */
.kids-life-footer {
    background-color: #008489; /* The specific teal/cyan color from the image */
    color: #ffffff;
    padding: 15px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    position: relative;
    width: 100%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-left {
    letter-spacing: 0.5px;
}

/* Right Section Alignment */
.footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.follow-text {
    font-weight: 600;
}

.footer-arrow {
    height: 15px; /* Tiny curved arrow next to Follow Us */
    opacity: 0.7;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.social-link:hover {
    transform: scale(1.2);
}

/* Rounded Back to Top Button */
.scroll-top {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-left: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}