/* --------------------------------------------------
   Base Sizing
-------------------------------------------------- */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------
   Navbar Transparency & Defaults
-------------------------------------------------- */
.navbar-transparent {
  background: transparent;
  border: none;
}

.navbar.navbar-default {
  background-color: #fff;
  border: none;
}

/* --------------------------------------------------
   Section Styling: uniform spacing & responsive height
-------------------------------------------------- */
/* intro-section */
.intro-section {
  min-height: 100vh;
  padding: 150px 0;
  text-align: center;
  background: #fff;
}

/* about-section */
.about-section {
  /* min-height: 100vh; */
  padding: 150px 0;
  text-align: center;
  background: #eee;
}

/* services-section */
.services-section {
  /* min-height: 100vh; */
  padding: 150px 0;
  text-align: center;
  background: #fff;
}

/* what-section */
.what-section {
  /* min-height: 100vh; */
  padding: 150px 0;
  text-align: center;
  background: #eee;
}

/* board-members-section */
.board-members-section {
  /* min-height: 100vh; */
  padding: 150px 0;
  text-align: center;
  background: #eee;
}

/* partners-section */
.partners-section {
  /* min-height: 100vh; */
  padding: 150px 0;
  text-align: center;
  background: #eee;
}

/* contact-us-section (note: typo in original) */
.contact-us-section {
  /* min-height: 100vh; */
  padding: 150px 0;
  text-align: center;
  background: #fff;
}

/* --------------------------------------------------
   Header Flex Layout: Logo left, nav links right
-------------------------------------------------- */
/* navbar container flex */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 0 20px;
}

/* navbar header */
.navbar-header {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0;
}

/* logo wrapper */
.navbar-header .logo {
  margin: 0;
}

/* all sections nav container */
.all-sections {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
}

/* force collapsed nav to flex on desktop */
@media (min-width: 768px) {
  .all-sections .navbar-collapse {
    display: flex !important;
    flex: 1 1 auto;
    justify-content: flex-end;
  }
}

