/********** Template CSS **********/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Bungee+Spice&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poetsen+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300&family=El+Messiri&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oi&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lalezar&display=swap');
@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Tajawal:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Changa:wght@400;600;700&family=Tajawal:wght@400;500;700&display=swap');

:root {
    --primary: #097609;
    --secondary: #D1BA98;
    --light: #EEF9FF;
    --dark: #091E3E;
}

body {
    background-color: #ffffff;
    transition: background-color 0.5s, color 0.5s;
}
.btn-secondary {
    color: #000 !important;
    background-color: #D1BA98 !important;
    border-color: #D1BA98  !important;
}

/* dark.css */

body.dark-mode {
    background-color: #122029;
    /* color: #ffffff; */
}

.form-check-input {
    cursor: pointer;
}


/*** Spinner ***/

.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Heading ***/

h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/

.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 #fff;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}
.text-primary{
    color: #097609 !important;
}


/*** Navbar ***/

.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 20px 0;
    color: #097609;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: #097609;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: caa539;
}

.navbar-dark .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: #FFFFFF;
    }
    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: #fff;
    }
    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    .sticky-top.navbar-dark {
        position: fixed;
        background: #fff5d9;
    }
    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }
    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}


/*** Carousel ***/

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(9, 30, 62, .7); */
    background: rgb(60 35 19 / 79%);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }
    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/

.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    /*right: 0;*/
    bottom: 0;
    background: #525C44;
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {
        right: 0;
    }
    50% {
        right: 145px;
    }
    100% {
        right: 0;
    }
}

@-webkit-keyframes section-title-run-center {
    0% {
        right: 50%;
        margin-right: -75px;
    }
    50% {
        right: 50%;
        margin-right: 45px;
    }
    100% {
        right: 50%;
        margin-right: -75px;
    }
}

@-webkit-keyframes section-title-run-sm {
    0% {
        right: 0;
    }
    50% {
        right: 85px;
    }
    100% {
        right: 0;
    }
}


/*** Service ***/

.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}


/*** Testimonial ***/

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


/*** Team ***/

.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(9, 30, 62, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item,
.blog-item,
.team-item .team-img img,
.blog-item .blog-img img,
.blog-item:hover .blog-img a {
    transition: .7s;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
    filter: saturate(150%);
}

.team-item:hover,
.blog-item:hover {
    transform: scale(.98);
    box-shadow: 3px 5px #f3f5f7;
}

.blog-item:hover .blog-img a {
    left: -150px !important;
}


/*** Miscellaneous ***/

@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.bg-header {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/carousel-0.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}

h1,
p,
a,
label,
option,
select,
input,
li,
button,

/* span, */

h2,
h3,
h4,
h5 {
    font-family: 'Cairo', sans-serif !important;
}

.text-color {
    color: #097609!important;
}

.font-new h2 {
    /* border-left: solid 3px #525C44; */
    /* white-space: nowrap; */
    font-family: "Changa",'Cairo',sans-serif !important;
    /* overflow: hidden; */
    font-size: 65px;
    font-weight: 600;
    color: rgba(255, 255, 255, .70);
    margin: 0 auto;
    line-height: normal;
    color: #097609;
    /* animation: animated-text 4s steps(20, end) 1s 1 normal both,
             animated-cursor 600ms steps(20, end) infinite */
}
.font-new h5{
    font-family:'Cairo';
    color: caa539;
}


/* Animation */


/* text animation */

@keyframes animated-text {
    from {
        width: 0;
    }
    to {
        width: 80%;
    }
}


/* cursor animations */


@keyframes animated-text {
    from { width: 0; }
    to { width: 85%; }
  }

  @keyframes animated-cursor {
    from, to { border-color: transparent; }
    50% { border-color: black; }
  }

.animation-buttun,
.about img {
    animation: changeMargin 2s ease-in-out infinite alternate-reverse both;
}

@keyframes changeMargin {
    0% {
        transform: translateX(2px);
    }
    100% {
        transform: translateX(-2px);
    }
}


.colored-buttun {
    /* animation: changeBackgroundColor 3s infinite alternate-reverse both; */
}

@keyframes changeBackgroundColor {
    0% {
        background: #d25c50;
    }
    25% {
        background: #edd6aa;
    }
    50% {
        background: #525C44;
    }
    75% {
        background: #724c45;
    }
    100% {
        background: #f3b998;
    }
}

.navbar .navbar-brand img,
.footer img {
    /* animation: changeolor 2s infinite alternate-reverse both; */
}

@keyframes changeolor {
    0% {
        filter: brightness(0) invert(1);
    }
    30% {
        filter: brightness(.5) invert(.5);
    }
    70% {
        filter: brightness(1) invert(0);
    }
    100% {
        filter: brightness(.5) invert(.5);
    }
}

.about img {
    animation: up-down 2s ease-in-out infinite alternate-reverse both;
}

@keyframes up-down {
    0% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(-10px);
    }
}

