@import url('https://db.onlinewebfonts.com/c/5b5fcc354ed196046001a2db207984fa?family=UTM+Avo');

.about-page {
  background: var(--white);
  color: var(--text);
  padding-bottom: 80px;
  padding-top: 88px; /* Height of the fixed header */
}


.page-hero {
  background: #f4f7f8;
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  font-family: 'UTM Avo', sans-serif;
  font-size: 13px;
  color: #888;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


.breadcrumb a {
  color: #666;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #565449;
}

.breadcrumb .sep {
  color: #565449;
  font-weight: 800;
}

.breadcrumb .current {
  color: #333;
  font-weight: 700;
  text-transform: uppercase;
}

.page-title {
  font-family: 'UTM Avo', sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: #54676d;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.1;
}


.page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}

.intro-section {
  margin-bottom: 80px;
}

.intro-section h2 {
  font-size: 32px;
  color: #54676d;
  margin-bottom: 30px;
  border-left: 5px solid #565449;
  padding-left: 20px;
}

.intro-section p {
  font-size: 17px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 25px;
}

/* Image styling with caption bar */
.image-wrap {
  margin: 40px 0;
  position: relative;
}

.image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  background: #565449;
  padding: 12px 20px;
  color: #000;
  font-style: italic;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* Vision & Mission */
.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 60px 0;
}

.mission-vision h3 {
  font-size: 24px;
  color: #54676d;
  margin-bottom: 20px;
}

/* Process Grid Styling */
.section-heading {
  font-family: 'UTM Avo', sans-serif;
  font-size: 32px;
  color: #54676d;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 1px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.process-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-grid .process-column:nth-child(even) {
  flex-direction: column-reverse;
}

/* Flipped version for second section */
.process-grid.flipped .process-column:nth-child(even) {
  flex-direction: column;
}
.process-grid.flipped .process-column:nth-child(odd) {
  flex-direction: column-reverse;
}

.process-card {
  background: #b2a9a0;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  text-align: left;
  width: 90%;
  position: relative;
  min-height: 200px;
  z-index: 2;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.card-header i {
  font-size: 32px;
  color: #54676d;
}

.step-num {
  font-family: 'UTM Avo', sans-serif;
  font-size: 40px;
  font-weight: 900;
  color: rgba(84, 103, 109, 0.3);
  line-height: 1;
}

.process-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: #54676d;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.process-card p {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  margin: 0;
}

.process-connector {
  width: 2px;
  height: 40px;
  background: #b2a9a0;
  position: relative;
  z-index: 1;
}

/* Dot logic using flex-direction and sibling position */
.process-connector::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #b2a9a0;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
}

/* Common rule: Dot touches the card */
/* If Card is first child of column (top) -> Dot is at top of connector */
.process-column > .process-card:first-child + .process-connector::after {
  top: -5px;
}
/* If Card is last child of column (bottom) -> Dot is at bottom of connector */
.process-column > .process-connector + .process-card:last-child::after {
  /* This doesn't work because ::after is on connector. Let's fix the selector. */
  content: none;
}

/* Correct Selector: Connector dot touches the card based on relative position */
/* Case A: Card (top) + Connector + Image (bottom) -> Dot at top */
.process-card + .process-connector::after {
  top: -5px;
}

/* Case B: Image (top) + Connector + Card (bottom) -> Dot at bottom */
.process-image + .process-connector::after {
  bottom: -5px;
}

/* Wait, when column-reverse is used:
   If HTML is Card + Connector + Image:
   Normal (Column): Card Top, Image Bottom. Connector dot should be at Top.
   Flipped (Column-Reverse): Image Top, Card Bottom. Connector dot should be at Bottom.
   
   My CSS: 
   .process-card + .process-connector::after { top: -5px; } 
   This matches BOTH cases because HTML order is same. 
   But in Column-Reverse, the visual TOP is the LAST element in HTML.
   
   Ah! If I use flex-direction: column-reverse, the visual "top" is the bottom of the DOM flow.
   The dot position is relative to the connector element.
   
   If Card + Connector + Image:
   Column: Dot top (touches card).
   Column-Reverse: Dot bottom (touches card).
   
   My CSS:
   .process-card + .process-connector::after { top: -5px; }
   This will always put the dot at the TOP of the connector element.
   In Column-Reverse, the TOP of the connector element is visually BELOW the card? No, visually ABOVE the card.
   Wait.
   DOM: [Card], [Connector], [Image]
   Column-Reverse: [Image] (visual top), [Connector] (visual mid), [Card] (visual bottom).
   The "top" of the Connector element (relative to its own box) is still the side towards the Image in DOM order.
   In Column-Reverse, the side towards the Image is visually BELOW? No, ABOVE.
   Wait.
   Normal: Top->[0] Card, [1] Conn, [2] Image -> Bottom.
   Reverse: Top->[2] Image, [1] Conn, [0] Card -> Bottom.
   The connector element [1] has its "top: 0" on the side of [0].
   Wait. In Column-Reverse, the children are rendered from bottom to top.
   So child [0] is at the visual bottom. Child [2] is at the visual top.
   The connector [1] is in between.
   Its "top: 0" property is relative to the *element itself*.
   So `top: -5px` will always be on the side of child [0].
   If child [0] is Card, then `top: -5px` ALWAYS touches the Card!
   This is perfect! My current CSS works for both normal and reverse because the DOM order is consistent!
*/




.process-image {
  width: 90%;
  aspect-ratio: 1;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border: 4px solid #fff;
}

.process-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .process-connector {
    display: none;
  }
}

