/* Mampong Municipal Education Office - Professional Government Design */
/* Based on Ghana Education Service official styling */

@import url('style-legacy.css');

:root {
    /* Official Ghana Government Colors */
    --primary-color: #D4AF37; /* Gold - Official Ghana color */
    --secondary-color: #006B3F; /* Green - Official Ghana color */
    --accent-color: #CE1126; /* Red - Accent */
    --gold-color: #D4AF37;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;

    /* Compatibility tokens */
    --white: #ffffff;
    --dark: #1a1a1a;
    --muted: #666;
    --body-text: #333;
    --ink: #1a1a1a;
    --slate: #555;
    --mist: #888;
    --silver: #999;
    --fog: #f5f5f5;
    --green: #006B3F;
    --green-dark: #004d2c;
    --green-light: #e8f5e9;
    --green-50: #f0f7f4;
    --gold: #D4AF37;
    --gold-dark: #b8962e;
    --gold-light: #f9f3e3;
    --red: #CE1126;
    --bg: #f5f5f5;
    --border: #ddd;
    --light-gray: #f5f5f5;
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-display: 'Georgia', 'Times New Roman', serif;
    --font-head: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
    scroll-behavior: auto;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

/* Typography - Clean and Professional */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== TOP BAR ==================== */
.top-bar {
    background-color: var(--dark-color);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left, 
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar a {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.top-bar a:hover {
    color: var(--gold-color);
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--gold-color);
    color: var(--dark-color);
    text-decoration: none;
}

/* ==================== MAIN HEADER ==================== */
.main-header {
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
}

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

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.4rem;
    margin: 0;
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin: 0;
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
    cursor: pointer;
    text-decoration: none;
}

.header-btn:hover {
    background: var(--secondary-color);
    color: #fff;
    text-decoration: none;
}

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

.header-btn-primary:hover {
    background: var(--gold-color);
    border-color: var(--gold-color);
    color: var(--dark-color);
}

/* ==================== NAVIGATION ==================== */
.main-nav {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 14px 18px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    background-color: var(--gold-color);
    color: var(--dark-color);
    text-decoration: none;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: var(--shadow-md);
    list-style: none;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    border-top: 3px solid var(--gold-color);
}

.nav-menu > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--dark-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background-color: var(--gold-light);
    color: var(--secondary-color);
    padding-left: 25px;
    text-decoration: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* ==================== HERO SLIDER ==================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 20px;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--gold-color);
    color: var(--dark-color);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--gold-dark);
    color: var(--dark-color);
    text-decoration: none;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--dark-color);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.slider-dot.active {
    background-color: var(--gold-color);
    width: 30px;
    border-radius: 5px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 10;
}

.slider-arrow:hover {
    background-color: var(--gold-color);
    color: var(--dark-color);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* ==================== SECTIONS ==================== */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--gold-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title p {
    color: #666;
    font-size: 1rem;
    margin-top: 15px;
}

/* ==================== STATS BAR ==================== */
.stats-bar {
    background: linear-gradient(135deg, var(--secondary-color), var(--green-dark));
    padding: 30px 0;
}

.stats-inner {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-cell {
    text-align: center;
    padding: 15px;
}

.stat-icon {
    font-size: 2rem;
    color: var(--gold-color);
    margin-bottom: 8px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== CARDS ==================== */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--dark-color);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Small Card */
.small-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--gold-color);
}

.small-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.small-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.small-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

/* ==================== PAGE BANNER ==================== */
.page-banner {
    background: linear-gradient(135deg, var(--secondary-color), var(--green-dark));
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-banner h1 {
    color: #fff;
    margin-bottom: 10px;
}

.page-banner p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.breadcrumb {
    margin-top: 15px;
}

.breadcrumb a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--gold-color);
}

.breadcrumb span {
    color: #fff;
    margin-left: 8px;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0,107,63,0.1);
}

/* ==================== TABLES ==================== */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

table thead {
    background-color: var(--secondary-color);
    color: #fff;
}

table th,
table td {
    padding: 14px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table tbody tr:hover {
    background-color: var(--fog);
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--gold-color);
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--gold-color);
    text-decoration: none;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 0.9rem;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .nav-menu {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--secondary-color);
        padding: 70px 0 20px;
        transition: var(--transition);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu > li {
        width: 100%;
    }
    
    .nav-menu > li > a {
        padding: 12px 20px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background-color: rgba(0,0,0,0.2);
    }
    
    .nav-menu > li.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li a {
        color: rgba(255,255,255,0.9);
        padding: 10px 20px 10px 35px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .hero-slider {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo-section {
        flex: 1 1 100%;
        justify-content: center;
        text-align: center;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .header-actions {
        flex: 1 1 100%;
        justify-content: center;
    }
    
    .hero-slider {
        height: 350px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .stats-inner {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 1.3rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ==================== HIGHER CONTRAST FIXES ==================== */
/* Fix for light text on dark backgrounds */
.stats-bar .stat-label,
.page-banner .stat-label {
    color: rgba(255,255,255,0.95) !important;
}

/* Fix for inline styles on white backgrounds */
.card[style*="background"],
.card[style*="background"] {
    background-color: #fff !important;
}

/* Ensure headings are always dark on light backgrounds */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color) !important;
}