.course-page-title {
    background-color: #223a66;
}

.fa,
.far,
.fas {
    font-family: "Font Awesome 5 Free" !important;
}

.btn-primary {
    color: #fff;
    background-color: #097609;
    border-color: #097609;
}

.btn-primary:hover {
    color: #097609;
    background-color: #fff;
    border-color: #097609;
}

.bg-colord {
    /* background: rgb(34, 58, 102); */
    /* background: radial-gradient(circle, rgb(89 48 30) 4%, rgb(157 121 79) 100%); */
    background-color: caa539  !important;
}

.bg-light {
    background-color: #ffd4b427 !important;
}
.navbar {
    /* background: radial-gradient(circle, rgb(48 118 77) 4%, rgb(106 202 147) 100%); */
    background: #075d0503;
}

a {
    color: #097609;
    text-decoration: none;
}
.btn-dark {
    color: #fff;
    background-color: caa53930 ;
    border-color: #1f2319;
}
.bg-dark {
    background-color: #0e1921  !important;
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    /* height: 100vh; */

}

.toggle-label {
    position: relative;
    width: 70px;
    height: 34px;
    background: #097609;
    border-radius: 34px;
    cursor: pointer;
    transition: all 0.3s ease-in-out ;
}

.toggle-checkbox {
    display: none;
}

.toggle-label::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    background:#fff;
    border-radius: 50%;
    top: 4px;
    left: 4px;
    transition: transform 0.3s;
}

.toggle-checkbox:checked+.toggle-label::before {
    transform: translateX(36px);
}

.toggle-label .light-icon,
.toggle-label .dark-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    transition: opacity 0.3s;
}

.toggle-label .light-icon {
    left: 8px;
    color: #097609;
}

.toggle-label .dark-icon {
    right: 8px;
    color: #ffffff;
    opacity: 0;
}

.toggle-checkbox:checked+.toggle-label .light-icon {
    opacity: 0;
    color: #ffffff;
}

.toggle-checkbox:checked+.toggle-label .dark-icon {
    opacity: 1;
    color: #3c3936;
}
.toggle-checkbox:checked+.toggle-label  {
    opacity: 0;
    background: #097609;
}

.toggle-checkbox:checked+.toggle-label  {
    opacity: 1;
    background: #3c3936;
}

  .feature-card {
    background: caa5393d;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    height: 100%;
    color: #097609;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    background: #f5c88d;
}

.icon-top {
    font-size: 40px;
    color: #097609;
    margin-bottom: 15px;
    display: inline-block;
}

.map-section {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

.section-title {
  color: var(--primary-color);
  font-weight: bold;
}

.features-list {
  list-style: none;
  padding-left: 0;
}

.features-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  animation: fadeInUp 0.6s ease-in-out both;
}

.features-list li::before {
  content: "✔️";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.svg-map-container {
  max-width: 300px;
  margin: auto;
  transition: transform 0.4s ease;
}

.svg-map-container:hover {
  transform: scale(1.1);
}

.animated-map {
  width: 100%;
  height: auto;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* h2{
    font-family: "El Messiri",'Cairo',sans-serif !important;
} */

/* العناوين بخط Amiri */
h1, h2, h3 {
    font-family: 'Changa', 'Cairo',sans-serif !important;
}

/* النصوص بخط Tajawal */
body, p, a, span, li, button, input, textarea {
    font-family: 'Tajawal', 'Cairo',sans-serif !important;
}

/* تحسين المظهر */
h1, h2, h3 {
    font-weight: 700;
}

p, a, span, li {
    font-weight: 400;
    line-height: 1.7;
}
/* الوضع العادي (لايت) */
.font-new-title {
    color: #097609 !important; /* الأزرق الأساسي */
}

.font-new-subtitle {
    color: caa539 !important; /* الأحمر الفرعي */
}

/* الوضع الداكن */
body.dark-mode .font-new-title {
    color: caa539 !important; /* الأحمر الأساسي في الدارك */
}

body.dark-mode .font-new-subtitle {
    color: #097609 !important; /* الأزرق الفرعي في الدارك */
}






/* Class Page*/

.student-class-banner {
    background: linear-gradient(135deg, #097609, caa539);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.student-class-banner::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    top: -150px;
    right: -150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
}

.student-class-banner::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: -120px;
    left: -120px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    animation: float 10s infinite ease-in-out reverse;
}

.class-image img {
    width: 180px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
    transition: transform 0.4s ease;
}

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

.class-title {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px 35px;
    border-radius: 15px;
    color: #fff;
    display: inline-block;
    font-size: 2rem;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    backdrop-filter: blur(6px);
}

/* BreadCrumb */
.breadcrumb-nav {
    background: #f9f9f9;
    padding: 15px;
    border-top: 3px solid #097609;
    border-bottom: 3px solid #097609;
}

.breadcrumb-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    font-size: 1rem;
    flex-wrap: wrap;
}

.breadcrumb-nav li {
    color: #333;
}

.breadcrumb-nav a {
    color: #097609;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: caa539;
}

/* Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

/* Dark Mode */
body.dark-mode .breadcrumb-nav {
    background: #102636;
    border-color: caa539;
}

body.dark-mode .breadcrumb-nav li,
body.dark-mode .breadcrumb-nav a {
    color: #fff;
}

.course-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #8da2193b, #09760954);
    transition: background 0.3s ease;
}

