/* ==========================================================================
   ABOUT US PAGE: CONTENT COMPONENTS (MAIN GLOBAL STRUCTURE)
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

section {
  width: 100%;
  overflow: hidden;
}

/* 1. Who We Are Section Grid */
.who-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.who-text h2 {
  font-size: 2.25rem;
  margin-bottom: 20px;
  font-family: 'Bitter', serif;
  color: #1c1f42;
}

.who-text p {
  color: #333333;
  margin-bottom: 16px;
  text-align: justify;
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
}

.collage-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.logo-only-wrapper {
  position: relative;
  width: 100%;
  max-width: 340px; 
  background-color: #1c1f42; 
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
  cursor: pointer;
}

.single-logo-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.logo-only-wrapper:hover {
  transform: translateY(-10px) scale(1.02); 
  box-shadow: 0 20px 45px rgba(65, 107, 194, 0.45); 
}

/* 2. History Section */
.history-section {
  background-color: #1c1f42; 
  padding: 90px 0;
}

.history-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.history-text h2 {
  font-family: 'Bitter', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fbfaf7;
  margin-bottom: 25px;
}

.history-text p {
  font-family: 'Lato', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #f9f2e9;
  margin-bottom: 20px;
  text-align: justify;
}

.history-text strong {
  color: #d9c8af;
}

.history-images-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.history-slide-wrapper {
  position: relative;
  width: 100%; 
  max-width: 420px; 
  height: 400px;     
  background-color: #1c1f42;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden; 
  box-sizing: border-box;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.history-slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
  opacity: 0; 
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  transform: scale(0.98);
}

.history-slide-img.active {
  opacity: 1;
  transform: scale(1);
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.85);
  color: #1c1f42;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 10;
  opacity: 0; 
  transition: all 0.3s ease;
}

.history-slide-wrapper:hover .slide-btn {
  opacity: 1;
}

.slide-btn:hover {
  background-color: #1c1f42;
  color: #ffffff;
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.history-slide-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(28, 31, 66, 0.18);
}

/* NEW: Opus Dei Structural Flex */
.opus-flex-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: stretch;
}

