@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&display=swap');
/***** 
    font-family:'thuluth-decorated';
    font-family:'cairo-bold';
*****/
/** Global Style **/
* 
{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'cairo-bold';
    outline: none;
}
:root {
    --general-text: #232323;
    --section-color: #fffe;
    --popup-color: #fff;
    --sharp-text: #111;
    --select-color: #38d1ff;
}
::selection {
    color: #fff;
    background: var(--select-color);
}
::-webkit-scrollbar {
    width: 0;
}

body {
    direction: rtl;
    scroll-behavior: smooth;
    background: url('images/pattern.svg');
    background-color: var(--popup-color);
}

ul,li 
{
    list-style: none;
}

.container {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0 10px;
}

 .main .container .overlay {
/*     background: linear-gradient(#0009, #38d1ff90, #0009);
 */
    height: 100%;
    width: 100%;
    position: absolute;
    right: 0;
} 

section {
    padding: 70px 0;
    background: var(--section-color);
}

section h3 {
    font-size: 30px;
    text-align: center;
    color: #4682B4;
    margin-bottom: 50px;
    position: relative;
}

section h3::after,
section h3::before {
    content: "";
    position: absolute;
    background-color: #4682B4;
    height: 2px;
    left: 50%;
    transform: translateX(-50%);
}

section h3::after {
    width: 50px;
    bottom: -10px;
}

section h3::before {
    width: 100px;
    bottom: 0px;
}

/*** Header  ***/
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    transition: .3s all ease-in-out;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    color: #fff;
    transition: .3s all ease-in-out;
}

.header.active {
    background-color: rgba(0, 0, 0, .6);
    backdrop-filter: blur(30px);
}

.header.active .container {
    height: 80px;
}

.header ul {
    display: flex;
    align-items: center;
}

.header ul li {
    position: relative;
    cursor: pointer;
    margin: 0 15px;
}

.header ul li::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    background-color: #fff;
    height: 2px;
    width: 0;
    transition: width 0.3s ease;
}

.header ul li:hover::after {
    width: 100%;
}
.header ul li:first-child:hover::after { width: 0; }
.header ul li:first-child { margin: 15px 30px; }



/*.header ul li 
{
    position: relative;
    cursor: pointer;
}
.header ul li::after
{
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    background-color: #fff;
    height: 2px;
    transition: .3s all ease-in-out;
    width: 0;
}
.header li.active::after,
.header li:hover::after
{
    width: 100%;
}*/
.header .bars {
    display: none;
    cursor: pointer;
}

.header li:not(:first-of-type),
.header li:not(:last-of-type) {
    margin: 0 15px;
}

.header .logo {
    font-family: 'thuluth-decorated';
    /*font-family:'cairo-bold';*/
    font-size: 55px;
    cursor: pointer;
}
/* Theme Switch Section */
.theme-mode{
    visibility: hidden;
}
.theme-toggle{
    position: absolute;
    width: 60px;
    height: 29px;
    background: lightgray;
    border-radius: 20px;
    cursor: pointer;
    transform: translate(50%);
}
.theme-toggle-circle{
    width: 34px;
    background-color: white;
    height: 34px;
    border-radius: 50%;
    position: absolute;
    top: -3px;
    left: 0;
    animation: toggleOff .4s ease forwards;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='%23ffffff'%3E%3Crect y='11' width='3' height='2'%3E%3C/rect%3E %3Crect x='3.575' y='3.075' transform='matrix(0.7071 -0.7071 0.7071 0.7071 -1.8951 4.5752)' width='2' height='3'%3E%3C/rect%3E %3Crect x='11' width='2' height='3'%3E%3C/rect%3E %3Crect x='17.925' y='3.575' transform='matrix(0.7071 -0.7071 0.7071 0.7071 2.4542 15.0755)' width='3' height='2'%3E%3C/rect%3E %3Crect x='21' y='11' width='3' height='2'%3E%3C/rect%3E %3Crect x='18.425' y='17.925' transform='matrix(0.7071 -0.7071 0.7071 0.7071 -8.046 19.4248)' width='2' height='3'%3E%3C/rect%3E %3Crect x='11' y='21' width='2' height='3'%3E%3C/rect%3E %3Crect x='3.075' y='18.425' transform='matrix(0.7071 -0.7071 0.7071 0.7071 -12.3954 8.9245)' width='3' height='2'%3E%3C/rect%3E %3Ccircle fill='%23ffffff' cx='12' cy='12' r='7'%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='%230d75cb'%3E%3Crect y='11' width='3' height='2'%3E%3C/rect%3E %3Crect x='3.575' y='3.075' transform='matrix(0.7071 -0.7071 0.7071 0.7071 -1.8951 4.5752)' width='2' height='3'%3E%3C/rect%3E %3Crect x='11' width='2' height='3'%3E%3C/rect%3E %3Crect x='17.925' y='3.575' transform='matrix(0.7071 -0.7071 0.7071 0.7071 2.4542 15.0755)' width='3' height='2'%3E%3C/rect%3E %3Crect x='21' y='11' width='3' height='2'%3E%3C/rect%3E %3Crect x='18.425' y='17.925' transform='matrix(0.7071 -0.7071 0.7071 0.7071 -8.046 19.4248)' width='2' height='3'%3E%3C/rect%3E %3Crect x='11' y='21' width='2' height='3'%3E%3C/rect%3E %3Crect x='3.075' y='18.425' transform='matrix(0.7071 -0.7071 0.7071 0.7071 -12.3954 8.9245)' width='3' height='2'%3E%3C/rect%3E %3Ccircle fill='%230d75cb' cx='12' cy='12' r='7'%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");
		background-origin: center center;
		background-position: center center;
		background-size: 25px;
		background-repeat: no-repeat;
}
.theme-mode:checked + .theme-toggle{
    background-color: lightgray;
    
}
.theme-mode:checked + label .theme-toggle-circle{
    animation: toggleOn .4s ease forwards;
    background-color: black;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='%23ffffff'%3E%3Cpath fill='%23ffffff' d='M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
				background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='%23ffffff'%3E%3Cpath fill='%23ffffff' d='M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
}
@keyframes toggleOn {
    0%{
        transform: translate(0) rotate(360deg);
    }
    100%{
        transform: translate(29px) rotate(0);
    }
}

