/*** 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 ***/


#prayer-times .prayer-card {
    background: white;
    border-radius: 1.25rem;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
}
#prayer-times .prayer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
#prayer-times .prayer-icon {
    font-size: 2rem;
    color: #0d6efd;
}










.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;
}

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

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 {
    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;
}
/*** 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);
}

.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 End ***/


/*** Hero Header ***/
.hero-header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
}

.hero-header:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.hero-header-inner {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    backdrop-filter: blur(5px);
    max-width: 550px;
    z-index: 1;
    margin-top: 120px; /* Add distance from top bar on desktop */
}

@media (max-width: 992px) {
    .hero-header {
        padding-top: 6rem;
        min-height: 100vh;
    }
    
    .hero-header-inner {
        max-width: 100%;
        margin: 0 1rem;
        margin-top: 0; /* Reset margin-top for mobile */
    }
}

.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(12, 18, 20, .08);
    transition: 0.5s;
    border-radius: 10px;
    overflow: hidden;
}

.activities .activities-item:hover {
    background: var(--bs-primary) !important;
    color: var(--bs-dark) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.activities .activities-item img {
    transition: 0.5s;
    border-radius: 5px;
}

.activities .activities-item:hover img {
    transform: scale(1.1);
    opacity: 0.9;
}

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

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

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

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

.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;
}

/* Additional styling for image cards */
.activities .activities-item .row {
    margin: 0;
}

.activities .activities-item .col-4 {
    padding: 0;
}

.activities .activities-item .col-8 {
    padding: 0;
}

/* Responsive improvements for activities */
@media (max-width: 768px) {
    .activities .activities-item .row {
        flex-direction: column;
    }
    
    .activities .activities-item .col-4,
    .activities .activities-item .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .activities .activities-item img {
        height: 200px;
        width: 100%;
        object-fit: cover;
    }
    
    .activities .activities-item .p-4 {
        padding: 1.5rem !important;
    }
    
    .activities .activities-item h4 {
        font-size: 1.1rem;
    }
    
    .activities .activities-item .fa-3x {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .activities .activities-item .p-4 {
        padding: 1rem !important;
    }
    
    .activities .activities-item h4 {
        font-size: 1rem;
    }
    
    .activities .activities-item .fa-3x {
        font-size: 1.5rem !important;
    }
    
    .activities .activities-item .d-flex.align-items-center {
        flex-direction: column;
        text-align: center;
    }
    
    .activities .activities-item .me-3 {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
}
/*** 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-item {
    border-radius: 10px;
    overflow: hidden;
}

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

.team-item .team-img::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url(../img/bg-team.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: .5s;
    z-index: 1;
    opacity: 0;
}

.team-item:hover .team-img::before {
    opacity: 1;
}

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

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

.team-item .team-text {
    position: relative;
    height: 80px;
    background: #FFFFFF;
    transition: .5s;
}

.team-item:hover .team-text {
    margin-top: -40px;
    background: transparent;
}

.team-item .team-text h4 {
    transition: .5s;
}

.team-item:hover .team-text h4 {
    color: #FFFFFF;
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.team-item:hover .team-social {
    transition-delay: .1s;
    top: 60px;
    opacity: 1;
}

.team-item .team-social a {
    margin: 0 3px;
}

.team-item .team-social a.btn {
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 100px;
}

.team-item .team-social a.btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}
/*** Team 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 ***/


/*** Prayer Times Start ***/
.prayer-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.prayer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--bs-primary);
}

.prayer-icon i {
    transition: all 0.3s ease;
}

.prayer-card:hover .prayer-icon i {
    transform: scale(1.1);
    color: var(--bs-primary) !important;
}

.prayer-name {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.prayer-time {
    font-weight: 700;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem !important;
    color: var(--bs-primary) !important;
}

@media (max-width: 768px) {
    .prayer-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .prayer-time {
        font-size: 1.25rem !important;
    }
}
/*** Prayer Times End ***/


/*** Donation Page Start ***/
.donation-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.donation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: var(--bs-primary);
}

.donation-icon i {
    transition: all 0.3s ease;
}

.donation-card:hover .donation-icon i {
    transform: scale(1.1);
    color: var(--bs-primary) !important;
}

.amount-buttons .amount-btn {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    margin: 0.25rem;
    transition: all 0.3s ease;
}

.amount-buttons .amount-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.amount-buttons .amount-btn.btn-primary {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

#paypal-placeholder {
    transition: all 0.3s ease;
}

#paypal-placeholder:hover {
    transform: translateY(-2px);
}

#custom-amount-section {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#selected-amount {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.donation-card .amount-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .donation-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .amount-buttons .amount-btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    #selected-amount {
        font-size: 1.5rem;
    }
}
/*** Donation Page End ***/


/*** Events Page Start ***/
.event-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    padding: 1rem;
}

.event-item:hover {
    background: rgba(13, 110, 253, 0.05);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.event-item .border-start {
    border-left-width: 4px !important;
    border-left-color: var(--bs-primary) !important;
}

.event-item:hover .border-start {
    border-left-color: var(--bs-dark) !important;
}

@media (max-width: 768px) {
    .event-item {
        margin-bottom: 1rem;
    }
}
/*** Events Page End ***/

/* Add smooth scrolling for anchors */
html {
    scroll-behavior: smooth;
}

/*** Calendar Styles ***/
.fc-toolbar-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
}

