:root{
  --color-primary: #1828b8;
  --color-danger: #ff7782;
  --color-success: #41f1b6;
  --color-warning: #ffbb55;
  --color-white: #fff;
  --color-info-dark: #1e1e1f;
  --color-info-light: #939fb6;
  --color-dark: #363949;
  --color-light: rgba(61, 109, 176, 0.18);
  --color-light-2: rgba(52, 58, 116, 0.20);
  --color-primary-variant: #111e88;
  --color-dark-variant: #677483;
  --color-background: #f6f6f9;

  --light: #f9f9f9;
  --blue: #3c91e6;
  --light-blue: #a9d5ff;
  --light-red: #f38c8c;
  --light-green: #a7f9d0;
  --grey: #eee;
  --dark-grey: #aaaaaa;
  --drak: #342e37;
  --red:  #e88383;
  --green: rgb(94, 232, 129);
  --color-info-dark: #919497;

  --color-border-radius: 2rem;
  --color-border-radius-1: 0.4rem;
  --color-border-radius-2: 0.8rem;
  --color-border-radius-3: 1.2rem;

  --card-padding: 1.8rem;
  --padding-1: 1.2rem;

  --box-shadow: 0 2rem 3rem var(--color-light);
}

*{
  margin: 0;
  padding: 0;
  outline: none;
  appearance: none;
  border: 0;
  scroll-padding-top: 2rem;
  text-decoration: none;
  list-style: none;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

html, body {
  overflow-x: hidden;
}

section{
  padding: 50px 10%;
}

.Logoo{
  width: 60px;
}

.HeaderWithLogo {
    position: sticky;  /* Makes the header sticky */
    top: 0;  /* Positions it at the top of the viewport */
    z-index: 1000;  /* Ensures the header stays on top of other content */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-primary);
    padding: 15px;
    box-shadow: 5px 10px 18px #888888;
    box-shadow: 0 8px 8px -10px black;
}

.MhNavbar {
    display: flex;
  }
  
  .hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: #ffffff;
    margin-left: auto;
  }
  
  .MhNavv {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  
  .MhNavv li {
    position: relative;
  }
  
  .MhNavv a {
    display: flex;
    font-size: 13px;
    padding: 11px 20px 16px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
  }

  
  .MhNavv a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f1f1f1;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
  }
  
  .MhNavv a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }
  
  .MhNavv a.activee::after {
    width: 50%;
    left: 50%;
    transform: scaleX(1);
    transform-origin: bottom left;
    margin-left: -25%;
  }

  .MhNavv a.activee {
    color: rgba(255, 255, 255, 0.8);  /* light white font */
  }
  
  .MhNavv a.clicked {
    color: rgb(0, 51, 255);
    background-color: white;
  }
  
  .has-dropdown a {
    display: flex;
    align-items: center;
  }
  
  /* Arrow */
  .arrow {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(45deg); /* ▼ down */
    margin-left: 8px;
    transition: 0.3s ease;
    margin-bottom: 5px;
  }
  
  .has-dropdown.open .arrow {
    transform: rotate(-135deg); /* ▲ up */
  }
  
  /* DROPDOWN MENU */
  .dropdown {
    display: none;
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 185px;
    background-color: white;
    z-index: 1;
  }
  
  .dropdown.show {
    display: block;
  }
  
  .dropdown li a {
    padding: 10px 20px;
    color: #000 !important;
    display: block;
    background-color: white;
    text-decoration: none;
    text-align: left;
  }
  
  /* RESPONSIVE */
  @media (max-width: 905px) {
    .MhNavv {
      display: none;
      flex-direction: column;
      width: 100%;
      position: absolute;
      top: 95px;
      left: 0;
      background-color: #0400ff;
      z-index: 10;
    }
  
    .MhNavv.active {
      display: flex;
    }
  
    .MhNavv li {
      text-align: center;
      width: 100%;
    }
  
    .MhNavv a {
      display: block;
      padding: 15px;
      text-align: center;
    }
  
    .MhNavv a:hover {
      color: rgb(0, 51, 255);
      background-color: white;
    }
  
    .dropdown {
      position: static;
      transform: none;
      width: 100%;
      box-shadow: none;
    }
  
    .dropdown li a {
      text-align: center;
    }
  
    .hamburger {
      display: block;
    }
  
    .arrow {
      margin-left: 6px;
      border-width: 0 3px 3px 0;
      padding: 5px;
    }
  }

  @media (max-width: 450px) {
    .NameOfSubdi h1 {
      font-size: 19px !important;
    }
    
    .NameOfSubdi h3 {
      font-size: 12px !important;
    }
    
    .TextOverlay {
      font-size: 30px !important;
    }
  }
  

.LogoLandingPage{
  display: flex;
  align-items: center;
}

.NameOfSubdi{
  margin-left: 8px;
  color: white;
}

.NameOfSubdi h1{
  font-size: 28px;
  /* font-weight: 800;
  font-family: Tahoma; */
}

