* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Navbar background */
.custom-navbar {
    background: white;
}

.custom-navbar .container {
    padding-top: 15px;
    padding-bottom: 15px;
}

.logo-img {
    height: 60px;
    width: 200px;
}

.navbar-nav .nav-link {
    display: inline-block;
    font-weight: 700;
    font-size: 17px;
    color: #212020;
    position: relative;
    padding-bottom: 5px;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #ff4b4b;
    transition: width 0.35s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;    
}

.custom-btn {
    border: 1px solid #000;   
    padding: 10px 35px;
    font-weight: 700;
    background: white;
    text-decoration: none;
    border-radius: 7px;
    color: #000;
    transition: all 0.35s ease;
}

.custom-btn:hover {
    background: #000;
    color: #fff;
}

/* Prevent toggler + contact button from touching */
@media (max-width: 992px) {
    .custom-navbar .container {
        justify-content: space-between !important;
    }

    /* Reduce button size */
    .custom-btn {
        padding: 6px 18px !important;
        font-size: 14px !important;
    }
}

/* FIX for 770px–991px only */
@media (min-width: 770px) and (max-width: 991px) {

    /* Keep spacing so nothing touches */
    .custom-navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between !important;
        gap: 20px;
        flex-wrap: nowrap !important;
    }

    /* Reduce logo so layout has extra room */
    .logo-img {
        width: 150px !important;
        height: auto;
    }

    /* Prevent contact button from growing */
    .custom-btn {
        padding: 6px 18px !important;
        font-size: 13px !important;
        white-space: nowrap;
        max-width: 130px !important;   /* stops width increase */
    }

    /* Keep toggler spacing correct */
    .navbar-toggler {
        padding: 3px 6px !important;
        margin-left: auto;    /* pushes toggler away from logo */
    }
}


/* Keep Logo + Toggler + Contact Button in one row */
@media (max-width: 768px) {

    /* Allow spacing between all three items */
    .custom-navbar .container {
        flex-wrap: nowrap !important;
        gap: 12px;
    }

    /* Make button smaller so it fits comfortably */
     .custom-btn {
        display: none !important;
    }

    /* Make logo smaller to free space */
    .logo-img {
        width: 130px;
        height: auto;
        margin-right: 10px !important;
    }

    /* Reduce toggler size spacing */
    .navbar-toggler {
        padding: 3px 6px;
        margin-left: 10px !important; 
    }
}


/* For narrower phones (below 576px) */
@media (max-width: 576px) {

    .custom-navbar .container {
        gap: 8px !important;
    }

    .custom-btn {
        display: none !important;
    }

    .logo-img {
        width: 115px;
    }
}


/* TEAM-SECTION */

/* -----------------------------------
   BASE (Desktop)
------------------------------------ */
.gallery-team-section {
    background: url("../images/diverse-education-shoot7-min.jpg")
                center/cover no-repeat;
    padding: 200px 0 160px;
    position: relative;
}

/* Dark overlay */
.gallery-team-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.gallery-team-section .container {
    position: relative;
    z-index: 2;
}

/* Title */
.gallery-team-title {
    font-size: 70px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

/* Subtitle */
.gallery-team-subtitle {
    font-size: 20px;
    color: #fff;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}


/* -----------------------------------
   LARGE TABLETS / SMALL LAPTOPS
------------------------------------ */
@media (max-width: 1200px) {
    .gallery-team-title {
        font-size: 60px;
    }

    .gallery-team-section {
        padding: 170px 0 140px;
    }
}

/* -----------------------------------
   TABLETS
------------------------------------ */
@media (max-width: 992px) {
    .gallery-team-title {
        font-size: 48px;
    }

    .gallery-team-subtitle {
        font-size: 18px;
        max-width: 600px;
    }

    .gallery-team-section {
        padding: 150px 0 120px;
    }
}

/* -----------------------------------
   SMALL TABLETS / LARGE PHONES
------------------------------------ */
@media (max-width: 768px) {
    .gallery-team-title {
        font-size: 38px;
    }

    .gallery-team-subtitle {
        font-size: 17px;
        max-width: 500px;
    }

    .gallery-team-section {
        padding: 130px 0 110px;
    }
}

/* -----------------------------------
   MOBILE
------------------------------------ */
@media (max-width: 576px) {
    .gallery-team-title {
        font-size: 30px;
        margin-bottom: 10px;
    }

    .gallery-team-subtitle {
        font-size: 16px;
        line-height: 1.5;
        max-width: 90%;
    }

    .gallery-team-section {
        padding: 110px 0 90px; /* reduce height for mobile */
        text-align: center;
    }
}

/* -----------------------------------
   EXTRA SMALL MOBILE (<= 400px)
------------------------------------ */
@media (max-width: 400px) {
    .gallery-team-title {
        font-size: 26px;
    }

    .gallery-team-subtitle {
        font-size: 15px;
    }

    .gallery-team-section {
        padding: 95px 0 80px;
    }
}

/* TEAM-GRID-SECTION */

/* SECTION BACKGROUND */
.gallery-team-grid-section {
    background: #000;
}

/* BASE IMAGE STYLE */
.gallery-team-card img {
    width: 100%;
    height: 470px;
    object-fit: cover;
    border-radius: 4px;
}


/* -----------------------------
   TABLET VIEW
------------------------------ */
@media (max-width: 991px) {
    .gallery-team-card img {
        height: 350px;   /* reduce height for tablets */
    }
}


/* -----------------------------
   MOBILE VIEW
------------------------------ */
/* MOBILE (≤576px) */
@media (max-width: 576px) {

    /* Reduce container padding */
    .gallery-team-grid-section .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Reduce card width + center */
    .gallery-team-card {
        width: 90%;             /* reduced width */
        margin: 0 auto 18px;    /* center + spacing */
    }

    /* Increase image height for better framing */
    .gallery-team-card img {
        height: 320px;          /* increased height */
        width: 100%;
        object-fit: cover;
        border-radius: 8px;
    }
}

@media (max-width: 400px) {
    .gallery-team-card {
        width: 92%;
    }

    .gallery-team-card img {
        height: 300px;          /* slightly smaller but tall */
    }
}
