/*
	Theme Name: EQuran School
	Theme URI: https://facebook.com/mohsen.elgamasy/
	Description: Fully Build from Scratch for EQuran School
	Author: Dr Mohsen
	Author URI: https://facebook.com/mohsen.elgamasy/
	Version: 1.0
	Text Domain: quran-school
*/

/********** Template CSS **********/
:root {
    --primary: #0777BF;
    --secondary: #525368;
    --light: #e8eef5;
    --dark: #0F4229;
}

body {
	background-color: #f6faff;
}


/* Custom animation */
@keyframes pulseGlow {
    0% {
        transform: scale(1);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 15px rgba(255, 107, 107, 0.7), 0 0 25px rgba(78, 205, 196, 0.5);
    }
    100% {
        transform: scale(1);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
}

/* Apply animation */
.unique-text {
    animation: pulseGlow 2s ease-in-out infinite; /* Continuous pulse effect */
}

/* Hover effect */
.unique-text:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.8); /* Glow effect */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .unique-text {
        font-size: 1.8rem; /* Smaller font for mobile */
    }
}

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

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

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** Spinner ***/
#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;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

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

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

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

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

/* ========================================================================
   Bootstrap 5 Split Navwalker - Final CSS
   Based on actual HTML output
   ======================================================================== */

/* ========================================================================
   SPLIT BUTTON STYLING
   ======================================================================== */

.dropdown-toggle-split,
.dropdown-toggle-split-nested {
    padding: 0;
    margin-left: 5px;
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.15s ease;
}

.dropdown-toggle-split:hover,
.dropdown-toggle-split-nested:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

.dropdown-toggle-split:focus,
.dropdown-toggle-split-nested:focus {
    outline: 2px solid #0d6efd;
    outline-offset: -2px;
}

/* Dark navbar variant */
.navbar-dark .dropdown-toggle-split,
.navbar-dark .dropdown-toggle-split-nested {
    color: rgba(255, 255, 255, 0.55);
    border-left-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .dropdown-toggle-split:hover,
.navbar-dark .dropdown-toggle-split-nested:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
}

/* ========================================================================
   DESKTOP STYLES (≥992px)
   ======================================================================== */

@media (min-width: 992px) {
    .navbar-nav .nav-item {
        margin-right: 35px;
		padding: 25px 0;
		color: var(--dark);
		font-size: 18px;
		font-weight: 500;
		outline: none;
		}
	.navbar-nav .nav-link {
		padding: 0 !important;
	}
	.navbar-nav .nav-link:hover,
	.navbar-nav .nav-link.active {
		color: var(--primary);
	}
    /* Top-level items with dropdown */
    .navbar-nav .nav-item.dropdown {
        display: flex;
        align-items: stretch;
        position: relative;
    }
    
    /* Nested items with dropdown - also use flexbox for split button */
    .dropdown-menu .dropdown-submenu-item.dropdown {
        display: flex;
        align-items: stretch;
    }
    
    /* Dropdown menu - hidden by default */
    .navbar-nav .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        display: none;
        min-width: 250px;
        padding: 0.5rem 0;
        margin: 0;
        background-color: #fff;
        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 0.375rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
    }
    
    /* Show top-level dropdown when has .show class */
    .navbar-nav .nav-item.dropdown.show > .dropdown-menu {
        display: block;
    }
    
    /* Dropdown items */
    .dropdown-menu .dropdown-item {
        display: block;
        width: 100%;
        padding: 0.5rem 1.5rem;
        color: #212529;
        text-decoration: none;
        background-color: transparent;
        border: 0;
        cursor: pointer;
        transition: background-color 0.15s ease;
    }
    
    .dropdown-menu .dropdown-item:hover {
        background-color: #e9ecef;
        color: #1e2125;
    }
    
    /* Nested submenu items */
    .dropdown-menu .dropdown-submenu-item {
        position: relative;
    }
    
    /* Nested submenu - hidden by default */
    .dropdown-menu .dropdown-submenu-item.dropdown > .dropdown-menu {
        position: absolute;
        top: 0;
        left: 100%;
        margin-left: 0.125rem;
        margin-top: -0.5rem;
        display: none;
    }
    
    /* Show nested submenu on hover */
    .dropdown-menu .dropdown-submenu-item.dropdown:hover > .dropdown-menu {
        display: block;
    }
    
    /* Show nested submenu when has .show class */
    .dropdown-menu .dropdown-submenu-item.dropdown.show > .dropdown-menu {
        display: block;
    }
    
    /* Arrow for nested items with submenus */
    .dropdown-submenu-item.dropdown .dropdown-arrow {
        float: right;
        margin-left: 1rem;
        opacity: 0.6;
        transition: opacity 0.15s ease;
    }
    
    .dropdown-submenu-item.dropdown:hover .dropdown-arrow {
        opacity: 1;
    }
    
    /* Custom scrollbar */
    .navbar-nav > .nav-item.dropdown > .dropdown-menu::-webkit-scrollbar {
        width: 6px;
    }
    
    .navbar-nav > .nav-item.dropdown > .dropdown-menu::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .navbar-nav > .nav-item.dropdown > .dropdown-menu::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }
    
    .navbar-nav > .nav-item.dropdown > .dropdown-menu::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
    
    /* No scroll restrictions on nested menus */
    .dropdown-submenu-item.dropdown > .dropdown-menu {
        max-height: none;
        overflow: visible;
    }
	.dropdown-toggle-split-nested {
		display: none;
	}
}

