
/*** 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;
    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 {
    margin-bottom: 6rem;
    padding-top: 15rem;
    padding-bottom: 6rem;
    background: url("../img/hero.jpg") center center no-repeat;
    background-size: cover;
    background-position: center center; /* Ensure proper centering */
    min-height: 100vh; /* Make it at least full viewport height */
    position: relative;
}

.hero-header .hero-header-inner {
    padding: 3rem;
    background: rgba(255, 255, 255, .5);
    position: relative; /* Ensure it stays above the background */
    z-index: 2;
}

/* Add overlay if text isn't readable */
.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Dark overlay for better text contrast */
    z-index: 1;
}
/*** 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(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: 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 ***/
 /* Change QIBL in logo to dark green */
.navbar-brand .text-primary {
    color: #004225 !important; /* Dark green color */
}

/* Change "Where Faith Meets Guidance" to dark green */
.guidance-text {
    color: #004225 !important;
}

/* Change "WELCOME TO QIBLATAK" to dark green */
.welcome-text {
    color: #004225 !important;
}

/* Change QIBL in logo to gold/yellow */
.navbar-brand h1.mb-0 {
    color: #D4AF37 !important; /* Classic gold color */
}

/* GOLDEN TOP BAR STYLES */
.golden-topbar {
  background: linear-gradient(135deg, #F5D062 0%, #D4AF37 100%);
  color: #2C3E21;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.golden-topbar i {
  margin-right: 5px;
}

#livePrayerTimes, #hijriDate {
  font-weight: 600;
}

.golden-link {
  color: #2C3E21;
  text-decoration: none;
  transition: all 0.3s;
  margin-left: 15px;
}

.golden-link:hover {
  color: #006400;
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .golden-topbar {
    text-align: center;
    padding: 8px 0;
  }
  .golden-topbar .col-md-6 {
    margin-bottom: 5px;
  }
}
/* Your existing gold styles (keep this) */
.golden-topbar {
  background: linear-gradient(135deg, #F5D062 0%, #D4AF37 100%);
  color: #2C3E21;
}

/* ▼ Add these NEW transparent styles AFTER ▼ */
.golden-topbar.transparent {
  background: rgba(212, 175, 55, 0.15) !important;
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  color: #4a3c0a;
}

/* Mobile tweaks for transparent version */
@media (max-width: 768px) {
  .golden-topbar.transparent {
    background: rgba(212, 175, 55, 0.25) !important;
  }
}

/* Rich Dark Green Navigation Items */
.special-green,
.navbar-nav .nav-link.active {
    color: #013220 !important;
    font-weight: 500;
}

/* Hover effect */
.navbar-nav .nav-link.special-green:hover {
    color: #025b38 !important;
}

/* ====== NAVIGATION BAR STYLES ====== */
.navbar {
    font-family: 'Open Sans', sans-serif;
}

/* Logo styling */
.navbar-brand h1 {
    font-size: 2rem;
    font-weight: 700;
}
.navbar-brand .text-primary {
    color: #D4AF37; /* Gold color for "atak" */
}

/* Navigation items base style */
.navbar-nav .nav-link {
    color: #333; /* Default text color */
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}

/* Dark green items (Home, About, Contact) */
.navbar-nav .nav-link.special-green,
.navbar-nav .nav-link.active {
    color: #013220 !important; /* Rich dark green */
}

/* Yellow hover effect for ALL nav items */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #FFD700 !important; /* Bright yellow */
    transform: scale(1.05);
}

/* Active page indicator */
.navbar-nav .nav-link.active {
    font-weight: 600;
    border-bottom: 2px solid #FFD700;
}

/* Dropdown menu styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}
.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}
.dropdown-item:hover {
    background: rgba(255, 215, 0, 0.1) !important;
    color: #FFD700 !important;
    padding-left: 25px;
}

/* Donate button styles */
.donate-btn {
    background: #D4AF37;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.donate-btn:hover {
    background: #FFD700 !important;
    color: #013220 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Mobile menu styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    }
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }
    .donate-btn {
        margin-top: 1rem;
        display: inline-block !important;
    }
}

/* ====== NAVIGATION BAR STYLES ====== */
.navbar {
    font-family: 'Open Sans', sans-serif;
}

/* Logo styling - Qibl (yellow) + atak (green) */
.navbar-brand h1 {
    font-size: 2rem;
    font-weight: 700;
}
.navbar-brand h1 .text-primary {
    color: #013220 !important; /* Dark green for "atak" */
}
.navbar-brand h1 {
    color: #D4AF37 !important; /* Gold for "Qibl" */
}

/* Navigation items base style */
.navbar-nav .nav-link {
    color: #333; /* Default text color */
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}

/* Dark green items (Home, About, Contact) */
.navbar-nav .nav-link.special-green,
.navbar-nav .nav-link.active {
    color: #013220 !important; /* Rich dark green */
}

/* Yellow hover effect for ALL nav items */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #FFD700 !important; /* Bright yellow */
    transform: scale(1.05);
}

/* Active page indicator */
.navbar-nav .nav-link.active {
    font-weight: 600;
    border-bottom: 2px solid #FFD700;
}

