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

:root {
    --primary: #11a09d;
    --primary-dark: #0e8c89;
    --secondary: #ffb84c;
    --accent: #f87171;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #fefbf5;
    --white: #ffffff;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-donate {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-donate:hover {
    background-color: var(--primary-dark);
}

/* Sections */
section {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 32px;
    color: var(--text-main);
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-muted);
}

/* Button UI */
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 26px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}

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

/* Prayer Times UI (Custom) */
.prayer-card {
    padding: 24px;
    text-align: center;
}

.prayer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.prayer-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid #eee;
}

.prayer-item.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* --- Schoolastica-Style Dashboard Cards --- */
.stat-card-modern {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    text-align: left;
}

.stat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.stat-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.icon-primary { background-color: #e6f7f7; color: var(--primary); }
.icon-secondary { background-color: #fff8e6; color: var(--secondary); }
.icon-accent { background-color: #fef2f2; color: var(--accent); }
.icon-blue { background-color: #e6f0ff; color: #4e8cff; }

.stat-label {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height:1;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1.2;
}

/* --- Unified Gradient Hero --- */
.hero-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* --- Modern Buttons --- */
.btn-modern {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-modern-primary {
    background-color: var(--white);
    color: var(--primary) !important;
}

.btn-modern-primary:hover {
    background-color: var(--secondary);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.btn-modern-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white) !important;
}

.btn-modern-outline:hover {
    background: var(--white);
    color: var(--primary) !important;
}

/* --- Content Cards --- */
.school-card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    padding: 24px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.school-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(17, 160, 157, 0.1);
}

/* Footer */
footer {
    background-color: var(--text-main);
    color: var(--white);
    padding: 80px 0 40px;
}

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

.footer-col h4 {
    margin-bottom: 24px;
    font-size: 18px;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 14px;
}

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

.animate-fade-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Hero Section Specifics */
.hero-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background-color: var(--white);
}

.hero-content {
    flex: 1;
    z-index: 2;
    padding-right: 50px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

.hero-tagline {
    display: inline-block;
    background-color: #f3f4f6;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-content h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
}

/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.program-icon-card {
    background-color: var(--white);
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid #f3f4f6;
}

.program-icon-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.program-icon-card i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.program-icon-card h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.program-icon-card.active {
    background-color: var(--primary);
    color: white;
}

.program-icon-card.active i {
    color: white;
}

/* Charity Section */
.charity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.charity-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.charity-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.charity-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.charity-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.progress-container {
    height: 8px;
    background-color: #f3f4f6;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
}

/* Prayer Times Table */
.prayer-table-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.prayer-table {
    width: 100%;
    border-collapse: collapse;
}

.prayer-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid #f3f4f6;
    color: var(--primary);
    font-weight: 700;
}

.prayer-table td {
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
    font-weight: 600;
}

.prayer-row.active {
    background-color: rgba(17, 160, 157, 0.05);
}

.prayer-row.active td {
    color: var(--primary);
}

/* Subpage Hero */
.subpage-hero {
    background-color: var(--white);
    padding: 60px 0;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 60px;
}

.subpage-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    list-style: none;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 10px;
}

/* Enhanced Form Styles */
.form-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
    color: var(--text-main);
}

.form-control, .form-select, textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(17, 160, 157, 0.1);
}

.form-section-title {
    font-size: 18px;
    color: var(--primary);
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Comprehensive Responsiveness --- */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 44px; }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    header { padding: 15px 0; }
    
    .hero-wrapper {
        flex-direction: column-reverse;
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-top: 40px;
    }
    
    .hero-content p {
        margin: 0 auto 32px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }

    .section-title h2 { font-size: 28px; }
    
    .programs-grid { grid-template-columns: 1fr; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-col ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-col .navbar-brand {
        justify-content: center;
    }
    
    .footer-col div {
        justify-content: center;
    }

    .prayer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    
    .hero-content h1 { font-size: 32px; }
    
    .btn-modern {
        width: 100%;
        justify-content: center;
    }
    
    .subpage-hero h1 { font-size: 28px; }

    .prayer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Grid Utilities --- */
.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
}
