@charset "UTF-8";
:root{
  --dark:#0b1c2d;
  --gray:#6b7280;
  --light:#f9fafb;
  --transition:.45s ease;
}

/* ================= HERO ================= */
.hero {
  height: 100vh;
  /* background: url("../images/NewDesign/DSC_1538.jpg") center/cover no-repeat; */
  background: url("../images/NewDesign/Office.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}


.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 28, 45, 0.35); /* overlay for readability */
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  animation: fadeInUp 1.5s ease forwards;
  padding: 0 20px; /* prevents text from touching edges on mobile */
}

.hero-content h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(61px, 5vw, 45px); /* responsive scaling */
  letter-spacing: 0px;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  margin-top: -10px;
  font-size: clamp(26px, 2vw, 20px); /* responsive scaling */
  font-weight: 300;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
}

/* ================= SECTIONS ================= */
section{ padding:160px 100px; }
.section-title{
  font-family:'Helvetica';
  font-size:40px;
  margin-bottom:30px;
  position:relative;
  display:inline-block;
}
.section-title::after{
  content:''; position:absolute; left:0; bottom:-6px; width:50px; height:4px; background:black; border-radius:2px;
}

/* ================= ABOUT US SECTION ================= */
#aboutus {
  position: relative;
  padding: 100px;
  background: linear-gradient(135deg, #f0f4f8, #d9e6f2); /* soft gradient */
  display: flex;                /* side-by-side layout */
  justify-content: space-between;
  align-items: center;
  margin-top: -26px;
  gap: 60px;                    /* space between text and image */
  flex-wrap: wrap;              /* allows stacking on smaller screens */
}

#aboutus .about-text,
#aboutus .about-image,
#aboutus .about-history {
  position: relative;
  z-index: 2; /* keep content above background */
}

#aboutus::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: url("../images/NewDesign/DSC_1538.jpg") center/cover no-repeat; */
  opacity: 0.1; /* subtle overlay */
  z-index: 1;
  border-radius: 12px;
}

/* ================= ABOUT TEXT ================= */
.about-text {
  flex: 1;                      /* takes half the space */
}

.about-text p {
  margin-bottom: 22px;
  color: #444;
  font-size: 21px;
  text-align: justify;
}

/* ================= ABOUT IMAGE ================= */
/* ================= IMAGE SLIDESHOW FADE ================= */
.fade-out {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.fade-in {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

/* About image styling */
.about-image {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
  max-width: 787px;
  max-height: 471px;
  margin: 0;
}

.about-image img {
  width: 100%;
  height: 484px;
  border-radius: 18px;
  opacity: 1;
  object-fit: cover;
  transition: opacity 1s ease-in-out, transform .5s ease;
}

.about-image img:hover {
  transform: scale(1.05);
}

/* Associates photo container */
.our-associates-photo img {
  width: 1000px;
  height: 700px;
  object-fit: cover;
  border-radius: 10px;
  opacity: 1;
  transition: opacity 1s ease-in-out, transform .5s ease;
}

/* ================= ABOUT HISTORY ================= */
.about-history a {
  margin-top: 10px;
  color: #0073e6;
  text-decoration: none;
  font-weight: 500;
}

.about-history p{
  color: #444;
  text-align: justify;
  font-size: 21px;
}

.about-history a:hover {
  text-decoration: underline;
}

/* ================= IMAGE SCROLL STORY ================= */
.about-atl {
  display: flex;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

#scrollImage {
  width: 100%;
  height: 120vh;
  object-fit: contain; /* portrait fits naturally */
  display: block;
  border-radius: 0;
}

.split {  
  display: flex;
  gap: 40px; /* spacing between image and text */
  padding: 20px;
  align-items: flex-start;
}

.image-box { 
  flex: 0 0 500px;       /* fixed width */
  align-self: stretch;   /* matches sibling height */
  border-radius: 18px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
  overflow: hidden;
}

.about-alt-text h2, 
.about-alt-text p {
  font-size: 21px;
  opacity: 0;
  transform: translateY(40px);
}

.about-alt-text h2 {
  font-size: 40px;
}

/* ================= VIDEO ================= */
.video-box {
  opacity: 0;
  transform: translateY(40px);
  width: 100%;
  margin-top: 30px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
  position: relative;
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
}

.video-thumbnail img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

/* iframe matches thumbnail size */
.video-box iframe {
  width: 100%;      /* same width as thumbnail */
  height: 100%;     /* same height as thumbnail */
  border-radius: 18px;
  display: none;    /* hidden until play */
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  width: 80px;              /* fixed size */
  height: 80px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;       /* ensures perfect circle */
  
  display: flex;            /* centers the icon */
  align-items: center;
  justify-content: center;
  
  font-size: 36px;          /* size of the ▶ icon */
  color: white;
  transition: background 0.3s ease;
}

.play-button:hover {
  background: rgba(0,0,0,0.8);
}

/* ================= Message from the president ================= */
#president-message {
    padding: 60px 230px;
    border-radius: 12px;
    color: #121212;
    position: relative;
    overflow: hidden;
}

/* Overlay for readability */
#president-message::before {
    background: #f5f5f5;
    content: "";
    position: absolute;
    inset: 0;
    /* background: rgba(0,0,0,0.55); slightly darker overlay for contrast */
    border-radius: 12px;
    z-index: 0;
}

