/* --------------------------------------------------
   RESET & GLOBAL
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* --------------------------------------------------
   NAVBAR
-------------------------------------------------- */
.navbar {
  width: 100%;
  padding: 1px 5%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar.scrolled {
  backdrop-filter: blur(12px);
}

.logo {
  width: 70px;
  margin-top: 5px;
  cursor: pointer;
}

.navbar ul {
  list-style: none;
}

.navbar ul li {
  display: inline-block;
  margin: 20px;
}

.navbar ul li a {
  padding: 10px 15px;
  text-transform: uppercase;
  color: white;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
  text-decoration: none;
}

.navbar ul li a:hover {
  background: rgb(183, 28, 28);
  color: #fff;
}

/* Mobile Menu */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 4px 0;
  border-radius: 2px;
}

/* --------------------------------------------------
   BANNER / HERO VIDEO
-------------------------------------------------- */
.banner {
  width: 100%;
  height: 100vh;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.banner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: -1;
}

.content {
  width: 100%;
  text-align: center;
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  color: white;
}

.content h1 {
  font-size: 4rem;
  font-weight: 400;
}

.content p {
  margin-top: 15px;
  font-size: 1.2rem;
}

.hero {
  height: 50vh;
  padding-top: 25vh;
}

/* --------------------------------------------------
   GENERAL SECTIONS
-------------------------------------------------- */
section {
  padding: 80px 10%;
  text-align: center;
  background: #f5f7fb;
}

section:nth-child(even) {
  background: white;
}

section h2 {
  color: rgb(215, 30, 2);
  font-size: 2.2rem;
  margin-bottom: 20px;
}

section p {
  color: #333;
  font-size: 1.1rem;
  max-width: 800px;
  margin: auto;
  line-height: 1.6;
}

/* -------------------------------
   VIDEO HERO
-------------------------------- */

.video-hero {
  position: relative;
  height: 60vh; /* adjust if needed */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.video-hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

/* Dark overlay for readability */
.video-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.video-hero h1 {
  position: relative;
  z-index: 3;
  color: #fff;
  font-size: 3rem;
  letter-spacing: 2px;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .video-hero {
    height: 50vh;
  }

  .video-hero h1 {
    font-size: 2.2rem;
  }
}


/* --------------------------------------------------
   SERVICES SECTION
-------------------------------------------------- */
#services {
  padding-top: 40px;
  padding-bottom: 40px;
}

.services-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.service-card {
  width: 280px;
  padding: 30px 20px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-top: 5px solid rgb(183, 28, 28);
}

.service-card.large h3 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: #222;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  padding: 10px 0;
  font-size: 1.05rem;
  color: #444;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li.modal-trigger {
  cursor: pointer;
  color: #444;
  font-size: 1.05rem;
}

.service-list li.modal-trigger:hover {
  text-decoration: underline;
}


.service-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  border-top-color: rgb(0, 59, 130);
}

.service-card.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.7s ease-out;
}

.service-icon {
  display: block;
  margin: 0 auto 15px; /* centers the icon horizontally */
  width: 65px;        /* optional: keeps icons consistent */
  height: auto;
}

/* Service Section Learn More Button */
.services-btn-container {
  text-align: center;
  margin-top: 40px;
}

.services-btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: rgb(183, 28, 28);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.25s ease;
}

.services-btn:hover {
  background: rgb(0, 59, 130);
  transform: translateY(-3px);
}

/* --------------------------------------------------
   ABOUT SECTION
-------------------------------------------------- */
.about-section {
  padding: 20px 10%;
  text-align: center;
}