/* ========================================================================
   MOBILE STYLES (<992px)
   ======================================================================== */

@media (max-width: 991.98px) {
    .navbar-collapse {
		flex-basis: 100%;
		flex-grow: 1;
		align-items: center;
		max-width: 100%;
		overflow-y: scroll;
		max-height: 100vh;
	}
	
    /* Show split buttons on mobile */
    .dropdown-toggle-split,
    .dropdown-toggle-split-nested {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 0.75rem;
        border: none;
        background: transparent;
        margin-left: auto;
    }
    
    /* Add arrow indicator to nav-link */
    .nav-item.dropdown > .nav-link::after {
        content: none;
    }
    
    /* Rotate arrow when open */
    .nav-item.dropdown.show > .nav-link::after {
        transform: rotate(180deg);
    }
    
    /* Stack dropdowns vertically */
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin: 0;
        padding: 0;
        background-color: transparent;
        border: none;
        box-shadow: none;
        display: none;
    }
    
    /* Show dropdown when has .show class */
    .navbar-nav .dropdown-menu.show {
        display: block;
    }
    
    /* Dropdown items - indented */
    .navbar-nav .dropdown-menu .dropdown-item {
		font-size: 14px;
        padding: 0.5rem 1rem;
        padding-left: 2rem;
        color: #212529;
        background-color: transparent;
        text-decoration: none;
        display: block;
        transition: background-color 0.15s ease;
		width: auto;
		max-width: 85%;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item:hover {
        background-color: #e9ecef;
    }
    
    /* Nested items with submenus - add arrow */
    .dropdown-submenu-item.dropdown > .dropdown-item::after {
        content: none;
    }
    
    /* Rotate arrow when nested submenu is open */
    .dropdown-submenu-item.dropdown.show > .dropdown-item::after {
        transform: rotate(180deg);
    }
    
    /* Hide desktop arrow on mobile */
    .dropdown-item .dropdown-arrow {
        display: none !important;
    }
    
    /* Further indent for nested items */
    .dropdown-submenu-item .dropdown-menu .dropdown-item {
        padding-left: 3rem;
    }
    
    /* Third level */
    .dropdown-submenu-item .dropdown-submenu-item .dropdown-menu .dropdown-item {
        padding-left: 4rem;
    }
    
    /* Fourth level */
    .dropdown-submenu-item .dropdown-submenu-item .dropdown-submenu-item .dropdown-menu .dropdown-item {
        padding-left: 5rem;
    }
	
	.navbar-nav > .nav-item.dropdown, .navbar-nav .dropdown-submenu-item.dropdown {
		display: flex;
		flex-wrap: wrap;
	}
	
	
}

