/*
Theme Name: Madrassat Elkarim
Description: A beautiful Islamic-themed WordPress theme for Quran Academy - Madrassat Elkarim. Features elegant Arabic typography, Islamic design elements, and responsive layout perfect for online Islamic education.
Author: Madrassat Elkarim Team
Version: 1.0
Text Domain: madrassat-elkarim
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://i.ibb.co/ZzTYmhqL/elkarim-background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.loading-logo {
    margin-bottom: 2rem;
    animation: logoGlow 2s ease-in-out infinite alternate;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-logo-image {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(247, 191, 0, 0.5));
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.loading-logo h2 {
    color: var(--white);
    font-size: 2rem;
    margin: 0;
    text-shadow: 0 0 20px rgba(247, 191, 0, 0.5);
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 2rem auto;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid var(--gold);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: var(--light-gold);
    animation-duration: 1s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-top-color: var(--white);
    animation-duration: 0.8s;
}



@keyframes logoGlow {
    0% { text-shadow: 0 0 20px rgba(247, 191, 0, 0.5); }
    100% { text-shadow: 0 0 30px rgba(247, 191, 0, 0.8), 0 0 40px rgba(247, 191, 0, 0.3); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}



/* Islamic Color Palette */
:root {
    --primary-color: #8a092f;
    --secondary-color: #a50d37;
    --light-primary: #c41e4a;
    --gold: #f7bf00;
    --light-gold: #ffd633;
    --dark-gold: #e6ac00;
    --cream: #fefdf8;
    --light-cream: #fffef9;
    --dark-red: #6b0724;
    --white: #ffffff;
    --text-dark: #2c2c2c;
    --text-light: #666666;
    --shadow-light: rgba(138, 9, 47, 0.1);
    --shadow-medium: rgba(138, 9, 47, 0.2);
    --shadow-dark: rgba(138, 9, 47, 0.3);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    /* color: var(--text-dark); */
}

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
}

.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-6 { flex: 0 0 50%; }
.col-8 { flex: 0 0 66.666667%; }
.col-12 { flex: 0 0 100%; }

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, rgba(138, 9, 47, 0.95) 0%, rgba(165, 13, 55, 0.9) 100%);
    color: var(--white);
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-medium);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.site-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://i.ibb.co/ZzTYmhqL/elkarim-background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(247, 191, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(247, 191, 0, 0.15) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    pointer-events: none;
    animation: headerShimmer 8s ease-in-out infinite;
}

@keyframes headerShimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(247, 191, 0, 0.4));
}

.logo-image {
    height: 50px;
    width: auto;
    margin-right: 15px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--gold);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Responsive Logo Styles */
@media (max-width: 768px) {
    .logo-image {
        height: 40px;
        margin-right: 10px;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .loading-logo-image {
        width: 80px;
    }

    .loading-logo h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 35px;
        margin-right: 8px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .loading-logo-image {
        width: 60px;
    }

    .loading-logo h2 {
        font-size: 1.3rem;
    }

    .footer-logo-image {
        height: 30px;
        margin-right: 10px;
    }

    .footer-logo {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-logo-image {
        margin-bottom: 10px;
        margin-right: 0;
    }
}

@media (min-width: 1200px) {
    .logo-image {
        height: 60px;
        margin-right: 20px;
    }

    .logo-text {
        font-size: 2rem;
    }

    .loading-logo-image {
        width: 140px;
    }

    .loading-logo h2 {
        font-size: 2.2rem;
    }
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation ul li {
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(138, 9, 47, 0.85) 0%, rgba(165, 13, 55, 0.8) 100%);
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 1;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(138, 9, 47, 0.7) 0%, rgba(165, 13, 55, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

@keyframes heroGlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
    background: linear-gradient(45deg, var(--white), var(--light-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--light-gold);
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    position: relative;
    z-index: 10;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.6s both;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--gold), var(--light-gold));
    color: var(--primary-color);
    border-color: var(--gold);
    box-shadow: 0 6px 20px rgba(247, 191, 0, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--light-gold), var(--gold));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(247, 191, 0, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.9s both;
    position: relative;
    z-index: 10;
}

.hero-buttons .btn {
    animation: bounceIn 0.8s ease-out;
}

.hero-buttons .btn:nth-child(1) {
    animation-delay: 1.2s;
}

.hero-buttons .btn:nth-child(2) {
    animation-delay: 1.4s;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background-color: var(--cream);
    position: relative;
    z-index: 1;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://i.ibb.co/ZzTYmhqL/elkarim-background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: -1;
}

.services-section .section-title,
.services-section .service-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--light-gold), var(--gold));
    border-radius: 2px;
    animation: underlineGlow 2s ease-in-out infinite alternate;
}