.NameOfSubdi h3 {
  font-size: 16px;
}

/* DESIGN PARA SA SLIDING PICTURES */
.Carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carouselPic {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  flex-shrink: 0;
  width: 100vw;
  height: 90vh;         /* Responsive: 80% of viewport height */
  max-height: 900px;    /* Limits it on large screens */
  user-select: none;
}


.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 1024px) {
  .carousel-slide {
    height: 400px; /* adjust to your preference */
  }
}

@media (max-width: 600px) {
  .carousel-slide {
    height: 250px;
  }
}

/* DESIGN SA HOA OFFICERS */
.ContentsOfSubdi {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto; 
  margin-bottom: 30px;
}

.HoaPresident1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.HoaPresidentLaman {
  display: flex;
  flex-direction: column;
  height: 310px;
  width: 300px;
  padding: 15px;
  /* background: rgb(152, 144, 142); */
  margin: 10px;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); Add box shadow */
}

.MgaLamanContainer{
  height: 200px; /* Set a fixed height */
  width: 100%;
  border: 3px rgb(3, 1, 139) solid;
  overflow: hidden; /* Ensure overflow is hidden to contain images */
}

.ContainerNgDalawa{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pangalanNgBawatIsa,
.inputNilaBawat{
  width: 100%;
}

.inputNilaBawat{
  padding: 5px;
  font-size: 17px;
  text-align: center;
}

.pangalanNgBawatIsa,
.LabelNgBawatIsa{
  margin-top: 15px;
}

/* Pampa emphasize daw sabi ni sir */
.emphasized-label {
    font-weight: bold;
    font-size: 1.5em;
    color: #d32f2f; /* red shade for emphasis */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.HoaText {
  font-size: 40px;
  margin-top: 40px;
  color: #2b2b2b;
}

/* DESIGN PARA SA ANNOUNCEMENTS LANDING */
.AnnouncementLand {
  overflow: hidden;
  margin: auto;
  padding: 30px 10px;
}

.AnnounceConatinierr {
  display: flex;
  gap: 20px;
  will-change: transform;
  transition: transform 0.3s ease;
  cursor: grab;
}

.AnnounceCard {
  flex: 0 0 calc((100% - 60px) / 4);
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  user-select: none;
  position: relative; /* Add this */
  overflow: hidden;
}

.dateBadge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff5252;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 5px;
  z-index: 1;
}

.AnnounceCard img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.AnnounceCard h3 {
  padding: 10px;
  margin: 0;
}

.AnnounceCard p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 10;
  overflow: hidden;
  margin: 10px;
}

.read-more-btn {
  display: inline-block;
  text-decoration: none;
  margin: 10px;
  padding: 8px 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 768px) {
  .AnnounceCard {
    flex: 0 0 100%;
  }

  .AnnounceCard p {
    -webkit-line-clamp: 3;
  }
}

.AnnounceTitle {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 40px;
  color: #2b2b2b;
}

.BtnReadMore {
  display: flex;
  justify-content: end;
  width: 100%;
}

/* DESIGN PARA SA FOOTER */
.footerngLandingPage {
  background-color: #282c34;
  color: white;
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
}

.LogosAndLinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  margin: 0 auto;
}

.TwoLogos {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.TwoLogos img {
  width: 150px;
}

.links {
  text-align: left;
}

.Links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 100px;
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}

.link-column h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: white;
}

.link-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-column li {
  margin-bottom: 8px;
}

.link-column a {
  color: #dcdcdc;
  text-decoration: none;
  font-size: 15px;
}

.link-column a:hover {
  text-decoration: underline;
}

/* Stack vertically at 500px */
@media (max-width: 900px) {
    .LogosAndLinks {
      grid-template-columns: 1fr;
      text-align: center;
      justify-items: center;
    }
  
    .TwoLogos {
      justify-content: center;
    }
  
    .links {
      text-align: center;
    }
}