/* ========================================================================
   ACTIVE & CURRENT STATES
   ======================================================================== */

.navbar-nav .nav-item.active > .nav-link,
.navbar-nav .current-menu-item > .nav-link {
    color: #0d6efd;
    font-weight: 500;
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .current-menu-item > .dropdown-item {
    color: #fff;
    background-color: #0d6efd;
}

/* ========================================================================
   ACCESSIBILITY
   ======================================================================== */

.nav-link:focus,
.dropdown-item:focus,
.dropdown-toggle-split:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Remove outline when not using keyboard */
.nav-link:focus:not(:focus-visible),
.dropdown-item:focus:not(:focus-visible),
.dropdown-toggle-split:focus:not(:focus-visible) {
    outline: none;
}

/* ========================================================================
   UTILITIES
   ======================================================================== */

/* Cursor */
.dropdown-item {
    cursor: pointer;
	white-space: unset;
}

/* Prevent flash during collapse */
.navbar-collapse.collapsing .dropdown-menu {
    display: none !important;
}

/* WordPress admin bar compatibility */
@media screen and (min-width: 783px) {
    .admin-bar .navbar.fixed-top {
        top: 32px;
    }
}

@media screen and (max-width: 782px) {
    .admin-bar .navbar.fixed-top {
        top: 46px;
    }
}

/*** Header ***/
img.site-logo {
    width: 100px;
}

@media (max-width: 768px) {
    img.site-logo {
    width: 100px;
}
}

.carousel-item img {
    height: 650px;
    object-fit: cover;
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgb(15 43 66 / 60%);
    z-index: 1;
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgb(0 0 0 / 60%), rgb(15 15 66 / 60%)), url(https://equranschoolonline.com/wp-content/uploads/2023/10/quran-online-classes.jpg.webp) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Top Feature ***/
@media (min-width: 991.98px) {
    .top-feature {
        position: relative;
        margin-top: -80px;
        z-index: 1;
    }
}


/*** Facts & Quote ***/
.facts,
.quote,
.footer-cta {
    background: rgb(15 28 66 / 60%);
	background-blend-mode: multiply;
}


/*** Course ***/
.course-edetails {
	box-shadow: 0 0 45px rgba(0,0,0,.08);
}

.course-pricing {
    background: #d22828;
    border-color: #d22828;
}

.course-pricing:hover {
    background: #a61d1d;
    border-color: #a61d1d;
    color: #fff;
}

.course-testimonials {
    background: #64646a;
    border-color: #64646a;
}

.course-testimonials:hover {
    background: #444444;
    border-color: #444444;
    color: #fff;
}

.service-item {
    position: relative;
    text-align: center;
}

.service-item .service-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.service-item .service-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    transform: scale(1.2);
    transition: .3s;
    z-index: -1;
}

.service-item:hover .service-img img {
    transform: scale(1);
}

.service-item .service-text {
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .3s;
}

.service-item:hover .service-text {
    background: rgb(15 43 66 / 60%);
}

.service-item .service-text h4,
.service-item .service-text p {
    transition: .3;
}

.service-item:hover .service-text h4 {
    color: #FFFFFF;
}

.service-item:hover .service-text p {
    color: var(--light);
}

.service-item .service-text .btn-square {
    width: 100px;
    height: 100px;
    background: transparent;
    transition: .5s;
}

.service-item:hover .service-text .btn-square {
    background: #fff;
    padding: 10px;
}

.service-item .service-text .btn {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    background: var(--light);
    white-space: nowrap;
    overflow: hidden;
    transition: .3s;
}

.service-item:hover .service-text .btn {
    width: 112px;
}

@media (max-width: 767px) {
    .features-section .col-3,
    .how-it-works-section .col-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .features-section .btn-square,
    .how-it-works-section .btn-square {
        width: 60px !important;
        height: 60px !important;
    }

    .features-section .btn-square i,
    .how-it-works-section .btn-square i {
        font-size: 1.8rem !important;
    }

    .features-section h4,
    .how-it-works-section h4 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .features-section p,
    .how-it-works-section p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .features-section .rounded,
    .how-it-works-section .rounded {
        padding: 1.5rem !important;
        box-shadow: 0 0 20px rgba(0,0,0,.05) !important;
    }
}

/* Ensure desktop styles remain consistent */
@media (min-width: 768px) {
    .features-section .col-3,
    .how-it-works-section .col-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/*** Pricing Table ***/
.pricingTable {
    text-align: center;
    background: #fff;
    box-shadow: 0 0 10px #ababab;
    padding-bottom: 40px;
    border-radius: 10px;
    color: #cad0de;
    transform: scale(1);
    transition: all .5s ease 0s;
	position: relative;
	overflow: hidden;
}

.pricingBadge {
    background: #ffac00;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    position: absolute;
    width: 180px;
    padding: 3px;
    left: -44px;
    top: 31px;
    transform: rotate(-45deg);
}

.pricingTable:hover {
    transform: scale(1.05);
    z-index: 1
}

.pricingTable .pricingTable-header {
    padding: 40px 0;
    background: #f5f6f9;
    border-radius: 10px 10px 50% 50%;
    transition: all .5s ease 0s
}

.pricingTable:hover .pricingTable-header {
    background: #0777BF;
}

.pricingTable .pricingTable-header i {
    font-size: 50px;
    color: #858c9a;
    margin-bottom: 10px;
    transition: all .5s ease 0s
}

.pricingTable .price-value {
    font-size: 45px;
    color: #0777BF;
    transition: all .5s ease 0s;
	font-weight: bold;
}

span.days-week {
    background: #0777BF;
    color: #fff;
    padding: 5px 15px;
    border-radius: 25px;
}

.pricingTable .month {
    display: block;
    font-size: 14px;
    color: #000;
}

.pricingTable:hover .month,
.pricingTable:hover .price-value,
.pricingTable:hover .pricingTable-header i {
    color: #fff
}

.pricingTable .heading {
    font-size: 24px;
    color: #ff9624;
    margin-bottom: 20px;
    text-transform: uppercase
}

.pricingTable .pricing-content ul {
    list-style: none;
    padding: 0;
	text-align: left;
}

.pricingTable .pricing-content ul li {
    line-height: 30px;
    color: #282828;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.pricingTable .pricing-content ul li i {
    color: #0777BF;
    margin-right: 8px;
}

.pricingTable .pricingTable-signup a {
    display: inline-block;
    font-size: 15px;
    color: #fff;
    padding: 10px 35px;
    border-radius: 20px;
    background: #0777BF;
    text-transform: uppercase;
    transition: all .3s ease 0s
}

.pricing-content {
    padding: 25px;
}

.pricingTable .pricingTable-signup a:hover {
    box-shadow: 0 0 10px #42b9ff;
}

.pricingTable.blue .heading,
.pricingTable.blue .price-value {
    color: #4b64ff
}

.pricingTable.blue .pricingTable-signup a,
.pricingTable.blue:hover .pricingTable-header {
    background: #4b64ff
}

.pricingTable.blue .pricingTable-signup a:hover {
    box-shadow: 0 0 10px #4b64ff
}

.pricingTable.red .heading,
.pricingTable.red .price-value {
    color: #ff4b4b
}

.pricingTable.red .pricingTable-signup a,
.pricingTable.red:hover .pricingTable-header {
    background: #ff4b4b
}

.pricingTable.red .pricingTable-signup a:hover {
    box-shadow: 0 0 10px #ff4b4b
}

.pricingTable.green .heading,
.pricingTable.green .price-value {
    color: #40c952
}

.pricingTable.green .pricingTable-signup a,
.pricingTable.green:hover .pricingTable-header {
    background: #40c952
}

.pricingTable.green .pricingTable-signup a:hover {
    box-shadow: 0 0 10px #40c952
}

.pricingTable.blue:hover .price-value,
.pricingTable.green:hover .price-value,
.pricingTable.red:hover .price-value {
    color: #fff
}

@media screen and (max-width:990px) {
    .pricingTable {
        margin: 0 0 20px
    }
}


/*** Team ***/
.teacher-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.teacher-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary, #007bff);
}

.teacher-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

/* Optional: adjust spacing on small screens */
@media (max-width: 767px) {
    .teacher-card {
        text-align: center;
    }
    .teacher-card .d-flex {
        flex-direction: column;
        align-items: center;
    }
    .teacher-img {
        margin-bottom: 10px;
    }
}


.teacher-single-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teacher-single-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.teacher-single-img img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid var(--primary, #007bff);
}

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

.teacher-position {
    font-size: 1rem;
    font-weight: 500;
}

.teacher-single-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.teacher-social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
    color: #333;
    transition: all 0.3s ease;
}