@keyframes underlineGlow {
    0% {
        box-shadow: 0 0 5px var(--gold);
        width: 80px;
    }
    100% {
        box-shadow: 0 0 15px var(--gold), 0 0 25px var(--light-gold);
        width: 100px;
    }
}

.service-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(247, 191, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://i.ibb.co/ZzTYmhqL/elkarim-background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.02;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 0.05;
}


.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold), var(--primary-color));
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(247, 191, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px var(--shadow-medium);
    border-color: var(--gold);
}

.service-card:hover::after {
    opacity: 1;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.service-icon {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    transition: all 0.4s ease;
    animation: iconFloat 3s ease-in-out infinite;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(247, 191, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--light-gold);
    text-shadow: 0 0 20px rgba(247, 191, 0, 0.5);
}

.service-card:hover .service-icon::before {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(247, 191, 0, 0.3) 0%, transparent 70%);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
    position: relative;
}

.service-card:hover h3 {
    color: var(--secondary-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: var(--text-dark);
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: var(--white);
    position: relative;
    z-index: 2;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://i.ibb.co/ZzTYmhqL/elkarim-background.png');
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.feature-item:hover {
    background-color: var(--cream);
}

.feature-item:hover::before {
    opacity: 0.03;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-right: 1.5rem;
    min-width: 60px;
}

.feature-content h4 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-light);
    margin: 0;
}

/* Mobile Navigation Styles - Completely Rewritten */
.menu-toggle {
    display: none;
    background: #8a092f;
    border: 2px solid #f7bf00;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 10px;
    z-index: 999999;
    border-radius: 8px;
    position: fixed;
    top: 20px;
    right: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu-text {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    color: var(--gold);
    font-weight: bold;
}

/* Mobile Menu Overlay - Handled by JavaScript */
#mobile-menu-overlay {
    /* All styles are applied via JavaScript for better control */
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        position: relative;
    }

    .menu-toggle {
        display: flex !important;
    }

    .main-navigation ul {
        display: none !important;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .col-4, .col-6 {
        flex: 0 0 100%;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Desktop Navigation Reset */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }

    .main-navigation ul {
        display: flex !important;
        flex-direction: row !important;
        position: static !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        gap: 2rem !important;
    }

    .main-navigation ul.mobile-open {
        display: flex !important;
        flex-direction: row !important;
        position: static !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://i.ibb.co/ZzTYmhqL/elkarim-background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
}

@keyframes statsBackground {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 0% 0%;
        opacity: 1;
    }
    50% {
        background-position: 100% 100%, 0% 0%, 100% 100%;
        opacity: 0.8;
    }
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 1rem 1rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 4rem;
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 0.5rem;
    display: block;
    position: relative;
    text-shadow: 0 0 20px rgba(247, 191, 0, 0.5);
    animation: countUp 2s ease-out;
}

.stat-number::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(247, 191, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

.stat-label {
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--cream);
    position: relative;
}

/* Pricing Section */
.pricing-section {
	padding: 80px 0;
	background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
	position: relative;
	overflow: hidden;
}

.pricing-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url('https://i.ibb.co/ZzTYmhqL/elkarim-background.png');
	background-size: cover;
	background-position: center;
	opacity: 0.04;
	z-index: 0;
}

