/* ============================================================
   AtwsQuran Official - Complete Professional Stylesheet
   ============================================================ */

:root {
    --primary-green: #0a3d1a;
    --dark-green: #1a5d2a;
    --light-green: #2d7f3d;
    --accent-gold: #ffc107;
    --gold-dark: #b8860b;
    --gold: #FFD700;
    --text-dark: #1a1a2e;
    --text-light: #4a4a4a;
    --text-muted: #6c757d;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #0d1117;
    --bg-green-light: rgba(10, 61, 26, 0.05);
    --bg-card: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 10px 30px rgba(10, 61, 26, 0.2);
    --font-primary: 'Poppins', sans-serif;
    --font-arabic: 'Amiri', serif;
    --section-padding: 80px 0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 15px;
    --radius-xl: 20px;
    --radius-round: 50px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-primary); color: var(--text-dark); line-height: 1.7; background-color: #fff; overflow-x: hidden; }
::selection { background-color: var(--accent-gold); color: var(--primary-green); }
img { max-width: 100%; height: auto; }
a { text-decoration: none; transition: var(--transition-base); }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--primary-green); }
h1 { font-size: 3.5rem; } h2 { font-size: 2.5rem; } h3 { font-size: 2rem; } h4 { font-size: 1.5rem; } h5 { font-size: 1.25rem; } h6 { font-size: 1rem; }
p { margin-bottom: 1rem; color: var(--text-light); }
.text-gold { color: var(--gold) !important; }

/* ===== NAVBAR ===== */
.navbar { padding: 12px 0; transition: all var(--transition-base); z-index: 1030; }
.navbar-scrolled { padding: 8px 0; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important; backdrop-filter: blur(10px); }
.navbar-brand { font-size: 1.6rem; font-weight: 800; transition: var(--transition-base); }
.navbar-brand:hover { transform: scale(1.05); }
.nav-link { font-weight: 500; font-size: 0.95rem; position: relative; padding: 8px 16px !important; transition: var(--transition-base); color: rgba(255, 255, 255, 0.85) !important; }
.nav-link:hover, .nav-link.active { color: var(--accent-gold) !important; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) scaleX(0); width: 60%; height: 2px; background: var(--accent-gold); transition: transform var(--transition-base); }
.nav-link:hover::after, .nav-link.active::after { transform: translateX(-50%) scaleX(1); }
.navbar .btn-warning { font-weight: 600; box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3); transition: all var(--transition-base); }
.navbar .btn-warning:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4); }