.president-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.president-photo img {
    margin-top: 30px;
    width: 232px;
    height: 311px;
    object-fit: cover;
    border-radius: 10%;
}

.president-quote p {
    font-size: 21px;
    color: #454545; /* soft green for readability */
    font-style: italic;
    /* text-align:justify; */
    line-height: 1.8;
    margin: 0;
    position: relative;
}

.president-name{
  font-size: 21px;
  font-style: normal;
  text-align: center;
}

/* ================= OUR ASSOCIATES SECTION ================= */
#our-associates-section {
  background: none;
  text-align: center; /* centralize content by default */
}

#our-associates-section .section-title {
  font-size: 40px;
  margin-bottom: 20px;
  display: block;
  text-align: center;
  position: relative;
}

#our-associates-section .section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  width: 50px;
  height: 4px;
  background: black;
  border-radius: 2px;
}

#our-associates-section p {
  font-size: 21px;
  width: 80%;
  margin: 0 auto; /* center block text */
  line-height: 1.6;
}

/* Associates text container */
.our-associates {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Associates photo container */
.our-associates-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}


/* ================= DEPARTMENTS SECTION ================= */
#departments {
  font-size: 40px;
  padding-top: 15px;
}

.departments-gallery {
  padding: 8rem 6rem;
  background: #ffffff;
  text-align: center;
}

.section-title {
  font-size: 40px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.gallery-intro {
  margin: 2rem auto 4rem; /* auto centers, rem scales */
  max-width: 83%; 
  font-size: 21px;
  color: #555;
}

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(445px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  max-width: 1200px;
}


/* Card */
.gallery-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 250px;
  color: #fff;
}

.gallery-card:hover {
  transform: translateY(-8px) scale(1.03);
}

/* Broken Border */
.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  /* border: 2px dashed rgba(0,123,255,0.3); */
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.gallery-card:hover::before {
  opacity: 1;
}

/* Dark overlay for readability */
.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 25%);
  border-radius: 18px;
}

/* Content sits above overlay */
.card-content {
  position: relative;
  z-index: 1;
  padding: 10% 3%;
  text-align: center;
}

/* Icon */
.card-icon {
  font-size: 46px;
  margin-bottom: 18px;
  color: #fff;
}

.card-icon p{
  font-size: 46px;
  margin-bottom: 18px;
  color: #fff;
}

.card-content h1{
  font-size: 58px;
}

/* Card text */
.gallery-card h3 {
  font-size: 21px;
  line-height: 25px;
  margin-top: -21px;
  margin-bottom: 10px;
  color: #fff;
}

.gallery-card p {
  font-size: 15px;
  color: #eee;
  line-height: 1.6;
}

/* Overlay (hover effect) */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3); /* lighter transparency */
  padding: 30px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-card:hover .card-overlay {
  opacity: 1;
  transform: scale(1);
}

.card-overlay h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #007bff;
}
.card-overlay {
  background: rgba(255, 255, 255, 0.97);
}

.card-overlay p {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
}

/* ================= Department MODAL ================= */
#eventModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;              /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

#eventModal.active {
  display: flex;              /* show when active */
  animation: fadeIn .3s ease; /* smooth fade-in */
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#eventModal .modal-box {
  background: white;
  width: 90%;
  height: 90%;
  max-width: 900px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  display: flex;
}

#eventModal .modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 28px;
  cursor: pointer;
  z-index: 2;
  color: #333;
  font-weight: bold;
  transition: .2s;
}

#eventModal .modal-close:hover {
  color: red;
}

.modal-body {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
}