@media (max-width: 500px) {
  .LogosAndLinks {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .TwoLogos {
    flex-direction: column;
    align-items: center;
  }

  .TwoLogos img {
    margin-bottom: 10px;
  }
}

/* DESIGN PARA SA COPY RIGHT FOOTER */
.DateOfSystem {
  display: flex;
  justify-content: end;
  align-items: center;
  padding: 0px 30px;
  background: rgb(29, 29, 29);
  width: 100%;
  height: 55px;
}

.copyrightt {
  color: rgb(216, 216, 216);
  font-size: medium;
}

/* DESIGN PARA SA MAPS AND SOCIALS */
.mapsAndSocial {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  margin: 0 auto;
}

.Maps {
  width: 100%;
  background-color: #d8eefe;
  height: 500px;
  border-radius: 8px;
}

.AddressAndSocial {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.Address, .Socialss {
  flex: 1;
  min-width: 250px;
  height: 200px;
  background-color: #f3f3f3;
  border-radius: 8px;
  padding: 20px;

  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  text-align: center;  /* Center text inside */
}

.MapsAndLocText {
  text-align: center;
  font-size: 40px;
  color: #2b2b2b;
}

.Address h3, .Socialss h3 {
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.Address p {
  margin: 8px 0;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.Address p::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  vertical-align: middle;
}

.Address p:nth-child(2)::before {
  content: "📍";
}

.Address p:nth-child(3)::before {
  content: "📞";
}

.Address p:nth-child(4)::before {
  content: "✉️";
}

.Socialss img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  cursor: pointer;
}

.social-icons {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .Maps {
    height: 350px;
  }

  .AddressAndSocial {
    flex-direction: column;
  }

  .Address, .Socialss {
    width: 100%;
  }
}

/* DESIGN PARA SA MISSION AND VISION */
.MainContainerMV h1 {
  padding: 10px;
  text-align: center;
  font-size: 40px;
  margin-top: 20px;
  color: #2b2b2b;
}

.PicmissionAndVision {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 20px;
  margin: 30px 10px;
  align-items: stretch;
  height: 400px; /* match height across picture and content */
}

.PicturePress {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #ccc;
  height: 100%;
}

.PicturePress img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.MissionAndVision {
  display: flex;
  flex-direction: column;
  padding: 0px 40px;
  background-color: white;
  height: 100%;
}

.tab-buttons {
  display: flex;
  width: 100%;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1; /* makes each button take equal space */
  padding: 12px 0;
  font-size: 16px;
  border: none;
  background-color: #f0f0f0;
  color: #333;
  cursor: pointer;
  font-weight: 600;
  border-radius: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-transform: uppercase;
}

.tab-btn.active {
  background-color: #007bff;
  color: #fff;
}

.tab-content {
  display: none;
  flex-grow: 1;
  height: 100%;
}

.tab-content.active {
  display: block;
}

.tab-content.mission,
.tab-content.vision {
  background: linear-gradient(to right, #f5f7fa, #c3cfe2);
  padding: 30px 40px;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  height: 100%;
}

.tab-content.mission::before,
.tab-content.vision::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 140%;
  height: 140%;
  background: url('https://www.transparenttextures.com/patterns/cubes.png');
  opacity: 0.04;
  pointer-events: none;
}

.tab-content.mission h2,
.tab-content.vision h2 {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #007bff;
  display: inline-block;
  padding-bottom: 5px;
}

.tab-content.mission p,
.tab-content.vision p {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  text-align: justify;
  max-width: 700px;
  margin: 0 auto;
}

/*.SectionHeader {*/
/*  font-size: 36px;*/
/*  font-weight: 800;*/
/*  text-align: center;*/
/*  color: #2c3e50;*/
/*  margin-top: 60px;*/
/*  margin-bottom: 30px;*/
/*  text-transform: uppercase;*/
/*  letter-spacing: 1.5px;*/
/*  color: gray;*/
/*}*/

/*.SectionHeader::after {*/
/*  content: "";*/
/*  display: block;*/
/*  width: 300px;*/
/*  height: 4px;*/
/*  background-color: #007bff;*/
/*  margin: 10px auto 0;*/
/*  border-radius: 2px;*/
/*}*/

/*.SlantedRec {*/
/*  display: flex;*/
/*  justify-content: center;*/
/*  align-items: center; */
/*  width: 300px;*/
/*  height: 100px;*/
/*  background-color: #1828b8;*/
/*  transform: skew(-20deg);*/
/*  margin: 40px auto; */
/*  color: white;*/
/*}*/

/*.SlantedRec h1 {*/
/*  transform: skew(20deg); */
/*  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;*/
/*  font-size: 40px;*/
/*  text-align: center;*/
/*  margin: 0;*/
/*}*/

/* Mobile Responsive */
@media (max-width: 768px) {
  .PicmissionAndVision {
    grid-template-columns: 1fr;
    height: auto;
  }

  .PicturePress {
    height: 200px;
  }

  .MissionAndVision {
    padding: 20px;
  }

  .tab-content.mission,
  .tab-content.vision {
    height: auto;
  }
}


/* Mobile Responsive */
@media (max-width: 768px) {
  .PicmissionAndVision {
    grid-template-columns: 1fr;
  }

  .PicturePress {
    height: 200px;
  }

  .MissionAndVision {
    grid-template-rows: auto;
    padding: 20px;
  }

  .Mission, .Vision {
    height: auto;
  }
}

/* DESIGN NG NO ANNOUNCEMENT CONTAINER  */
#NoAnnouncementsContainer {
  display: none; /* Make sure it's hidden initially */
  text-align: center;
  padding: 50px 20px;
  background-color: #f9f9f9;
  border: 2px dashed #ccc;
  border-radius: 10px;
  margin: 30px auto;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#NoAnnouncementsContainer .no-announcement {
  font-size: 24px;
  font-weight: bold;
  color: #555;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#NoAnnouncementsContainer .no-announcement::before {
  content: '🔕'; /* You can change this to any emoji or icon */
  font-size: 28px;
}