/* the UL of nav links */
.all-sections .nav {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* nav link items */
.all-sections .nav li a {
  display: block;
  padding: 10px 0;
  color: #333;
  font-weight: 500;
  text-decoration: none;
}

/* hover / active state */
.all-sections .nav li.active a,
.all-sections .nav li:hover a {
  background-color: #eee;
  border-radius: 4px;
}

/* --------------------------------------------------
   Responsive Breakpoints for Header Nav
-------------------------------------------------- */
/* Large tablets (max-width: 992px) */
@media (max-width: 992px) {
  .navbar .container {
    padding: 0 15px;
  }
  .all-sections .nav {
    gap: 15px;
  }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .navbar .container {
    padding: 0 10px;
  }
  .navbar-header .navbar-toggle {
    margin-right: 5px;
  }
  .all-sections .nav {
    gap: 10px;
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .navbar .container {
    justify-content: flex-start;
    padding: 10px;
  }
  .navbar-header {
    width: auto;
    justify-content: flex-start;
  }
  .all-sections {
    width: 100%;
    margin-top: 10px;
  }
  .all-sections .navbar-collapse {
    position: static;
  }
  .all-sections .nav {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .all-sections .nav li a {
    padding: 8px 0;
  }
}

/* --------------------------------------------------
   Header Layout Overrides (bottom of file)
-------------------------------------------------- */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 20px;
}

.navbar-header {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.navbar-header .logo {
  margin: 0;
  padding: 0;
}

.all-sections {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.all-sections .nav {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* MOBILE/LARGE-TABLET (<768px) */
@media (max-width: 767px) {
  .navbar .container {
    justify-content: center;
    padding: 0 10px;
  }
  .navbar-header {
    width: 100%;
    justify-content: space-between;
    padding: 0;
  }
  .navbar-header .logo {
    order: 1;
  }
  .navbar-header .navbar-toggle {
    order: 2;
    margin-right: 0;
  }
  .all-sections {
    width: 100%;
    margin-top: 10px;
    justify-content: center;
  }
  .all-sections .nav {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
}

/* --------------------------------------------------
   Fixed Navbar & Body Offset
-------------------------------------------------- */
.navbar.navbar-default.navbar-fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 98px;
  margin-bottom: 0;
  border: 1px solid transparent;
  background-color: rgba(255,255,255,0.95);
  z-index: 1000;
}

body {
  padding-top: 98px;
}

@media (max-width: 768px) {
  .navbar.navbar-default.navbar-fixed-top {
    min-height: 70px;
  }
  body {
    padding-top: 70px;
  }
}

/* --------------------------------------------------
   About Carousel Container Reset
-------------------------------------------------- */
#about.about-section {
  padding: 0 !important;
  background: transparent !important;
  position: relative !important;
  top: 90px !important;
}

/* --------------------------------------------------
   Full-width Bootstrap Fluid Containers
-------------------------------------------------- */
.container-fluid.p-0 {
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------
   Banner Carousel Full-width
-------------------------------------------------- */
#bannerCarousel .item img {
  width: 100vw;
  max-width: 100%;
  height: auto;
  display: block;
}

#bannerCarousel .left.carousel-control,
#bannerCarousel .right.carousel-control {
  width: 5%;
}

#bannerCarousel .glyphicon {
  top: 50%;
  transform: translateY(-50%);
}

/* --------------------------------------------------
   Logo Image Sizing
-------------------------------------------------- */
.logo-img {
  max-height: 100px;
  width: auto;
  display: block;
}

@media (max-width: 992px) {
  .logo-img {
    max-height: 80px;
  }
}

@media (max-width: 576px) {
  .logo-img {
    max-height: 60px;
  }
}

/* --------------------------------------------------
   Navbar Inner Padding Reset
-------------------------------------------------- */
.navbar-header .logo,
.navbar-header .navbar-brand {
  margin: 0;
  padding: 0;
}

.header-container {
  margin: 0;
  padding: 0;
}

.navbar.navbar-default.navbar-fixed-top {
  padding-top: 90 !important;
  padding-bottom: 90 !important;
}

#about .container-fluid {
  padding-left: 0;
  padding-right: 0;
  margin: 0;
}

/* --------------------------------------------------
   Video Hover Effect
-------------------------------------------------- */
.video-wrapper {
  overflow: hidden;
}

.video-wrapper video {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.video-wrapper:hover video {
  transform: scale(1.05);
  filter: brightness(1.2);
}

/* --------------------------------------------------
   Services Section
-------------------------------------------------- */
.services-section {
  width: 100%;
  background: #fff;
  padding: 0;
}

.services-wrapper {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  min-height: 500px;
}

.services-left {
  flex: 1 1 60%;
  background: #D6B862;
  color: #000;
  padding: 80px 40px;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.why-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.why-highlight {
  color: #634A00;
}

.why-subtitle {
  font-size: 3.6rem;
  margin: 0.5rem 0 1.5rem;
}

.why-description {
  font-size: 1.7rem;
  line-height: 1.6;
  max-width: 600px;
}

.services-right {
  flex: 1 1 40%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.aim-content {
  text-align: center;
}

.our {
  font-size: 1.5rem;
  font-style: italic;
  margin: 0;
}

.aim-highlight {
  color: #D6B862;
  font-style: normal;
}

.big-number {
  font-size: 8rem;
  margin: 0.2rem 0;
  font-weight: normal;
  color: #634A00;
}

.plus {
  font-size: 3rem;
  vertical-align: super;
  color: #D6B862;
}

.companies {
  font-size: 2.5rem;
  margin: 0;
  color: #634A00;
  font-style: italic;
}

/* Responsive Breakpoints for Services */
@media (max-width: 992px) {
  .why-title { font-size: 2.5rem; }
  .why-subtitle { font-size: 2rem; }
  .why-description { font-size: 1.4rem; }
  .big-number { font-size: 6rem; }
  .companies { font-size: 2rem; }
}

@media (max-width: 768px) {
  .services-wrapper { flex-direction: column; }
  .services-left,
  .services-right {
    flex: 1 1 100%;
    clip-path: none;
    text-align: center;
    padding: 60px 20px;
  }
  .why-title { font-size: 2rem; }
  .why-subtitle { font-size: 1.75rem; }
  .why-description { font-size: 1.25rem; }
  .big-number { font-size: 5rem; }
  .companies { font-size: 1.75rem; }
}

@media (max-width: 576px) {
  .why-title { font-size: 1.75rem; }
  .why-subtitle { font-size: 1.5rem; }
  .why-description { font-size: 1rem; }
  .big-number { font-size: 4rem; }
  .companies { font-size: 1.5rem; }
}

/* --------------------------------------------------
   What Sets Us Apart: Responsive Grid
-------------------------------------------------- */
.apart-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
  .apart-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .apart-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --------------------------------------------------
   Board Members Section
-------------------------------------------------- */
.board-members-section {
  margin-top: -150px;
  padding-top: 150px;
  background-color: #D6B862;
  padding: 60px 20px;
}

.board-members-section .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  color: #444;
  margin-bottom: 40px;
}

.section-title .highlight {
  color: #8D7722;
  font-weight: bold;
}

/* Responsive Grid of Cards */
.team-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  justify-items: center;
}

/* Flip-Card Base Styles */
.flip-card {
  perspective: 1000px;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 3/4;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  border-radius: 8px;
}

/* Flip state */
.flip-card-inner.flipped {
  transform: rotateY(180deg);
}

/* Front & Back Faces */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-sizing: border-box;
}

.flip-card-front {
  background-color: #C9BB91;
}

.flip-card-front img {
  width: 80%;
  height: 193px;
  border-radius: 8px;
  margin-bottom: 10px;
  object-fit: cover;
}

.flip-card-front h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 5px;
}

