/* ===============================
   COMMUNITY HERO
=================================*/
.bi-community-hero {
    position: relative;
    min-height: 267px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Background Image */
.bi-community-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../img/school-bg.png') center/cover no-repeat;
    z-index: 1;
}

/* Overlay */
/* .bi-community-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 2;
} */

/* Content */
.bi-community-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.bi-community-hero-title {
    font-size: 60px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.bi-community-hero-subtitle {
    font-size: 16px;
    color: #e5e5e5;
    max-width: 600px;
    margin: 0 auto;
}

/* ===============================
   RESPONSIVE
=================================*/
@media (max-width: 992px) {
    .bi-community-hero {
        height: 280px;
    }

    .bi-community-hero-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .bi-community-hero {
        height: 240px;
    }

    .bi-community-hero-title {
        font-size: 32px;
    }

    .bi-community-hero-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .bi-community-hero {
        height: 220px;
    }

    .bi-community-hero-title {
        font-size: 26px;
    }
}

@media (max-width: 320px) {
    .bi-community-hero-title {
        font-size: 22px;
    }
}

/* ===============================
   SECTION
=================================*/
.bi-community-section {
    padding: 50px 0;
}

.bi-container {
    max-width: 1740px;
    margin: 0 auto;
    padding: 0 20px;
}

.bi-community-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ===============================
   GRID
=================================*/
.bi-community-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

/* ===============================
   CARD
=================================*/
.bi-community-card {
    background: #fff;
    border: 1px solid #525252;
    border-radius: 10px;
    padding: 18px;
    text-align: left;
    transition: 0.3s;
}

.bi-community-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.bi-community-card-logo {
    text-align: center;
    margin-bottom: 12px;
}

.bi-community-card-logo img {
width: 170px;
  height: 170px;
  object-fit: contain;
}

.bi-community-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.bi-community-card-meta {
    font-size: 14px;
    color: #383838;
    margin-bottom: 6px;
}

.bi-community-card-desc {
    font-size: 14px;
    color: #000;
    line-height: 1.4;
    margin-bottom: 0;
}

/* ===============================
   AD BOX
=================================*/
.bi-community-ad {
    grid-column: span 1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: left;
    font-weight: 600;
    color: #333;
    min-height: 160px;
}

.ad-slot img {
    height: auto;
    object-fit: cover;
}

/* ===============================
   RESPONSIVE
=================================*/
@media (max-width: 1200px) {
    .bi-community-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .bi-community-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .bi-community-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bi-community-ad {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .bi-community-grid {
        grid-template-columns: 1fr;
    }

    .bi-community-ad {
        grid-column: span 1;
    }
}


a {
    text-decoration: none;
}
a:hover {
    text-decoration: none;
}

.bi-community-card a {
    display: block;
}

/* ===============================
   DETAIL HERO
=================================*/
.bi-community-detail-hero {
    position: relative;
    background: #f5f5f5;
}

/* COVER */
.bi-community-cover {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.bi-community-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* LOGO */
.bi-community-logo {
    position: absolute;
    left: 180px;
    bottom: -70px;
    width: 170px;
    height: 170px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bi-community-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* ===============================
   RESPONSIVE
=================================*/
@media (max-width: 992px) {
    .bi-community-cover {
        height: 200px;
    }

    .bi-community-logo {
        left: 40px;
    }
}

@media (max-width: 768px) {
    .bi-community-cover {
        height: 180px;
    }

    .bi-community-logo {
        left: 20px;
        width: 80px;
        height: 80px;
        bottom: -30px;
    }

    .bi-community-logo img {
        width: 80px !important;
        height: 80px !important;
        border-radius: 100px !important;
    }
}

@media (max-width: 480px) {
    .bi-community-cover {
        height: 150px;
    }

    .bi-community-logo {
        left: 15px;
    }
}

@media (max-width: 320px) {
    .bi-community-cover {
        height: 130px;
    }
}


/* ===============================
   DETAIL MAIN SECTION
=================================*/
.bi-community-detail-main {
    background: #fff;
    padding: 100px 0 40px; /* extra top for logo overlap */
}

/* CONTENT BOX */
.bi-community-detail-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px 70px 30px 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

/* TITLE */
.bi-community-detail-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

/* VERIFIED BADGE */
.bi-verified-badge {
    background: #22c55e;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-left: 10px;
}

/* META */
.bi-community-meta {
    font-size: 13px;
    color: #555;
    margin-bottom: 15px;
}

.bi-community-meta div {
    margin-bottom: 5px;
}

/* DESCRIPTION */
.bi-community-desc {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ===============================
   SIDEBAR
=================================*/
.bi-sidebar-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.bi-sidebar-subtitle {
    color: #8b5cf6;
    font-size: 12px;
    margin-bottom: 5px;
}

.bi-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* BUTTON */
.bi-btn-primary {
    background: #e11d1d;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    width: 100%;
    font-weight: 600;
    margin-bottom: 15px;
}

/* SOCIAL */
.bi-social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.bi-social-icons span {
    width: 32px;
    height: 32px;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 12px;
}

/* PHONE */
.bi-contact-number {
    font-size: 13px;
    color: #444;
}

/* ===============================
   RESPONSIVE
=================================*/
@media (max-width: 992px) {
    .bi-community-detail-main {
        padding-top: 60px;
    }
}

@media (max-width: 768px) {
    .bi-community-detail-content {
        padding: 20px;
    }

    .bi-community-detail-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .bi-community-detail-main {
        padding-top: 50px;
    }
}


/* SIDEBAR FULL HEIGHT */
.bi-community-sidebar {
    height: 100%;
}

/* CARD FULL HEIGHT */
.bi-sidebar-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    height: 100%;
}

/* BUTTON ICON */
.bi-btn-primary i {
    margin-right: 6px;
}

/* SOCIAL ICONS */
.bi-social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.bi-social-icons a {
width: 34px;
  height: 34px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  color: #e11d1d;
  transition: 0.3s;
  text-decoration: none;
  border: 1px solid #e11d1d;
}

.bi-social-icons a:hover {
    background: #e11d1d;
    color: #fff;
}

/* PHONE */
.bi-contact-number a {
font-size: 14px;
  color: #262827;
  text-decoration: none;
}

.bi-contact-number a i {
    margin-right: 6px;
}

/* ===============================
   FULL WIDTH AD (DETAIL PAGE)
=================================*/
.bi-community-ad-section {
    padding: 20px 0 30px;
}

.bi-community-ad-full {

}

/* ===============================
   RESPONSIVE
=================================*/
@media (max-width: 768px) {
    .bi-community-ad-full {
        font-size: 18px;
        padding: 0px;
    }
}

@media (max-width: 480px) {
    .bi-community-ad-full {
        font-size: 16px;
        padding: 25px 10px;
    }
}

/* ===============================
   GALLERY SECTION
=================================*/
.bi-community-gallery-section {
    padding: 20px 0 40px;
}

.bi-community-gallery-box {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    border: 1px solid #ddd;
}

/* TITLE */
.bi-gallery-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* ROW */
.bi-gallery-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

/* HIDE SCROLLBAR */
.bi-gallery-row::-webkit-scrollbar {
    height: 6px;
}
.bi-gallery-row::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* ITEM */
.bi-gallery-item {
flex: 0 0 322px;
  height: 262px;
  border-radius: 10px;
  overflow: hidden;
}

.bi-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===============================
   RESPONSIVE
=================================*/
@media (max-width: 768px) {
    .bi-gallery-item {
        flex: 0 0 150px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .bi-gallery-item {
        flex: 0 0 130px;
        height: 90px;
    }
}

/* ===============================
   BOOTSTRAP MODAL CUSTOM
=================================*/
.bi-custom-modal .modal-content {
    border-radius: 12px;
    padding: 20px;
    border: none;
}

.bi-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
}

/* TITLE */
.bi-modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* INPUT */
.bi-modal-input,
.bi-modal-textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 10px 5px;
    margin-bottom: 15px;
    outline: none;
    font-size: 14px;
}

.bi-modal-textarea {
    resize: none;
    height: 70px;
}

.community-message-field .bi-modal-input,
.community-message-field .bi-modal-textarea {
   
    margin-bottom: 0;
}

.community-message-field .is-invalid {
    border-bottom-color: #dc3545;
}

/* REMOVE BOOTSTRAP DEFAULT BG */
.modal-backdrop.show {
    opacity: 0.5;
}


/* ICON CIRCLE */
.bi-modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 26px;
}

/* SUCCESS */
.bi-modal-icon.success {
    background: #e6f7ee;
    color: #22c55e;
}

/* ERROR */
.bi-modal-icon.error {
    background: #fdeaea;
    color: #ef4444;
}

/* HEADING */
.bi-modal-heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* TEXT */
.bi-modal-text {
    font-size: 14px;
    color: #666;
}


.page-item.active .page-link {
	z-index: 3;
	color: #fff;
	background-color: #e10600;
	border-color: #e10600;
}

.page-link {
    color: #000;
}