.teacher-social a:hover {
    background: var(--primary, #007bff);
    color: #fff;
}



/*** Testimonial ***/

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 4px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Footer ***/
.footer {
	background: #212121 !important;
}

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

.footer-menu li a {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer-menu li a::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer-menu li a:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #1d1d1d;
}

.copyright a {
    color: #FFFFFF;
}

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

.trial-form label {
    width: 100%;
    margin-bottom: 20px;
}

.trial-form label br {
    display: none;
}

.trial-form .wpcf7-list-item {
    margin: 0 1em 0 0 !important;
}

.trial-form .wpcf7-form-control.wpcf7-acceptance {
	padding: 0;
}

.trial-form .wpcf7-submit {
    background: #0777BF;
    color: #fff;
    border: none;
    width: 100%;
    border-radius: 3px;
}

.trial-form .wpcf7-submit:disabled {
    background: gray;
}

.wpcf7 .form-control {
    padding: 1rem 0.75rem;
}


.trial-form .wpcf7-form-control {
    padding: 1rem 0.75rem;
	line-height: 1;
}

nav.rank-math-breadcrumb {
    color: #fff;
}

nav.rank-math-breadcrumb a {
    color: #fff;
}

.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  z-index: 9999;
}

.floating-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  color: white;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  cursor: pointer;
  overflow: hidden;
  animation: bounceIn 0.8s ease-out;
}

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

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

