body,
html {
  font-family: "Open Sans", sans-serif;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  color: #777;
  font-weight: 400;
  width: 100% !important;
  height: 100% !important;
}
h2,
h3,
h4 {
  font-family: "Raleway", sans-serif;
}
h2 {
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 800;
  font-size: 36px;
  color: #333;
}
h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}
h4 {
  font-size: 18px;
  color: #333;
  font-weight: 600;
}
h5 {
  text-transform: uppercase;
  font-weight: 700;
  line-height: 20px;
}
p {
  font-size: 15px;
}
p.intro {
  margin: 12px 0 0;
  line-height: 24px;
}
a {
  color: #608dfd;
  font-weight: 400;
}
a:hover,
a:focus {
  text-decoration: none;
  color: #608dfd;
}
ul,
ol {
  list-style: none;
}
ul,
ol {
  padding: 0;
  webkit-padding: 0;
  moz-padding: 0;
}
hr {
  height: 2px;
  width: 70px;
  text-align: center;
  position: relative;
  background: #1e7a46;
  margin-bottom: 20px;
  border: 0;
}

#about,
#services,
#portfolio,
#testimonials,
#team
{
  padding: 70px 0px 50px 0px;
}

#grid-images{
  padding: 5px 0px 50px 0px;
}

#ownone-school,
#school-madarsa,
#traffic-awareness,
#health-awareness
{
  padding: 100px 0px 50px 0px;
}

/* Navigation */
#menu {
  padding: 15px;
  transition: all 0.8s;
}
#menu.navbar-default {
  background-color: #fff;
  border-color: rgba(231, 231, 231, 0);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}
#menu a.navbar-brand {
  font-family: "Raleway", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
}
#menu.navbar-default .navbar-nav > li > a {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  color: #555 !important;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 2px;
  border-radius: 0;
  margin: 5px 10px 0;
}
#menu.navbar-default .navbar-nav > li > a:after {
  display: block;
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  content: "";
  transition: width 0.2s;
}
#menu.navbar-default .navbar-nav > li > a:hover:after {
  width: 100%;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  background-color: transparent;
}
.navbar-default .navbar-nav > .active > a:after,
.navbar-default .navbar-nav > .active > a:hover:after,
.navbar-default .navbar-nav > .active > a:focus:after {
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -1px !important;
  width: 100% !important;
  height: 2px !important;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%) !important;
  content: "" !important;
  transition: width 0.2s !important;
}
.navbar-toggle {
  border-radius: 0;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #fff;
  border-color: #608dfd;
}
.navbar-default .navbar-toggle:hover > .icon-bar {
  background-color: #608dfd;
}
.section-title {
  margin-bottom: 30px;
}
.section-title h2 {
  position: relative;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  color: #337ab7;
}
.section-title h2::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, #5ca9fb 0%, #6372ff 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
}
.section-title p {
  font-size: 18px;
}
.btn-custom {
  font-family: "Raleway", sans-serif;
  text-transform: uppercase;
  color: #fff;
  background-color: #5ca9fb;
  background-image: linear-gradient(to right, #5ca9fb 0%, #6372ff 100%);
  padding: 14px 34px;
  letter-spacing: 1px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  border-radius: 25px;
  transition: all 0.5s linear;
  border: 0;
}
.btn-custom:hover,
.btn-custom:focus,
.btn-custom.focus,
.btn-custom:active,
.btn-custom.active {
  color: #fff;
  background-image: none;
  background-color: #6372ff;
}
.btn:active,
.btn.active {
  background-image: none;
  outline: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}
a:focus,
.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
  outline: none;
  outline-offset: none;
}
/* Header Section */
.intro {
  display: table;
  width: 100%;
  padding: 0;
  background: url(../img/intro-bg.jpg) center center no-repeat;
  background-color: #e5e5e5;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
}
.intro .overlay {
  /* background: rgba(0, 0, 0, 0.2); */
  background: rgba(0, 0, 0, 0.45);
}
.intro h1 {
  font-family: "Raleway", sans-serif;
  color: #fff;
  font-size: 50px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 10px;
}
.intro h1 span {
  font-weight: 800;
  color: #5ca9fb;
}
.intro p {
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  line-height: 30px;
  margin: 0 auto;
  margin-bottom: 60px;
}
header .intro-text {
  padding-top: 170px;
  padding-bottom: 200px;
  text-align: center;
}
/* Features Section */
#features {
  background: #f6f6f6;
}
#features i.fa {
  font-size: 38px;
  margin-bottom: 20px;
  transition: all 0.5s;
  color: #fff;
  width: 100px;
  height: 100px;
  padding: 30px 0;
  border-radius: 50%;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.05);
}

