@font-face {
    font-family: 'noorehude font';
    src: url('../fonts/noorehuda-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'JameelNastaleeq';
    src: url('../fonts/Jameel Noori Nastaleeq Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'NotoNastaliqUrdu';
    src: url('../fonts/NotoNastaliqUrdu-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


.qtp-tabs {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 20px 0;
}

.quran-types button {
    background-color: var(--n-tabs-title-background-color) !important;
    color: var(--n-tabs-title-color) !important;
    border: none;
}

.quran-types button.active {
    background-color: var(--e-global-color-accent) !important;
    color: #ffffff !important;
    border: none;
}

.qtp-tabs .tab-buttons {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #ccc;
    margin-bottom: 10px;
    padding-left: 0;
    list-style: none;
}

.qtp-tabs .tab-buttons li {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #f1f1f1;
    margin-right: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    transition: background-color 0.3s;
}

.qtp-tabs .tab-buttons li.active {
    background-color: #ffffff;
    border-bottom: 2px solid #ffffff;
    font-weight: bold;
}

.qtp-tabs .tab-buttons li:hover {
    background-color: #e0e0e0;
}

.qtp-tabs .tab-content {
    display: none;
    padding: 15px;
    border: 1px solid #ccc;
    border-top: none;
    background-color: #ffffff;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.qtp-tabs .tab-content.active {
    display: block;
}

.juz-container {
    width: 100%;
    height: auto;
    display: inline-block;
    column-count: 3;
    column-gap: 1em;
    flex-wrap: wrap;
    margin-top: 20px;
}

.juz-box {
    width: 100%;
    display: inline-block;
    margin-block-end: 13px;
    background-color: #f4f5f6;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0px 0px 8px rgb(0 0 0 / 13%);
}

.juz-body a:hover {
    border: 1px solid #4733aa !important;
}

.juz-header {
    text-align: left;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #000000;
}

.single-surah .cky-btn-revisit-wrapper {
    display: none !important;
}

.single-surah .e-contact-buttons__chat-button-container {
    display: none !important;
}

.single-surah .footer-sticky-contact {
    display: none !important;
}

.sura-box {
    height: auto;
    display: flex;
    background-color: #ffffff;
    margin-bottom: 10px;
    padding: 14px 13px 14px 13px;
    border-radius: 5px;
    border: 1px solid #f4f4f4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.2s ease-in-out;
}

.sura-box:hover {
    height: auto;
    border: 1px solid #4733aa;
    background-color: #fcfcfc;
}

.sura-number {
    width: 15%;
    font-size: 17px;
    font-weight: 500;
    color: #000000;
    align-content: space-around;
    background-color: #f4f5f6;
    border-radius: 5px;
    text-align: center;
    margin-right: 10px;
}

.sura-name {
    font-size: 15px;
    font-weight: 500;
    width: 50%;
    padding: 0;
    margin: 0;
    color: #3a3a3a;
}

.sura-name span {
    font-size: 0.75rem;
    padding: 0;
    margin: 0;
}

.space {
    width: 13%;
}

.sura-ayat {
    font-size: 14px;
    font-weight: 1500;
    color: #000000;
    align-self: center;
    width: 22%;
}

.surah-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px auto;
    max-width: 1200px;
}

.surah-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #f4f4f4;
    border-radius: 6px;
    padding: 15px;
    margin: 0px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.2s ease-in-out;
}

.surah-box:hover {
    border: 1px solid #4733aa;
    background-color: #fcfcfc;
}

.surah-number {
    background: #f4f5f6;
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
    width: 45px;
    text-align: center;
    margin-right: 10px;
    flex-shrink: 0;
    color: #000000;
}

.surah-name {
    font-weight: 500;
    font-size: 15px;
    flex-grow: 1;
    color: #3a3a3a;
}

.surah-name span {
    font-size: 0.75rem;
    font-weight: 500;
}

.surah-ayat {
    font-size: 13px;
    font-weight: 500;
    color: #000000;
    margin-left: 10px;
    white-space: nowrap;
}

.surah-nav-btn {
    display: inline-block;
    margin: 10px 5px;
    color: #3f3f3f !important;
    border: 1px solid #3f3f3f;
    cursor: pointer;
    padding: 8px 12px !important;
    font-family: Poppins, sans-serif;
    transition: background-color 0.3s ease;
    text-decoration: none;
    background: none !important;
}

.surah-nav-btn-a {
    display: inline-block;
    color: #3f3f3f !important;
    border: 1px solid #3f3f3f;
    border-radius: 5px;
    cursor: pointer;
    font-family: Poppins, sans-serif;
    transition: background-color 0.3s ease;
    text-decoration: none !important;
    background: none !important;
    padding: 8px 12px !important;
}

.surah-nav-btn:hover {
    background: none !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
}

.surah-nav-btn-a:hover {
    background: none !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
}

.qd-dark-mode .surah-nav-btn {
    color: #6c7777 !important;
}

.qd-dark-mode .surah-nav-btn-a {
    color: #6c7777 !important;
}

.qd-dark-mode .surah-nav-btn:hover {
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

.qd-dark-mode .surah-nav-btn-a:hover {
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

h1.entry-title {
    display: none !important;
}

.surah-header {
    margin-bottom: 30px;
    background: #4733ac;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    text-align: center;
    margin-top: -63px;
    color: #ffffff;
    padding: 165px 0 50px;
}

.surah-header h2 {
    font-family: 'noorehude font', serif;
    font-size: 50px;
}

.surah-header p {
    font-size: 17px;
    margin: 8px 0px;
}

.ayah {
    margin-bottom: 25px;
    border-bottom: 1px solid #000000;
    padding-bottom: 20px;
}

.arabic {
    text-align: right;
    color: #111;
    direction: rtl;
    font-size: 38px;
    font-family: 'noorehude font', serif;
    line-height: 1.6;
}

.translation {
    direction: ltr;
    text-align: left;
    font-size: 19px !important;
    font-family: 'Poppins' !important;
    color: #000000;
    margin-bottom: 0px;
    line-height: 1.6;
}

.urdu {
    direction: rtl;
    text-align: left;
    font-size: 22px !important;
    color: #000000;
    font-weight: 400;
    line-height: 2;
    margin-bottom: 0px;
}

.translation-select-wrapper {
    margin-bottom: 20px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.translation-select-wrapper label {
    font-size: 17px !important;
    font-weight: 600 !important;
}

#translation-select {
    padding: 5px 10px;
    width: 100px;
    border-radius: 5px;
    color: #000000;
    font-weight: 500;
}

.surah-video {
    text-align: center;
    margin: 40px auto;
}

.surah-video iframe {
    width: 560px;
    height: 315px;
}

.surah-navigation-buttons {
    text-align: center;
    margin-top: 40px;
}

.urdu-toggle-btn-wrapper {
    text-align: start;
    margin-bottom: 20px;
}

.urdu-toggle-btn {
    background: #424242 !important;
    padding: 6px 10px !important;
    border: none;
    color: #ffffff !important;
}

.urdu-toggle-btn:hover {
    background: #4a4a4a !important;
}

.qd-dark-toggle {
    background: #ffffff;
    border-radius: 5px;
    padding: 7px 11px;
    cursor: pointer;
    font-family: Poppins, sans-serif;
    font-weight: 400;
    font-size: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

body {
    overflow-x: hidden !important;
}

body.qd-dark-mode {
    background-color: #1f2125 !important;
    color: #ffffff !important;
}

body.qd-dark-mode .ayah {
    border-color: #ffffff;
}

body.qd-dark-mode .translation,
body.qd-dark-mode .urdu,
body.qd-dark-mode .arabic {
    color: #ffffff !important;
}

body.qd-dark-mode .qd-dark-toggle {
    background: #333;
    color: #fff;
}

body.qd-dark-mode .translation-select-wrapper-sticky {
    background-color: #111111 !important;
}

#audio-controls-icons,
#volume-slider {
    transition: all 0.3s ease-in-out;
}

.audio-controls {
    position: relative;
}

.volume-wrapper {
    position: relative;
    display: inline-block;
}

.volume-popup {
    display: none;
    position: absolute;
    bottom: 55px;
    left: -50px;
    background-color: #111111;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
    z-index: 999;
    width: 350%;
    height: 85%;
}

#volume-slider {
    width: 135px;
    accent-color: #ffffff;
    background: transparent;
}

#volume-slider::-webkit-slider-thumb {
    background-color: #0073aa;
}

#volume-slider::-moz-range-thumb {
    background-color: #0073aa;
}

.audio-player-body-inner-container {
    width: 100%;
}

.audio-player-slider {
    justify-content: space-between;
    display: flex;
    top: 40px;
    height: 10px;
}

.audio-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.audio-controls-icons {
    padding: 5px 10px !important;
    background: none !important;
    color: white !important;
}

.audio-controls-icons:hover {
    background-color: #383838 !important;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.audio-icon {
    background: none;
    border: none;
    font-size: 18px;
    color: white;
    cursor: pointer;
}

.audio-icon:hover {
    color: #ccc;
}

.reciter-dropdown {
    padding: 4px 8px;
    background: #222;
    color: white;
    border: 1px solid #444;
    border-radius: 4px;
}

.progress-container {
    flex-grow: 1;
    width: 100%;
}

#audio-progress {
    width: 100%;
    height: 4px;
    background: #555;
    appearance: none;
}

#audio-progress::-webkit-slider-thumb {
    appearance: none;
    height: 14px;
    width: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -4px;
}

.custom-audio-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #111;
    color: white;
    padding: 0px 5px 5px 5px;
    z-index: 9999;
    font-family: sans-serif;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}

.translation-select-wrapper-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

@media (max-width: 320px) {
    .juz-box {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .surah-video iframe {
        width: 100%;
        height: 170px;
    }
}

@media (max-width: 600px) {
    .qtp-tabs .tab-buttons {
        flex-direction: column;
    }

    .qtp-tabs .tab-buttons li {
        margin-right: 0;
        margin-bottom: 5px;
        border-radius: 5px;
    }

    .qtp-tabs .tab-buttons li.active {
        border-bottom: 2px solid #ffffff;
    }

    .surah-video iframe {
        width: 97%;
    }
}

@media (max-width: 768px) {
    .juz-container {
        column-count: 1;
    }

    .surah-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 767px) {
    .audio-player-slider {
        top: 18px;
        font-size: 12px;
    }

    .single-surah .elementor-hidden-desktop {
        position: absolute !important;
    }

    .translation-select-wrapper {
        justify-content: space-between;
    }

    .arabic {
        font-size: 35px;
    }
}