.floating-btn:hover {
  transform: translateX(-8px) scale(1.08);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.floating-btn svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  animation: rotate 3s ease-in-out infinite;
}

.floating-btn:hover svg {
  animation: wobble 0.8s ease-in-out;
}

.btn-text {
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  animation-delay: 0.2s;
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #1fbd5a 0%, #0f7569 100%);
  color: #fff;
}

.appointment-btn {
  background: linear-gradient(135deg, #0777bf, #054975);
  animation-delay: 0.4s;
}

.appointment-btn:hover {
  background: linear-gradient(135deg, #0777bf, #054975);
  color: #fff;
}

/* Floating animation */
@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.floating-btn:not(:hover) {
  animation: bounceIn 0.8s ease-out, floatUpDown 3s ease-in-out infinite 1s;
}

.whatsapp-btn {
  animation-delay: 0.2s, 1.2s;
}

.appointment-btn {
  animation-delay: 0.4s, 1.8s;
}

/* Bounce in animation */
@keyframes bounceIn {
  0% {
    transform: scale(0) translateX(100px);
    opacity: 0;
  }
  50% {
    transform: scale(1.15) translateX(-10px);
  }
  70% {
    transform: scale(0.95) translateX(5px);
  }
  100% {
    transform: scale(1) translateX(0);
    opacity: 1;
  }
}

/* Icon animations */
@keyframes rotate {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

@keyframes wobble {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-15deg) scale(1.1);
  }
  75% {
    transform: rotate(15deg) scale(1.1);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .floating-buttons {
    bottom: 20px;
    right: 15px;
    gap: 12px;
  }
  
  .floating-btn {
    padding: 14px 20px;
    font-size: 14px;
  }
  
  .btn-text {
    display: inline;
  }
}

@media (max-width: 480px) {
  .floating-btn {
    padding: 12px 18px;
    font-size: 13px;
  }
  
  .floating-btn svg {
    width: 22px;
    height: 22px;
  }
}

.blog-img img {
    height: 230px;
    width: 100%;
    object-fit: cover;
}

/* ================= Blog Card ================= */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
    transition: all .4s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,.15);
}