.flip-card-front .role {
  font-size: 0.9rem;
  color: #666;
}

.flip-card-back {
  background-color: #C9BB91;
  transform: rotateY(180deg);
}

.flip-card-back h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 8px;
}

.flip-card-back .bio {
  font-size: 0.85rem;
  color: #444;
  text-align: center;
  line-height: 1.4;
}

/* Responsive Tweaks for Cards */
@media (max-width: 992px) {
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.5rem;
  }
  .flip-card-inner {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
}

/* --------------------------------------------------
   Partners Section (contact2)
-------------------------------------------------- */
.partners-section {
  padding: 80px 20px;
  background: #fff;
}

.partners-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #333;
}

.partners-title .highlight {
  color: #B08D3F;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 40px;
}

.partner-item {
  flex: 1 1 200px;
  max-width: 250px;
  text-align: center;
}

.partner-logo {
  max-width: 100%;
  height: auto;
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.partner-item:hover .partner-logo {
  transform: scale(1.05);
  opacity: 0.85;
}

.partner-caption {
  margin-top: 0.5rem;
  height: 1.2em;
  line-height: 1.2em;
  color: #666;
  font-size: 0.9rem;
}

/* Responsive Tweaks for Partners */
@media (max-width: 992px) {
  .partners-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  .partners-row {
    gap: 30px;
  }
  .partner-item {
    flex: 1 1 180px;
  }
}

@media (max-width: 576px) {
  .board-members-section {
    padding: 60px 10px;
  }
  .partners-title {
    font-size: 1.75rem;
    margin-bottom: 30px;
  }
  .partners-row {
    gap: 20px;
    justify-content: center !important;
  }
  .partner-item {
    flex: 1 1 100%;
    max-width: none;
  }
  .partner-caption {
    height: auto;
    margin-top: 0.25rem;
  }
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */
.footer-section {
  background-color: #fff;
  padding: 60px 20px;
  color: #634A00;
}

.footer-section a {
  color: inherit;
  text-decoration: none;
  transition: color .3s;
}

.footer-section a:hover {
  color: #333;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  flex: 1 1 200px;
  min-width: 180px;
}

.footer-logo .footer-brand img {
  max-width: 150px;
  height: auto;
  /* display: block; */
  margin-bottom: 1rem;
}

.social-icons {
  /* display: flex; */
  gap: 15px;
}

.social-icons a {
  font-size: 1.4rem;
  color: #B08D3F;
}

.social-icons a:hover {
  color: #634A00;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links li a {
  font-size: 0.95rem;
}

.footer-contact p {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

/* Responsive Tweaks for Footer */
@media (max-width: 992px) {
  .footer-grid {
    gap: 30px;
    justify-content: center;
  }
  .footer-col {
    flex: 1 1 250px;
  }
}

@media (max-width: 576px) {
  .footer-section {
    padding: 40px 10px;
  }
  .footer-grid {
    
    display: flex;
    flex-direction: column;
    align-items: center;    /* center each column */
    gap: 20px;              /* vertical gutter */
    justify-content: center; /* not strictly needed, but safe */
  
  }
  .footer-col {
    flex: 0 1 auto;
    width: 100%;
    max-width: 300px;       /* optional cap so the column never gets too wide */
    text-align: center;
  }
  .footer-contact p {
    margin-bottom: 0.4rem;
  }
}

/* Increase footer font sizes */
.footer-section {
  font-size: 1rem;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.4rem;
}

.footer-links ul li a {
  font-size: 1.1rem;
}

.partner-caption,
.footer-contact p {
  font-size: 1.1rem;
  line-height: 1.5;
}

.social-icons a {
  font-size: 1.6rem;
}

@media (min-width: 768px) {
  .footer-section {
    font-size: 1.1rem;
  }
  .footer-links h4,
  .footer-contact h4 {
    font-size: 1.6rem;
  }
  .footer-links ul li a,
  .partner-caption,
  .footer-contact p {
    font-size: 1.2rem;
  }
  .social-icons a {
    font-size: 1.8rem;
  }
}

/* --------------------------------------------------
   Global Fixed-Nav Offset (final body padding)
-------------------------------------------------- */
body {
  padding-top: 100px;
}
@media (max-width: 992px) {
  body {
    padding-top: 90px;
  }
}
@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }
}
@media (max-width: 576px) {
  body {
    padding-top: 70px;
  }
}

/* --------------------------------------------------
   Uniform Section Padding Reduction
-------------------------------------------------- */
@media (max-width: 1200px) {
  .intro-section { padding: 120px 0 !important; }
  .about-section { padding: 120px 0 !important; }
  .services-section { padding: 120px 0 !important; }
  .what-section { padding: 120px 0 !important; }
  .board-members-section { padding: 120px 0 !important; }
  .partners-section { padding: 120px 0 !important; }
  .contact-us-section { padding: 120px 0 !important; }
}

@media (max-width: 992px) {
  .intro-section { padding: 100px 0 !important; }
  .about-section { padding: 100px 0 !important; }
  .services-section { padding: 100px 0 !important; }
  .what-section { padding: 100px 0 !important; }
  .board-members-section { padding: 100px 0 !important; }
  .partners-section { padding: 100px 0 !important; }
  .contact-us-section { padding: 100px 0 !important; }
}

@media (max-width: 768px) {
  .intro-section { padding: 80px 0 !important; }
  .about-section { padding: 80px 0 !important; }
  .services-section { padding: 80px 0 !important; }
  .what-section { padding: 80px 0 !important; }
  .board-members-section { padding: 80px 0 !important; }
  .partners-section { padding: 80px 0 !important; }
  .contact-us-section { padding: 80px 0 !important; }
}

@media (max-width: 576px) {
  .intro-section { padding: 60px 0 !important; }
  .about-section { padding: 60px 0 !important; }
  .services-section { padding: 60px 0 !important; }
  .what-section { padding: 60px 0 !important; }
  .board-members-section { padding: 60px 0 !important; }
  .partners-section { padding: 60px 0 !important; }
  .contact-us-section { padding: 60px 0 !important; }
}

/* --------------------------------------------------
   Services Clip-Path Stacking (Tablet & Phone)
-------------------------------------------------- */
@media (max-width: 768px) {
  .services-left {
    clip-path: none !important;
  }
  .services-right {
    clip-path: none !important;
  }
}

/* --------------------------------------------------
   Board Members Section Margin Tweak
-------------------------------------------------- */
@media (max-width: 768px) {
  .board-members-section {
    margin-top: 0 !important;
  }
}

/* --------------------------------------------------
   Partners Grid Center Single Column
-------------------------------------------------- */
@media (max-width: 576px) {
  .partners-row {
    justify-content: center !important;
  }
}

/* --------------------------------------------------
   Logo Sizing on Smaller Screens
-------------------------------------------------- */
@media (max-width: 992px) {
  .logo-img {
    max-height: 80px !important;
  }
}
@media (max-width: 576px) {
  .logo-img {
    max-height: 60px !important;
  }
}

/* --------------------------------------------------
   Optional: Reduce FONT SIZES for Mobile
-------------------------------------------------- */
@media (max-width: 576px) {
  .why-title {
    font-size: 1.75rem !important;
  }
  .why-subtitle {
    font-size: 1.5rem !important;
  }
  .why-description {
    font-size: 1rem !important;
  }
  .big-number {
    font-size: 4rem !important;
  }
  .companies {
    font-size: 1.5rem !important;
  }
  .section-title {
    font-size: 1.5rem !important;
  }
  .partners-title {
    font-size: 1.75rem !important;
  }
  .footer-links h4 {
    font-size: 1.2rem !important;
  }
  .footer-contact h4 {
    font-size: 1.2rem !important;
  }
  .footer-links li a {
    font-size: 1rem !important;
  }
  .footer-contact p {
    font-size: 1rem !important;
  }
}