.course-card {
    background-color: var(--card-bg);
    border-radius: 22px;
    box-shadow: 0 16px 34px rgba(13, 28, 18, 0.12);
    padding: 28px;
    border: 1px solid rgba(7, 93, 5, 0.08);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.course-image {
    max-width: 250px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.course-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.course-desc {
    color: #3f3f3f;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 18px;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    color: #5a5a5a;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.course-meta i {
    margin-left: 8px;
    color: #CAA539;
}

.course-price {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(7, 93, 5, 0.12), rgba(202, 165, 57, 0.18));
    color: #075D05;
    font-weight: 700;
}

.course-price i {
    color: #075D05;
}

body.dark-mode .course-card {
    border-color: rgba(216, 180, 84, 0.2);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

body.dark-mode .course-title {
    color: #ffffff;
}

body.dark-mode .course-desc {
    color: #cfd8ce;
}

body.dark-mode .course-meta {
    color: #d4ded2;
}

body.dark-mode .course-price {
    background: linear-gradient(120deg, rgba(216, 180, 84, 0.22), rgba(15, 155, 15, 0.2));
    color: #f2d37a;
}

body.dark-mode .course-price i {
    color: #f2d37a;
}

.course-info div {
    background: linear-gradient(90deg, var(--accent-light), var(--accent-dark));
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.course-info i {
    margin-left: 10px;
    font-size: 1.2rem;
}

.breadcrumb-nav {
    background-color: var(--card-bg);
    padding: 15px;
    border-top: 2px solid var(--primary-light);
}

.breadcrumb-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    font-size: 1rem;
}

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

.breadcrumb-nav a:hover {
    color: var(--accent-dark);
}

/* لايت مود */
:root {
    --primary-color: #097609;
    --primary-dark: #d0b25a;
    --primary-light: #3ca4c9;

    --accent-dark: caa539;
    --accent-light: #d8435b;

    --card-bg: #fff;
}

/* دارك مود */
body.dark-mode {
    --primary-color: #e7b522;
    --primary-dark: #097609;
    --primary-light: #15627f;

    --accent-dark: #ff6b81;
    --accent-light: caa539;

    --card-bg: #1c180b;
}

/* About Hero */
.hero-azhar {
    background: linear-gradient(135deg, #f6fbf4 0%, #eef7ec 45%, #fdf6ea 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-azhar::before {
    content: "";
    position: absolute;
    inset: -20% 0 0 -20%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cdefs%3E%3CradialGradient id='g' cx='50%25' cy='50%25' r='65%25'%3E%3Cstop offset='0%25' stop-color='%23CAA539' stop-opacity='0.45'/%3E%3Cstop offset='100%25' stop-color='%23075D05' stop-opacity='0.08'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='16' cy='18' r='3.2' fill='url(%23g)'/%3E%3Ccircle cx='72' cy='22' r='3' fill='url(%23g)'/%3E%3Ccircle cx='120' cy='74' r='3.4' fill='url(%23g)'/%3E%3Ccircle cx='40' cy='112' r='3' fill='url(%23g)'/%3E%3Ccircle cx='104' cy='132' r='3.2' fill='url(%23g)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
    opacity: 0.5;
    transform: translate3d(0, 0, 0);
    animation: dotsDrift 10s linear infinite;
    pointer-events: none;
}

.hero-azhar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/front/img/pattern.svg') repeat;
    opacity: 0.04;
}

.hero-content h1 {
    margin-top: 90px;
    font-size: 64px;
    font-weight: 600;
    color: #075D05;
}

.hero-content h1 span {
    display: block;
    font-family: 'Changa','Cairo', sans-serif !important;
    background: linear-gradient(90deg, #075D05 0%, #CAA539 50%, #0a7a0a 100%);
    -webkit-background-clip: text;
    font-weight: 800;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 1px rgba(202, 165, 57, 0.15), 0 0 28px rgba(7, 93, 5, 0.05);
    background-size: 200% 200%;
    animation: gradientGlow 4s ease-in-out infinite, gradientShift 8s ease-in-out infinite;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.9;
    color: #444;
}

.btn-azhar {
    background: linear-gradient(120deg, #075D05, #CAA539, #0a7a0a);
    background-size: 200% 200%;
    border: none;
    color: #fff;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: 0 10px 24px rgba(7, 93, 5, 0.18);
    animation: gradientShift 10s ease-in-out infinite;
}

.btn-azhar-outline {
    border: 2px solid #CAA539;
    color: #075D05;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    background: linear-gradient(120deg, rgba(202, 165, 57, 0.15), rgba(7, 93, 5, 0.08));
    background-size: 200% 200%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn-azhar:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 14px 30px rgba(7, 93, 5, 0.25), 0 0 18px rgba(202, 165, 57, 0.25);
    filter: brightness(1.05);
}

.btn-azhar:active {
    transform: translateY(-1px) scale(0.99);
}

.btn-azhar-outline:hover {
    transform: translateY(-3px) scale(1.01);
    background-position: 100% 50%;
    color: #1a1a1a;
    box-shadow: 0 12px 26px rgba(202, 165, 57, 0.25);
}

.btn-azhar-outline:active {
    transform: translateY(-1px) scale(0.99);
}

body.dark-mode .hero-azhar {
    background: linear-gradient(135deg, #13241a 0%, #1a2f22 50%, #1c2a20 100%);
}

body.dark-mode .hero-azhar::after {
    opacity: 0.08;
}

body.dark-mode .hero-azhar::before {
    opacity: 0.4;
}

body.dark-mode .hero-content h1 {
    color: #e6f2e2;
}

body.dark-mode .hero-content p {
    color: #cfd7cc;
}

body.dark-mode .btn-azhar {
    background: linear-gradient(120deg, #0a7a0a, #d8b454, #0f9b0f);
    background-size: 200% 200%;
    box-shadow: 0 10px 24px rgba(10, 122, 10, 0.28);
}

body.dark-mode .btn-azhar-outline {
    border-color: #d8b454;
    color: #f2d37a;
    background: linear-gradient(120deg, rgba(216, 180, 84, 0.18), rgba(15, 155, 15, 0.12));
    background-size: 200% 200%;
}

body.dark-mode .btn-azhar:hover {
    box-shadow: 0 14px 30px rgba(15, 155, 15, 0.35), 0 0 18px rgba(216, 180, 84, 0.25);
}

body.dark-mode .btn-azhar-outline:hover {
    background: #d8b454;
    color: #1b1b1b;
}

.hero-img img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
}

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

@keyframes dotsDrift {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(40px, -30px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes gradientGlow {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.25); }
    100% { filter: brightness(1); }
}

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

@media (max-width: 768px) {
    .hero-content h1 { font-size: 38px; }
}

/* Azhar Subjects */
.azhar-subjects {
    padding: 100px 0;
    background: linear-gradient(135deg, #f7fbf6 0%, #eef7ec 45%, #fdf7ea 100%);
}

.azhar-subjects-header {
    margin-bottom: 40px;
}

.azhar-subjects-title {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(90deg, #075D05, #CAA539, #0a7a0a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 9s ease-in-out infinite;
}

.azhar-subjects-lead {
    color: #3b3b3b;
    font-size: 1.1rem;
    max-width: 760px;
    margin: 0 auto;
}

.azhar-subjects-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.azhar-subject-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(7, 93, 5, 0.08);
    box-shadow: 0 14px 30px rgba(13, 28, 18, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.azhar-subject-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 36px rgba(13, 28, 18, 0.18);
}

.azhar-subject-media {
    height: 160px;
    overflow: hidden;
    background: rgba(7, 93, 5, 0.08);
}

.azhar-subject-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.azhar-subject-card:hover .azhar-subject-media img {
    transform: scale(1.06);
}

.azhar-subject-body {
    padding: 16px 18px 20px;
}

.azhar-subject-body h3 {
    color: #075D05;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.azhar-subject-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #4a4a4a;
    font-size: 0.9rem;
}

.azhar-subject-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.azhar-subject-meta i {
    color: #CAA539;
}

body.dark-mode .azhar-subjects {
    background: linear-gradient(135deg, #13241a 0%, #1a2f22 55%, #1c2a20 100%);
}

body.dark-mode .azhar-subjects-lead {
    color: #c9d3c8;
}

body.dark-mode .azhar-subject-card {
    background: #13241a;
    border-color: rgba(216, 180, 84, 0.2);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

body.dark-mode .azhar-subject-body h3 {
    color: #f2d37a;
}

body.dark-mode .azhar-subject-meta {
    color: #d4ded2;
}

@media (max-width: 1199px) {
    .azhar-subjects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .azhar-subjects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .azhar-subjects-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Azhar One Features */
.azhar-features {
    background: linear-gradient(135deg, #f6fbf4 0%, #f2f8f1 45%, #fdf7ea 100%);
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.azhar-features::before,
.azhar-features::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    filter: blur(60px);
}

.azhar-features::before {
    width: 260px;
    height: 260px;
    background: rgba(202, 165, 57, 0.22);
    top: 8%;
    left: -90px;
    animation: azharGlowX 8s ease-in-out infinite;
}

.azhar-features::after {
    width: 320px;
    height: 320px;
    background: rgba(7, 93, 5, 0.18);
    bottom: 6%;
    right: -120px;
    animation: azharGlowY 10s ease-in-out infinite;
}

.azhar-features .container {
    position: relative;
    z-index: 1;
}

.azhar-features-header {
    margin-bottom: 48px;
}

.azhar-features-title {
    font-size: 2.6rem;
    font-weight: 800;
    background: linear-gradient(90deg, #075D05, #CAA539, #0a7a0a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 9s ease-in-out infinite;
}

.azhar-features-lead {
    color: #3c3c3c;
    font-size: 1.15rem;
    max-width: 840px;
    margin: 0 auto;
}

.azhar-feature-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    padding: 28px 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid rgba(7, 93, 5, 0.08);
    box-shadow: 0 10px 30px rgba(15, 30, 20, 0.08);
    height: 100%;
}

.azhar-feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(202, 165, 57, 0.4);
    box-shadow: 0 16px 36px rgba(15, 30, 20, 0.15);
}

.azhar-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(7, 93, 5, 0.12), rgba(202, 165, 57, 0.2));
    color: #075D05;
    font-size: 26px;
    margin-bottom: 16px;
    transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.azhar-feature-card:hover .azhar-feature-icon {
    transform: translateY(-2px) scale(1.05);
    color: #CAA539;
    background: linear-gradient(135deg, rgba(7, 93, 5, 0.18), rgba(202, 165, 57, 0.28));
}

.azhar-feature-card h5 {
    color: #075D05;
    font-weight: 700;
    margin-bottom: 10px;
}

.azhar-feature-card p {
    color: #2f2f2f;
    font-size: 0.98rem;
    line-height: 1.8;
}

body.dark-mode .azhar-features {
    background: linear-gradient(135deg, #13241a 0%, #1a2f22 55%, #1c2a20 100%);
}

body.dark-mode .azhar-features::before {
    background: rgba(202, 165, 57, 0.16);
}

body.dark-mode .azhar-features::after {
    background: rgba(15, 155, 15, 0.2);
}

body.dark-mode .azhar-features-lead {
    color: #c9d3c8;
}

body.dark-mode .azhar-feature-card {
    background: rgba(19, 36, 26, 0.85);
    border-color: rgba(216, 180, 84, 0.2);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

body.dark-mode .azhar-feature-card h5 {
    color: #f2d37a;
}

body.dark-mode .azhar-feature-card p {
    color: #cdd6cc;
}

body.dark-mode .azhar-feature-icon {
    color: #f2d37a;
    background: linear-gradient(135deg, rgba(216, 180, 84, 0.2), rgba(15, 155, 15, 0.15));
}

@keyframes azharGlowX {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(24px); }
}

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

/* Teacher Page */
.teacher-profile {
    padding: 90px 0 40px;
    background: linear-gradient(135deg, #f6fbf4 0%, #f0f6ee 45%, #fdf7ea 100%);
}

.teacher-profile-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    background: #ffffff;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(13, 28, 18, 0.12);
    border: 1px solid rgba(7, 93, 5, 0.08);
}

.teacher-profile-media {
    position: relative;
    background: linear-gradient(160deg, rgba(7, 93, 5, 0.12), rgba(202, 165, 57, 0.22));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.teacher-profile-media img {
    width: 100%;
    max-width: 280px;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(13, 28, 18, 0.18);
}

.teacher-profile-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(7, 93, 5, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.teacher-profile-body {
    padding: 30px 34px 34px;
}

.teacher-profile-name {
    color: #075D05;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.teacher-profile-lead {
    color: #3a3a3a;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.teacher-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.teacher-info-card {
    background: rgba(7, 93, 5, 0.04);
    border: 1px solid rgba(7, 93, 5, 0.08);
    border-radius: 18px;
    padding: 18px;
    min-height: 150px;
}

.teacher-info-card h5 {
    color: #075D05;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.teacher-info-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.teacher-info-list span {
    background: #fff;
    border: 1px solid rgba(202, 165, 57, 0.4);
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #2f2f2f;
}

.teacher-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.teacher-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 93, 5, 0.12);
    color: #075D05;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.teacher-socials a:hover {
    transform: translateY(-2px);
    background: #CAA539;
    color: #1b1b1b;
}

.teacher-courses {
    padding: 60px 0 100px;
    background: #ffffff;
}

.teacher-courses-header {
    text-align: center;
    margin-bottom: 40px;
}

.teacher-courses-header h2 {
    color: #075D05;
    font-weight: 800;
    margin-bottom: 10px;
}

.teacher-courses-header p {
    color: #4a4a4a;
}

.azhar-course-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(13, 28, 18, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(7, 93, 5, 0.08);
    height: 100%;
}

.azhar-course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 36px rgba(13, 28, 18, 0.16);
}

.azhar-course-media {
    position: relative;
}

.azhar-course-media img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.azhar-course-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(7, 93, 5, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
}

.azhar-course-body {
    padding: 18px 20px 22px;
}

.azhar-course-body h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.azhar-course-body h3 a {
    color: #075D05;
    text-decoration: none;
}

.azhar-course-body h3 a:hover {
    color: #CAA539;
}

.azhar-course-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.azhar-course-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(202, 165, 57, 0.4);
}

.azhar-course-meta p {
    margin: 0;
    font-size: 0.9rem;
    color: #2f2f2f;
}

.azhar-course-meta span {
    display: inline-block;
    font-size: 0.85rem;
    color: #6b6b6b;
}

body.dark-mode .teacher-profile {
    background: linear-gradient(135deg, #13241a 0%, #1a2f22 55%, #1c2a20 100%);
}

body.dark-mode .teacher-profile-card {
    background: #13241a;
    border-color: rgba(216, 180, 84, 0.2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .teacher-profile-name {
    color: #f2d37a;
}

body.dark-mode .teacher-profile-lead {
    color: #cfd8ce;
}

body.dark-mode .teacher-info-card {
    background: rgba(15, 155, 15, 0.1);
    border-color: rgba(216, 180, 84, 0.2);
}

body.dark-mode .teacher-info-card h5 {
    color: #f2d37a;
}

body.dark-mode .teacher-info-list span {
    background: rgba(19, 36, 26, 0.9);
    color: #e6efe4;
    border-color: rgba(216, 180, 84, 0.3);
}

body.dark-mode .teacher-socials a {
    background: rgba(216, 180, 84, 0.18);
    color: #f2d37a;
}

body.dark-mode .teacher-courses {
    background: #0f1e16;
}

body.dark-mode .teacher-courses-header h2 {
    color: #f2d37a;
}

body.dark-mode .teacher-courses-header p {
    color: #cfd8ce;
}

body.dark-mode .azhar-course-card {
    background: #13241a;
    border-color: rgba(216, 180, 84, 0.2);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

body.dark-mode .azhar-course-body h3 a {
    color: #f2d37a;
}

body.dark-mode .azhar-course-meta p,
body.dark-mode .azhar-course-meta span {
    color: #d4ded2;
}

/* Subject Page */
.subject-profile {
    padding: 90px 0 40px;
    background: linear-gradient(135deg, #f6fbf4 0%, #f0f6ee 45%, #fdf7ea 100%);
}

.subject-profile-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    background: #ffffff;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(13, 28, 18, 0.12);
    border: 1px solid rgba(7, 93, 5, 0.08);
}

.subject-profile-media {
    position: relative;
    background: linear-gradient(160deg, rgba(7, 93, 5, 0.12), rgba(202, 165, 57, 0.22));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.subject-profile-media img {
    width: 100%;
    max-width: 280px;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(13, 28, 18, 0.18);
}

.subject-profile-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(7, 93, 5, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.subject-profile-body {
    padding: 30px 34px 34px;
}

.subject-profile-name {
    color: #075D05;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.subject-profile-lead {
    color: #3a3a3a;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.subject-profile-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.subject-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(7, 93, 5, 0.04);
    border: 1px solid rgba(7, 93, 5, 0.08);
    border-radius: 16px;
    padding: 14px;
}

.subject-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(202, 165, 57, 0.2);
    color: #075D05;
    font-size: 1.1rem;
}

.subject-stat strong {
    display: block;
    font-size: 1.2rem;
    color: #075D05;
}

.subject-stat span {
    color: #4a4a4a;
    font-size: 0.9rem;
}

.subject-courses {
    padding: 60px 0 100px;
    background: #ffffff;
}

.subject-courses-header {
    text-align: center;
    margin-bottom: 40px;
}

.subject-courses-header h2 {
    color: #075D05;
    font-weight: 800;
    margin-bottom: 10px;
}

.subject-courses-header p {
    color: #4a4a4a;
}

body.dark-mode .subject-profile {
    background: linear-gradient(135deg, #13241a 0%, #1a2f22 55%, #1c2a20 100%);
}

body.dark-mode .subject-profile-card {
    background: #13241a;
    border-color: rgba(216, 180, 84, 0.2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .subject-profile-name {
    color: #f2d37a;
}

body.dark-mode .subject-profile-lead {
    color: #cfd8ce;
}

body.dark-mode .subject-stat {
    background: rgba(15, 155, 15, 0.1);
    border-color: rgba(216, 180, 84, 0.2);
}

body.dark-mode .subject-stat strong {
    color: #f2d37a;
}

body.dark-mode .subject-stat span {
    color: #d4ded2;
}

body.dark-mode .subject-courses {
    background: #0f1e16;
}

body.dark-mode .subject-courses-header h2 {
    color: #f2d37a;
}

body.dark-mode .subject-courses-header p {
    color: #cfd8ce;
}

@media (max-width: 991px) {
    .subject-profile-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .teacher-profile-card {
        grid-template-columns: 1fr;
    }

    .teacher-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .teacher-profile-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Azhar One Teachers */
.azhar-teachers {
    background: linear-gradient(135deg, #f4faf3 0%, #f0f6ee 45%, #fdf7ea 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.azhar-teachers::before,
.azhar-teachers::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.25;
    z-index: 0;
}

.azhar-teachers::before {
    width: 280px;
    height: 280px;
    top: -80px;
    right: -90px;
    background: radial-gradient(circle, rgba(7, 93, 5, 0.35), transparent 70%);
}

.azhar-teachers::after {
    width: 320px;
    height: 320px;
    bottom: -110px;
    left: -110px;
    background: radial-gradient(circle, rgba(202, 165, 57, 0.35), transparent 70%);
}

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

.azhar-teachers-header {
    margin-bottom: 44px;
}

.azhar-teachers-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #075D05, #CAA539, #0a7a0a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 9s ease-in-out infinite;
}

.azhar-teachers-lead {
    color: #3b3b3b;
    font-size: 1.1rem;
    max-width: 780px;
    margin: 0 auto;
}

.azhar-teachers-carousel .item {
    padding: 12px;
}


.azhar-teacher-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(13, 28, 18, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid rgba(7, 93, 5, 0.08);
    height: 100%;
}

.azhar-teacher-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 22px 48px rgba(13, 28, 18, 0.2);
}

.azhar-teacher-media {
    position: relative;
    overflow: hidden;
}

.azhar-teacher-media img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.azhar-teacher-card:hover .azhar-teacher-media img {
    transform: scale(1.08);
    filter: saturate(120%);
}

.azhar-teacher-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(7, 93, 5, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 20px rgba(7, 93, 5, 0.25);
}

.azhar-teacher-body {
    padding: 22px 22px 26px;
}

.azhar-teacher-name {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #075D05;
    margin-bottom: 10px;
    text-decoration: none;
}

.azhar-teacher-name:hover {
    color: #CAA539;
}

.azhar-teacher-subjects {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2f2f2f;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.azhar-teacher-subjects i {
    color: #CAA539;
    font-size: 1.05rem;
}

.azhar-teacher-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.azhar-teacher-link {
    background: linear-gradient(120deg, #075D05, #CAA539, #0a7a0a);
    background-size: 200% 200%;
    color: #fff;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: gradientShift 10s ease-in-out infinite;
}

.azhar-teacher-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(7, 93, 5, 0.25);
}

.azhar-teacher-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.azhar-teacher-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 93, 5, 0.08);
    color: #075D05;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.azhar-teacher-social a:hover {
    transform: translateY(-2px);
    background: #CAA539;
    color: #1b1b1b;
}

body.dark-mode .azhar-teachers {
    background: linear-gradient(135deg, #13241a 0%, #1a2f22 55%, #1c2a20 100%);
}

body.dark-mode .azhar-teachers::before {
    background: radial-gradient(circle, rgba(15, 155, 15, 0.3), transparent 70%);
}

body.dark-mode .azhar-teachers::after {
    background: radial-gradient(circle, rgba(216, 180, 84, 0.28), transparent 70%);
}

body.dark-mode .azhar-teachers-lead {
    color: #c9d3c8;
}

body.dark-mode .azhar-teacher-card {
    background: #13241a;
    border-color: rgba(216, 180, 84, 0.2);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

body.dark-mode .azhar-teacher-name {
    color: #f2d37a;
}

body.dark-mode .azhar-teacher-subjects {
    color: #d6dfd4;
}

body.dark-mode .azhar-teacher-subjects i {
    color: #f2d37a;
}

body.dark-mode .azhar-teacher-link {
    color: #1b1b1b;
    background: linear-gradient(120deg, #d8b454, #f2d37a, #0f9b0f);
}

body.dark-mode .azhar-teacher-social a {
    background: rgba(216, 180, 84, 0.18);
    color: #f2d37a;
}

/* Course Chapters */
.course-chapters {
    padding: 60px 0 100px;
    background: #ffffff;
}

.course-chapters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.course-chapters-header h2 {
    color: #075D05;
    font-weight: 800;
    margin-bottom: 8px;
}

.course-chapters-header p {
    color: #4a4a4a;
    margin-bottom: 0;
}

.course-chapters-cta .alert {
    margin: 0;
}

.course-chapters-accordion {
    display: grid;
    gap: 16px;
}

.course-chapter-item {
    border-radius: 18px;
    border: 1px solid rgba(7, 93, 5, 0.1);
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(13, 28, 18, 0.08);
    background: #ffffff;
}

.course-chapter-toggle {
    width: 100%;
    text-align: right;
    background: transparent;
    border: none;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #075D05;
    font-weight: 700;
}

.course-chapter-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
}

.course-chapter-meta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #5a5a5a;
    font-size: 0.85rem;
}

.course-chapter-arrow {
    color: #CAA539;
}

.course-chapter-body {
    padding: 18px 20px 22px;
    border-top: 1px solid rgba(7, 93, 5, 0.08);
    background: rgba(7, 93, 5, 0.02);
}

.course-chapter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.course-chapter-link {
    color: #075D05;
    text-decoration: none;
    font-weight: 600;
}

.course-chapter-link:hover {
    color: #CAA539;
}

.course-chapter-status {
    padding: 6px 12px;
    border-radius: 14px;
    background: rgba(7, 93, 5, 0.12);
    color: #075D05;
    font-size: 0.85rem;
    font-weight: 600;
}

.course-lectures {
    display: grid;
    gap: 10px;
}

.course-lecture-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(202, 165, 57, 0.2);
    text-decoration: none;
    color: #2f2f2f;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-lecture-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(13, 28, 18, 0.12);
}

.course-lecture-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.course-lecture-info i {
    color: #075D05;
}

.course-lecture-price {
    color: #CAA539;
    font-weight: 700;
    font-size: 0.85rem;
}

.course-lecture-empty {
    margin: 0;
    color: #6b6b6b;
}

.course-empty {
    color: #2f2f2f;
    margin: 0;
}

body.dark-mode .course-chapters {
    background: #0f1e16;
}

body.dark-mode .course-chapters-header h2 {
    color: #f2d37a;
}

body.dark-mode .course-chapters-header p {
    color: #cfd8ce;
}

body.dark-mode .course-chapter-item {
    background: #13241a;
    border-color: rgba(216, 180, 84, 0.2);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

body.dark-mode .course-chapter-toggle {
    color: #f2d37a;
}

body.dark-mode .course-chapter-meta {
    color: #cfd8ce;
}

body.dark-mode .course-chapter-body {
    background: rgba(15, 155, 15, 0.08);
}

body.dark-mode .course-chapter-link {
    color: #f2d37a;
}

body.dark-mode .course-chapter-status {
    background: rgba(216, 180, 84, 0.18);
    color: #f2d37a;
}

body.dark-mode .course-lecture-item {
    background: #13241a;
    border-color: rgba(216, 180, 84, 0.2);
    color: #d4ded2;
}

body.dark-mode .course-lecture-info i {
    color: #f2d37a;
}

body.dark-mode .course-lecture-price {
    color: #f2d37a;
}