/* Vertical gallery */
.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 120px;
  overflow-y: auto;
  background: white;
  padding: 10px;
  border-radius: 12px;
  scrollbar-width: thin;   /* Firefox */
  scrollbar-color: #888 white
}

.modal-gallery img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: .6;
  transition: .3s;
}

.modal-gallery img.active,
.modal-gallery img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Main image square */
.modal-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#modalMainImg {
  width: 100%;
  height: 80%;
  aspect-ratio: 1 / 1; /* ensures square */
  object-fit: cover;   /* avoids cutting heads */
  border-radius: 12px;
}

/* Details below */
#eventModal .modal-content {
  /* padding: 20px 30px; */
  border-top: 1px solid #ddd;
}

.modal-content {
  background: none;
  margin: 0;
  border-radius: 8px;
  width: 677px;
  max-width: 109%;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow-y: auto;

  /* Hide scrollbar for Chrome, Safari, and Opera */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

.modal-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

#modalTitle{
  margin-top: -10px;
  color: #1d29f1;
}
#modalDesc{
  padding-bottom: 25px;
}

#modalDepartment{
  font-size: 41px;
  margin-top: -58px;
}

/* ================= TABLET & BELOW (<=1060px) ================= */
@media screen and (max-width: 1060px) {
  .departments-gallery { padding: 100px 60px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  .split {
    flex-direction: column;   /* stack items vertically */
    align-items: center;      /* center children horizontally */
    text-align: center;       /* optional: center text content */
  }

  #modalDepartment{
    margin-top: 0px;
  }

  .image-box { 
    width: 100%;              /* full width */
    height: 770px;            /* fixed height */
    flex: none;               /* remove fixed flex-basis */
    align-self: center;       /* center itself in flex container */
  }

  #aboutus {
    flex-direction: column;
    padding: 80px 40px;
    gap: 40px;
  }
  .about-text, .about-image, .about-history {
    max-width: 100%;
    flex: none;
  }

  .about-atl {
    display: block; /* disable flex layout */
    text-align: center; /* center children horizontally */
  }

  .about-alt-text h2 {
    font-size: 32px;
  }
  .about-alt-text p {
    font-size: 18px;
  }

  #president-message {
    padding: 50px 50px; /* reduce side padding */
    background-position: center top;
  }
  .president-container {
    gap: 25px;
  }
  .president-quote p {
    font-size: 18px;
  }

  .president-name{
    font-size: 18px;
  }

  #eventModal .modal-box {
    flex-direction: column;
    height: auto;
    max-height: 90%;
  }
  .modal-body {
    flex-direction: column;
    align-items: center;
  }
  .modal-gallery {
    flex-direction: row;
    width: 100%;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .modal-gallery img {
    height: 70px;
    width: auto;
  }
  .modal-content {
    width: 100%;
    padding: 20px;
  }

  .our-associates-photo img {
    max-width: 800px;
  }

  .event-content h3 {
    font-size: 20px;
  }

  #modalMainImg {
    height: auto;
    max-height: 60vh;
  }
}

/* ================= TABLET (<=900px) ================= */
@media screen and (max-width: 900px) {
  section { padding: 100px 30px; }
  .section-title {
    font-size: 32px;
  }
  .split, .departments { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .departments-gallery { padding: 80px 40px; }
  /* .gallery-card { height: 220px; } */

  #aboutus {
    flex-direction: column;
    padding: 70px 30px;
    gap: 35px;
  }
  .about-text p { font-size: 17px; }
  .about-history p{ font-size: 17px; }
  .about-alt-text h2 {
    font-size: 32px;
  }
  .about-alt-text p {
    font-size: 17px;
  }
  .about-image { width: 100%; }

  #president-message {
    padding: 40px 30px;
    background-attachment: scroll; /* avoid parallax issues */
  }

  .president-quote p {
    font-size: 17px;
  }

  .president-name{
    font-size: 17px;
  }

  .president-container {
    flex-direction: column;
    text-align: center;
  }
  .president-photo img {
    margin-bottom: 20px;
  }
  .president-quote p {
    max-width: 100%;
  }

  #our-associates-section .section-title {
    font-size: 32px;
  }

  #our-associates-section p {
    font-size: 18px;
    width: 90%;
  }

  .our-associates-photo img {
    max-width: 600px;
  }

  .event-content h3 {
    font-size: 20px;
  }

  #modalMainImg {
    height: auto;
    max-height: 60vh;
  }
  .gallery-intro{
    font-size: 18px;
    max-width: 67%;
  }
}

