/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
    list-style: none;
}

/* Body */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: white;
}

/* === NAVBAR === */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  background-color: #e6f4ea;
  padding: 10px 0px 15px 0px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  max-width: 60px;
  height: auto;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a621c;
  white-space: nowrap;
}

.custom-navbar {
  background: none;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  text-transform: uppercase;
  padding: 1rem 0;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.nav-list li a {
  color: #0a621c;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 1.05rem;
  border-radius: 0px;
  transition: 0.3s background-color ease-in-out, 0.3s color ease-in-out;
}

.nav-list li a:hover {
  background-color: #0a8a61;
  color: white;
}
/* Main Content */
main {
    padding: 100px 7%;
    flex: 1;
}

/* Hero Section */
.hero {
    position: relative; /* Needed for absolute positioning of the video */
    color: #fff;
    text-align: left;
    padding: 200px 0;
    overflow: hidden; /* Prevent potential scrollbars */
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Place video behind other content */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    margin-left: 10%;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    margin-left: 10%;
}

.message-button, .enroll-button {
    background-color: #00a86b; /* Changed to green */
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 50px; /* Rounded corners */
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 20px;
    transition: background-color 0.3s ease;
}

.enroll-button {
    background-color: transparent;
    border: 2px solid white;
}

.message-button:hover, .enroll-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Why BSIT Section */
.why-bsit {
    padding: 50px 0;
    text-align: center;
    background-color: #f8f9f9;
}

.why-bsit h2 {
    margin-bottom: 30px;
    color: #28a745;
    font-size: 2.5rem;
    font-weight: bold;
}

.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.feature {
    width: 30%;
    margin-bottom: 20px;
    background-color: #e8f5e9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    border: 1px solid #d1d1d1;
}

.feature img {
    height: 40px;
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 10px;
    color: #212529;
    font-weight: bold;
    font-size: 1.2rem;
}

.feature p {
    color: #495057;
    font-size: 0.9em;
    line-height: 1.8;
}

/* Specialized Tracks Section */
.specialized-tracks {
    background-color: #e8f5e9;
    padding: 50px 0;
    text-align: center;
}

.specialized-tracks h2 {
    margin-bottom: 30px;
    color: #28a745;
    font-size: 2.5rem;
    font-weight: bold;
}

.tracks {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.track {
    width: 23%;
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border: 1px solid #d1d1d1;
    text-align: left;
}

.track img {
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
    display: block;
    margin: 0 auto 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.track h3 {
    margin-bottom: 10px;
    color: #212529;
    font-weight: bold;
    font-size: 1.2rem;
}

.track p {
    color: #495057;
    font-size: 0.9em;
    line-height: 1.8;
}

.track ul {
    list-style: none;
    text-align: left;
    padding-left: 20px;
}

.track ul li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.track ul li::before {
    content: "✓";
    color: #28a745;
    position: absolute;
    left: 0;
}

/* Affiliations Section */
.affiliations {
    padding: 50px 0;
    text-align: center;
    background-color: #e9ecef;
}

.affiliations h2 {
    margin-bottom: 30px;
    color: #212529;
}

.affiliation-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.affiliation-logos img {
    height: 50px;
    width: auto;
    margin: 10px;
}

/* Student Portfolio Section */
.student-portfolio {
    background-color: #e8f5e9;
    padding: 50px 0;
    text-align: center;
}

.student-portfolio h2 {
    margin-bottom: 30px;
    color: #28a745;
    font-size: 2rem;
    font-weight: bold;
}

.portfolios {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.portfolio {
    width: 300px;
    background-color: #fff;
    padding: 20px;
    margin: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    text-align: left;
    transition: transform 0.3s ease;
}

.portfolio:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.portfolio img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 8px;
}

.portfolio h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #212529;
}

.portfolio p {
    color: #495057;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.portfolio .student-info {
    display: flex;
    align-items: center;
}

.portfolio .student-info img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.portfolio .student-info p {
    font-size: 0.8em;
    color: #6c757d;
}

/* === ADMIN ICON === */
#admin-icon {
  position: fixed;
  bottom: 90px;
  right: 23px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: transparent;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
}

#admin-icon:hover {
  box-shadow: 0 0 15px 5px rgba(10, 138, 97, 0.5);
  background-color: rgba(10, 138, 97, 0.1);
  transform: scale(1.05);
}


/* === FOOTER SECTION === */
.footer {
  background-color: #f9f9f9;
  font-family: Arial, sans-serif;
  color: #333;
}

.footer-content {
  border-top: 1px solid #eaeaea;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 30px 60px;
}

.footer-logo {
  flex: 1;
  max-width: 300px;
  padding: 5px 0;
  text-align: left;
}

.footer-logo img {
  width: 150px;
  height: auto;
}

.footer-logo h3 {
  font-size: 18px;
  font-weight: bold;
  color: #00563b;
  margin: 5px 0;
}

