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

:root {
    /* Modern Green & White Theme */
    --primary-color: #15803d; /* Emerald Green 700 */
    --secondary-color: #22c55e; /* Vibrant Green 500 */
    --accent-color: #dcfce7; /* Light Green 100 */
    --text-color: #1f2937;
    --background-color: #f8fafc; /* Very light cool gray/white */
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header & Topbar */
.topbar {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.9rem;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.topbar a {
    color: var(--white);
    transition: var(--transition);
}

.topbar a:hover {
    color: var(--secondary-color);
}

.header {
    background: var(--white);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.school-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.world-class-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.logo-text p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

/* Navigation Menu */
.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown .dropbtn {
    font-size: 1.1rem;
    font-weight: 500;
    color: #4b5563;
    background-color: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s;
    font-family: inherit;
    padding: 0;
}
.dropdown:hover .dropbtn {
    color: var(--secondary-color);
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 100;
    border-radius: 8px;
    top: 100%;
    left: 0;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}
.dropdown-content a {
    color: #4b5563;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 1rem;
    border-bottom: none !important;
}
.dropdown-content a:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}
.dropdown:hover .dropdown-content {
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center bottom;
    animation: heroCrossfade 8s infinite;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(21, 128, 61, 0.85), rgba(21, 128, 61, 0.85));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

@keyframes heroCrossfade {
    0%, 40% { opacity: 1; }
    50%, 90% { opacity: 0; }
    100% { opacity: 1; }
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: backwards;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 181, 0, 0.4);
}

/* Quick Access */
.quick-access {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 2rem;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.quick-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    width: 250px;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.quick-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.quick-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.quick-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* News Section (Tabs) */
.news-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto 0;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.tab-content {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: grid;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.news-img {
    height: 180px;
    background-color: #e5e7eb;
    background-size: cover;
    background-position: center;
}

.news-body {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.news-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Partner Logos */
.partners {
    background: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.logo-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.partner-logo {
    width: 120px;
    height: 120px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-weight: bold;
    border: 2px solid #f3f4f6;
    transition: var(--transition);
}

.partner-logo:hover {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-col h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--white);
}

.footer-col p, .footer-col li {
    color: #d1d5db;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #d1d5db;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Page specific styles */
.page-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.page-content {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.page-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content h3 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.page-content p {
    margin-bottom: 1rem;
    color: #4b5563;
}

/* Facebook Album Grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.album-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.album-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.album-img-wrapper {
    position: relative;
    height: 220px;
    background-color: #e5e7eb;
}

.album-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.album-card:hover .album-img {
    transform: scale(1.05);
}

.album-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(21, 128, 61, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: var(--white);
}

.album-count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.album-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-date {
    font-size: 0.85rem;
    color: #e5e7eb;
}



/* Dashboard Layout (News & Albums) */
.dashboard-layout {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.dashboard-col-header {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.dashboard-col-header h3 {
    padding-bottom: 0.5rem;
    border-bottom: 4px solid var(--primary-color);
    margin-bottom: -2px;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.dashboard-col-header h3 i {
    margin-right: 8px;
}

.dashboard-tab {
    color: #6b7280;
    cursor: pointer;
    padding-bottom: 0.5rem;
    font-weight: 500;
    transition: 0.3s;
}
.dashboard-tab:hover {
    color: var(--primary-color);
}

.news-bullet-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}
.news-bullet-list li {
    margin-bottom: 0.8rem;
    color: #374151;
    display: flex;
    align-items: flex-start;
}
.news-bullet-list li::before {
    content: "•";
    color: #9ca3af;
    font-weight: bold;
    font-size: 1.5rem;
    margin-right: 10px;
    line-height: 1;
}

.btn-small {
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    float: right;
    margin-bottom: 1.5rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-small:hover {
    background: #2563eb;
}

.calendar-widget {
    background: linear-gradient(135deg, #005f48, var(--primary-color));
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    clear: both;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.calendar-header-title {
    background: var(--secondary-color);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}
.calendar-month {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
}

.event-item {
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    /* border-left is dynamically set */
}
.event-date {
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.event-item h4 {
    margin: 0;
    font-size: 1.1rem;
}

.album-list-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.album-thumb {
    width: 140px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.album-desc {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.5;
}