/* About Section */
#about h3 {
  font-size: 22px;
  margin: 0 0 20px;
}
#about h2 {
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 15px;
}
#about h2::after {
  position: absolute;
  content: "";
  background: linear-gradient(to right, #5ca9fb 0%, #6372ff 100%);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 0;
}
#about .about-text li {
  margin-bottom: 6px;
  margin-left: 6px;
  list-style: none;
  padding: 0;
}

#about .about-text h2 {
  color: #337ab7;
}

#about .about-text li:before {
  content: "\f00c";
  font-family: "FontAwesome";
  color: #5ca9fb;
  font-size: 11px;
  font-weight: 300;
  padding-right: 8px;
}
#about img {
  width: 520px;
  margin-top: 10px;
  background: #fff;
  border-right: 0;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.06);
}
#about p {
  line-height: 24px;
  margin: 30px 0;
}
/* Services Section */
#services {
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  color: #fff;
}
#services .service-desc {
  margin: 10px 10px 20px;
}
#services h2 {
  color: #fff;
}
#services .section-title h2::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.3);
  height: 4px;
  width: 60px;
  bottom: 0;
  margin-left: -30px;
  left: 50%;
}
#services i.fa {
  font-size: 42px;
  width: 120px;
  height: 120px;
  padding: 40px 0;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  border-radius: 50%;
  color: #fff;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.05);
}
#services h3 {
  font-weight: 500;
  padding: 5px 0;
  color: #fff;
}
#services p {
  color: rgba(255, 255, 255, 0.75);
}
#services .service-desc {
  margin-bottom: 40px;
}
/* Portfolio Section */
.portfolio-item {
  margin: 1px -15px 0 -14px;
  padding: 0;
}
.portfolio-item .hover-bg {
  overflow: hidden;
  position: relative;
  margin: 0;
}
.hover-bg .hover-text {
  position: absolute;
  text-align: center;
  margin: 0 auto;
  color: #fff;
  background: linear-gradient(
    to right,
    rgba(99, 114, 255, 0.8) 0%,
    rgba(92, 169, 251, 0.8) 100%
  );
  padding: 30% 0 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: all 0.5s;
}
.hover-bg .hover-text > h4 {
  opacity: 0;
  color: #fff;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  transition: all 0.3s;
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 500;
  text-transform: uppercase;
}
.hover-bg:hover .hover-text > h4 {
  opacity: 1;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
.hover-bg:hover .hover-text {
  opacity: 1;
}
/* Testimonials Section */
#testimonials {
  background: #f6f6f6;
}
#testimonials i {
  color: #e6e6e6;
  font-size: 32px;
  margin-bottom: 20px;
}
.testimonial {
  position: relative;
  padding: 20px;
}
.testimonial-image {
  float: left;
  margin-right: 15px;
}
.testimonial-image,
.testimonial-image img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.testimonial-content {
  position: relative;
  overflow: hidden;
}
.testimonial-content p {
  margin-bottom: 0;
  font-size: 14px;
  font-style: italic;
}
.testimonial-meta {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #666;
}
/* Team Section */
#team h4 {
  margin: 5px 0;
}
#team .team-img {
  width: 240px;
}
#team .thumbnail {
  background: transparent;
  border: 0;
}
#team .thumbnail .caption {
  padding: 15px 0 0;
  color: #888;
}
/* Contact Section */
#contact {
  padding: 100px 0 20px;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  color: rgba(255, 255, 255, 0.75);
}
#contact .section-title {
  margin-bottom: 40px;
}
#contact .section-title p {
  font-size: 16px;
}

