/* Custom styles to match the design */
#chatToggleBtn img {
    max-width: 25px;
}
#fatwas .latest-fatwa {
    background: none;
}
#fatwas .dropdown {
    width: 220px;
}
.main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
}
.form-check-label {
    font-weight: 500;
    color: #4d4d4d;
    font-family: "Lotus Linotype";
    font-size: 1.5rem;
}
.form-check-input {
    margin: 0px;
}
.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem #c8f1c8;
}
.form-check {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0;
}
.form-switch {
    padding: 0;
}
.form-check .form-check-input {
    float: unset;
    margin-left: 0;
}
/* Custom Toggle Switch */
.form-switch .form-check-input {
    width: 3.5rem;
    height: 1.5rem;
    background: #d9d9d9;
    border-radius: 2rem;
    position: relative;
    transition: all 0.3s;
    border: unset;
    box-shadow: none;
}
.form-switch .form-check-input:checked {
    background-color: #d9d9d9;
}
.form-switch .form-check-input::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0px;
    width: 1.75rem;
    height: 1.75rem;
    background: #4d4d4d;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.form-switch .form-check-input:checked::before {
    transform: translateX(2.063rem);
    background: #2c6e49;
}
.form-switch .form-check-input:checked,
.form-switch .form-check-input:focus {
    background-image: none;
}
/* Custom Radio Buttons */
.form-check-input[type="radio"] {
    border: 2px solid #2d6a4f;
    width: 1.563rem;
    height: 1.563rem;
}
.form-check-input[type="radio"]:checked {
    background-color: #2d6a4f;
    background-image: none;
}
.radio-group {
    gap: 3rem;
}
/* about us */
#about-us p {
    max-width: 1200px;
    margin: 1.875rem auto;
    font-family: Cairo;
    font-size: 2rem;
    line-height: 4rem;
    text-align: center;
}
#about-us section {
    margin-top: 5.625rem;
    background-position: top left;
    min-height: calc(90lvh - 8.75rem);
}
#about-us h1 {
    font-size: 3rem;
    font-weight: 700;
}
/* about us */
section#profile-page {
    margin-top: 5.625rem;
    min-height: calc(90lvh - 8.75rem);
}
.profile-icon {
    position: relative;
    background-color: #e1e1e1;
    width: 9.188rem;
    height: 9.188rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}