/* ===== HERO SECTION ===== */
.hero-section { min-height: 85vh; display: flex; align-items: center; background: linear-gradient(135deg, rgba(10, 61, 26, 0.97) 0%, rgba(26, 93, 42, 0.95) 50%, rgba(45, 127, 61, 0.9) 100%); color: white; padding: 120px 0 80px; text-align: center; position: relative; overflow: hidden; }
.hero-content { position: relative; z-index: 2; max-width: 850px; margin: 0 auto; }
.hero-section h1, .hero-section p { color: #ffffff !important; }
.hero-section h2 { color: #FFD700 !important; }
.hero-title-arabic { font-size: 3.5rem; font-weight: 800; margin-bottom: 15px; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); }
.arabic-heading { font-family: 'Amiri', serif; font-size: 3.8rem; color: #ffffff; display: inline-block; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); }
.arabic-sub { font-family: 'Amiri', serif; font-size: 2.2rem; color: #ffffff; display: inline-block; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); }
.hero-subheading { font-size: 1.5rem; font-weight: 600; color: #FFD700 !important; }
.hero-description { font-size: 1.1rem; color: #ffffff !important; }
.trust-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 25px; }
.trust-badge { color: #ffffff; font-size: 0.95rem; font-weight: 500; padding: 6px 14px; background: rgba(255, 255, 255, 0.1); border-radius: 50px; border: 1px solid rgba(255, 215, 0, 0.2); white-space: nowrap; }

/* ===== BUTTONS ===== */
.btn-gold { background: linear-gradient(135deg, #ffc107, #ffb300); color: #1a3a0a !important; border: none; padding: 12px 30px; font-weight: 700; border-radius: var(--radius-round); transition: all var(--transition-base); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4); color: #1a3a0a !important; }
.btn-outline-gold { border: 2px solid var(--accent-gold); color: #fff !important; padding: 10px 28px; border-radius: var(--radius-round); background: transparent; font-weight: 600; }
.btn-outline-gold:hover { background: var(--accent-gold); color: #1a3a0a !important; transform: translateY(-3px); }

/* ===== SECTION STYLES ===== */
.section { padding: var(--section-padding); position: relative; }
.section-title { color: var(--primary-green); font-size: 2.5rem; font-weight: 800; text-align: center; }
.section-title::after { content: ''; display: block; width: 80px; height: 4px; background: linear-gradient(90deg, var(--accent-gold), #ffa500); margin: 15px auto 0; border-radius: 2px; }
.section-subtitle { color: var(--text-light); font-size: 1.1rem; text-align: center; margin-bottom: 50px; font-weight: 300; }
.section-dark { background: linear-gradient(135deg, #0a3d1a 0%, #1a5d2a 100%); padding: var(--section-padding); position: relative; }
.section-dark .section-title { color: #ffffff; }
.section-dark .section-subtitle { color: rgba(255, 255, 255, 0.8); }

/* ===== HOW WE TEACH CARDS ===== */
.teach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.teach-card { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px); border: 1px solid rgba(255, 215, 0, 0.15); border-radius: var(--radius-xl); padding: 35px 25px; text-align: center; transition: all var(--transition-base); }
.teach-card:hover { transform: translateY(-10px); border-color: var(--gold); }
.teach-card h5 { color: var(--gold); font-size: 1.2rem; font-weight: 700; }
.teach-card p { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; }

/* ===== COURSES SECTION ===== */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.course-item-card { background: #ffffff; border-radius: var(--radius-xl); padding: 35px 28px; text-align: center; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; }
.course-item-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.course-item-card h5 { color: var(--primary-green); font-size: 1.15rem; font-weight: 700; }
.course-item-card p { color: var(--text-light); font-size: 0.9rem; flex-grow: 1; }

/* ===== CARDS ===== */
.course-card { background: var(--bg-card); border: none; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.course-card-image { height: 200px; background: linear-gradient(135deg, var(--primary-green), var(--dark-green)); display: flex; align-items: center; justify-content: center; color: white; font-size: 3rem; }
.course-card-body { padding: 25px; flex-grow: 1; }
.course-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid var(--border-color); }
.course-level { background: linear-gradient(135deg, rgba(10, 61, 26, 0.1), rgba(26, 93, 42, 0.1)); color: var(--primary-green); padding: 5px 14px; border-radius: var(--radius-round); font-size: 0.8rem; font-weight: 600; }

/* ===== TEACHER CARDS ===== */
.teacher-card { background: var(--bg-card); text-align: center; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; }
.teacher-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.teacher-image { height: 250px; background: linear-gradient(135deg, var(--primary-green), var(--dark-green)); display: flex; align-items: center; justify-content: center; color: white; font-size: 4rem; }
.teacher-info { padding: 25px; }
.teacher-specialization { color: var(--gold-dark); font-size: 0.9rem; font-weight: 600; }

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card { background: var(--bg-light); border-radius: var(--radius-lg); padding: 30px; height: 100%; border-left: 4px solid var(--accent-gold); }
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.testimonial-text { color: var(--text-dark); font-size: 0.95rem; font-style: italic; }

/* ===== STATISTICS ===== */
.stat-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 30px 20px; text-align: center; box-shadow: var(--shadow-sm); height: 100%; }
.stat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.stat-number { font-size: 2.8rem; font-weight: 800; color: var(--gold-dark); }

/* ===== TRUST BADGES SECTION ===== */
.trust-badges-section { background: linear-gradient(135deg, #0a3d1a 0%, #1a5d2a 100%); padding: 50px 0; }
.trust-badges-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px 40px; }
.trust-badge-item { display: flex; align-items: center; gap: 10px; color: #ffffff; font-size: 1.05rem; font-weight: 500; padding: 10px 20px; background: rgba(255, 255, 255, 0.08); border-radius: 50px; border: 1px solid rgba(255, 215, 0, 0.15); }
.trust-badge-item:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--gold); transform: translateY(-3px); }
.trust-badge-item i { color: var(--gold); }

/* ===== CTA SECTION ===== */
.cta-section { background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 50%, var(--light-green) 100%); padding: 80px 0; }
.cta-section h2 { color: white; font-size: 2.2rem; font-weight: 800; }
.cta-section .lead { color: rgba(255, 255, 255, 0.85); }

/* ===== FOOTER ===== */
.site-footer { background: linear-gradient(135deg, #0a3d1a 0%, #1a5d2a 50%, #0a3d1a 100%); color: #ffffff; position: relative; }
.site-footer .text-muted { color: #a8d5a8 !important; }
.footer-contact a, .footer-contact span { color: #4dbd80 !important; transition: all 0.3s ease; }
.footer-contact a:hover { color: #e8a000 !important; }
.footer-contact .small { color: #a8d5a8 !important; }
.footer-top { padding: 60px 0 40px; }
.footer-widget-title { color: #ffffff !important; font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; }
.footer-widget-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--accent-gold); border-radius: 2px; }
.footer-logo { font-size: 1.4rem; font-weight: 800; color: #ffffff !important; }
.footer-text { color: #a8d5a8 !important; font-size: 0.9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #a8d5a8 !important; text-decoration: none; font-size: 0.9rem; transition: all var(--transition-base); display: inline-block; }
.footer-links a:hover { color: var(--accent-gold) !important; transform: translateX(5px); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.footer-contact .contact-icon-wrap { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 193, 7, 0.15); display: flex; align-items: center; justify-content: center; color: var(--accent-gold); }
.footer-contact li:hover .contact-icon-wrap { background: var(--accent-gold); color: var(--primary-green); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0; }
.footer-bottom p { color: #a8d5a8 !important; font-size: 0.85rem; margin: 0; }
.footer-bottom-link { color: #a8d5a8 !important; font-size: 0.85rem; }
.footer-bottom-link:hover { color: var(--accent-gold) !important; }

/* ===== FORM STYLES ===== */
.form-control { border: 2px solid var(--border-color); border-radius: var(--radius-sm); padding: 12px 16px; color: #212529 !important; background-color: #ffffff !important; font-size: 0.95rem; }
.form-control:focus { border-color: var(--accent-gold); box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25); }
.form-label { color: #1a1a2e !important; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }

/* ===== ALERTS ===== */
.alert { border-radius: var(--radius-sm); border: none; }
.alert-success { background-color: #d4edda !important; color: #155724 !important; }
.alert-danger { background-color: #f8d7da !important; color: #721c24 !important; }
.alert-warning { background-color: #fff3cd !important; color: #856404 !important; }
.alert-info { background-color: #d1ecf1 !important; color: #0c5460 !important; }

/* ===== TABLE STYLES ===== */
.table { border-radius: var(--radius-sm); overflow: hidden; font-size: 0.9rem; }
.table thead { background: linear-gradient(135deg, var(--primary-green), var(--dark-green)); color: white; }
.table thead th { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; border: none; padding: 12px 15px; }
.table tbody tr { border-bottom: 1px solid var(--border-color); transition: all var(--transition-base); }
.table tbody tr:hover { background-color: var(--bg-green-light); }

/* ===== ISLAMIC CONTENT PAGE ===== */
.text-green { color: var(--primary-green) !important; }
.bg-green { background: linear-gradient(135deg, var(--primary-green), var(--dark-green)) !important; }
.bg-light-green { background: rgba(10, 61, 26, 0.03) !important; }
.rounded-custom { border-radius: var(--radius-lg) !important; }
.shadow-sm-custom { box-shadow: var(--shadow-sm) !important; }
.hover-lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover) !important; }
.card-header.bg-green { background: linear-gradient(135deg, #0a3d1a, #1a5d2a) !important; }

/* ===== GOOGLE LOGIN BUTTON ===== */
.btn-google {
    background-color: #ffffff;
    color: #333333;
    border: 2px solid #dadce0;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
}
.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #4285f4;
    color: #333333;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}
.btn-google i.fa-google {
    color: #4285f4;
    font-size: 1.2em;
    vertical-align: middle;
}

/* Divider with text */
.divider-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 8px 0;
}
.divider-with-text::before,
.divider-with-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dadce0;
}
.divider-with-text::before {
    margin-right: 0;
}
.divider-with-text::after {
    margin-left: 0;
}
.divider-with-text span {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    position: relative;
    z-index: 1;
    color: #999999 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .teach-grid { grid-template-columns: repeat(2, 1fr); }
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-title-arabic { font-size: 2.5rem; }
    .arabic-heading { font-size: 2.8rem; }
    .arabic-sub { font-size: 1.6rem; }
}
@media (max-width: 575px) {
    .teach-grid, .courses-grid { grid-template-columns: 1fr; }
    .section { padding: 50px 0; }
    h1 { font-size: 2rem; }
    .hero-section { min-height: 60vh; padding: 100px 0 50px; }
    .hero-title-arabic { font-size: 2rem; }
    .arabic-heading { font-size: 2.2rem; }
}