/* Dropdown menu styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}
.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}
.dropdown-item:hover {
    background: rgba(255, 215, 0, 0.1) !important;
    color: #FFD700 !important;
    padding-left: 25px;
}

/* Donate button styles */
.donate-btn {
    background: #D4AF37;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.donate-btn:hover {
    background: #FFD700 !important;
    color: #013220 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Mobile menu styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    }
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }
    .donate-btn {
        margin-top: 1rem;
        display: inline-block !important;
    }
}
/* Qibl (gold) */
.navbar-brand h1 {
    color: #D4AF37 !important;
}
/* atak (dark green) */
.navbar-brand h1 .text-primary {
    color: #013220 !important;
}
/*** Language Switcher Styles ***/
.language-switcher {
    display: inline-block;
    margin-left: 15px;
}

.language-switcher .form-select {
    border: 1px solid #D4AF37;
    background-color: rgba(255, 255, 255, 0.9);
    color: #013220;
    font-weight: 500;
}

.language-switcher .form-select:focus {
    border-color: #013220;
    box-shadow: 0 0 0 0.2rem rgba(1, 50, 32, 0.25);
}

/*** RTL (Right-to-Left) Support ***/
[dir="rtl"] {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .navbar-nav {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

[dir="rtl"] .dropdown-menu {
    text-align: right;
    right: 0;
    left: auto;
}

[dir="rtl"] .breadcrumb-item::before {
    float: right;
    padding-left: 0.5rem;
    padding-right: 0;
}

/*** Arabic Font Styling ***/
.arabic-font {
    font-family: 'Scheherazade New', 'Traditional Arabic', 'Amiri', serif;
    line-height: 1.8;
}

[dir="rtl"] body {
    font-family: 'Scheherazade New', 'Traditional Arabic', 'Amiri', serif;
}

[dir="rtl"] h1, 
[dir="rtl"] h2, 
[dir="rtl"] h3, 
[dir="rtl"] h4, 
[dir="rtl"] h5, 
[dir="rtl"] h6 {
    font-family: 'Scheherazade New', 'Traditional Arabic', 'Amiri', serif;
    font-weight: 700;
}

/*** Additional Responsive Adjustments ***/
@media (max-width: 768px) {
    .language-switcher {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    .language-switcher .form-select {
        width: 140px;
        margin: 0 auto;
    }
    
    [dir="rtl"] .navbar-collapse {
        text-align: right;
    }
}

/*** Animation for Language Transition ***/
body {
    transition: all 0.3s ease;
}

/*** Golden Top Bar Enhancements ***/
.golden-topbar.transparent {
    background: rgba(212, 175, 55, 0.15) !important;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    color: #4a3c0a;
}

/*** Prayer Times Styling ***/
#livePrayerTimes {
    font-weight: 600;
    direction: ltr; /* Ensure times display LTR even in RTL mode */
    display: inline-block;
}

/*** Navigation Enhancements for Bilingual ***/
.navbar-nav .nav-link[data-translate] {
    transition: all 0.3s ease;
}

/* Ensure proper spacing in both LTR and RTL */
[dir="rtl"] .navbar-nav .nav-link {
    padding: 12px 15px;
}

/*** Footer Adjustments for Bilingual ***/
[dir="rtl"] .footer-item {
    text-align: right;
}

[dir="rtl"] .d-flex.flex-column.align-items-start {
    align-items: flex-end !important;
}

/*** Form Adjustments for RTL ***/
[dir="rtl"] .form-control {
    text-align: right;
}

[dir="rtl"] .position-relative .btn {
    right: auto;
    left: 0;
}
.language-switcher .form-select {
    background: linear-gradient(to right, #D4AF37, #BF9B30);
    color: #013220; /* Change this to dark green */
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
}
.language-switcher .form-select option {
    color: #013220; /* Dark green for the options */
}
/* When Arabic is selected */
[dir="rtl"] .logo-en {
    display: none;
}

[dir="rtl"] .logo-ar {
    display: inline !important;
}
/* Golden prayer box at the very top */
.prayer-box {
  position: relative;
  top: 0;
  width: 100%;
  padding: 5px;
  text-align: center;
  z-index: 1000; /* stays above other content */
}
.golden-bar {
  position: relative;
  top: 0;
  width: 100%;
 
  padding: 5px 10px; /* smaller top/bottom padding */
  display: flex; /* keeps items (times, date, alerts) in one line */
  justify-content: space-between; /* spread items left, right, middle */
  align-items: center; /* vertically center them */
  font-size: 14px; /* make text smaller if you want */
  line-height: 1.2;
  height: auto; /* adjust automatically */
}


/* QiblTak, language button, and menu below the golden box */
.navbar {
  margin-top: 40px; /* adjust depending on prayer-box height */
}
.hero-header {
    padding-top: 2;    /* remove extra padding */
    margin-top: 2;     /* remove extra margin */
    padding-bottom: 40px; /* optional for some spacing below */
}
.hero-header-inner {
    margin-top: 10;     /* no extra margin inside */
}
/* Reduce space above hero on About page */
.about-page .navbar,
.about-page .top-bar {
    margin-bottom: 0;
    padding-bottom: 0;
}
/* Make the About page image smaller and responsive */
.about-img {
    width: 70%;        /* image will scale to the container width */
    max-width: 600px;   /* caps the image width so it doesn’t get too big */
    height: 60;       /* keeps aspect ratio */
    display: block;     /* removes inline spacing */
    margin: 20px auto;  /* centers image and adds vertical spacing */
    border-radius: 8px; /* optional, for rounded corners */
}
body.testimonial-page .hero-header {
    background-image: none !important;
}
