/**
 * PCES About Us Custom Styles
 * Version: 1.0
 * 
 * This file contains all custom styles for the PCES about us shortcodes.
 * It works alongside Bootstrap 5.3.0 for layout and components.
 */

/* ========================================
   GLOBAL STYLES
======================================== */
body {
    font-family: 'Poppins' !important;
}

.e-con-inner {
    max-width: none !important;
    width: 100% !important;
}

section {
  margin: 0 auto;
  width: 100%;
}

/* Consistent container for all sections to match banner width */
.pces-container {
  max-width: 1289px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, p {
    font-family: 'Poppins' !important;
}

b, strong {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
}

h1 {
    font: 4.5rem 'Poppins'; 
    margin: 5rem 5rem 2rem 5rem;
}

h2 {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    color: #03045E;
}

p {
  font-size: 18px;
}

.section-content {
    max-width: 1289px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   HERO SECTION
======================================== */
#start {
  padding-top: 2rem;
  margin-top: 80px; /* Add space to prevent navbar overlap */
}

.banner {
  filter: url(#round);
}

.banner::before {
  content: "";
  display: block;
  background-color: #2596BE;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  width: 100%;
  max-width: 1289px;
  aspect-ratio: 1289/415;
  clip-path: polygon(52% 0, 52% 21%, 68% 21%, 68% 42%, 100% 42%, 100% 100%, 13% 100%, 13% 58%, 0 58%, 0 0);
  transition: 0.2s ease-in-out;
}

.start.text-end h2 {
  line-height: 200%;
  margin-bottom: -10rem;
  letter-spacing: -1px;
  font-size: 40px; /*For wide screen view*/
  font-weight: 900;
  color: #03045E;
}

.start.text-start img {
  width: 150px;
  margin-top: -10rem;
}

/* ========================================
   WHO WE ARE / WHAT WE DO SECTION
======================================== */
#quote {
  padding: 2rem 0;
}

div.blue, div.red {
  font-family: 'Poppins', sans-serif !important;
  font-size: 60px;
  font-weight: bolder;
}
div.blue {
  color: #03045E;
}
div.red {
  color: #B80000;
}

/* ========================================
   FOUNDERS SECTION
======================================== */
#founders {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 5rem 0 2.5rem 0;
}

#founders > .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
}

#founders h3 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 64px;
  font-weight: 700;
  color: #2596BE;
  margin: 0 auto;
}

.founder {
  margin: 2rem auto;
}

.founder img {
  width: 200px;
  border-radius: 50%;
  margin: 0 auto;
}

.founder h4 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 28px;
  font-weight: 700;
  color: #03045E;
  margin: 1rem auto;
}

.founder h5 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 20px;
  margin: 0 auto;
}

/* ========================================
   MISSION & VISION SECTION
======================================== */
#mission-vision {
  background-color: #D1E5EB;
  width: 100%;
  padding: 2.5rem 0;
}

.mission h3, .vision h3 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 40px;
  font-weight: 700;
  color: #03045E;
  margin: 1rem 0;
  text-align: start;
}

/* ========================================
   PARTNERS SECTION
======================================== */
#partners {
  background-color: #D1E5EB;
  width: 100%;
  padding: 2.5rem;
}

#partners h3 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 64px;
  font-weight: 700;
  color: #000000;
  margin: 0 auto 2rem auto;
  text-align: center;
}

/* Partner Cards */
.partner-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.partner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.partner-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.partner-card h4 {
  color: #333;
  font-weight: 600;
}

.partner-card p {
  color: #666;
  line-height: 1.6;
  flex: 1;
}

.partner-card a {
  color: #2596BE;
  text-align: right;
  display: block;
}

/* Partners Grid Layout */
.partners-container {
  margin-top: 1rem;
}

.partner-hidden {
  display: none;
}

/* See More Button */
.see-more-btn {
  background-color: #2596BE;
  color: white;
  border: 2px solid #2596BE;
  border-radius: 25px;
  padding: 10px 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.see-more-btn:hover {
  background-color: #03045E;
  border-color: #03045E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(3, 4, 94, 0.3);
}

.see-more-btn:focus {
  outline: 2px solid #2596BE;
  outline-offset: 2px;
}

.see-more-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ========================================
   DPO SECTION
======================================== */
#dpo {
  background-color: #ffffff;
  width: 100%;
  padding: 2.5rem 0;
}