/* #features .section-title p {
  font-size: 20px;
} */
p {
    font-size: 18px !important;
}
#contact h2 {
  color: #fff;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}
#contact .section-title h2::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.3);
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 30px;
}
#contact h3 {
  color: #fff;
  margin-top: 80px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  font-weight: 400;
}
#contact form {
  padding-top: 20px;
}
#contact .text-danger {
  color: #cc0033;
  text-align: left;
}
#contact .btn-custom {
  margin: 10px 0;
  background: transparent;
  border: 2px solid #fff;
}
#contact .btn-custom:hover {
  color: #1f386e;
  background: #fff;
}
label {
  font-size: 12px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  float: left;
}
#contact .form-control {
  display: block;
  width: 100%;
  padding: 6px 12px;
  font-size: 16px;
  line-height: 1.42857143;
  color: #444;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ddd;
  border-radius: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
}
#contact .form-control:focus {
  border-color: #999;
  outline: 0;
  -webkit-box-shadow: transparent;
  box-shadow: transparent;
}
.form-control::-webkit-input-placeholder {
  color: #777;
}
.form-control:-moz-placeholder {
  color: #777;
}
.form-control::-moz-placeholder {
  color: #777;
}
.form-control:-ms-input-placeholder {
  color: #777;
}
#contact .contact-item {
  margin: 20px 0;
}
#contact .contact-item span {
  color: rgba(255, 255, 255, 1);
  margin-bottom: 10px;
  display: block;
}
#contact .contact-item i.fa {
  margin-right: 10px;
}
#contact .social {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 50px;
  margin-top: 10px;
  text-align: center;
}
#contact .social ul li {
  display: inline-block;
  margin: 0 20px;
}
#contact .social i.fa {
  font-size: 22px;
  width: 48px;
  height: 48px;
  padding: 12px 0;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50%;
  transition: all 0.3s;
}
#contact .social i.fa:hover {
  color: #608dfd;
  background: #fff;
}
/* Footer Section*/
#footer {
  background: #f6f6f6;
  padding: 15px 0;
}
#footer p {
  color: #888;
  font-size: 14px;
}
#footer a {
  color: #608dfd;
}
#footer a:hover {
  border-bottom: 2px solid #608dfd;
}

@media (max-width: 768px) {
  #about img {
    margin: 50px 0;
  }
}



.school-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 50px;
}

.page-banner {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 50px;

}


.navbar-nav > li > .dropdown-menu > li {
  background-color: gainsboro;
  margin: 0px 0px 3px 0px;
}

#sentMessage .form-control {
  border-radius: 10px;
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Lightbox image */
.lightbox-image {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease-in-out;
}

.lightbox-image:hover {
  transform: scale(1.02);
}

/* Close button */
.close-btn {
  position: absolute;
  top: 25px;
  right: 40px;
  font-size: 45px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10000;
}

.close-btn:hover {
  color: #ff0000;
}

/* Remove horizontal scroll */
body {
  overflow-x: hidden;
}

/* Fix row spacing and prevent overflow */
.portfolio-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 -10px; /* balance spacing */
}

/* Individual gallery item */
.portfolio-item {
  /* padding: 10px; */
  box-sizing: border-box;
}

/* Image styling */
.portfolio-item img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease;
  padding: 7px;
}

/* Hover zoom effect */
.portfolio-item img:hover {
  transform: scale(1.05);
}

/* Responsive fix */
@media (max-width: 768px) {
  .portfolio-item {
    padding: 8px;
  }
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1; /* makes every box square */
  overflow: hidden;
  border-radius: 10px;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* keeps image proportional */
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-image:hover {
  transform: scale(1.05);
}

.teams-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;   /* perfect square on all screens */
  overflow: hidden;
  border-radius: 10px;
}

.teams-image {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  transition: transform 0.3s ease;
}

@media (max-width: 576px) {
  .teams-image-wrapper {
    height: 520px;   /* stable mobile height */
  }
}

/* Hover only on desktop */
@media (hover: hover) {
  .teams-image:hover {
    transform: scale(1.05);
  }
}