.pricing-section .container { position: relative; z-index: 1; }

.pricing-tabs {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin: 0 auto 30px;
	flex-wrap: wrap;
}

.pricing-tab {
	appearance: none;
	background: #fff;
	border: 2px solid rgba(247,191,0,.3);
	color: var(--primary-color);
	padding: 10px 16px;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	box-shadow: 0 6px 16px rgba(0,0,0,.06);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-tab:hover { transform: translateY(-2px); }

.pricing-tab.is-active {
	background: linear-gradient(45deg, var(--gold), var(--light-gold));
	color: var(--primary-color);
	border-color: var(--gold);
	box-shadow: 0 10px 24px rgba(247,191,0,.35);
}

.pricing-panels {
	margin-top: 10px;
	position: relative;
}

.pricing-panel {
	display: none;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-panel.is-active {
	display: block;
	opacity: 1;
	transform: translateY(0);
	animation: fadeInUp 0.5s ease-out;
}

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

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	max-width: 1400px;
	margin: 0 auto;
}

/* Responsive grid adjustments for different package counts */
@media (min-width: 1200px) {
	.pricing-grid {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	}
}

@media (min-width: 1400px) {
	.pricing-grid {
		grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	}
}

.pricing-card {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 15px 40px rgba(0,0,0,0.08);
	border: 1px solid rgba(247,191,0,0.15);
	position: relative;
	overflow: hidden;
	transition: all .35s ease;
}

.pricing-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 25px 60px rgba(0,0,0,0.12);
	border-color: var(--gold);
}

.pricing-header {
	padding: 28px 24px 10px;
	text-align: center;
}

.pricing-title {
	font-size: 1.3rem;
	margin-bottom: 6px;
	color: var(--primary-color);
	text-transform: uppercase;
	letter-spacing: .6px;
	font-weight: 700;
}

.pricing-badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: linear-gradient(45deg, var(--gold), var(--light-gold));
	color: var(--primary-color);
	font-weight: 700;
	font-size: .8rem;
	box-shadow: 0 6px 20px rgba(247,191,0,.35);
}

.pricing-price {
	text-align: center;
	padding: 10px 24px 0;
}

.pricing-amount {
	font-size: 2.6rem;
	font-weight: 800;
	color: var(--primary-color);
}

.pricing-amount small { font-size: .9rem; color: var(--text-light); font-weight: 600; }

.pricing-features {
	list-style: none;
	margin: 20px 0 24px;
	padding: 0 24px 0 24px;
}

.pricing-features li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px dashed #eee;
	color: #555;
}

.pricing-features li:last-child { border-bottom: 0; }

.pricing-features i { color: var(--gold); }

.pricing-cta {
	text-align: center;
	padding: 0 24px 28px;
}

.pricing-card.popular {
	border-width: 2px;
	border-color: var(--gold);
	transform: translateY(-6px);
}

.pricing-ribbon {
	position: absolute;
	top: 14px;
	right: -42px;
	background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
	color: #fff;
	padding: 8px 60px;
	transform: rotate(35deg);
	font-weight: 700;
	letter-spacing: .5px;
	box-shadow: 0 10px 25px rgba(138,9,47,.25);
}