.footer-logo p {
  font-size: 14px;
  color: #777;
  font-weight: normal;
}

.footer-links,
.footer-follow {
  flex: 1;
  margin: 10px 20px;
  min-width: 250px;
  text-align: center;
}

.footer-links h4,
.footer-follow h4 {
  color: #00563b;
  font-size: 18px;
  margin-bottom: 10px;
  margin: 15px 20px;
  text-align: center;
}

.footer-contact h4{
  text-align: left;
  flex: 1;
  margin: 30px 20px;
  min-width: 250px;
  color: #00563b;
  font-size: 18px;
  margin-bottom: 10px
}

.footer-links ul {
  list-style-type: none;
  padding: 0;
  text-align: center;
}

.footer-links li {
  margin: 12px 0;
}

.footer-links a {
  text-decoration: none;
  font-weight: normal;
  color: #00563b;
  font-size: 16px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
  color: #10B981;
  transform: scale(1.05);
}

.footer-contact p {
  margin: 8px 0;
  font-size: 14px;
  font-weight: normal;
  color: #333;
  text-align: left;
}

.footer-contact img {
  width: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

.footer-follow a {
  display: inline-block;
  margin-right: 12px;
}

.footer-follow img {
  width: 35px;
  height: auto;
  transition: transform 0.3s ease;
}

.footer-follow a:hover img {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #777;
  border-top: 1px solid #eaeaea;
  padding: 15px 0;
  font-weight: normal;
}

/* Responsive Styles (Programs Page) */
/* ============================= */

/* Tablet adjustments */
@media (max-width: 1024px) {
  /* Navbar brand name size */
  .brand-name {
    font-size: 1.2rem;
  }

  /* Features & Tracks grid adjustments */
  .features .feature,
  .tracks .track {
    width: 45%;
  }

  /* Portfolio adjustments */
  .portfolio {
    width: 45%;
  }

  /* Footer layout stacks better */
  .footer-content {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }
  .footer-logo, .footer-links, .footer-contact, .footer-follow {
    text-align: center;
    margin: 15px 0;
  }
}








/* Mobile adjustments */
@media (max-width: 600px) {
  /* Header */
  .header-top {
    flex-direction: column;
    align-items: center;
  }
  .brand-name {
    font-size: 1rem;
    white-space: normal;
    text-align: center;
  }
  .logo {
    max-width: 50px;
  }

  /* Navbar turns vertical */
  .nav-list {
    flex-direction: row;
    justify-content: space-evenly; /* equal spacing */
    flex-wrap: nowrap;             /* bawal mag line break */
    gap: 0;                        /* tanggalin gap */
  }

  .nav-list li a {
    font-size: 0.9rem;   /* mas maliit ng konti para magkasya */
    padding: 8px 6px;
  }

  /* Hero section */
  .hero,
  .video-section {
    text-align: center;
    padding: 80px 20px;
  }
  .hero h1,
  .video-section h1 {
    font-size: 1.8rem;
    margin: 0 auto 20px;
  }
  .hero-buttons,
  .video-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-buttons .message-button,
  .hero-buttons .enroll-button,
  .video-buttons .btn {
    width: 90%;
    margin: 8px 0;
  }

  /* Sections stack */
  .features,
  .tracks,
  .portfolios,
  .events-container {
    flex-direction: column;
    align-items: center;
  }

  .feature,
  .track,
  .program-container,
  .portfolio,
  .event-box {
    width: 98%;          
    max-width: 900px;   
    margin: 15px auto;   
    padding: 15px;       
    background: #fff;  
    border-radius: 10px;
  }

  /* Ensure images fit inside card */
  .program-container img,
  .track img,
  .feature img,
  .portfolio img {
    width: 100%;
    height: auto;
    max-height: 250px;   /* para hindi sobrang taas */
    object-fit: cover;   /* crop image properly */
    border-radius: 8px 8px 0 0;
  }

  /* ✅ Specialized Tracks text truncation */
  .track p, 
  .track ul {
    max-height: 120px;       /* limit visible height */
    overflow: hidden;        
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;   /* show only 5 lines */
    -webkit-box-orient: vertical;
    transition: max-height 0.3s ease;
  }

  /* Expanded track */
  .track.expanded p,
  .track.expanded ul {
    max-height: none;
    -webkit-line-clamp: unset;
  }

  /* Read More button style */
  .read-more {
    display: block;
    color: #0a621c;
    font-weight: bold;
    margin-top: 8px;
    text-align: right;
    cursor: pointer;
    font-size: 0.85rem;
  }

  /* Footer */
  .footer-logo img {
    width: 120px;
  }
  .footer-logo h3 {
    font-size: 16px;
  }
  .footer-links a {
    font-size: 14px;
  }

  /* Icons (Admin + Chatbot) */
  #admin-icon,
  #chatbot-icon {
    width: 55px;
    height: 55px;
    bottom: 80px;
    right: 20px;
  }
  #chatbot-icon {
    bottom: 20px;
  }
}