.recent-activity-card {
  margin-top: 10px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  /* height: 50%; */
}

.activity-image-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;   /* PERFECT for portrait photos */
  overflow: hidden;
  border-radius: 12px;
  background: #f5f5f5;
}

.activity-image {
  width: 100%;
  height: 100%;
  cursor: pointer;
  object-fit: cover;
  object-position: center top; /* 🔥 KEY FIX */
}


@media (hover: hover) {
  .activity-image:hover {
    transform: scale(1.05);
  }
}

.activity-content {
  padding: 15px;
  text-align: left;
}

.activity-content h5 {
  margin-bottom: 8px;
  font-weight: 600;
}

.activity-content p {
  font-size: 14px;
  color: #666;
  margin-bottom: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-content {
  max-width: 100%;
  max-height: 100%;
  /* overflow: auto; */
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 90vh;   /* 🔥 key fix */
  width: auto;
  height: auto;
  object-fit: contain; /* 🔥 NOT cover */
  margin: auto;
}


.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}

/* Facebook full width fix */
.facebook-wrapper {
  width: 100%;
  overflow: hidden;
}

.facebook-wrapper .fb-page,
.facebook-wrapper .fb-page span,
.facebook-wrapper .fb-page iframe {
  width: 100% !important;
  max-width: 100% !important;
}

.facebook-fixed {
  max-width: 500px;
  width: 100%;
}

.dropdown-menu > li > a {
  font-weight: 600 !important;
}

.dropdown-menu > li > a:hover{
  background-color: #6680ff !important;
  color: white !important;
}
  
/* =========================
   MOBILE FIXES (<=576px)
========================= */
@media (max-width: 576px) {
  
  /* .lightbox-image {
    max-height: 80vh;
  } */
  
  /* Global spacing */
  section,
  #about,
  #services,
  #portfolio,
  #gallery,
  #team,
  #contact,
  #ownone-school,
  #school-madarsa,
  #traffic-awareness,
  #health-awareness {
    padding: 30px 15px 30px 15px;
  }

  /* Headings */
  h2 {
    font-size: 24px;
    line-height: 1.3;
  }

  h3 {
    font-size: 18px;
  }

  h4 {
    font-size: 16px;
  }

  p {
    font-size: 15px !important;
    line-height: 1.6;
  }

  /* Hero / Intro section */
  header .intro-text {
    /* padding-top: 110px; */
    padding-bottom: 120px;
  }

  .intro h1 {
    font-size: 28px;
  }

  .intro p {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Navbar */
  #menu {
    padding: 10px;
  }

  #menu.navbar-default .navbar-nav > li > a {
    margin: 8px 0;
    padding: 10px;
    text-align: center;
  }

  /* About image */
  #about img {
    width: 100%;
    max-width: 100%;
    margin: 30px 0;
  }

  /* Portfolio / Gallery */
  .portfolio-items {
    margin: 0;
  }

  .portfolio-item {
    padding: 6px;
  }

  .image-wrapper {
    aspect-ratio: 1 / 1;
  }

  /* Recent Activities */
  .recent-activity-card {
    height: auto;
  }

  .activity-image-wrapper {
    aspect-ratio: 4 / 5;
  }

  .activity-content {
    padding: 12px;
  }

  .activity-content h5 {
    font-size: 15px;
  }

  .activity-content p {
    font-size: 13px;
  }

  /* Team section */
  .teams-image-wrapper {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  /* Lightbox */
  /* .lightbox {
    padding: 10px;
  } */

  /* .lightbox-image {
    max-height: 75vh;
  } */

  .close-btn {
    font-size: 28px;
    top: 15px;
    right: 20px;
  }

  #menu a.navbar-brand {
    font-family: "Raleway", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
  }

    /* Remove horizontal scroll */
  body {
    overflow-x: hidden;
  }

  .facebook-wrapper iframe {
    min-width: 100% !important;
  }

}

/* .page-banner {
  width: 100%;
  max-width: 550px;
  height: auto;
  object-fit: cover;
} */

/* Mobile Screens */
/* @media (max-width: 768px) {
  .page-banner {
    max-width: 280px;
  }
} */
