/* FPFK BETHANIA ACADEMY - STYLE */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #fff; line-height: 1.6; color: #333; overflow-x: hidden; text-align: center; }

/* Header & Nav */
.top-header { background: #fff; text-align: center; padding: 20px 0; border-bottom: 3px solid #42a5f5; }
.top-header h1 { color: #2c3e50; font-size: 1.4rem; letter-spacing: 1px; }
header { background: #fff; padding: 10px 5%; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.profile-logo { height: 75px; width: auto; }
.menu-btn { font-size: 1.8rem; background: none; border: none; color: #42a5f5; cursor: pointer; }
nav { position: absolute; top: 100%; right: -100%; background: #2c3e50; width: 250px; transition: 0.4s; border-radius: 0 0 0 15px; }
nav.active { right: 0; }
nav ul { list-style: none; text-align: left; }
nav ul li a { display: block; padding: 15px 20px; color: #fff; text-decoration: none; border-bottom: 1px solid #34495e; font-weight: 600; }

/* Slider Section */
.news-slider { padding: 40px 0; background: #f4f4f4; }
.slider-wrapper { 
    width: 95%; 
    max-width: 1100px; /* INCREASED: This lets it cover the computer screen */
    margin: auto; 
    overflow: hidden; 
    border-radius: 12px; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
}
.auto-slider { display: flex; width: 500%; animation: slideEffect 25s infinite; }
.slide-card { width: 100%; position: relative; }

/* Fixed image height for Desktop/Computer */
.slide-card img { 
    width: 100%; 
    height: 500px; /* Taller for computer view */
    object-fit: cover; 
    display: block; 
}
.photo-caption { position: absolute; bottom: 0; width: 100%; background: rgba(44, 62, 80, 0.85); color: white; padding: 10px; font-size: 0.85rem; }

@keyframes slideEffect {
    0%, 15% { transform: translateX(0); }
    20%, 35% { transform: translateX(-20%); }
    40%, 55% { transform: translateX(-40%); }
    60%, 75% { transform: translateX(-60%); }
    80%, 95% { transform: translateX(-80%); }
    100% { transform: translateX(0); }
}

/* Headteacher Section */
.headteacher-section { padding: 40px 10%; background: #fff; }
.headteacher-flex { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; justify-content: center; }
.headteacher-photo img { width: 200px; height: 200px; border-radius: 50%; border: 5px solid #e3f2fd; object-fit: cover; }
.headteacher-speech { flex: 1; min-width: 300px; text-align: left; border-left: 4px solid #42a5f5; padding-left: 20px; }

/* History & Achievements */
.history-section { padding: 40px 10%; }
.achievement-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }
.achieve-card { background: #e3f2fd; padding: 25px; border-radius: 12px; text-align: left; }
.achieve-card i { font-size: 2rem; color: #1976d2; margin-bottom: 15px; }

/* Welcome Image Centering */
.center-img-box { padding: 40px 0; display: flex; justify-content: center; }
.responsive-welcome { max-width: 80%; height: auto; border-radius: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* Footer */
footer { background: #2c3e50; color: #fff; padding: 40px 10%; margin-top: 30px; }
.footer-quote { font-style: italic; font-size: 1.2rem; color: #42a5f5; margin-bottom: 15px; }

/* Buttons */
.welcome-btn { background: #42a5f5; color: #fff; padding: 12px 25px; text-decoration: none; border-radius: 25px; display: inline-block; margin-top: 15px; font-weight: bold; }

/* --- EXPANDED FACEBOOK BUTTON --- */
.fb-btn {
    background-color: #1877F2; 
    color: white !important;
    padding: 12px 40px; /* Wider button */
    border-radius: 50px;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.fb-btn:hover { background-color: #145dbf; transform: scale(1.05); }

/* Responsive Media Query for Phone View */
@media (max-width: 768px) {
    .headteacher-flex { flex-direction: column; text-align: center; }
    .headteacher-speech { border-left: none; border-top: 4px solid #42a5f5; padding: 20px 0 0 0; text-align: center; }
    
    .slider-wrapper { max-width: 100%; width: 95%; }
    .slide-card img { height: 280px; } /* Perfect height for phones */
}

/* Board Member Grid Layout */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
    justify-items: center;
}
.board-item {
    text-align: center;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 180px;
}
.board-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #42a5f5;
    margin-bottom: 8px;
}

/* About & Academics Sections */
.about-container { max-width: 1000px; margin: 0 auto; padding: 20px; }
.table-wrapper { overflow-x: auto; margin: 20px 0; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.data-table { width: 100%; border-collapse: collapse; background: #fff; text-align: left; }
.data-table th { background: #2c3e50; color: #fff; padding: 15px; text-transform: uppercase; font-size: 0.9rem; }
.data-table td { padding: 12px 15px; border-bottom: 1px solid #eee; }
.data-table tr:nth-child(even) { background-color: #f8fbff; }
.data-table tr:hover { background-color: #e3f2fd; }

/* --- FOOTER WHATSAPP STYLING --- */
.footer-whatsapp { margin-top: 15px; padding: 10px; }
.footer-whatsapp a {
    background-color: #25d366;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