.fc-button-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.fc-button-primary:hover,
.fc-button-primary:focus,
.fc-button-primary:active {
    background-color: var(--bs-dark) !important;
    border-color: var(--bs-dark) !important;
}

.fc-daygrid-day.selected-date {
    background-color: rgba(241, 193, 82, 0.2);
}

.fc-event {
    cursor: pointer;
    border: none !important;
    padding: 2px 5px;
    border-radius: 3px;
}

.fc-daygrid-day-number {
    font-weight: 600;
}

.fc-daygrid-day.fc-day-today {
    background-color: rgba(241, 193, 82, 0.1) !important;
}

/* Calendar responsiveness */
@media (max-width: 768px) {
    .fc-toolbar.fc-header-toolbar {
        flex-direction: column;
    }
    
    .fc-toolbar-chunk {
        margin-bottom: 10px;
    }
    
    .fc-daygrid-day-number {
        font-size: 0.8rem;
    }
    
    .fc-event-title {
        font-size: 0.7rem;
    }
}

/* For the selected day navigation in prayer times */
#selected-date-display {
    display: inline-block;
    min-width: 120px;
    text-align: center;
    font-weight: 600;
}

/*** Page Header ***/
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../img/hero.jpg) center center no-repeat;
    background-size: cover;
    text-align: center;
    padding-top: 120px;
}

.page-header h1 {
    font-weight: 700;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/*** Mobile Navigation System ***/
/* Mobile Navigation Container */
.mobile-nav-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    max-width: 100%;
    overflow-x: auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 8px 2px;
    min-width: 45px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: #6c757d;
    text-decoration: none;
    border-radius: 8px;
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.mobile-nav-item span {
    font-size: 0.65rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--bs-primary);
    background: rgba(31, 128, 128, 0.1);
    transform: translateY(-2px);
}

.mobile-nav-item.active i {
    transform: scale(1.1);
}

/* Mobile Page Header */
.mobile-page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.mobile-page-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bs-dark);
    text-align: center;
}

/* Mobile Section Management */
@media (max-width: 767.98px) {
    /* Hide all sections by default on mobile */
    .mobile-section {
        display: none !important;
    }
    
    /* Show only active section */
    .mobile-section.mobile-active {
        display: block !important;
    }
    
    /* Adjust body padding for mobile navigation */
    body {
        padding-top: 70px; /* Space for mobile header */
        padding-bottom: 80px; /* Space for mobile navigation */
    }
    
    /* Hide desktop navbar on mobile */
    .fixed-top {
        display: none !important;
    }
    
    /* Adjust hero section for mobile */
    .hero-header {
        min-height: 70vh;
        padding-top: 2rem;
    }
    
    .hero-header-inner {
        max-width: 100%;
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .hero-header h1 {
        font-size: 2rem;
    }
    
    .hero-header p {
        font-size: 1rem;
    }
    
    /* Mobile-specific adjustments for sections */
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Adjust prayer times for mobile */
    .prayer-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .prayer-time {
        font-size: 1.25rem !important;
    }
    
    /* Mobile navigation controls for prayer times */
    .d-flex.justify-content-center.align-items-center {
        flex-direction: column;
        gap: 10px;
    }
    
    .d-flex.justify-content-center.align-items-center .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* Adjust activities cards for mobile */
    .activities .activities-item {
        margin-bottom: 1rem;
    }
    
    .activities .activities-item .row {
        flex-direction: column;
    }
    
    .activities .activities-item .col-4,
    .activities .activities-item .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .activities .activities-item img {
        height: 200px;
        width: 100%;
        object-fit: cover;
    }
    
    /* Adjust events for mobile */
    .event-item {
        margin-bottom: 1rem;
    }
    
    .event-item .col-3,
    .event-item .col-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .event-item .border-start {
        border-left: none !important;
        border-top: 4px solid var(--bs-primary) !important;
        padding-top: 1rem;
    }
    
    /* Adjust donation section for mobile */
    .donation-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    /* Calendar responsiveness */
    .calendar-container iframe {
        height: 400px;
    }
    
    /* Sermon/News cards for mobile */
    .sermon-item,
    .blog-item {
        margin-bottom: 1.5rem;
    }
    
    /* Footer adjustments for mobile */
    .footer .row.g-4 {
        margin: 0;
    }
    
    .footer .col-md-6,
    .footer .col-lg-6,
    .footer .col-xl-3 {
        margin-bottom: 2rem;
    }
    
    /* About section mobile adjustments */
    .about .row.g-4 .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .about .bg-light.p-3 .row {
        text-align: center;
    }
    
    .about .bg-light.p-3 .col-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .about .bg-light.p-3 .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Hide desktop-only elements on mobile */
    .d-none.d-xl-inline-block {
        display: none !important;
    }
    
    /* Mobile typography adjustments */
    .display-1 {
        font-size: 2.5rem !important;
    }
    
    .display-3 {
        font-size: 2rem !important;
    }
    
    .display-5 {
        font-size: 1.5rem !important;
    }
    
    /* Mobile section padding adjustments */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .container.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Persian text mobile adjustments */
    .farsi-text, .persian-text {
        font-size: 0.9em;
    }
    
    .farsi-title, .persian-title {
        font-size: 0.85em;
    }
}

/* Desktop - keep everything as is */
@media (min-width: 768px) {
    .mobile-nav-container,
    .mobile-page-header {
        display: none !important;
    }
    
    .mobile-section {
        display: block !important;
    }
    
    body {
        padding-top: 0;
        padding-bottom: 0;
    }
}



/*** Calendar Styles ***/