@media screen and (max-width: 700px) {
  .our-associates-photo img {
    max-width: 450px;
    max-height: 450px;
  }

  .event-content h3 {
    font-size: 20px;
  }

  #modalMainImg {
    height: auto;
    max-height: 60vh;
  }
}

/* ================= MOBILE (<=480px) ================= */
@media screen and (max-width: 480px) {
  .hero { height: 80vh; }
  .hero-content h1 {font-size: 32px; line-height: 1.2; letter-spacing: 2px; margin-bottom: 25px;}
  .hero-content p { font-size: 14px; }
  .section-title { font-size: 24px; }
  .section { padding: 60px 15px; }
  .dept-card { padding: 20px 12px; }
  .job h4 { font-size: 18px; }
  .job p { font-size: 14px; }

  #aboutus {
    flex-direction: column;
    padding: 50px 20px;
    gap: 25px;
  }
  .about-text p { font-size: 15px; }
  .about-history p{ font-size: 15px; }
  .about-atl {
    display: block;
  }
  .about-alt-text h2 {
    font-size: 24px;
  }
  .about-alt-text p {
    font-size: 16px
  }
  .section-title { font-size: 24px; }

  #president-message {
    padding: 25px 15px;
  }

  .president-quote p {
    font-size: 16px;
  }

  .president-name{
    font-size: 16px;
  }

  #our-associates-section .section-title {
    font-size: 24px;
  }

  #our-associates-section p {
    font-size: 16px;
    width: 95%;
  }

  .our-associates-photo img {
    max-width: 100%;
    border-radius: 8px;
  }
}

/* ================= VERY SMALL DEVICES (<=360px) ================= */
@media screen and (max-width: 360px) {
  .hero { height: 70vh; }
  .hero-content h1 { font-size: 26px; letter-spacing: 1px; }
  .hero-content p { font-size: 12px; }
  .section-title { font-size: 20px; }
  .section { padding: 40px 10px; }
  .dept-card { padding: 15px 10px; }
  .job h4 { font-size: 16px; }
  .job p { font-size: 12px; }

  .departments-gallery { padding: 50px 15px; }
  #aboutus {
    flex-direction: column;
    padding: 40px 15px;
    gap: 20px;
  }
  .about-text p { font-size: 14px; }
  .about-history p{ font-size: 14px; }
  .about-alt-text h2 {
    font-size: 20px;
  }
  .about-alt-text p {
    font-size: 13px;
  }
  .section-title { font-size: 20px; }

  #president-message {
    padding: 20px 12px;
  }
  .president-quote p {
    font-size: 0.9em;
  }
  .modal-gallery img {
    height: 60px;
  }
  #our-associates-section .section-title {
    font-size: 20px;
  }
  #our-associates-section p {
    font-size: 14px;
  }
  .our-associates-photo img {
    max-width: 100%;
    border-radius: 6px;
  }
}

/* ================= TINY DEVICES (<=280px) ================= */
@media screen and (max-width: 280px) {
  .hero { height: 60vh; }
  .hero-content h1 { font-size: 20px; }
  .hero-content p { font-size: 10px; }
  .departments-gallery { padding: 30px 10px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 10px; }
  .gallery-card { height: 140px; padding: 15px 10px; }
  .card-content { padding: 0px 0px; }
  .card-content h1 { font-size: 20px; }
  .gallery-card h3 { font-size: 14px; margin-top: -9px; }
  .gallery-card p { font-size: 10px; line-height: 1.3; }

  #aboutus {
    flex-direction: column;
    padding: 25px 10px;
    gap: 15px;
  }
  .about-text p { font-size: 12px; }
  .about-history p{ font-size: 12px; }
  .about-alt-text h2 {
    font-size: 16px;
  }
  .about-alt-text p {
    font-size: 12px;
  }
  .section-title { font-size: 16px; }

  .modal-gallery img {
    height: 50px;
  }
  #our-associates-section .section-title {
    font-size: 16px;
  }
  #our-associates-section p {
    font-size: 12px;
  }
  .our-associates-photo img {
    max-width: 100%;
    border-radius: 4px;
  }
}

/* ================= ANIMATIONS ================= */
/* ================= SECTION FADE-IN ================= */
@keyframes smoothFadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  50% { opacity: 0.5; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fadeInOut {
  opacity: 0;
  transform: translateY(20px);
}

.fadeInOut.in-view {
  animation: smoothFadeIn 1.2s ease forwards;
}