.about-section h2 {
  color: rgb(183, 28, 28);
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.about-content {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.about-image,
.about-text {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.about-text {
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.7;

  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s ease-out;
}

.about-image {
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s ease-out;
}

.about-text.slide-in-left,
.about-image.slide-in-right {
  opacity: 1;
  transform: translateX(0);
}

/* --------------------------------------------------
   CONTACT FORM
-------------------------------------------------- */
form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  padding: 12px 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: border 0.3s;
}

input:focus,
textarea:focus {
  border: 2px solid rgb(0, 59, 130);
}

/* --------------------------------------------------
   GLOBAL BUTTON STYLE (UNIFIED)
-------------------------------------------------- */
button,
form button {
  width: auto;
  padding: 14px 28px;
  margin: 20px 5px;
  text-align: center;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: rgb(183, 28, 28);   /* main red */
  color: white;

  transition: background 0.3s ease, transform 0.3s ease;
}

/* Hover effect */
button:hover,
form button:hover {
  background: rgb(0, 59, 130);    /* blue */
  color: #fff;
  transform: translateY(-3px);
}


/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
  background: rgb(183, 28, 28);
  color: #fff;
  text-align: center;
  padding: 20px 10px;
}

.footer-social {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.footer-social a:hover {
  opacity: 1;
}

.footer-social img {
  width: 18px;
  height: 18px;
}


/* --------------------------------------------------
   ANIMATIONS
-------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease-out;
}

.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media (max-width: 992px) {
  .services-grid {
    flex-direction: column;
    align-items: center;
  }

  .content h1 {
    font-size: 3rem;
  }

  .content p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .navbar ul {
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    flex-direction: column;

    background: rgba(0, 0, 0, 0.9);
    border-radius: 6px;

    display: none;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
  }

  .navbar ul.show {
    display: flex;
    opacity: 1;
    transform: translateX(0);
  }

  .hamburger {
    display: flex;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .service-icon {
    width: 32px;
  }
}

/* Modern Values List */
.values-section {
  background: linear-gradient(
    135deg,
    rgba(183, 28, 28, 0.08),
    rgba(0, 59, 130, 0.08)
  );
  text-align: center;
}

.values-list {
  list-style: none;
  margin: 40px auto 0;
  padding: 0;
  max-width: 600px;
}

.values-list li {
  background: #f5f7fb;
  margin: 12px 0;
  padding: 16px 22px;
  border-left: 6px solid rgb(183, 28, 28); /* brand red */
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
  transition: 0.3s ease;
}

.values-list li:hover {
  background: #ffffff;
  border-left-color: rgb(0, 59, 130); /* brand blue */
  transform: translateX(8px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.values-list li span {
  color: rgb(183, 28, 28);
  font-weight: 700;
}

/* --------------------------------------------------
   EXECUTIVE MANAGEMENT SECTION
-------------------------------------------------- */
.executives-section {
  background: #f5f7fb;
}

.section-intro {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  color: #444;
}

.executives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.executive-card {
  background: #fff;
  border-radius: 14px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid rgb(183, 28, 28);
}

.executive-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
  border-top-color: rgb(0, 59, 130);
}

.executive-card img {
  display: block;
  margin: 0 auto 15px;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgb(183, 28, 28);
}

.executive-card h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
  color: #222;
}

.executive-card .role {
  font-size: 0.95rem;
  color: #666;
}

/* --------------------------------------------------
   SERVICES HERO TEXT COLOR
-------------------------------------------------- */
.service h1,
.sservice p {
  color: #ffffff;
  height: 22vh;
  padding-top: 10vh;
}

/* Service Learn More Toggle */
.service-more {
  display: none;
  margin-top: 15px;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 👈 3 per row */
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.learn-more-btn {
  margin-top: 15px;
  padding: 10px 22px;
  font-size: 0.9rem;
  border-radius: 20px;
  background: rgb(183, 28, 28);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.learn-more-btn:hover {
  background: rgb(0, 59, 130);
  transform: translateY(-2px);
}

/* --------------------------------------------------
   MODAL POPUPS
-------------------------------------------------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

.modal-content h2 {
  color: rgb(183, 28, 28);
  margin-bottom: 15px;
}

.modal-content p {
  color: #333;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Close button */
.modal .close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 26px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
}

.modal .close:hover {
  color: rgb(183, 28, 28);
}

/* Animation */
@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr); /* Tablets */
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr; /* Mobile */
  }
}