@media (max-width: 640px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* Core Values Section */

.values-box {
  background: #1c2333;
  color: #fff;
  padding: 80px 40px;
  border-radius: 16px;
  margin-top: 80px;
  text-align: center;
}

.values-box h2 {
  color: #565449;
  font-size: 36px;
  margin-bottom: 50px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
}

.value-item i {
  font-size: 40px;
  color: #565449;
  margin-bottom: 20px;
  display: block;
}

.value-item strong {
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .mission-vision {
    grid-template-columns: 1fr;
  }
  .page-title {
    font-size: 32px;
  }
}

/* --- SERVICE DETAIL PAGE STYLES --- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 80px;
}

.main-article {
  min-width: 0;
}

.article-title {
  font-family: 'UTM Avo', sans-serif;
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 25px;
  color: #333;
  font-weight: 800;
}

.article-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 30px;
}

.meta-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-share {
  display: flex;
  gap: 15px;
}

.social-share a {
  color: #54676d;
  font-size: 18px;
  transition: color 0.3s;
}

.social-share a:hover {
  color: #565449;
}

.stats {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #888;
}

.moderator-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f9f9f9;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid #eee;
}

.moderator-card img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.mod-status {
  font-size: 11px;
  color: #27ae60;
  font-weight: 700;
  margin: 0;
}

.mod-name {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: #333;
}

.article-body h2 {
  font-size: 24px;
  margin: 40px 0 20px;
  color: #54676d;
  font-weight: 800;
}

.article-body p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

.article-body img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.img-caption {
  font-size: 14px;
  font-style: italic;
  color: #666;
  text-align: center;
  margin-bottom: 40px !important;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #565449;
}

/* Sidebar Styling */
.sidebar-sticky {
  position: sticky;
  top: 100px;
}

.sidebar-cta-card {
  background: #54676d;
  color: #fff;
  padding: 30px;
  border-radius: 20px;
  margin-bottom: 40px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(84, 103, 109, 0.2);
}

.sidebar-cta-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #565449;
}

.sidebar-cta-card p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 25px;
  opacity: 0.9;
}

.btn-popup-trigger {
  width: 100%;
  padding: 14px;
  background: #565449;
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-popup-trigger:hover {
  background: #fff;
  transform: translateY(-3px);
}

.latest-posts h3 {
  font-size: 18px;
  border-bottom: 3px solid #565449;
  display: inline-block;
  margin-bottom: 25px;
  color: #333;
}

.post-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.post-item img {
  width: 90px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}

.post-item a {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.post-item a:hover {
  color: #565449;
}

/* Article Footer */
.article-footer {
  margin-top: 80px;
  padding-top: 50px;
  border-top: 2px solid #f0f0f0;
}

.rating-box {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 50px;
}

.stars {
  color: #565449;
  font-size: 24px;
}

.rating-text {
  font-size: 15px;
  color: #777;
  font-weight: 500;
}

.ceo-quote-card {
  display: flex;
  gap: 35px;
  background: #f4f7f8;
  padding: 45px;
  border-radius: 25px;
  margin-bottom: 80px;
  border: 1px solid #e1e8ea;
}

.ceo-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ceo-name {
  font-family: 'UTM Avo', sans-serif;
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 8px;
  color: #54676d;
}

.ceo-title {
  font-size: 13px;
  color: #777;
  margin-bottom: 20px;
  font-weight: 600;
}

.ceo-quote {
  font-style: italic;
  line-height: 1.8;
  color: #555;
  margin-bottom: 25px;
  font-size: 16px;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #565449;
  color: #000;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-more:hover {
  background: #54676d;
  color: #fff;
}

/* Full form at end */
.full-form-wrap {
  background: #fff;
  border: 2px solid #565449;
  border-radius: 30px;
  padding: 50px;
  display: flex;
  align-items: center;
  gap: 50px;
  box-shadow: 0 20px 50px rgba(255, 185, 0, 0.1);
}

.full-form-wrap .quote-box {
  flex: 1.2;
}

.advisor-img {
  flex: 0.8;
  margin-bottom: -50px;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
}

.modal-content {
  background: #fff;
  width: 95%;
  max-width: 650px;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: #f0f0f0;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: all 0.3s;
}

.modal-close:hover {
  background: #565449;
  color: #000;
}

.modal-body {
  padding: 50px;
}

/* --- ARCHITECTURE PAGE STYLES --- */

.video-section {
  padding: 60px 0;
  background: #fdfdfd;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #ddd;
  transition: all 0.3s;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 20px;
  border: 2px solid #fff;
}

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 18px;
  font-weight: 700;
  color: #1c1e21;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.video-title i {
  font-size: 20px;
  margin-top: 3px;
}

.video-meta {
  font-size: 14px;
  color: #65676b;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.video-meta i {
  font-size: 16px;
  margin-top: 2px;
}

.video-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #65676b;
  font-size: 15px;
  text-decoration: none;
  border-top: 1px solid #eee;
  padding-top: 10px;
  width: 100%;
}

.video-link i {
  color: #1877f2;
  font-size: 18px;
}

/* Gallery Tabs - Dark Theme */
.gallery-tabs-wrap {
  background: #565449;
  padding: 15px;
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.gallery-tab {
  background: #565449;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 25px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.gallery-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.gallery-tab.is-active {
  color: #565449;
  background: #fff;
  border-color: #fff;
  z-index: 1;
}

/* Photo Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item-info {
  padding: 15px;
  background: #fff;
}

.gallery-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-tabs-wrap {
    display: flex;
    flex-direction: column;
  }
}
