
/*** Spinner Start ***/

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

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

.wow,
.animated {
    animation-duration: 2s !important;
}

/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, background-color .3s ease, color .3s ease;
    z-index: 99;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--bs-dark);
    color: var(--bs-primary);
}

.wow-init {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.wow-active {
    opacity: 1;
    transform: none;
}

/* Small helper text used on Islam 101 resource list */
.helper-note {
    font-size: .8rem;
}

/* Prayer iframe fallback overlay */
#prayer-iframe-fallback {
    background: linear-gradient(135deg,#004d20,#007a33);
    color:#fff;
}
#next-iqamah-wrapper {
    border-color: #e3e3e3 !important;
}

/* Tighter spacing for events section when placed immediately after hero/about block */
.events-tight { margin-top: -8rem; }
@media (max-width: 992px){
    .events-tight { margin-top: -3rem; }
}

/* Theme overrides: set brand green and replace mustard accents */
:root {
    --bs-primary: #007A33;
    --mobile-header-offset: 7.25rem;
}

/* Core utility overrides to ensure green takes effect even where Bootstrap used fixed colors */
.text-primary { color: #007A33 !important; }
.bg-primary { background-color: #007A33 !important; }
.border-primary { border-color: #007A33 !important; }

a { color: #007A33; }
a:hover { color: #005f29; }

.btn-primary {
    color: #fff;
    background-color: #007A33;
    border-color: #007A33;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: #fff;
    background-color: #00612b;
    border-color: #00612b;
    box-shadow: 0 0 0 .25rem rgba(0, 122, 51, .35);
}
.btn-outline-primary {
    color: #007A33;
    border-color: #007A33;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: #fff;
    background-color: #007A33;
    border-color: #007A33;
    box-shadow: 0 0 0 .25rem rgba(0, 122, 51, .35);
}

/* Forms & inputs focus state to green */
.form-control:focus,
.form-select:focus {
    border-color: #8fd3b0;
    box-shadow: 0 0 0 .25rem rgba(0, 122, 51, .25);
}

/* Checks and radios to green */
.form-check-input:checked {
    background-color: #007A33;
    border-color: #007A33;
}
.form-check-input:focus {
    border-color: #8fd3b0;
    box-shadow: 0 0 0 .25rem rgba(0, 122, 51, .25);
}

/* Range slider thumb to green */
.form-range::-webkit-slider-thumb { background-color: #007A33; }
.form-range::-moz-range-thumb { background-color: #007A33; }
.form-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 .25rem rgba(0, 122, 51, .25); }
.form-range:focus::-moz-range-thumb { box-shadow: 0 0 0 .25rem rgba(0, 122, 51, .25); }

/* Ensure btn-check related focus ring uses green */
.btn-check:focus + .btn-primary,
.btn-primary:focus,
.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    box-shadow: 0 0 0 .25rem rgba(0, 122, 51, .35);
}

h1, h2, h3, .h1, .h2, .h3 {
    font-weight: 700 !important;
    font-family: 'Open', sans-serif !important;
}

h4, h5, h6, .h4, .h5, .h6 {
    font-weight: 600 !important;
    font-family: 'Open', sans-serif !important;
}

.py-5 {
    padding-top: 2rem;
    padding-bottom: 5rem;
}

@media (max-width: 768px) {
    .py-5 {
        padding-top: 1.65rem;
        padding-bottom: 3.5rem;
    }
}

@media (max-width: 576px) {
    .py-5 {
        padding-top: 1.25rem;
        padding-bottom: 2.5rem;
    }
}


/*** Button Start ***/

.btn {
    font-weight: 600;
    transition: .5s;
}

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

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

.btn-md-square {
    width: 46px;
    height: 46px;
}

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

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

.btn.btn-primary:hover {
    color: var(--bs-primary) !important;
    background: var(--bs-dark) !important;
    border-color: var(--bs-dark) !important;
}

.btn.btn-dark:hover {
    color: var(--bs-dark) !important;
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}
.w-auto-sm { width: auto; }
/*** Button End ***/


/*** Topbar Start ***/
.topbar .topbar-inner {
    height: 45px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, .5);
}

.topbar a,
.topbar a i {
    transition: 0.5s;
}

.topbar a:hover,
.topbar a i:hover {
    color: var(--bs-primary) !important;
}
/*** Topbar End ***/


/*** Navbar Start ***/
.fixed-top {
    transition: .5s;
}

.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, .5);
    background-color: transparent;
}

.fixed-top .navbar {
    background-color: #ffffff;
}

@media (min-width: 992px) {
    .fixed-top .navbar {
        background-color: transparent;
    }
}

.navbar .navbar-nav .nav-link {
    padding: 12px;
    color: var(--bs-dark);
    font-size: 17px;
    font-weight: 600;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.fixed-top.bg-white .navbar .navbar-nav .nav-link:hover,
.fixed-top.bg-white .navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 992px) {
    .navbar-collapse {
        background: transparent !important;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        background: var(--bs-light) !important;
        transition: .5s;
        opacity: 1;
    }
}

.navbar-toggler {
    background: var(--bs-secondary);
    color: var(--bs-light) !important;
    padding: 10px 20px;
    border: 2px solid var(--bs-primary) !important;
    box-shadow: none !important;
}

.navbar-brand h1 {
    color: #007A33;
    font-weight: 700;
}

.navbar-brand h1 .text-primary {
    color: inherit !important;
}
/*** Navbar End ***/


/*** Hero Header ***/
.hero-header {
    margin-bottom: 0.35rem;
    padding-top: 10.5rem;
    padding-bottom: 1.35rem;
    background: url("../img/hero.jpg"), center center no-repeat;
    background-size: cover;
}

.hero-header .hero-header-inner {
    padding: 2.5rem;
    background: rgba(255, 255, 255, .5);
}

@media (max-width: 992px) {
    .hero-header {
        padding-top: 7.25rem;
        padding-bottom: 0.75rem;
    }
    .hero-header .hero-header-inner {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-header {
        padding-top: 4.25rem;
        padding-bottom: 0.35rem;
    }
    .hero-header .hero-header-inner {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-header .display-1 {
        font-size: 3rem;
        line-height: 1.1;
    }
}

@media (max-width: 576px) {
    .hero-header .display-1 {
        font-size: 2.45rem;
        margin-bottom: 1.5rem;
    }
    .hero-header p.fs-4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

.hero-header .breadcrumb-item {
    font-size: 18px;
}
/*** Hero Header ***/

.mobile-header-panel {
    display: none;
    border-radius: 1.2rem;
}
.mobile-header-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #0f3f25;
    font-weight: 600;
}
.mobile-header-icon {
    font-size: 1.4rem;
    color: #004d20;
}
.mobile-header-text {
    flex: 1 1 auto;
    font-size: 0.95rem;
    line-height: 1.3;
}
.mobile-header-cta {
    font-size: 1.35rem;
    color: #007A33;
}
.mobile-header-brand {
    margin-top: 0.55rem;
    text-align: center;
    font-weight: 700;
    color: #007A33;
    font-size: 1.35rem;
    letter-spacing: 0.01em;
}

.navbar-toggler-text {
    color: #004d20;
}

@media (max-width: 768px) {
    .main-header-container {
        padding: 0.75rem 0.75rem 0.9rem;
        border-radius: 1.4rem;
        background: linear-gradient(135deg, #accfbf 0%, #a7cfae 100%);
        box-shadow: 0 22px 32px -24px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(12, 56, 29, 0.6);
    }
    .main-header-container .mobile-header-panel {
        display: block;
        padding: 0.85rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.76);
    border-radius: 1.1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    }
    .main-header-container .mobile-header-link {
        color: #0f3f25;
        justify-content: center;
        margin: 0.65rem auto 0;
        padding: 0.65rem 0.85rem;
        max-width: 320px;
    }
    .main-header-container .mobile-header-text {
        text-align: left;
    }
    .main-header-container .navbar {
        background: rgba(255, 255, 255, 0.9);
        border-radius: 1rem;
        padding: 0.55rem 0.75rem;
        box-shadow: inset 0 0 0 1px rgba(0, 122, 51, 0.08);
        margin-top: 0.7rem;
    }
    .main-header-container .navbar-toggler {
        background: rgba(255, 255, 255, 0.85);
        color: #007A33 !important;
        border-color: rgba(0, 122, 51, 0.35) !important;
    }
    .main-header-container .navbar-collapse {
        background: rgba(255, 255, 255, 0.98) !important;
        border-radius: 0.9rem;
        padding: 0.75rem 0.85rem;
        box-shadow: 0 18px 34px -22px rgba(0, 0, 0, 0.28);
        margin-top: 0.6rem;
    }
    .main-header-container .navbar-nav .nav-link {
        color: #0f3f25;
    }
    .main-header-container .navbar-nav .nav-link:hover,
    .main-header-container .navbar-nav .nav-link.active {
        color: #007A33;
    }
}

@media (max-width: 768px) {
    .hero-header {
        display: none;
    }
}

@media (max-width: 991.98px) {
    body {
        padding-top: var(--mobile-header-offset, 7.25rem);
    }
}

@media (max-width: 768px) {
    .flash-banner {
        margin-top: 0.15rem;
    }
}

/* Reduce top padding on the first content section after hero */
.about.py-5 { padding-top: 0.5rem; }
.about .container.py-5 { padding-top: 0.5rem; }

@media (max-width: 991.98px) {
    .about .about-text-col { order: 2 !important; }
    .about .prayer-widget-col { order: 1 !important; }
}

@media (min-width: 992px) {
    .about .about-text-col { order: 1 !important; }
    .about .prayer-widget-col { order: 2 !important; }
}

@media (max-width: 576px) {
    .about .container.py-5 {
        padding-bottom: 1.75rem;
    }
    .about .row.g-5 {
        --bs-gutter-y: 1.75rem;
    }
    .about .prayer-widget-col {
        margin-bottom: 1.25rem !important;
    }
    .about .about-text-col {
        margin-top: 0.75rem !important;
    }
}

/* Flash banner */
.flash-banner { background: var(--bs-primary); color: var(--bs-light); }
.flash-banner .banner-inner { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; }
.flash-banner .flash-text { flex: 1 1 auto; }
.flash-banner .flash-close { color: var(--bs-light); opacity: .9; border: 1px solid rgba(255,255,255,.5); }
.flash-banner .flash-close:hover { opacity: 1; }
.flash-important { background: linear-gradient(90deg,#b30000,#ff4444) !important; }
/* Fade animation for rotating messages */
.flash-banner .flash-text.flash-fade-in { animation: flashFade .6s ease; }
@keyframes flashFade { from { opacity:0; transform:translateY(-4px);} to { opacity:1; transform:translateY(0);} }

/* Feature items (vision / mission) */
.feature-item { position: relative; padding: .25rem .25rem .25rem 0; }
.feature-item > span { display:inline-flex; width:56px; height:56px; border-radius:50%; align-items:center; justify-content:center; box-shadow:0 4px 12px rgba(0,0,0,.08); }
.feature-item i { font-size:1.5rem; }
.feature-item h5 { margin-top: .25rem; margin-bottom:.25rem; }
.feature-item p { font-size:.95rem; line-height:1.35rem; }

/* Prayer widget framing */

.prayer-summary-card { padding: 1rem 1.25rem; border-bottom: 1px solid rgba(0,0,0,.06); background: linear-gradient(135deg, rgba(0,122,51,.08), rgba(0,122,51,.02)); }
.prayer-summary-card .summary-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.prayer-summary-card .summary-label { font-size:.75rem; text-transform:uppercase; letter-spacing:.08em; font-weight:600; color:#286745; display:block; margin-bottom:.25rem; }
.prayer-summary-card .summary-name { font-size:1.5rem; margin-bottom:.1rem; color:#12351f; }
.prayer-summary-card .summary-iqamah { font-size:.9rem; color:#2c4737; }
.prayer-summary-card .summary-countdown { text-align:right; min-width:4.5rem; }
.prayer-summary-card .summary-countdown .material-symbol { display:block; font-size:1.25rem; color:#2c4737; margin-bottom:.15rem; }
.prayer-summary-card .summary-time { font-weight:700; font-size:1rem; color:#0f2b1c; }

.prayer-thumbnail { position:relative; width:100%; aspect-ratio:16/9; background:linear-gradient(135deg,#0a472a,#0f8647); display:flex; align-items:center; justify-content:center; color:#fff; text-align:center; padding:1.5rem; }
.prayer-thumbnail .thumbnail-inner { display:flex; flex-direction:column; align-items:center; gap:.35rem; }
.prayer-thumbnail .thumbnail-icon { font-size:2rem; }
.prayer-thumbnail .thumbnail-text { margin:0; font-size:.95rem; }

@supports not (aspect-ratio: 1 / 1) {
    .prayer-thumbnail { padding-top:56.25%; }
    .prayer-thumbnail .thumbnail-inner { position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); }
}

.prayer-iframe { transition:opacity .4s ease; }
.prayer-iframe.d-none { opacity:0; }

@media (max-width: 576px) {
    #prayer-iframe {
        height: 420px !important;
    }
    #prayer-iframe-fallback {
        padding: 1.5rem;
    }
}

#prayer-iframe-fallback { border-radius:.75rem; }

.prayer-widget { border:1px solid #e3e8e5; border-radius: .75rem; overflow:hidden; background:#ffffffcf; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); box-shadow:0 8px 24px -8px rgba(0,0,0,.12); }
.prayer-widget iframe { display:block; width:100%; }

/* Event highlight container */
.event-highlight { background: linear-gradient(135deg,#f8faf9,#eef7f1); border:1px solid #dbe7de; border-radius: .85rem; box-shadow:0 6px 18px -6px rgba(0,0,0,.10); }
.event-highlight #home-next-event { min-height: 3.25rem; }

/* Section header accent bar */
.section-header { position:relative; }
.section-header:before { content:""; position:absolute; left:0; bottom:-6px; width:72px; height:4px; background: linear-gradient(90deg,#007A33,#00b34a); border-radius:2px; }
.section-header h2 { font-size:2.1rem; letter-spacing:-.5px; }

@media (max-width: 992px){
    .section-header h2 { font-size:1.75rem; }
    .feature-item > span { width:48px; height:48px; }
    .feature-item i { font-size:1.25rem; }
}


/*** About Start ***/
.about a.btn.btn-light:hover {
    background: var(--bs-dark) !important;
    color: var(--bs-primary) !important;
    border: 0;
}
/*** About End ***/


/*** Activities Start ***/
.activities .activities-item {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 45px rgba(12, 18, 20, .08);
    transition: 0.5s;
}

.activities .activities-item:hover {
    background: var(--bs-primary) !important;
    color: var(--bs-dark) !important;
}

.activities .activities-item:hover a {
    background: var(--bs-light) !important;
    color: var(--bs-dark) !important;
}

.activities .activities-item:hover a:hover {
    background: var(--bs-dark) !important;
    color: var(--bs-primary) !important;
}
/*** Activities End ***/


/*** Events Start ***/
.event-item img {
    transition: 0.5s;
}

.event .event-item a {
    transition: 0.5s;
}

.event-item:hover img {
    transition: 0.5s;
    transform: scale(1.2)
}

.event-item a:hover {
    background: var(--bs-dark);
    color: var(--bs-primary);
    opacity: 0.5s;
}
/*** Events End ***/


/*** Sermon Start ***/
.sermon .sermon-item {
    height: 100%;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.sermon-item img {
    transition: 0.5s;
}

.sermon-item:hover img {
    transform: scale(1.2)
}

.sermon-item .sermon-meta a,
.sermon-item .sermon-meta a i {
    transition: 0.5s;
}

.sermon-item .sermon-meta a:hover,
.sermon-item .sermon-meta a i:hover {
    color: var(--bs-primary) !important;
}
/*** Sermon End ***/


/*** Blog Start ***/
.blog-item {
    height: 100%;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.blog-item img {
    transition: 0.5s;
}

.blog-item:hover img {
    transform: scale(1.2)
}

.blog-item .blog-meta a,
.blog-item .blog-meta a i {
    transition: 0.5s;
}

.blog-item .blog-meta a:hover,
.blog-item .blog-meta a i:hover {
    color: var(--bs-primary) !important;
}
/*** Blog End ***/


/*** Team Start ***/
.team .team-img {
    height: 100%;
    padding: 25px;
    background: var(--bs-white);
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.team .team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team .team-item {
    position: relative;
    overflow: hidden;
}

.team .team-item img {
    transition: 0.5s;
}

.team .team-item:hover img {
    transform: scale(1.2);
}

.team .team-item .team-content {
   position: absolute;
   width: 100%;
   height: 100%;
   top: 0;
   left: 0;
   padding: 15px;
   transform: translateX(-50%, -50%);
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 0;
   transition: 0.5s;
}

.team .team-item:hover .team-content {
    opacity: 1;
    background: rgba(0, 122, 51, .7);
}
/*** Team End ***/


/*** testimonial Start ***/
.testimonial-item {
    background: var(--bs-light);
    padding: 40px;
}

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

.testimonial-carousel {
    position: relative;
    padding-left: 60px;
    padding-right: 60px;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 60px;
    height: 40px;
    background: var(--bs-primary);
    color: var(--bs-dark);
    font-size: 22px;
    top: 50%;
    left: 0px;
    transform: translateY(-50%);
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover {
    background: var(--bs-dark) !important;
    color: var(--bs-primary) !important;
}

.testimonial-carousel .owl-nav .owl-next {
    left: auto;
    right: 0px;
}

.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--bs-dark) !important;
    color: var(--bs-primary) !important;
}
/*** testimonial End ***/


/*** Footer Start ***/
.footer {
    margin-top: 6rem;
    background: var(--bs-dark);
}

.footer .footer-item p {
    font-size: 16px;
    line-height: 35px;
}

.footer .border-top,
.footer .border-bottom {
    border-color: rgba(255, 255, 255, .08) !important;
}

.footer button {
    border: 0;
    transition: 0.5s;
}

.footer button:hover {
    background: var(--bs-dark);
    color: var(--bs-primary);
}

.footer-item a.btn.btn-light:hover {
    background: var(--bs-primary);
    color: var(--bs-dark) !important;
    border: var(--bs-primary);
}

.footer-item a,
.footer-item a i {
    transition: 0.5s;
}

.footer-item a:hover,
.footer-item a i:hover {
    color: var(--bs-primary) !important;
}
/*** Footer End ***/

/* Footer subscribe form */
#footer-subscribe-form { max-width: 100%; }
#footer-subscribe-msg {
    color: #8fd3b0;
    top: 100%;
}
