/*** Spinner Start ***/

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    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;
    transition: 0.5s;
    z-index: 99;
    background: #f4b41a;
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
}

.back-to-top:hover {
    background: #e5a617;
    color: #fff;
}

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-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}


/*** Button Start ***/

.btn,
.btn-primary,
.btn-secondary {
    font-weight: 600;
    border-radius: 15px;
    padding: 10px 24px;
    transition: background 0.3s;
}

.btn-primary {
    background: #f4b41a;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: #e5a617;
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: #f4b41a;
    border: 2px solid #f4b41a;
}

.btn-secondary:hover {
    background: #f4b41a;
    color: #fff;
}

.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;
}
/*** Button End ***/

/*** Navbar Start ***/
.fixed-top {
    transition: .5s;
}
.navbar-brand .mb-0{
    display: inline;
    padding-left: 5px;
}
/*a.navbar-brand{
    display: flex;
    justify-content: center;
}*/
a.navbar-brand img{
    border-radius: 5px;
}
.navbar {
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.navbar .navbar-brand h1,
.navbar .navbar-brand .mb-0 {
    display: inline;
    padding-left: 5px;
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    color: #222;
}

.navbar .navbar-nav .nav-link {
    padding: 12px 18px;
    color: #222;
    font-size: 17px;
    font-weight: 600;
    transition: color 0.3s;
}

.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link:hover {
    color: #f4b41a;
}

.navbar .btn-primary {
    background: #f4b41a;
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 15px;
    padding: 8px 24px;
    transition: background 0.3s;
}

.navbar .btn-primary:hover {
    background: #e5a617;
    color: #fff;
}

.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 End ***/


/*** Hero Header ***/
.hero-header {
    margin-bottom: 6rem;
    padding-top: 10rem;
    padding-bottom: 6rem;
    background: url("../img/hero.jpg"), center center no-repeat;
    background-size: cover;
}

.hero-header .hero-header-inner {
    padding: 3rem;
    background: rgba(255, 255, 255, .5);
}

@media (max-width: 992px) {
    .hero-header {
        padding-top: 12rem;
    }
}

.hero-header .breadcrumb-item {
    font-size: 18px;
}
/*** Hero Header ***/


/*** 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(0, 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;
}
ul {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 20px;
}

.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(241, 193, 82, .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: #222;
    color: #fff;
    padding: 3rem 0 1rem 0;
}

.footer .footer-item h4,
.footer .footer-item h1 {
    color: #fff;
    font-weight: 700;
}

.footer .footer-item a.btn {
    background: #f4b41a;
    color: #fff;
    border-radius: 15px;
    padding: 8px 24px;
    font-weight: 600;
}

.footer .footer-item a.btn:hover {
    background: #e5a617;
    color: #fff;
}

.footer .footer-item p,
.footer .footer-item .text-secondary {
    color: #ccc;
}

.footer .footer-item a,
.footer .footer-item a i {
    color: #fff;
    transition: color 0.3s;
}

.footer .footer-item a:hover,
.footer .footer-item a i:hover {
    color: #f4b41a;
}

.footer .border-top,
.footer .border-bottom {
    border-color: rgba(255,255,255,0.08) !important;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #555;
}
/*** Footer End ***/


body {
    padding-top: 90px; /* Adjust if your navbar is taller */
    font-family: 'Open Sans', Arial, sans-serif;
    background: #f8f8f8;
}

/* Form Container */
.form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Form Elements */
.form-group label {
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-control,
.form-control-file {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #f4b41a;
    outline: none;
}

.logo-preview {
    width: 150px;
    height: 150px;
    border: 2px dashed #ddd;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.submit-btn,
.btn-primary {
    background-color: #f4b41a;
    color: #fff;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover,
.btn-primary:hover {
    background-color: #e5a617;
}

.form-links {
    text-align: right;
}

.forgot-password {
    color: #f4b41a;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .form-container {
        margin: 1rem;
        padding: 1.5rem;
        max-width: 100%;
    }
    .navbar .navbar-nav .nav-link {
        padding: 10px 8px;
        font-size: 16px;
    }
    .footer {
        padding: 2rem 0 1rem 0;
    }
}

/*** Masjid Cards ***/
.masjid-card {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s;
    min-height: 340px;
    max-width: 320px;
    margin: 0 auto;
    text-align: center; /* Center all text */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.logo-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin: 0 auto 1rem auto;
    border-radius: 12px;
    background: #f8f8f8;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    display: block;
}
.card-title, .card-text {
    text-align: center;
    width: 100%;
}
.btn-block {
    width: 70%;
    margin: 10px auto 0 auto;
    font-size: 0.95rem;
    padding: 8px 0;
    border-radius: 8px;
}

/* Register Masjid Form - Scoped Styles */
.registration-form {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 32px 28px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.registration-form h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 18px;
    color: #222;
    font-family: 'Pacifico', cursive;
}

.registration-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 0;
}

.registration-form .form-group label {
    font-weight: 600;
    color: #444;
    margin-bottom: 2px;
    font-size: 1rem;
}

.registration-form .form-group input,
.registration-form .form-group select {
    height: 44px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    padding: 0 12px;
    background: #fafafa;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.registration-form .form-group input:focus,
.registration-form .form-group select:focus {
    border-color: #f4b41a;
    background: #fff;
}

.registration-form .form-group input[type="file"] {
    padding: 6px 0;
    border: none;
    background: none;
}

.registration-form .logo-preview {
    width: 120px;
    height: 120px;
    border: 2px dashed #f4b41a;
    border-radius: 8px;
    margin-top: 8px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.registration-form .submit-btn {
    width: 100%;
    padding: 12px 0;
    font-size: 1.1rem;
    border-radius: 6px;
    background: #f4b41a;
    color: #fff;
    font-weight: 700;
    border: none;
    transition: background 0.2s;
    margin-top: 10px;
}

.registration-form .submit-btn:hover {
    background: #e5a617;
}

@media (max-width: 600px) {
    .registration-form {
        padding: 18px 8px;
        max-width: 100%;
    }
    .registration-form .logo-preview {
        width: 90px;
        height: 90px;
    }
}
