/* ============================================
   BRIGHT FUTURE INSPIRED HOME PAGE DESIGN
   ============================================ */

/* Reset global section spacing inside home */
.bf-home section {
    padding: 0 !important;
    margin: 0;
    animation: none;
    width: 100%;
}

.bf-home {
    width: 100%;
    overflow-x: clip;
}

/* Shared inner padding for hero content */
.bf-section-inner {
    width: 100%;
    max-width: 100%;
    padding-left: clamp(20px, 4vw, 48px);
    padding-right: clamp(20px, 4vw, 48px);
    overflow-x: clip;
}

.bf-hero-inner > .row {
    --bs-gutter-x: 1.5rem;
    margin-left: 0;
    margin-right: 0;
}

/* ---- Hero Section ---- */
.bf-hero {
    position: relative;
    padding: 36px 0 24px;
    background: #ffffff;
    overflow: hidden;
}

.bf-hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background-image: radial-gradient(circle, #e2e8f0 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: 0.5;
    pointer-events: none;
}

.bf-hero-content {
    position: relative;
    z-index: 2;
    padding-right: 20px;
}

.bf-tagline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--royal-blue);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.bf-hero-title {
    font-size: clamp(1.65rem, 1.2rem + 2.5vw, 3rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.bf-hero-desc {
    font-size: clamp(0.92rem, 0.86rem + 0.35vw, 1.05rem);
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}

.bf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2rem;
}

.bf-btn-primary {
    background: var(--royal-blue);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.bf-btn-outline {
    background: #fff;
    color: var(--navy);
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.bf-btn-primary:hover {
    background: var(--royal-blue-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.bf-btn-outline:hover {
    border-color: var(--royal-blue);
    color: var(--royal-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bf-hero-dots {
    display: flex;
    gap: 8px;
}

.bf-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bf-dot.active {
    background: var(--royal-blue);
    width: 28px;
    border-radius: 5px;
}

/* Hero Carousel */
.bf-hero-visual {
    position: relative;
}

.bf-hero-carousel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 40, 71, 0.12);
}

.bf-hero-carousel .carousel-inner {
    height: 420px;
}

.bf-hero-carousel .carousel-item {
    height: 420px;
}

.bf-hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bf-carousel-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.bf-carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bf-carousel-btn:hover {
    background: var(--royal-blue);
    color: #fff;
}

/* ---- Quick Links Bar ---- */
.bf-quick-links-section {
    margin-top: 0;
    position: relative;
    z-index: 10;
    padding: 0;
    width: 100%;
    background: var(--navy) url('../images/school-bg.jpg') center/cover no-repeat;
    overflow: hidden;
}

.bf-quick-links-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 40, 71, 0.88) 0%, rgba(30, 58, 95, 0.85) 100%);
    z-index: 0;
    pointer-events: none;
}

.bf-quick-links {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    width: 100%;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 28px clamp(16px, 3vw, 32px);
    border: none;
    position: relative;
    z-index: 1;
}

.bf-quick-link {
    text-align: center;
    padding: 12px 8px;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.bf-quick-link:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    color: inherit;
}

.bf-quick-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.bf-quick-link:hover .bf-quick-icon {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.bf-icon-blue   { background: rgba(37, 99, 235, 0.35); color: #93c5fd; }
.bf-icon-green  { background: rgba(5, 150, 105, 0.35); color: #6ee7b7; }
.bf-icon-orange { background: rgba(234, 88, 12, 0.35); color: #fdba74; }
.bf-icon-purple { background: rgba(124, 58, 237, 0.35); color: #c4b5fd; }
.bf-icon-pink   { background: rgba(219, 39, 119, 0.35); color: #f9a8d4; }
.bf-icon-teal   { background: rgba(13, 148, 136, 0.35); color: #5eead4; }

.bf-quick-link h6 {
    font-size: clamp(0.72rem, 0.68rem + 0.28vw, 0.85rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.bf-quick-link p {
    font-size: clamp(0.65rem, 0.62rem + 0.18vw, 0.72rem);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.3;
}

/* ---- Main Content ---- */
.bf-main-content {
    padding: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.bf-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    min-height: 0;
}

.bf-content-card {
    background: #fff;
    border-radius: 0;
    border: none;
    border-right: 1px solid #e2e8f0;
    padding: clamp(20px, 3vw, 32px);
    height: 100%;
}

.bf-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.bf-card-header h5 {
    font-size: clamp(0.95rem, 0.88rem + 0.35vw, 1.1rem);
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.bf-view-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--royal-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.bf-view-all:hover {
    color: var(--royal-blue-dark);
}

/* News List */
.bf-news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bf-news-item {
    display: flex;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.2s;
}

.bf-news-item:hover {
    background: #f8fafc;
    color: inherit;
}

.bf-news-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
}

.bf-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bf-news-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.5rem;
}

.bf-news-body h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
    line-height: 1.3;
}

.bf-news-body p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bf-news-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--royal-blue);
}

/* Events List */
.bf-events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bf-event-item {
    display: flex;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.2s;
}

.bf-event-item:hover {
    background: #f8fafc;
    color: inherit;
}

.bf-event-date {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--royal-blue);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    line-height: 1;
}

.bf-event-month {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bf-event-day {
    font-size: 1.25rem;
    font-weight: 800;
}

.bf-event-body h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.bf-event-body p {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.bf-event-body p i {
    color: var(--royal-blue);
    font-size: 0.7rem;
}

/* About Card */
.bf-about-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    height: 100%;
    min-height: 280px;
    background: #fff;
    border-left: 1px solid #e2e8f0;
}

.bf-about-overlay {
    display: none;
}

.bf-about-content {
    position: relative;
    z-index: 2;
    padding: clamp(20px, 3vw, 32px);
    color: var(--text-dark);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bf-about-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--royal-blue);
    margin-bottom: 12px;
}

.bf-about-content h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
    line-height: 1.3;
}

.bf-about-content p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 24px;
}

.bf-btn-white {
    background: #fff;
    color: var(--royal-blue);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.bf-btn-white:hover {
    background: #f1f5f9;
    color: var(--royal-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Empty State */
.bf-empty-state {
    text-align: center;
    padding: 24px 16px;
    color: #94a3b8;
}

.bf-empty-state i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.bf-empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* ---- Feature Bar ---- */
.bf-feature-bar {
    background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
    border-radius: 0;
    margin: 0;
    padding: 28px clamp(16px, 3vw, 32px);
    width: 100%;
}

.bf-features {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 100%;
}

.bf-feature-item {
    text-align: center;
    padding: 16px 12px;
    color: #fff;
}

.bf-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.3rem;
    color: #fff;
    transition: all 0.3s ease;
}

.bf-feature-item:hover .bf-feature-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.bf-feature-item h6 {
    font-size: clamp(0.78rem, 0.74rem + 0.25vw, 0.88rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.bf-feature-item p {
    font-size: clamp(0.68rem, 0.64rem + 0.2vw, 0.75rem);
    opacity: 0.75;
    margin: 0;
    line-height: 1.4;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .bf-quick-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .bf-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .bf-hero {
        padding: 28px 0 16px;
    }

    .bf-hero-content {
        text-align: center;
        padding-right: 0;
    }

    .bf-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .bf-hero-actions {
        justify-content: center;
    }

    .bf-hero-dots {
        justify-content: center;
    }

    .bf-hero-carousel .carousel-inner,
    .bf-hero-carousel .carousel-item {
        height: 340px;
    }

    .bf-quick-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .bf-main-grid {
        grid-template-columns: 1fr;
    }

    .bf-content-card {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .bf-about-card {
        min-height: 260px;
        border-left: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .bf-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .bf-quick-links {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px 12px;
    }

    .bf-hero-carousel .carousel-inner,
    .bf-hero-carousel .carousel-item {
        height: 260px;
    }

    .bf-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .bf-btn-primary,
    .bf-btn-outline {
        justify-content: center;
    }

    .bf-features {
        grid-template-columns: 1fr;
    }
}