#dpo h3 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 48px;
  font-weight: 700;
  color: #2596BE;
  margin-bottom: 1rem;
}

#dpo img {
  width: 100%;
  max-width: 200px;
  height: auto;
}

#dpo p {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media only screen and (max-width: 1400px) {
  .start.text-end h2 {
    font-size: 36px;
    margin-bottom: -8rem;
  }

  .start.text-start img {
    width: 120px;
    margin-top: -9rem;
  }
  
  .section-content {
      width: 100%;
  }
}

@media only screen and (max-width: 1140px) {
  .start.text-end h2 {
    font-size: 30px;
    margin-bottom: -6rem;
  }

  div.blue, div.red {
    font-size: 60px;
    letter-spacing: -1px;
  }
}

@media only screen and (max-width: 940px) {
  .start.text-end h2 {
    font-size: 26px;
    margin-bottom: -6rem;
  }

  .start.text-start img {
    width: 100px;
    margin-top: -8rem;
  }
  
  div.blue, div.red {
    font-size: 40px;
  }
}

@media only screen and (max-width: 800px) {
.start.text-end h2 {
    font-size: 24px;
    margin-bottom: -6rem;
  }    

  .pces-container {
    padding: 0 1.5rem; 
  }

  .section-content {
    padding: 0 1.5rem;
  }

  #start {
    margin-top: 90px; /* Increase margin for mobile navbar */
  }

  #founders h3 {
    font-size: 48px;
  }

  .start.text-start img {
    width: 90px;
    margin-top: -7.5rem;
  }

  /* Navbar hamburger alignment fix */
  .navbar-toggler {
    margin-right: 1.5rem !important;
    padding: 0.5rem !important;
  }
}

@media only screen and (max-width: 750px) {
  .banner::before {
    background-image: url('/wp-content/uploads/designs/about-us-banner1-mobile.webp') !important;
  }
  .start.text-start img {
    width: 80px;
    margin-top: -7rem;
  }
}

@media only screen and (max-width: 700px) {
  .banner::before {
    background-image: url('/wp-content/uploads/designs/about-us-banner1-mobile.webp') !important;
  }
  .pces-container {
    padding: 0 1rem; 
  }

  .section-content {
    padding: 0 1rem;
  }

  #start {
    margin-top: 100px; /* Further increase for smaller screens */
  }

  #quote p {
    font-size: 14px;
  }

  #founders h3 {
    font-size: 32px;
  }

  .start.text-end h2 {
    line-height: 200%;
    margin-bottom: -2rem;
    letter-spacing: -1px;
  }

  .banner::before {
    clip-path: polygon(0 0, 40% 0, 40% 21%, 100% 21%, 100% 100%, 24% 100%, 24% 58%, 0 58%);
    aspect-ratio: 372/222;
    background-position: top center;
  }

  .start.text-start img {
    width: 70px;
    margin-top: -7rem;
  }

  .see-more-btn {
    font-size: 12px;
    padding: 8px 16px;
  }

  #dpo h3 {
    font-size: 32px;
  }

  /* Enhanced navbar hamburger alignment for smaller screens */
  .navbar-toggler {
    margin-right: 1rem !important;
    padding: 0.4rem !important;
  }
}

@media only screen and (max-width: 400px) {
  .banner::before {
    background-image: url('/wp-content/uploads/designs/about-us-banner1-mobile.webp') !important;
  }

  .start.text-end h2 {
    font-size: 20px;
  }

  .section-content {
    padding: 0 0.75rem;
  }

  .pces-container {
    padding: 0 0.75rem;
  }
}

/* Banner Image */
.banner::before {
    background-image: url('/wp-content/uploads/designs/about-us-banner1.3.webp');
}

/* ========================================
   NAVBAR HAMBURGER ALIGNMENT FIX
======================================== */
/* Target common navbar classes to fix hamburger alignment */
.navbar-nav,
.navbar-collapse,
.navbar-toggler-icon,
.navbar-toggler {
  margin-right: 0 !important;
}

/* Ensure navbar container has proper spacing */
.navbar > .container,
.navbar > .container-fluid {
  padding-right: 1rem !important;
}

/* Mobile navbar adjustments */
@media (max-width: 991.98px) {
  .navbar-toggler {
    margin-right: 1rem !important;
    padding: 0.4rem 0.6rem !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
  }
  
  .navbar > .container,
  .navbar > .container-fluid {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }
  
  /* Match the top spacing with right spacing */
  .navbar {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}