/* Ubuntu Arabic Font */
@font-face {
    font-family: 'Ubuntu Arabic';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Ubuntu-Arabic_R.ttf') format('truetype');
}

/* Media Font */
@font-face {
    font-family: 'Media';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Media.ttf') format('truetype');
}

/* Navbar brand text styling */
.navbar-brand-arabic {
    font-family: 'Ubuntu Arabic', sans-serif !important;
}

/* Navbar responsive layout - all screens in one row */
.navbar {
    display: flex !important;
    /* flex-wrap: nowrap !important; */
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
}

.navbar-collapse {
    display: flex !important;
    flex-basis: auto !important;
    /* flex-grow: 1 !important; */
    flex-direction: row !important;
}

/* Mobile adjustments - keep everything in same row */
@media (max-width: 991px) {
    .navbar-brand{
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .navbar-brand h1 {
        font-size: 1.2rem !important;
    }
    
    .navbar-brand small {
        font-size: 0.75rem !important;
    }
    
    .navbar-brand img {
        width: 50px !important;
    }
    
    .navbar-nav {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }
    
    .navbar-nav .nav-link {
        font-size: 12px !important;
        /* padding: 0.25rem 0.3rem !important; */
        margin-right: 10px !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 768px) {
    .navbar-brand h1 {
        font-size: 1rem !important;
    }
    
    .navbar-brand small {
        font-size: 0.85rem !important;
    }
    
    .navbar-brand img {
        width: 40px !important;
    }
    
    .navbar-nav .nav-link {
        font-size: 10px !important;
        /* padding: 0.2rem 0.25rem !important; */
        margin-right: 10px !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand h1 {
        /* display: none; */
        font-size: 0.9rem !important;
    }
    
    .navbar-brand small {
        /* display: none; */
        font-size: 0.8rem !important;
    }
    
    .navbar-brand img {
        width: 50px !important;
        /* margin-left: 0 !important; */
    }
    
    .navbar-nav .nav-link {
        font-size: 9px !important;
        margin-right: 0 !important;
        padding: 0px 5px !important;
    }
}

@media (max-width: 425px) {
    .navbar {
        justify-content: center !important;
    }
    
    .navbar-brand {
        margin: 0 auto !important;
    }
    
    .navbar-brand h1 {
        /* display: none; */
        font-size: 0.9rem !important;
    }
    
    .navbar-brand small {
        /* display: none; */
        font-size: 0.8rem !important;
    }
    
    .navbar-brand img {
        width: 50px !important;
    }
    
    .navbar-nav .nav-link {
        font-size: 9px !important;
        margin-right: 0 !important;
        padding: 0px 5px !important;
    }
}

/*** Custom Color Variables ***/
:root {
    --custom-dark: #3B1F0A;
    --bs-dark: var(--custom-dark);
}

/* Override heading colors */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    color: var(--custom-dark) !important;
}

/* Override icon colors */
.fa, .fas, .far, .fab, .fal, .fad, .bi, i[class*="fa-"], i[class*="bi-"] {
    color: var(--custom-dark) !important;
}

/* Navigation links styling */
.navbar-nav .nav-link {
    font-size: 24px !important;
    font-weight: bold !important;
    /* font-family: 'Mada', 'Montserrat', sans-serif !important; */
    font-family: 'Media','Montserrat', sans-serif !important;
}

/* Ensure Media font is applied to all elements */
html, body {
    /* font-family: 'Mada', 'Montserrat', sans-serif !important; */
    font-family: 'Media', 'Montserrat', sans-serif !important;
}

/* Follow section modern UI */
.follow-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(120%) blur(6px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    /* transition: box-shadow 0.2s ease, transform 0.2s ease; */
}

.follow-card:hover {
    /* transform: translateY(-2px); */
    box-shadow: 0 6px 24px rgba(59, 31, 10, 0.12);
}

.follow-link {
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none !important;
    color: inherit !important;
    transition: background-color 0.2s ease;
}

.follow-link:hover {
    background-color: rgba(59, 31, 10, 0.06);
}

.follow-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #fff !important;
    font-size: 30px !important;
}

/* .follow-icon.youtube { background: #FF0000; }
.follow-icon.twitter { background: #1DA1F2; }
.follow-icon.instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4); }
.follow-icon.snapchat { background: #FFFC00; color: #000 !important; } */

.nav-item.rounded-pill{
    padding: 14.5px 45px !important;
    font-size: 22px !important;
    font-weight: normal !important;
    white-space: nowrap !important;
    width: auto !important;
}

/*===== Section Title Styling =====*/
.nav-item.section-title {
    display: inline-block;
    padding: 8px 24px !important;
    font-weight: 800 !important;
    font-size: 27px !important;
    text-align: center;
    min-width: 140px !important;
    width: auto !important;
    box-shadow: 1px 7px 15px 0px #737373;
  }

/* Hero Image Display Control */
.hero-header .hero-image {
    display: block;
    width: 100%;
}

.hero-header .tablet-version,
.hero-header .mobile-version,
.hero-header .small-mobile-version {
    display: none;
}
.navbar{
    border-bottom: none !important;
}

.navbar-light .navbar-brand {
    margin-top: 10px !important;
    padding: 10px 40px !important;
    /* background-color: #fff !important; */
    border-radius:300px !important;
}

/* Mobile responsive styles */
@media (max-width: 1200px) {
    .hero-header .desktop-version {
        display: none;
    }
    
    .hero-header .tablet-version {
        display: block;
    }
    
    #hero.hero-header {
        width: 100% !important;
        height: auto !important;
        /* background: url("../img/mobile_verse_1200px.jpg") center center no-repeat; */
        background-size: cover;
    }
    .hero-header .hero-header-inner {
        height: 436px !important;
    }
    .navbar{
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        border-bottom: none !important;
    }
    
    /* Mobile school name font size */
    .navbar-brand h1 {
        font-size: 20px !important;
    }
}
@media (max-width: 768px) {
    .hero-header .desktop-version,
    .hero-header .tablet-version,
    .hero-header .small-mobile-version {
        display: none;
    }
    
    .hero-header .mobile-version {
        display: block;
    }
    
    #hero.hero-header {
        width: 100% !important;
        height: auto !important;
    }
    .hero-header .hero-header-inner {
        height: 480px !important;
    }
    .navbar{
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        border-bottom: none !important;
    }
    
    /* Mobile school name font size */
    .navbar-brand h1 {
        font-size: 20px !important;
    }

    /* Footer items mobile spacing */
    .footer-item {
        margin-top: 0 !important;
    }

    .nav-item.rounded-pill{
        padding: 10px 20px !important;
        /* width: 35% !important; */
        font-size: 18px !important;
        /* margin-right: 0 !important; */
    }

    .nav-item.section-title{
        font-size: 23px !important;
        padding: 7px 20px !important;
        min-width: 120px !important;
    }
}