@media (max-width: 768px) {
	.pricing-grid { grid-template-columns: 1fr; }
	.pricing-card.popular { transform: none; }
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://i.ibb.co/ZzTYmhqL/elkarim-background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    z-index: -1;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow-light);
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(247, 191, 0, 0.1);
    overflow: hidden;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(247, 191, 0, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px var(--shadow-medium);
    border-color: var(--gold);
}

.testimonial-card:hover::after {
    opacity: 1;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 25px;
    font-size: 5rem;
    color: var(--gold);
    font-family: serif;
    line-height: 1;
    opacity: 0.3;
    z-index: 1;
    text-shadow: 0 0 10px rgba(247, 191, 0, 0.3);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info h5 {
    color: var(--primary-green);
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.rating {
    color: var(--gold);
}

.rating i {
    margin-right: 2px;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, rgba(138, 9, 47, 0.9) 0%, rgba(165, 13, 55, 0.85) 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://i.ibb.co/ZzTYmhqL/elkarim-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.25;
    z-index: -1;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(247, 191, 0, 0.1) 50%, transparent 70%);
    animation: ctaGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ctaGlow {
    0%, 100% {
        transform: translateX(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        transform: translateX(100%) rotate(45deg);
        opacity: 1;
    }
}

.cta-content h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: var(--light-gold);
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-buttons .btn {
    animation: bounceIn 0.8s ease-out;
    animation-delay: 0.9s;
    animation-fill-mode: both;
}

/* Header Enhancements */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-phone,
.header-whatsapp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.header-phone:hover,
.header-whatsapp:hover {
    color: var(--gold);
}



/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-red) 100%);
    /* color: var(--white); */
    position: relative;
    overflow: hidden;
}

.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://i.ibb.co/ZzTYmhqL/elkarim-background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(247, 191, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(247, 191, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-main {
    padding: 3rem 0 2rem;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-image {
    height: 40px;
    width: auto;
    margin-right: 15px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.footer-logo:hover .footer-logo-image {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(247, 191, 0, 0.4));
}

.footer-widget .widget-title {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    position: relative;
}

.footer-widget .widget-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--gold);
}

.footer-widget p {
    color: var(--white);
    line-height: 1.6;
    opacity: 0.9;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--gold);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    color: var(--gold);
    opacity: 1;
    padding-left: 5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item i {
    color: var(--gold);
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--gold);
    opacity: 1;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--gold);
    opacity: 1;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--gold);
    color: var(--primary-green);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    color: var(--gold);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(138, 9, 47, 0.4);
}

/* Additional Mobile Styles */
@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .col-3, .col-2 {
        flex: 0 0 100%;
    }

    .testimonial-author {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .services-section,
    .features-section,
    .testimonials-section,
    .stats-section,
    .cta-section {
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Arabic Text Support */
.arabic-text {
    font-family: 'Amiri', 'Noto Sans Arabic', serif;
    direction: rtl;
    text-align: right;
    font-size: 1.2em;
    line-height: 1.8;
}

/* Advanced Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure AOS elements are visible by default */
[data-aos] {
    opacity: 1;
    transform: translateY(0);
}

/* AOS animation states */
[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.zoom-in {
    animation: zoomIn 0.6s ease-out;
}

.rotate-in {
    animation: rotateIn 0.8s ease-out;
}

/* Particle Effects */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
        opacity: 1;
    }
    66% {
        transform: translateY(10px) rotate(240deg);
        opacity: 0.5;
    }
}

/* Glowing Text Effect */
.glow-text {
    text-shadow:
        0 0 5px var(--gold),
        0 0 10px var(--gold),
        0 0 15px var(--gold),
        0 0 20px var(--gold);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow:
            0 0 5px var(--gold),
            0 0 10px var(--gold),
            0 0 15px var(--gold),
            0 0 20px var(--gold);
    }
    to {
        text-shadow:
            0 0 10px var(--gold),
            0 0 20px var(--gold),
            0 0 30px var(--gold),
            0 0 40px var(--gold);
    }
}

/* Floating Animation */
.float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Hover Glow Effect */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow:
        0 0 20px rgba(247, 191, 0, 0.4),
        0 0 40px rgba(247, 191, 0, 0.2),
        0 0 60px rgba(247, 191, 0, 0.1);
    transform: translateY(-5px);
}

/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--gold), var(--primary-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 3s ease-in-out infinite;
}

@keyframes gradientText {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

/* Teachers Section Styles */
.teachers-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.teachers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/elkarim-background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    z-index: 0;
}

.teachers-section .container {
    position: relative;
    z-index: 1;
}

/* Teacher Card Styles */
.teacher-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.teacher-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.teacher-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.teacher-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    color: #ddd;
    font-size: 0.8rem;
}

.rating-stars i.active {
    color: var(--gold);
}