.opus-content-col {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.opus-image-col {
  flex: 1.2;
  min-width: 350px;
  position: relative;
  min-height: 480px;
}

.opus-main-img-box {
  width: 100%;
  height: 82%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.opus-main-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opus-floating-badge {
  position: absolute;
  bottom: 0;
  left: 5%;
  width: 90%;
  background-color: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: flex;
  gap: 20px;
  align-items: center;
  box-sizing: border-box;
}

.badge-logo-holder {
  flex: 0 0 100px;
  text-align: center;
  border-right: 1px solid #eee;
  padding-right: 20px;
}

.badge-logo-holder img {
  max-width: 60px;
  height: auto;
  margin-bottom: 5px;
}

.badge-text-holder {
  flex: 1;
}

.badge-text-holder p {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 10px;
  text-align: justify;
}

.badge-text-holder a {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  color: #1c1f42;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* 3. Vision & Mission Section */
.vision-mission-section {
  padding: 90px 0;
  background-color: #1c1f42; 
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.vm-block {
  text-align: center; 
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.vm-block h3 {
  font-family: 'Bitter', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #fbfaf7; 
  margin-top: 0;
  margin-bottom: 20px;
}

.vm-block p {
  font-family: 'Lato', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #f9f2e9;
  max-width: 480px; 
  margin: 0 auto;
}

/* 4. Our Goals Section */
.goals-section {
  padding: 100px 0;
  background-color: #fbfaf7; 
}

.goals-section h2 {
  text-align: center;
  font-family: 'Bitter', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #1c1f42; 
  margin-bottom: 60px;
  position: relative;
}

.goals-section h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: #d9c8af; 
  border-radius: 2px;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); 
  gap: 30px; 
  max-width: 1200px;
  margin: 0 auto;
}

.goal-node {
  background: #ffffff;
  padding: 30px 28px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(28, 31, 66, 0.03);
  border: 1px solid rgba(28, 31, 66, 0.05);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              border-color 0.4s ease;
}

.goal-node:nth-child(1),
.goal-node:nth-child(2),
.goal-node:nth-child(3) {
  grid-column: span 2;
}

.goal-node:nth-child(4) {
  grid-column: 2 / span 2; 
}

.goal-node:nth-child(5) {
  grid-column: 4 / span 2; 
}

.goal-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  width: 100%;
}

.goal-number {
  font-family: 'Lato', sans-serif;
  color: #d9c8af; 
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.goal-icon-wrapper {
  background: rgba(28, 31, 66, 0.05); 
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.goal-icon {
  font-size: 1.3rem;
  color: #1c1f42; 
  transition: color 0.3s ease;
}

.goal-node p {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: #444444;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.goal-node:hover {
  transform: translateY(-10px); 
  border-color: rgba(28, 31, 66, 0.15);
  box-shadow: 0 20px 40px rgba(28, 31, 66, 0.09);
}

.goal-node:hover .goal-icon-wrapper {
  background: #1c1f42; 
}

.goal-node:hover .goal-icon {
  color: #ffffff; 
}

/* 5. Accreditations Native CSS Grid (Replaced Missing Bootstrap) */
.certifications-section {
  background-color: #f9f2e9; 
  border-top: 1px solid #eae6dc;
  padding: 80px 0;
}

.cert-center-header {
  text-align: center;
  margin-bottom: 50px;
}

.cert-center-header h2 {
  font-family: 'Bitter', serif;
  font-weight: 700;
  color: #222222;
  font-size: 1.85rem;
  letter-spacing: -0.5px;
  margin-bottom: 15px;
}

.cert-center-header p {
  color: #6c757d;
  font-size: 0.875rem;
  max-width: 550px;
  margin: 0 auto;
}

.cert-grid-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.agency-card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.agency-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.agency-header h5 {
  font-weight: 700;
  margin: 0;
  font-size: 1.05rem;
  color: #222222;
}

.agency-icon {
  font-size: 1.4rem;
  color: #1c1f42;
}

.cert-click-trigger {
  background-color: #fbfaf7;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #1c1f42;
  font-weight: 600;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.cert-click-trigger:hover {
  background-color: #1c1f42;
  color: #ffffff;
}

.cert-click-trigger:hover i {
  color: #ffffff;
}

.cert-click-trigger i {
  color: #d9c8af;
}

.cert-validity-text {
  color: #6c757d;
  font-size: 0.78rem;
  line-height: 1.3;
  margin: 8px 0 0 0;
  padding: 0 8px;
}

/* Full Screen Overlay Styling */
.cert-full-page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(28, 31, 66, 0.96);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 30px;
  box-sizing: border-box;
}

.cert-full-page-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cert-full-page-overlay img {
  max-width: 95%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: white;
}

.cert-close-btn {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
}

/* ==========================================================================
   RESPONSIVE LAYOUT MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1100px) {
  .cert-grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .who-grid, .history-grid, .vm-grid, .opus-flex-layout {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 40px;
  }
  
  .opus-content-col, .opus-image-col {
    max-width: 100%;
    min-width: 100%;
  }

  .goals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .goal-node:nth-child(1),
  .goal-node:nth-child(2),
  .goal-node:nth-child(3),
  .goal-node:nth-child(4),
  .goal-node:nth-child(5) {
    grid-column: span 1 !important;
  }

  .logo-only-wrapper, .history-slide-wrapper {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .goals-grid, .vm-grid, .cert-grid-layout {
    grid-template-columns: 1fr;
  }
  
  .history-slide-wrapper {
    height: 320px; 
  }

  .goals-section h2 {
    font-size: 2.1rem;
  }
  
  .who-text h2, .history-text h2, .vm-block h3 {
    font-size: 2rem;
  }
  
  .opus-floating-badge {
    flex-direction: column;
    position: relative;
    width: 100%;
    left: 0;
    margin-top: 20px;
  }
  
  .badge-logo-holder {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-right: 0;
    padding-bottom: 10px;
    width: 100%;
  }
}