@keyframes toggleOff {
    0% {
        transform: translate(29px) rotate(0);
    }
    100% {
        transform: translate(0) rotate(360deg);
    }
}
/*** Main section ***/
.main {
    background: url(./images/5.jpg) center center/cover no-repeat;
    padding: 0;
}

.main .container {
    min-height: 100vh;
}

.main .title {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
}

.main .title h2 {
    line-height: 1.9;
    font-size: 40px;
    margin-bottom: 30px;
}

.title .btn {
    border: 2px solid #fff;
    background: transparent;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 400;
    color: inherit;
    display: flex;
    align-items: center;
    position: relative;
    transition: .3s all ease-in-out;
    padding: 5px 15px;
    cursor: pointer;
    overflow: hidden;
}

.title .btn i {
    font-size: 25px;
    margin-right: 20px;
}

.title .btn::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 100%;
    transition: .3s all ease-in-out;
    background-color: #fff;
    z-index: -1;
    border-radius: 50px;
}

.title .btn:hover {
    color: #232323;
}

.title .btn:hover::after {
    width: 100%;
}

/*** Hadith section ***/
.hadithContainer {
    min-height: 350px;
    position: relative;
    box-shadow: 4px 4px 4px 0 #d1d9e6 inset,
        -4px -4px 4px 0px #d1d9e6 inset;
    color: var(--general-text);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    padding-top: 70px;
    background: #fff4;
}

.hadith .buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.hadith .buttons div {
    background: linear-gradient(60deg, #6495ED, #4682B4);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .14)inset, 0 7px 10px -5px rgba(70, 130, 180);
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
}

.hadith .buttons .number {
    padding: 10px 20px;
    color: #4682B4;
    background: var(--section-color);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .14), 0 7px 10px -5px rgba(70, 130, 180);
}

/*** Lectures section ***/
.lectures-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.lectures-container .right,
.lectures-container .left {
    width: 48%;
}

/** right **/
.lectures-container .right .lec-link {
    text-decoration: none;
    color: inherit;
}

.lectures-container .right .lec {
    display: flex;
    align-items: center;
    min-height: 200px;
    margin-bottom: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, .4);
    padding: 29px;
    transition: .5s all ease-in-out;
    cursor: pointer;
    background: #fff2;
    color: var(--general-text);
}

.lectures-container .right .lec:hover {
    transform: scale(.95);
}

.lec .lec-text {
    width: calc(100% - 150px);
}

.lec .img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: auto;
}

.lec-text h4 {
    font-size: 19px;
}

.lec-text p {
    font-size: 16px;
}

/** left **/
.lectures-container .left .lec-link {
    text-decoration: none;
    color: inherit;
}

.lectures-container .left .lec {
    display: flex;
    align-items: center;
    min-height: 200px;
    margin-bottom: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, .4);
    padding: 29px;
    transition: .5s all ease-in-out;
    cursor: pointer;
    background: #fff2;
    color: var(--general-text);
}

.lectures-container .left .lec:hover {
    transform: scale(.95);
}

.lec .lec-text {
    width: calc(100% - 150px);
}

.lec .img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: auto;
}

.lec-text h4 {
    font-size: 19px;
}

.lec-text p {
    font-size: 16px;
}

/*** quran section ***/
.surahContainer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    font-family: 'Amiri', serif; 
    gap: 10px;
}

.surahContainer .surah {
    min-height: 100px;
    width: calc(100% / 6 - 25px);
    min-width: 165px;
    box-shadow: 0 0 5px rgba(0, 0, 0, .4);
    /* margin-bottom: 8px; */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: .5s ease-in-out;
    color: var(--general-text);
    font-size: 24px;
    font-family: 'Amiri', serif; 
    background: #fff2;
}

.surahContainer .surah:hover {
    transform: scale(1.05);
}

.surahContainer .surah.hidden {
    visibility: hidden;
    height: 0;
    width: 0;
    margin: 0;
    padding: 0;
}