.rating-number {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.teacher-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.teacher-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.teacher-specialization {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teacher-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.teacher-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.teacher-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
}

.teacher-stats .stat-item i {
    color: var(--primary-color);
    width: 16px;
}

.teacher-actions {
    display: flex;
    margin-top: auto;
}

.teacher-actions .btn {
    text-align: center;
    padding: 10px 10px;
    font-size: 0.85rem;
    flex: 1;
    width: fit-content;
}

/* Single Teacher Page Styles */
.teacher-hero-section {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.teacher-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/elkarim-background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.teacher-hero-section .container {
    position: relative;
    z-index: 1;
}

/* New Hero Layout */
.teacher-hero-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
}

.teacher-image-container {
    position: relative;
}

.teacher-image-large {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.teacher-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-placeholder-large {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.teacher-rating-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.teacher-info-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.teacher-info {
    flex: 1;
}

.teacher-info .teacher-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.teacher-info .teacher-specialization {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-weight: 500;
}

.teacher-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.teacher-stats-grid .stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.teacher-stats-grid .stat-item .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 5px;
}

.teacher-stats-grid .stat-item .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teacher-actions {
    display: flex;
    flex-wrap: wrap;
}

.teacher-actions .btn-primary {
    flex: 1;
    min-width: fit-content;
    padding: 10px 10px;
    font-weight: 600;
}

.contact-buttons {
    display: flex;
    gap: 10px;
}

.contact-buttons .btn {
    padding: 12px 15px;
    min-width: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-buttons .btn i {
    font-size: 1.1rem;
}

.teacher-rating-large .rating-stars {
    margin-bottom: 5px;
}

.teacher-rating-large .rating-number {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.teacher-info {
    padding-left: 40px;
}

.teacher-info .teacher-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
}

.teacher-info .teacher-specialization {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 30px;
    font-weight: 600;
}

.teacher-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.teacher-stats-grid .stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.stat-content .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-content .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.teacher-actions {
    display: flex;
    flex-wrap: wrap;
}

/* Teacher Details Section */
.teacher-details-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.teacher-details-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.teacher-main-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.content-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(138, 9, 47, 0.1);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.content-card h2,
.content-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.content-card h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 15px;
}

.content-card h3 {
    font-size: 1.4rem;
}

.content-card h2 i,
.content-card h3 i {
    color: var(--gold);
    font-size: 1.2rem;
}

.teacher-description,
.education-content,
.experience-content,
.training-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

.skills-list,
.languages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-tag,
.language-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover,
.language-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 9, 47, 0.3);
}

/* Teacher Sidebar */
.teacher-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-sticky {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.stats-card,
.contact-card,
.cta-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(138, 9, 47, 0.1);
    transition: all 0.3s ease;
}

.stats-card:hover,
.contact-card:hover,
.cta-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.stats-card h3,
.contact-card h3,
.cta-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-card h3 i,
.contact-card h3 i,
.cta-card h3 i {
    color: var(--gold);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    color: white;
}