/* Image */
.blog-thumb {
    position: relative;
    display: block;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform .6s ease;
}

.blog-card:hover img {
    transform: scale(1.08);
}

/* Overlay */
.blog-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.55), transparent 60%);
    opacity: 0;
    transition: opacity .4s ease;
}

.blog-card:hover .blog-overlay {
    opacity: 1;
}

/* Content */
.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.blog-title a {
    color: #111;
    text-decoration: none;
}

.blog-title a:hover {
    color: var(--primary);
}

/* Read More */
.read-more {
    margin-top: auto;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more i {
    transition: transform .3s ease;
}

.blog-card:hover .read-more i {
    transform: translateX(5px);
}

/* Mobile */
@media (max-width: 767px) {
    .blog-thumb img {
        height: 220px;
    }
}

/* Category Badge */
.blog-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 30px;
    z-index: 2;
}

/* Meta */
.blog-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta i {
    color: var(--primary);
}

/* ===== Courses Widget ===== */
.sidebar {
	position: sticky;
	top: 100px;
}

.sidebar .courses-widget {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar .course-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sidebar .course-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.sidebar .course-info {
    flex: 1;
}

.sidebar .course-title {
    font-size: 15px;
    margin: 0 0 4px;
}

.sidebar .course-title a {
    color: #111;
    text-decoration: none;
}

.sidebar .view-course {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.sidebar .view-all {
    margin-top: 10px;
    text-align: center;
}

.sidebar .btn-view-all {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

/* ================= Modern Comments ================= */
.comments-area {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.comments-area h3 {
    font-size: 1.75rem;
    margin-bottom: 25px;
    font-weight: 700;
    color: #111;
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
}

.comment-list li:before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 2px;
    height: calc(100% - 15px);
    background: #eee;
    z-index: -1;
}

.comment-list li:last-child:before {
    display: none;
}

/* Comment Avatar */
.comment-list .comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Comment Body */
.comment-body {
    flex: 1;
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 12px;
    position: relative;
}

.comment-body::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -7px;
    border-width: 7px;
    border-style: solid;
    border-color: transparent #f9f9f9 transparent transparent;
}

/* Comment Meta */
.comment-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
}

.comment-meta .comment-author {
    font-weight: 600;
    color: #111;
}

.comment-meta .comment-date {
    margin-left: 10px;
}

/* Reply Link */
.comment-reply-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-top: 8px;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

/* Comment Form */

.comment-respond h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.comment-respond form input,
.comment-respond form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.comment-respond form input:focus,
.comment-respond form textarea:focus {
    border-color: var(--primary);
    outline: none;
}

/* Submit Button */
.comment-respond form input[type="submit"] {
    background: #313131;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
	margin: 0;
}

.comment-respond form input[type="submit"]:hover {
    background: var(--primary);
}

/* Nested Comments */
.children {
    margin-left: 60px;
}

/* Responsive */
@media (max-width: 767px) {
    .comment-list li {
        flex-direction: column;
    }

    .children {
        margin-left: 30px;
    }
}

.quran-mini-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    background: linear-gradient(135deg, #0778bf, #0a8dd8);
    padding: 22px 30px;
    border-radius: 60px;

    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;

    max-width: 900px;
    margin: 40px auto;

    box-shadow: 0 12px 30px rgba(7, 120, 191, 0.35);
}

.mini-cta-text {
    white-space: nowrap;
}

.mini-cta-btn {
    background: #ffffff;
    color: #0778bf;
    padding: 10px 26px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mini-cta-btn:hover {
    background: #f1f1f1;
    color: #055c91;
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 576px) {
    .quran-mini-cta {
        flex-direction: column;
        border-radius: 24px;
        text-align: center;
    }

    .mini-cta-text {
        white-space: normal;
    }
}

.quran-mini-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    background: linear-gradient(135deg, #0778bf, #0a8dd8);
    padding: 22px 30px;
    border-radius: 60px;

    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;

    max-width: 900px;
    margin: 40px auto;

    box-shadow: 0 12px 30px rgba(7, 120, 191, 0.35);
}

.mini-cta-text {
    white-space: nowrap;
}

.mini-cta-btn {
    background: #ffffff;
    color: #0778bf;
    padding: 10px 26px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mini-cta-btn:hover {
    background: #f1f1f1;
    color: #055c91;
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 576px) {
    .quran-mini-cta {
        flex-direction: column;
        border-radius: 24px;
        text-align: center;
    }

    .mini-cta-text {
        white-space: normal;
    }
}


@media (max-width: 768px) {
    
}

/* Section Header */
        .video-reviews-section {
            position: relative;
            padding: 80px 0;
            background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
            overflow: hidden;
        }
        
        .section-decoration {
            position: absolute;
            top: 0;
            right: 0;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, #e6f4fb) 0%, transparent 70%);
            opacity: 0.4;
            pointer-events: none;
        }
        
        .section-header {
            text-align: center;
            margin-bottom: 60px;
            position: relative;
            z-index: 2;
        }
        
        .section-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #0778bf;
            color: #e6f4fb;
            padding: 8px 20px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 16px;
            animation: slideDown 0.6s ease-out;
        }
        
        .section-badge svg {
            width: 18px;
            height: 18px;
        }
        
        .section-title {
            font-size: 48px;
            font-weight: 800;
            color: #1a202c;
            margin-bottom: 16px;
            animation: fadeInUp 0.8s ease-out 0.2s both;
            line-height: 1.2;
        }
        
        .section-subtitle {
            font-size: 20px;
            color: #64748b;
            max-width: 600px;
            margin: 0 auto;
            animation: fadeInUp 0.8s ease-out 0.4s both;
            line-height: 1.6;
        }
        
        
        /* Video Grid */
        .video-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 32px;
            margin-bottom: 48px;
        }
        
        .video-card {
            position: relative;
            background: white;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            animation: fadeInUp 0.8s ease-out both;
        }
        
        .video-card:nth-child(1) { animation-delay: 0.8s; }
        .video-card:nth-child(2) { animation-delay: 1s; }
        .video-card:nth-child(3) { animation-delay: 1.2s; }
        .video-card:nth-child(4) { animation-delay: 1.4s; }
        .video-card:nth-child(5) { animation-delay: 1.6s; }
        .video-card:nth-child(6) { animation-delay: 1.8s; }
        
        .video-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 40px rgba(7, 120, 191, 0.15);
        }
        
        .video-thumbnail {
            position: relative;
            padding-top: 56.25%; /* 16:9 Aspect Ratio */
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            cursor: pointer;
            overflow: hidden;
        }
        
        .video-thumbnail img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }
        
        .video-card:hover .video-thumbnail img {
            transform: scale(1.1);
        }
        
        .play-button-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80px;
            height: 80px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
        }
        
        .video-card:hover .play-button-overlay {
            transform: translate(-50%, -50%) scale(1.1);
            background: white;
        }
        
        .play-button-overlay svg {
            width: 32px;
            height: 32px;
            color: #0778bf;
            margin-left: 4px;
        }
        
        .video-duration {
            position: absolute;
            bottom: 16px;
            right: 16px;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            backdrop-filter: blur(10px);
        }
        
        .video-content {
            padding: 24px;
        }
        
        .student-info {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 16px;
        }
        
        .student-avatar {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #e6f4fb;
        }
        
        .student-details h4 {
            font-size: 18px;
            font-weight: 700;
            color: #1a202c;
            margin-bottom: 4px;
        }
        
        .student-course {
            font-size: 14px;
            color: #64748b;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .student-course svg {
            width: 14px;
            height: 14px;
            color: #0778bf;
        }
        
        .video-quote {
            font-size: 15px;
            color: #1a202c;
            line-height: 1.6;
            margin-bottom: 16px;
            font-style: italic;
            position: relative;
            padding-left: 20px;
        }
        
        .video-quote::before {
            content: '"';
            position: absolute;
            left: 0;
            top: -5px;
            font-size: 32px;
            color: #0778bf;
            opacity: 0.3;
        }
        
        .video-rating {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .stars {
            display: flex;
            gap: 2px;
        }
        
        .stars svg {
            width: 16px;
            height: 16px;
            color: #d4af37;
        }
        
        .rating-text {
            font-size: 13px;
            color: #64748b;
            font-weight: 600;
        }
        
        /* Modal Styles */
        .video-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.3s ease;
        }
        
        .video-modal.active {
            display: flex;
        }
        
        .modal-content {
            position: relative;
            width: 100%;
            max-width: 1000px;
            background: #000;
            border-radius: 16px;
            overflow: hidden;
            animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        
        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 44px;
            height: 44px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            transition: all 0.3s ease;
        }
        
        .modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(90deg);
        }
        
        .modal-close svg {
            width: 24px;
            height: 24px;
        }
        
        .modal-video-wrapper {
            position: relative;
            padding-top: 56.25%;
        }
        
        .modal-video-wrapper iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        
        /* Load More Button */
        .load-more-section {
            text-align: center;
            margin-top: 48px;
        }
        
        .load-more-btn {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            background: #0778bf;
            color: white;
            padding: 16px 40px;
            border-radius: 50px;
            font-size: 16px;
            font-weight: 700;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px rgba(7, 120, 191, 0.3);
        }
        
        .load-more-btn:hover {
            background: #055a8f;
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(7, 120, 191, 0.4);
        }
        
        .load-more-btn svg {
            width: 20px;
            height: 20px;
            transition: transform 0.3s ease;
        }
        
        .load-more-btn:hover svg {
            transform: translateY(3px);
        }
        
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes scaleIn {
            from {
                opacity: 0;
                transform: scale(0.9);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }
        
        /* Responsive */
        @media (max-width: 992px) {
            .video-grid {
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                gap: 24px;
            }
            
            .section-title {
                font-size: 36px;
            }
            
            .stats-bar {
                gap: 32px;
                flex-wrap: wrap;
            }
        }
        
        @media (max-width: 768px) {
            .video-grid {
                grid-template-columns: 1fr;
            }
            
            .section-title {
                font-size: 32px;
            }
            
            .section-subtitle {
                font-size: 16px;
            }
            
            .stats-bar {
                gap: 24px;
            }
            
            .stat-number {
                font-size: 28px;
            }
            
            .play-button-overlay {
                width: 64px;
                height: 64px;
            }
            
            .play-button-overlay svg {
                width: 24px;
                height: 24px;
            }
        }

.carousel-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.carousel-title {
    font-size: 4rem;
    color: #ffffffdb;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: bold;
}

.carousel-subtitle {
    font-weight: 100 !important;
    font-size: 1.5rem;
    color: #ffffffdb;
    display: inline-block;
    margin-bottom: 10px;
}

.carousel-text {
    font-weight: 100 !important;
    font-size: 1rem;
    color: #ffffffdb;
    display: inline-block;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .carousel-title {
        font-size: 3rem;
    }
    .carousel-subtitle {
        font-size: 1.25rem;
    }
    .carousel-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .carousel-title {
        font-size: 2.5rem;
    }
    .carousel-subtitle {
        font-size: 1rem;
    }
    .carousel-text {
        font-size: 0.8rem;
    }
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .carousel-title {
        font-size: 2rem;
    }
    .carousel-subtitle {
        font-size: 0.9rem;
    }
    .carousel-text {
        font-size: 0.7rem;
    }
    .btn-primary {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Ensure image scales properly */
.carousel-item img {
    object-fit: cover;
    height: 100vh;
    width: 100%;
}