/* --------------------------------------------------
   WHY CHOOSE US
-------------------------------------------------- */
.why-choose-us {
  background: linear-gradient(
    135deg,
    rgba(183, 28, 28, 0.05),
    rgba(0, 59, 130, 0.05)
  );
  text-align: center;
}

.why-choose-us h2 {
  color: rgb(183, 28, 28);
  font-size: 2.3rem;
  margin-bottom: 15px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.why-card {
  background: #fff;
  padding: 30px 22px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  border-top: 4px solid rgb(183, 28, 28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
  border-top-color: rgb(0, 59, 130);
}

.why-card h3 {
  margin-bottom: 12px;
  color: #222;
  font-size: 1.15rem;
}

.why-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------
   MISSION & VISION
-------------------------------------------------- */
.mission-vision {
  background: #ffffff;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.mv-card {
  background: #f5f7fb;
  padding: 35px 30px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  border-top: 4px solid rgb(183, 28, 28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mv-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
  border-top-color: rgb(0, 59, 130);
}

.mv-card h2 {
  color: rgb(183, 28, 28);
  font-size: 2rem;
  margin-bottom: 15px;
}

.mv-card p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .mv-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------
   COMPLIANCE & REGULATION
-------------------------------------------------- */
.compliance-section {
  background: #f5f7fb;
  text-align: center;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 40px auto 0;
}

.compliance-card {
  background: #ffffff;
  padding: 30px 22px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  border-top: 4px solid rgb(183, 28, 28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.compliance-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
  border-top-color: rgb(0, 59, 130);
}

.compliance-card h3 {
  color: rgb(183, 28, 28);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.compliance-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 992px) {
  .compliance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .compliance-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------
   MEDIA PAGE
-------------------------------------------------- */

.media-section {
  max-width: 1200px;
  margin: 0 auto;
}

/* Tabs */
.media-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  background: #eaeaea;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.tab-btn.active {
  background: rgb(183, 28, 28);
  color: #fff;
}

.tab-btn:hover {
  background: rgb(0, 59, 130);
  color: #fff;
}

/* Content Toggle */
.media-content {
  display: none;
  animation: fadeUp 0.35s ease;
}

.media-content.active {
  display: block;
}

/* Gallery */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.media-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.media-grid img:hover {
  transform: scale(1.05);
}

/* CSI */

.media-content#csi {
  display: none;
}

.media-content#csi.active {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.media-cta {
  text-align: center;
  margin-top: 30px;
}

.media-cta a {
  color: rgb(183, 28, 28);
  font-weight: 600;
  text-decoration: none;
}

.media-cta a:hover {
  text-decoration: underline;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.event-card {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.event-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.event-card span {
  font-size: 0.85rem;
  color: #666;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.news-card {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.news-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.news-card span {
  font-size: 0.85rem;
  color: #666;
}

.news-card.featured,
.event-card.featured{
  border: 1px solid rgba(183, 28, 28, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------
   LIGHTBOX (FULL IMAGE VIEW)
-------------------------------------------------- */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
  object-fit: contain;
}

.lightbox-img.show {
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: rgb(183, 28, 28);
}

/* Navigation arrows */
.lightbox-nav {
  position: absolute;
  top: 40%;
  transform: translateY(10%);
  
  width: 56px;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 2rem;

  cursor: pointer;
  border-radius: 50%;
  user-select: none;

  transition: background 0.25s ease, box-shadow 0.25s ease;
}


.lightbox-nav:hover {
  color: rgb(183, 28, 28);
  background: rgba(255,255,255,0.3);
  box-shadow: 0 0 12px rgba(255,255,255,0.25);
}

.lightbox-nav.prev {
  left: 40px;
}

.lightbox-nav.next {
  right: 40px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .lightbox-nav {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}