.stat-number {
    display: block;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.contact-method:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.contact-method.whatsapp:hover {
    background: #25d366;
}

.contact-method.email:hover {
    background: #ea4335;
}

.contact-method.linkedin:hover {
    background: #0077b5;
}

.contact-method i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.social-links-extra {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link.facebook:hover {
    background: #1877f2;
    color: white;
}

.social-link.twitter:hover {
    background: #1da1f2;
    color: white;
}

.cta-content {
    text-align: center;
}

.cta-content h3 {
    justify-content: center;
    margin-bottom: 15px;
}

.cta-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-item:hover i {
    color: white;
}


.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link.linkedin {
    background: #0077b5;
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.cta-card h3 {
    color: white;
}

.cta-card p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Teachers Archive Page Styles */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/elkarim-background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-description {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
}

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

.breadcrumb .separator {
    opacity: 0.6;
}

.breadcrumb .current {
    opacity: 0.8;
}

.teachers-archive-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.teachers-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 9, 47, 0.1);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.teacher-card-archive {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.teacher-card-archive:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.teacher-card-archive.featured {
    border: 3px solid var(--gold);
}

.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
}

.teacher-card-small {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.teacher-card-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.teacher-image-small {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
}

.teacher-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-placeholder-small {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.teacher-content-small h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.teacher-content-small p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.rating-small {
    margin-bottom: 15px;
}

.rating-small i {
    color: #ddd;
    font-size: 0.8rem;
}

.rating-small i.active {
    color: var(--gold);
}

.related-teachers-section {
    padding: 80px 0;
    background: white;
}

.no-teachers-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-content-message {
    max-width: 400px;
    margin: 0 auto;
}

.no-content-message i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.no-content-message h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.no-content-message p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.pagination-wrapper {
    grid-column: 1 / -1;
    margin-top: 40px;
    text-align: center;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    margin: 0 5px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive Design for Teachers */
@media (max-width: 1200px) {
    .teachers-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }

    .teacher-info {
        padding-left: 20px;
    }

    .teacher-info .teacher-name {
        font-size: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .teacher-details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .teacher-sidebar {
        order: -1;
    }

    .sidebar-sticky {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .teacher-hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .teacher-image-large {
        max-width: 300px;
        margin: 0 auto;
    }

    .teacher-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .teachers-filters {
        flex-direction: column;
        gap: 15px;
    }

    .filter-group {
        min-width: auto;
    }

    .sidebar-sticky {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .teacher-hero-content {
        gap: 25px;
    }

    .teacher-image-large {
        max-width: 250px;
    }

    .teacher-info .teacher-name {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .teacher-actions {
        justify-content: center;
        gap: 10px;
    }

    .teacher-actions .btn-primary {
        min-width: 180px;
    }

    .teacher-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .teacher-stats-grid .stat-item {
        justify-content: center;
        text-align: center;
    }

    .content-card {
        padding: 20px;
    }

    .content-card h2 {
        font-size: 1.5rem;
    }

    .sidebar-sticky {
        grid-template-columns: 1fr;
    }

    .social-links {
        gap: 10px;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .teacher-card {
        margin: 0 10px;
    }

    .teacher-content {
        padding: 20px;
    }

    .teacher-hero-section {
        padding: 40px 0 30px;
    }

    .teacher-hero-content {
        gap: 20px;
    }

    .teacher-image-large {
        height: 200px;
        max-width: 200px;
    }

    .teacher-placeholder-large {
        font-size: 3rem;
    }

    .teacher-info .teacher-name {
        font-size: 1.8rem;
    }

    .teacher-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .teacher-actions {
        flex-direction: column;
        gap: 10px;
    }

    .teacher-actions .btn-primary {
        min-width: auto;
        width: 100%;
    }

    .contact-buttons {
        justify-content: center;
    }

    .content-card {
        padding: 15px;
    }

    .content-card h2 {
        font-size: 1.4rem;
    }

    .content-card h3 {
        font-size: 1.2rem;
    }

    .stats-card,
    .contact-card,
    .cta-card {
        padding: 15px;
    }

    .contact-methods {
        gap: 8px;
    }

    .contact-method {
        padding: 10px 12px;
    }

    .teachers-filters {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .teacher-hero-section {
        padding: 30px 0 20px;
    }

    .teacher-info .teacher-name {
        font-size: 1.6rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .content-card h2 {
        font-size: 1.3rem;
    }

    .content-card h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 320px) {
    .teacher-info .teacher-name {
        font-size: 1.4rem;
    }

    .teacher-stats-grid .stat-item {
        padding: 10px;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .content-card {
        padding: 12px;
    }

    .stats-card,
    .contact-card,
    .cta-card {
        padding: 12px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .hero-buttons,
    .cta-buttons,
    .teachers-filters,
    .teacher-actions {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .teacher-card,
    .teacher-card-archive {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

.teacher-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.teacher-detail-item {
        gap: 10px;
    display: flex;
    align-items: center;
}