* {
    box-sizing: border-box;
}   
   
   body {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            background-color: #ffffff;
            margin: 0;
            line-height: 1.6;
            color: #1e1e1e;
            width: 100%;
            overflow-x: hidden;
        }

        /* Accessibility: Screen reader only class */
        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            margin: -1px;
            padding: 0;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
}


/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* =========
   TOP CONTACT BAR
==== */
.topbar {
  background-color: #31353c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 2rem;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo-group a {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s ease, outline-offset 0.3s ease;
}

.logo-group a:hover,
.logo-group a:focus {
  opacity: 0.8;
  outline: 1px solid #555;
  outline-offset: 2px;
}

.logo-group img {
  height: 0.9rem;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links img {
  height: 0.8rem;
  width: auto;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 0.5rem;
  font-size: clamp(0.6rem, 1vw, 0.8rem);
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #D5481B;
  outline: none;
}

/* ====
   MAIN NAVIGATION BAR
== */

.subbar {
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8%;
  height: 6rem;
  position: relative;
}

/* Logo */
.subbar-logo img {
  height: 7rem;
  width: auto;
  position: relative;
  top: 2px;
}

/* Navigation Links */
.subbar-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.subbar-links li {
  margin: 0;
}

.subbar-links a {
  color: #1e1e1e;
  text-decoration: none;
  font-size: clamp(0.7rem, 1.2vw, 1rem);
  transition: color 0.3s ease;
  padding: 0.7rem 0;
  display: inline-block;
}

.subbar-links a:hover,
.subbar-links a:focus {
  color: #D5481B;
  outline: none;
}

.subbar-links a[aria-current="page"] {
  font-weight: 600;
  color: #D5481B;
}


.hamburger-icon-button {
    display: none; 
}

.mobile-sidebar {
    display: none;
}

.sidebar-overlay {
    display: none;
}



/* Search Box */
.search-box {
  display: flex;
  align-items: center;
  background: #f1f1f1;
  border-radius: 50px;
  padding: 0.5rem;
  max-width: 250px;
  min-width: 100px;
  flex: 0 1 200px;
}

.search-box input {
  border: none;
  background: transparent;
  padding: 0.4rem;
  outline: none;
  font-size: clamp(0.8rem, 1vw, 1rem);
  width: 100%;
  color: #1e1e1e;
}

.search-box input::placeholder {
  color: #555;
}

.search-box input:focus {
  outline: 2px solid #D5481B;
  outline-offset: -2px;
  border-radius: 50px;
}

.search-box button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.search-box button:hover,
.search-box button:focus {
  transform: scale(1.1);
  outline: 2px solid #D5481B;
  outline-offset: 2px;
  border-radius: 4px;
}

.search-box button img {
  width: clamp(14px, 1.5vw, 18px);
  height: auto;
  display: block;
}

.hamburger-icon-button {
    display: none; 
}

.mobile-sidebar {
    display: none;
}

.sidebar-overlay {
    display: none;
}

/* Breadcrumb Navigation */
.breadcrumb {
  background: #D5481B;
  padding: 0.8rem clamp(1rem, 4vw, 4rem);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  color: #f1f1f1;
  display: flex;
  flex-wrap: wrap;
  align-items: left;
  gap: 1rem;
}

.breadcrumb a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:first-child {
  margin-left: clamp(1rem, 5vw, 5rem);
}

.breadcrumb a:hover {
  color: #1e1e1e;
}

.breadcrumb span {
  color: #f1f1f1;
  font-weight: bold;
}


/* General Styles */
.team-section {
    font-family: 'Arial', sans-serif;
    padding: 50px 20px;
    text-align: center;
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.team-header h2 {
    font-size: 28px;
    margin-bottom: 5px;
}

.fitc-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 250px;
    margin-top: 20px;
    margin-bottom: 50px;
}

.group-title {
    font-size: 24px;
    margin: 40px 0 20px;
    font-weight: bold;
}

/* Card Styles */
.team-card {
    margin-bottom: 120px;
    flex: 0 1 200px;
}

.img-container {
    width: 220px;
    height: 260px;
    margin: 0 auto 10px;
    padding: 0px;
    background-color: #fff; /* Mahalaga ito para hindi kita ang anino sa loob */
    border: 1px solid #eee; /* Light border para sa edge ng frame */
    border-bottom: #D5481B 6px solid;
    /* Box Shadow Property */
    /* offset-x | offset-y | blur-radius | spread-radius | color */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    
    /* Optional: Transition para sa hover effect later */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit:cover;
}

.team-card h3 {
    font-size: 18px;
    margin: 10px 0 2px;
    font-weight: bold;
}

.role {
    font-size: 16px;
    color: #555;
    line-height: 1.2;
}

/* Grid System (Desktop) */
.team-grid {
    display: grid;
    gap: 20px;
}

.directors-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.staff-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
}  