@media (max-width: 425px) {
    .navbar-light .navbar-brand {
        margin-top: 5px !important;
        margin-bottom: 10px !important;
        padding: 5px 40px !important;
    }
    
    .hero-header .desktop-version,
    .hero-header .tablet-version,
    .hero-header .mobile-version {
        display: none;
    }
    
    .hero-header .small-mobile-version {
        display: block;
    }
    
    #hero.hero-header {
        width: 100% !important;
        height: auto !important;
    }
    .hero-header .hero-header-inner {
        height: 265px !important;
    }
    .navbar{
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        border-bottom: none !important;
    }
    
    /* Mobile school name font size */
    .navbar-brand h1 {
        font-size: 20px !important;
    }

    /* Footer items mobile spacing */
    .footer-item {
        margin-top: 0 !important;
    }

    .footer .footer-item p {
        margin-bottom: 0 !important;
    }

    .footer-item .py-4{
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .footer-item .py-4 > span.p-4 {
        padding: 0 !important;
    }

    .nav-item.rounded-pill{
        padding: 8px 20px !important;
        /* width: 40% !important; */
        font-size: 16px !important;
        /* margin-right: 0 !important; */
    }

    .nav-item.section-title{
        font-size: 18px !important;
        min-width: 100px !important;
    }
}

@media (max-width: 375px) {
    .hero-header .hero-header-inner {
        height: 171px !important;
    }
    .navbar-toggler{
        padding: .25rem .75rem !important;
    }

    /* .navbar-brand {
        margin-right: 0px !important;
    } */
    .navbar-brand img{
        width: 50px !important;
    }
    .navbar-brand h1{
        font-size: 18px !important;
    }
    .navbar-brand small{
        font-size: 14px !important;
    }
    
    .navbar-nav .nav-link {
        margin-right: 0 !important;
        font-size: 16px !important;
    }

    /* Footer items mobile spacing */
    .footer-item {
        margin-top: 0 !important;
    }

    .footer .footer-item p {
        margin-bottom: 0 !important;
    }

    .footer-item .py-4{
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .footer-item .py-4 > span.p-4 {
        padding: 0 !important;
    }

    .nav-item.rounded-pill{
        padding: 6px 6px !important;
        /* width: 50% !important; */
        margin-right: 5px !important;
    }

    .nav-item.section-title{
        /* font-size: 16px !important; */
        margin-right: 0 !important;
    }
}

h1, h2, h3, h4, h5, h6, p, a, span, div, li, ul, ol, input, textarea, button, label, th, td {
    /* font-family: 'Mada', 'Montserrat', sans-serif !important; */
    font-family: 'Media', 'Montserrat', sans-serif !important;
}

/* Ensure proper scroll positioning for sections */
#about,#vision, #mission,#follow {
    scroll-margin-top: 100px;
}