.profile-icon .avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.edit-profile-icon {
    position: absolute;
    bottom: 0.625rem;
    left: 0;
}
.profile-name {
    font-family: Cairo;
    font-weight: 700;
    font-size: 2rem;
    line-height: 100%;
}
/* profile tabs */
.underline-tabs .nav-tabs {
    border-bottom: unset;
    justify-content: center;
}
.underline-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 1.5rem;
    margin-bottom: -2px;
    font-weight: 600;
    font-size: 2rem;
    color: #262c24;
    transition: all 0.3s ease;
}
.underline-tabs .nav-link:hover {
    border-bottom-color: #c8f1c8;
    color: #2c6e49;
}
.underline-tabs .nav-link.active {
    border-bottom-color: #2c6e49;
    color: #2c6e49;
}
.personal-info-form {
    max-width: 58.5rem;
    margin: 0 auto;
    padding-bottom: 6.25rem;
}
.personal-info-form label {
    font-weight: 600;
    font-size: 1.25rem;
    color: #4d4d4d;
    margin-bottom: 1rem;
}
.personal-info-form input {
    /* height: 84px; */
    border-color: #e1e1e1;
    border-radius: 0.75rem;
    /* font-family: 1rem; */
    font-weight: 600;
    padding: 1.5rem;
}
.input-group-custom {
    position: relative;
}
.input-group-custom .edit-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}
/* Content Animation */
.tab-pane.fade {
    transition: all 0.2s ease-out;
}
.tab-pane.fade.show {
    animation: fadeIn 0.5s ease-out;
}
/* questions section  */
.questions-container {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 6.25rem;
}
.question-card {
    box-shadow: 5px 5px 48px 0px #0000001a;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1.75rem 1.5rem;
    font-family: "Lotus Linotype";
}
.question-card h3 {
    font-weight: 500;
    margin-bottom: 0;
}
.question-card button {
    height: 2.563rem;
    width: 8.313rem;
    border-radius: 0.5rem;
    border: unset;
    font-size: 1rem;
    font-weight: 500;
}
.btn-reserved {
    background-color: #ffe69a;
    color: #866500;
}
.btn-rejected {
    background-color: #ffcece;
    color: #bc4749;
}
.btn-deleted {
    background-color: #fda4a4;
    color: #8f3234;
}
.btn-answer {
    background-color: #ceffe1;
    color: #2c6e49;
}
.question-card .question-text {
    color: #4d4d4d;
    font-size: 1.25rem;
    font-weight: 500;
}
.question-card .question-link {
    color: var(--green-dark);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
}
.question-card .question-link:hover {
    text-decoration: underline;
}
/* libaray  */
#libaray-page {
    /* margin-top: 63px; */
    margin-top: 20px;
    min-height: calc(90lvh - 8.75rem);
}
#fatwa-detail-page {
    margin-top: 1.75rem;
    min-height: calc(90lvh - 8.75rem);
}
/* vide0 cards */
.general-img-card.fatwa-video-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    gap: 1.5rem;
    padding: 17px 33px;
}
.general-img-card.fatwa-video-card .main-img {
    height: 89px;
    flex-grow: 1;
}
.general-img-card.fatwa-video-card .main-img img {
    object-fit: cover;
    object-position: top;
}
.sub-header {
    border-bottom: 1px solid #e1e1e1;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.breadcrumb a,
.sub-header span {
    font-family: "Lotus Linotype";
    font-weight: 500;
    font-size: 1.5rem;
    color: #2c6e49;
    text-decoration: unset;
}
#contact-us > section {
    margin-top: 3.125rem;
    min-height: calc(90lvh - 8.75rem);
    text-align: left;
}
#contact-us h1 {
    font-family: "Cairo";
    font-weight: 700;
    font-size: 2rem;
    color: #262c24;
}
#contact-us .latest-fatwa {
    padding: 0 0 64px;
    background-image: url("../images/contact-use-bg.png");
    background-repeat: no-repeat;
    background-size: auto 500px;
    background-position: center right;
}
.contact-us-from {
    max-width: 978px;
}
.contact-us-p {
    font-family: "Cairo";
    font-weight: 700;
    font-size: 0.875rem;
}
.contact-us-from label {
    font-family: "Lotus Linotype";
    font-weight: 500;
    font-size: 1.5rem;
    text-transform: capitalize;
    margin-block: 1.25rem;
}
.contact-us-from input {
    height: 5.25rem;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 1.875rem 2rem;
}
.contact-us-from textarea {
    height: 17.813rem;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 1.875rem 2rem;
}
.send-btn button {
    margin-top: 1.5rem;
    min-width: 9.375rem;
}
.video-detail-section {
    margin-bottom: 2.5rem;
}
.main-video {
    width: 100%;
    max-height: 462px;
    /* max-height: 662px; */
    background: #e1e1e1;
    border-radius: 0.75rem;
    margin-bottom: 18px;
    /* margin-bottom: 78px; */
}
.video-section-heading {
    font-family: "Cairo";
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 0;
}
.video-desc {
    color: #4d4d4d;
    font-family: "Lotus Linotype";
    font-weight: 500;
    font-size: 1.5rem;
}