/* --- MOBILE RESPONSIVE (Targeting image_e7c05c.png) --- */
@media (max-width: 425px) {
html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
    }
    body.no-scroll {
        overflow: hidden; 
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .page-offset-margin {
        margin-top: 5rem; 
    }

    .topbar {
        display: none;
    }

    .subbar {
        height: 5rem; 
        width: 100%;
        padding: 0rem 5%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
    }

    .subbar-logo img {
        height: 4rem;
    }

    .subbar-links {
        display: none;
    }

    .search-box {
        display: none;
    }
    .subbar-links {
        display: none;
    }

    .subbar-links a {
        display: none;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    /*Butons --------- */
    .btn,
    .btn-about,
    .btn-view-more {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    /* HAMBURGER ICON--- */
    .hamburger-icon-button {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1002;
    }

        .hamburger-icon-button .bar {
        width: 100%;
        height: 3px;
        background-color: #333;
        border-radius: 5px;
        transition: all 0.3s ease-in-out;
    }


  /* Hamburger animation when menu is open */
    .hamburger-icon-button.open .bar:nth-child(2) { opacity: 0; }
    .hamburger-icon-button.open .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .hamburger-icon-button.open .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }



    /* --- MOBILE SIDEBAR MENU*/
    .sidebar-search-container {
        display: block;
        padding: 20px;
        border-bottom: 1px solid #ddd;
        margin-bottom: 20px;
    }

    .mobile-search-box {
        display: flex;
        align-items: center;
        margin-left: 40px;
        width: 70%;
        background-color: #e0e0e0;
        border-radius: 25px;
        padding: 5px 15px;
        border: none;
    }

    .mobile-sidebar {
        display: block;
        position: fixed; 
        top: 0;
        right: 0;
        width: 85vw;
        height: 100%;
        background-color: #f1f1f1;
        z-index: 1000;
        transform: translateX(100%); 
        transition: transform 0.3s ease-out;
        overflow-y: auto;
        padding-top: 20px;
        box-sizing: border-box;
    }

    .sidebar-overlay {
        display: block ;
        position: fixed;
    }
    
    .mobile-sidebar.open {
        transform: translateX(0) ; 
    }

     .sidebar-search-container {
        padding: 0 20px 20px;
        border-bottom: 1px solid #ddd;
        margin-bottom: 10px;
    }

    .mobile-links {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center; 
    }

    .mobile-links li a {
        display: block;
        padding: 15px 25px;
        color: #333;
        font-size: 1.1rem;
        text-decoration: none;
    }
    
    .mobile-links li a.active-link {
        color: #D5481B; 
        font-weight: 600;
        text-decoration: underline 2px;
        text-underline-offset: 5px;
        text-decoration-color: #D5481B;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-out;
    }

    .sidebar-overlay.visible {
        opacity: 1;
        visibility: visible;
    }

     .mobile-sidebar.open {
        transform: translateX(0); 
    }

    .sidebar-search-container {
        padding: 0 20px 20px;
        border-bottom: 1px solid #ddd;
        margin-bottom: 10px;
    }

    .mobile-links {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center; 
    }
    
/* 1. Force Single Column */
    .team-grid, 
    .directors-grid, 
    .staff-grid, 
    .team-group,
    .president-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        width: 100%;
        grid-template-columns: 1fr; 
    }

    /* pictures */
    .team-card {
        width: 100%;
        max-width: 350px; 
        margin-bottom: 30px;
        flex: none; 
    }

    .img-container {
        width: 100%; 
        height: 380px; 
        overflow: hidden;
        display: block;
        border-bottom: #D5481B 6px solid;
        margin: 0 auto;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover; 
        display: block;
    }

    /* 3. Text and Headers */
    .team-section {
        padding-top: 6rem; 
        padding-left: 15px;
        padding-right: 15px;
    }

    .fitc-logo {
        width: 70%;
        margin: 20px auto;
        display: block;
    }

    /* Itago ang desktop elements */
    .topbar, 
    .subbar-links {
        display: none;
    }
}