/*** 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); */
    color: #fff;
    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;
}
.navbar-collapse {
    background: transparent !important;
}
@media (min-width: 992px) {
    

    .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: 15rem;
    padding-bottom: 6rem;
    /* background: url("../img/hero.jpg"), center center no-repeat; */
    background-size: cover;
}

/* Bottom shape image positioning */
.hero-header .botm-shp.shp-img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    display: block;
}

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

/*===== Featured Area =====*/
.gap.no-gap {
  padding: 0;
  position: relative;
  overflow: hidden;
}
.featured-area-wrap {
  float: left;
  position: relative;
  width: 100%;
}
.featured-area {
  float: left;
  width: 100%;
  min-height: 500px; /* Ensure minimum height while loading */
}

/* Loading state for carousel */
.featured-area:not(.owl-loaded) {
  opacity: 0.8;
  position: relative;
}

.featured-area:not(.owl-loaded)::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.featured-area.owl-loaded {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.featured-area.owl-loaded::before {
  display: none;
}
.featured-item {
  padding-top:100px;
  padding-bottom:400px;
  float: left;
  position: relative;
  z-index: 1;
  width: 100%;
  background-size: cover;
  background-position: center;
  /* padding: 200px 15px; */
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-item:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
  background-color: #2d9d7575;
  opacity: .65;
}
.featured-cap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 80%;
  padding: 20px 0 60px 0;
}
.featured-cap > img {
  width: auto !important;
  display: block !important;
}
.featured-cap > * {opacity: 0;}
.owl-item.active .featured-cap > * {opacity: 1;}

/* Specific styling for bsml-txt image */
.featured-cap .bsml-txt {
  padding-top:30px;
  width: 150px !important;
  height: auto !important;
}

/* Specific styling for verse-image */
.featured-cap .verse-image {
  width: 300px !important;
  height: auto !important;
  margin-bottom: 10px !important;
}

.featured-cap > h3 {
  color: #fff;
  font-size: 35px;
  margin-bottom: 0;
  font-weight: 400;
  font-family: roboto;
}
.featured-cap > img + img,
.featured-cap > img + h1 {margin: 10px 0 0;}
.featured-cap > img + h3,
.featured-cap > h1 + h3 {margin-top: 3px;}
.featured-cap > h3 + span {margin-top: 15px;}
.featured-cap > span {
  color: #fff;
  display: block;
  font-size: 22px;
  font-weight: 300;
}
.featured-cap > span + a {margin-top: 30px;}

/* Responsive adjustments for images */
@media (max-width: 768px) {
  .featured-cap .bsml-txt {
    width: 150px !important;
  }
  
  .featured-cap {
    max-width: 90%;
  }
}

@media (max-width: 576px) {
  .featured-cap {
    max-width: 95%;
  }
}

/*===== Shapes Style =====*/
.shp-img {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}
.botm-shp {bottom:-1px;}
.top-shp {top: 0;}
.lft-shp {left: -700px;}


@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(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(59, 31, 10, .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(59, 31, 10, .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(59, 31, 10, .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 ***/

/* Responsive Verse Background Images */
.verse-responsive-bg {
    background-image: url('../verse/desktop_verse.png');
}

/* Mobile devices (up to 425px) */
@media (max-width: 425px) {
    .verse-responsive-bg {
        background-image: url('../verse/mobile_verse_425px.png');
    }
}

/* Small tablets and large phones (426px to 768px) */
@media (max-width: 768px) {
    .verse-responsive-bg {
        background-image: url('../verse/mobile_verse_768px.png');
    }
}

/* Medium tablets and small desktops (769px to 1200px) */
@media (max-width: 1200px){
    .verse-responsive-bg {
        background-image: url('../verse/mobile_verse_1200px.png');
    }
}