.similar-videos h3 {
    font-family: "Cairo";
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.similar-video-card {
    display: flex;
    gap: 36px;
    border-bottom: 1px solid #e1e1e1;
    padding-block: 1rem;
    margin-bottom: 0.75rem;
}
.similar-video-card video {
    max-height: 12.813rem;
    background: #e1e1e1;
    border-radius: 0.75rem;
}
.similar-video-card h4 {
    font-family: " Lotus Linotype";
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 26px;
    text-decoration: none;
}
.similar-video-card p {
    font-family: "Lotus Linotype";
    font-weight: 500;
    font-size: 1.15rem;
}
.video-date {
    background: #c8f1c8;
    color: #2c6e49;
    font-size: 1.5rem;
    font-family: "Lotus Linotype";
    font-weight: 500;
    padding: 0.5rem 1.15rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.fatwa-detail-title {
    font-family: "Lotus Linotype";
    font-weight: 500;
    font-size: 2rem;
    margin-bottom: 0;
}
.fatwa-detail-question {
    border-bottom: 1px solid #e1e1e1;
    padding: 1.5rem 2rem;
}
.fatwa-detail-btn {
    background: #d6efd5;
    font-family: "Lotus Linotype";
    font-weight: 500;
    font-size: 1.5rem;
    padding: 0.625rem 38px;
    border-radius: 0.5rem;
}
.fatwa-question {
    font-family: "Lotus Linotype";
    font-weight: 500;
    font-size: 1.5rem;
}
.fatwa-detail-ans,
.related-fatwa {
    padding: 1.5rem 2rem;
}
.related-fatwa h3 {
    font-size: 2.5rem;
}
.related-fatwa-question {
    border-bottom: 1px solid #e1e1e1;
    padding-block: 0.75rem;
    font-family: "Lotus Linotype";
    font-weight: 500;
    font-size: 1rem;
}
.video-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#libaray-page .search-icon,
.search-icon {
    background-color: #c8f1c8;
    cursor: pointer;
}
.icon-btn-light img {
    width: 100%;
}
#about-us p span {
    font-size: unset !important;
}

@media (min-width: 1200px) and (max-width: 1440px) {
    html {
        font-size: 14px;
    }
    .chat-header .header-icon img {
        transform: scale(0.8);
    }
    .navbar-brand img,
    .footer-logo img {
        max-width: 80px;
    }
    .right-image img {
        max-width: 70%;
    }
    .edit-profile-icon,
    .arrow-icon img {
        width: 20px;
    }
    #chatToggleBtn img {
        max-width: 25px;
    }
    .google-img-icon {
        height: 20px;
    }
    .search-icon img {
        width: 24px;
    }
    .edit-icon img {
        width: 16px;
    }
    #header .nav-link {
        font-size: 16px;
    }
    .personal-info-form input {
        padding: 1rem;
    }
    #profile-page .profile-header {
        margin-bottom: 10px !important;
    }
    .personal-info-form div.mb-4 {
        margin-bottom: 16px !important;
    }
    section#profile-page {
        margin-top: 50px;
    }
    .underline-tabs .nav-link {
        font-size: 1.5rem;
        padding: 1rem;
    }
    .profile-icon {
        width: 110px;
        height: 110px;
    }
    #chatbotContainer .chat-header {
        padding-top: 1.5rem;
    }
}
@media (min-width: 1200px) and (max-width: 1399px) {
    html {
        font-size: 12px;
    }
    #header .nav-link {
        font-size: 1rem;
    }
    section#profile-page {
        margin-top: 30px;
    }
    .profile-icon {
        width: 80px;
        height: 80px;
    }
    .profile-name {
        font-size: 1.8rem;
    }
    .underline-tabs .nav-link {
        font-size: 1.4rem;
        padding: 0.5rem;
    }
    div#underlineTabsContent {
        margin-top: 1rem !important;
    }
    .personal-info-form label {
        margin-bottom: 0.5rem;
    }
    .personal-info-form input {
        padding: 0.7rem;
        font-size: 0.8rem;
    }
    .personal-info-form div.mb-4 {
        margin-bottom: 6px !important;
    }
}
@media (max-width: 1199px) {
    html {
        font-size: 16px;
    }
    .video-section-heading {
        font-size: 1.75rem;
    }
}
@media (max-width: 1199px) {
    .main-title {
        font-size: 35px;
    }
    .general-img-card.fatwa-video-card {
        padding: 0.938rem 1.75rem 1.375rem;
    }
    .form-check-label {
        font-size: 1.375rem;
    }
    #fatwas .dropdown {
        padding-bottom: 0.75rem;
    }
}
@media (max-width: 991px) {
    .main-title {
        font-size: 2rem;
    }
    .general-img-card.fatwa-video-card {
        flex-direction: column;
    }
    .general-img-card.fatwa-video-card .main-img {
        height: unset;
    }
    .similar-video-card {
        display: flex;
        flex-direction: column;
    }
    .sub-header {
        flex-direction: column;
    }
    .video-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .video-date {
        font-size: 1.5rem;
        padding: 0.5rem 0.625rem;
    }
    .video-section-heading {
        font-size: 1.563rem;
    }
    .contact-us-from label {
        margin-block: 0.625rem;
    }
    .contact-us-from input {
        padding: 0.625rem;
        height: unset;
        font-size: 1rem;
        border-radius: 0.5rem;
    }
    .contact-us-from textarea {
        padding: 0.625rem;
        height: 9.375rem;
        font-size: 1rem;
        border-radius: 0.5rem;
    }
    #about-us h1 {
        font-size: 2rem;
    }
}
@media (max-width: 575px) {
    .main-title {
        font-size: 1.75rem;
    }
    #about-us p {
        font-size: 18px;
        line-height: 2rem;
        margin-block: 0;
    }
    .video-section-heading {
        font-size: 1.5rem;
    }
    .profile-name,
    .underline-tabs .nav-link {
        font-size: 1.5rem;
    }
    .personal-info-form input {
        height: unset;
        padding: 0.75rem;
    }
    .form-switch,
    .form-check-input[type="radio"] {
        transform: scale(0.8);
    }
    .radio-group {
        row-gap: 0px;
        column-gap: 1rem;
        justify-content: center;
    }
    .sub-header,
    .fatwa-detail-question,
    .fatwa-detail-ans,
    .related-fatwa {
        padding-inline: 0px;
    }
    #fatwas .dropdown button {
        font-size: 18px;
        padding: 5px 0.625rem;
        border-radius: 0.5rem;
    }
}

.container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}