.surahContainer .surah p {
    font-family: 'Amiri', serif; /* تطبيق الخط الجديد للنصوص داخل العناصر */
}

.surahContainer .surah .surah-name {
    font-weight: bold; /* تطبيق الخط العريض لاسم السور */
}
/* pray time */

.region-card{
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: auto;
    width: 400px;
}

.region-card select {
    padding: 0.5rem 1rem ;
    cursor: pointer;
    border-radius: 6px;
    border: none;
    outline: none;
    background-color: #238fe8;
    color: #fff;

}

.pray .cards {
    display: flex;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
}
.cards .card {
    display: flex;
    flex-wrap: wrap;
    min-width: 250px;
    min-height: 320px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 5px;
    padding: 30px 20px;
    margin: 20px;
    width: calc(100% / 3 - 40px);
    justify-content: center;
    background: #fff2;
}
.card .circle
{
    position: relative;
    /* display: flex;
    align-items: center;
    justify-content: center; */
}
.circle svg
{
    width: 210px;
    height: 210px;
}
.circle svg circle
{
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 10;
    stroke: #0d75cb;
    transform: translate(5px,5px);
    stroke-dasharray: 2;
    stroke-dashoffset: 1000;
    animation: dash 2s linear infinite;
}
@keyframes dash {
    to {
    stroke-dashoffset: 0;
}
}
.circle .praytime
{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    color: #0d75cb;
    font-size: 50px;
    font-family: cursive;
}
.circle .praytime sub{
    font-size: 20px;
    font-family: cursive;
    color: #88c5f7;
}
.card p
{
    color: #0d75cb;
    font-size: 40px;
    margin-top: 15%;
    text-align: center;
    font-family: "Amiri", serif;
    font-weight: 400;
    font-style: normal;
}
/* footer */
.footer 
{
    padding: 0;
}
.footer svg
{
    fill: #0d75cb;
    transform: translateY(10px);
}
.footer .social
{
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0d75cb;
}
.footer .social a
{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px;
    font-size: 35px;
    color: var(--popup-color);
    border-radius: 50%;
    width: 44px!important;
    height: 44px;
    padding: 3px;
    text-decoration: none;
    transition: .3s;
}
.footer .social a:hover {
    transform: scale(1.3);
    rotate: -5deg;
    background: #fff;
}
.footer .social a:first-child:hover { color: #4267B2; }
.footer .social a:nth-child(2):hover { color: #C13584; }
.footer .social a:nth-child(3):hover { color: #0077B5; }
.footer .social a:nth-child(4):hover { color: #1DA1F2; }
.footer .social a:last-child:hover { color: #24A1DE; }
/*** pop up ***/
.surah-popup {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background-color: #fff;
    overflow-y: scroll;
    transform: translateX(100%);
}

.surah-popup.active {
    transform: translateX(0);
    transform: .7s transform ease-in-out;
    display: block;
    background: var(--popup-color);
}

.surah-popup::-webkit-scrollbar {
    width: 10px;
    background-color: var(--popup-color);
}

.surah-popup::-webkit-scrollbar-thumb {
    background-color: #0d75cb;
}

.close-popup {
    position: sticky;
    top: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    box-shadow: 0 0 4px #0d75cb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    color: #0d75cb;
    cursor: pointer;
}

.surah-popup .ayat {
    padding: 20px;
    width: calc(100% - 40px);
    margin-top: 20px;
    margin-right: 40px;
    color: var(--general-text);
    text-align: center;
}

.surah-popup .ayat p {
    line-height: 2;
    width: 100%;
    border-bottom: 2px solid #4682B4;
    margin-bottom: 10px;
    font-size: 22px;
    font-family: 'Scheherazade', serif;
}
.hidden {
    visibility: hidden;
    height: 0;
    width: 0;
    margin: 0;
    padding: 0;
}
.basmala {
    font-family: 'Amiri', serif;
    font-size: 24px;
    font-weight: bold;
    color: var(--sharp-text); 
    text-align: center; 
    margin-top: 20px;
    margin-bottom: 20px;
}
.ScrollBtn
{
    position: fixed;
    bottom: 0;
    right: 20px;
    color: var(--popup-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0d75cb;
    border-radius: 50%;
    font-size: 25px;
    transition: 1s bottom ease-in-out;
    bottom: -50px;
    cursor: pointer;
}
.ScrollBtn.active
{
    bottom: 20px;
}
@media (max-width : 1024px)
{
    .lectures-container .right, .lectures-container .left
    {
        width: 98%;
    }
    .header .bars
    {
        display: block;
        font-size: 25px;
    }
    .header ul 
    {
        position: absolute;
        left: 0;
        top: 80px;
        width: 220px;
        background-color: rgba(0, 0, 0, .6);
        flex-direction: column;
        padding: 0 50px;
        text-align: center;
        transform: translateX(-100%);
        transition: .7s transform ease-in-out;
    }
    .header ul.active
    {
        transform: translateX(0);
    }

    .header li:not(:first-of-type),
    .header li:not(:last-of-type)
    {
        margin: 15px 0;
    }
}


@media (max-width:450px){
    .region-card{
        width: 90%;
    }
}