/* 
 * Bright Future Educational Charity Trust - Design System 
 */

:root {
    --primary: #1a3a6b;
    --primary-light: #2c5aa0;
    --primary-dark: #0f2548;
    --secondary: #d4a843;
    --secondary-light: #f0d98c;
    --white: #ffffff;
    --light: #f8f9fa;
    --dark: #1a1a2e;
    --text: #333333;
    --text-light: #6c757d;
    --gradient: linear-gradient(135deg, #1a3a6b 0%, #2c5aa0 100%);
    --gold-gradient: linear-gradient(135deg, #d4a843 0%, #f0d98c 100%);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

/* Utilities */
.text-gold { color: var(--secondary) !important; }
.bg-gradient { background: var(--gradient) !important; }
.hover-gold:hover { color: var(--secondary) !important; }

/* Buttons */
.bf-btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 30px;
    font-weight: 500;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(26, 58, 107, 0.3);
}

.bf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 58, 107, 0.4);
    color: var(--white);
}

.bf-btn-gold {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gold-gradient);
    color: var(--dark);
    border-radius: 30px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.bf-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.4);
    color: var(--dark);
}

.bf-btn-outline {
    display: inline-block;
    padding: 10px 28px;
    background: transparent;
    color: var(--white);
    border-radius: 30px;
    font-weight: 500;
    border: 2px solid var(--white);
    transition: var(--transition);
}

.bf-btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* Topbar */
.bf-topbar {
    background-color: var(--primary-dark);
    border-bottom: 2px solid var(--secondary);
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--white);
    letter-spacing: 0.3px;
}

.bf-topbar a {
    color: var(--white);
    transition: var(--transition);
}

.bf-topbar a:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

/* Navbar */
.bf-navbar {
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bf-navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 30px rgba(15, 37, 72, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

/* Navbar Brand & Logo Icon */
.bf-navbar .navbar-brand {
    transition: var(--transition);
}

.bf-navbar .logo-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.25);
    transition: all 0.3s ease;
    object-fit: cover;
}

.bf-navbar.scrolled .logo-img {
    width: 42px;
    height: 42px;
}

.bf-navbar .navbar-brand:hover .logo-img {
    transform: rotate(8deg) scale(1.05);
    box-shadow: 0 6px 18px rgba(212, 168, 67, 0.4);
}

.bf-navbar .brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    letter-spacing: 0.5px;
}

.bf-navbar .brand-bright {
    font-weight: 700;
}

.bf-navbar .brand-future {
    font-weight: 800;
}

/* Nav Links */
.bf-navbar .nav-link {
    color: var(--primary-dark);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 12px;
    padding: 8px 0;
    position: relative;
    letter-spacing: 0.2px;
    transition: var(--transition);
}

.bf-navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 0;
    background: var(--gold-gradient);
    border-radius: 4px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.bf-navbar .nav-link:hover,
.bf-navbar .nav-link.active {
    color: var(--primary-light) !important;
}

/* Navbar Apply Button */
.bf-nav-btn {
    display: inline-block;
    padding: 8px 22px;
    background: var(--gold-gradient);
    color: var(--primary-dark) !important;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.2);
}

.bf-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.35);
    color: var(--primary-dark) !important;
}

.bf-nav-btn:active {
    transform: translateY(0);
}

/* Hero Slider Section */
.bf-hero-slider {
    position: relative;
    min-height: 90vh;
    height: 90vh;
    overflow: hidden;
}

.bf-hero-slider .carousel-inner,
.bf-hero-slider .carousel-item {
    height: 100%;
    min-height: 90vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.bf-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 37, 72, 0.75);
    z-index: 1;
}

.bf-hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    z-index: 2;
}

.bf-hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.bf-hero-content p.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0.9;
}

.bf-hero-content p.mission {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-light);
    margin-bottom: 40px;
}



/* Sections */
.bf-section {
    padding: 80px 0;
}

.bf-section-light {
    background-color: var(--light);
}

.bf-section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.bf-section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

/* Cards */
.bf-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.bf-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.bf-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.bf-card h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.bf-program-card {
    border-top: 4px solid var(--primary);
    padding: 25px;
    text-align: center;
}

.bf-program-card i {
    color: var(--primary);
}

.bf-program-card h4 {
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
    background-color: rgba(26, 58, 107, 0.1);
    color: var(--primary);
}

/* Scholarship Section */
.bf-scholarship {
    background: var(--gold-gradient);
    color: var(--dark);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.bf-scholarship h2 {
    color: var(--dark);
}

.bf-scholarship .bf-section-title::after {
    background-color: var(--dark);
}

/* Stats */
.bf-stat {
    text-align: center;
    color: var(--white);
}

.bf-stat h3 {
    color: var(--white);
    font-size: 3rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 10px;
}

.bf-stat p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary-light);
}

/* Timeline */
.bf-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.bf-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
    border: 4px solid var(--white);
}

.timeline-content {
    width: 45%;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    text-align: right;
}

/* Gallery */
.bf-gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.bf-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bf-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 37, 72, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.bf-gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: var(--transition);
}

.bf-gallery-overlay span {
    color: var(--white);
    font-weight: 500;
    transform: translateY(20px);
    transition: var(--transition);
}

.bf-gallery-item:hover img {
    transform: scale(1.1);
}

.bf-gallery-item:hover .bf-gallery-overlay {
    opacity: 1;
}

.bf-gallery-item:hover .bf-gallery-overlay i,
.bf-gallery-item:hover .bf-gallery-overlay span {
    transform: translateY(0);
}

/* Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

/* Page Header */
.bf-page-header {
    background: var(--gradient);
    padding: 80px 0 60px;
    color: var(--white);
    text-align: center;
}

.bf-page-header h1 {
    color: var(--white);
    margin-bottom: 15px;
}

/* Form Styles */
.form-control {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(26, 58, 107, 0.25);
}

/* Footer */
.bf-footer {
    background-color: var(--dark);
}

.bf-footer a.text-light:hover {
    color: var(--secondary) !important;
}

/* WhatsApp & Back to Top */
.bf-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.bf-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

.bf-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

.bf-back-top.show {
    opacity: 1;
    visibility: visible;
}

.bf-back-top:hover {
    background-color: var(--secondary);
    color: var(--dark);
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Logo */
.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

/* ===========================
   RESPONSIVE DESIGN SYSTEM
   =========================== */

/* Tablet Landscape (max-width: 1199px) */
@media (max-width: 1199px) {
    .bf-navbar .nav-link {
        margin: 0 6px;
        font-size: 0.9rem;
    }
    .bf-hero-content h1 {
        font-size: 3rem;
    }
}

/* Tablet Portrait (max-width: 991px) */
@media (max-width: 991px) {
    .bf-navbar {
        padding: 10px 0;
    }
    .bf-navbar .logo-img {
        width: 42px;
        height: 42px;
    }
    .bf-navbar .brand-text {
        font-size: 1.15rem;
    }
    .bf-navbar .nav-link::after {
        display: none;
    }
    .bf-navbar .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 12px;
        padding: 15px 20px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border: 1px solid rgba(0,0,0,0.05);
    }
    .bf-navbar .nav-link {
        margin: 0;
        padding: 10px 15px;
        border-radius: 8px;
    }
    .bf-navbar .nav-link:hover,
    .bf-navbar .nav-link.active {
        background-color: rgba(26, 58, 107, 0.05);
    }
    .bf-nav-btn {
        display: block;
        text-align: center;
        margin-top: 10px;
    }
    .bf-hero-slider,
    .bf-hero-slider .carousel-item {
        min-height: 75vh;
        height: 75vh;
    }
    .bf-hero-content {
        padding: 60px 0;
    }
    .bf-hero-content h1 {
        font-size: 2.5rem;
    }
    .bf-hero-content p.subtitle {
        font-size: 1rem;
    }
    .bf-hero-content p.mission {
        font-size: 1.2rem;
    }
    .bf-section {
        padding: 60px 0;
    }
    .bf-section-title {
        margin-bottom: 35px;
    }
    .timeline-content {
        width: 85%;
        margin-left: auto !important;
        margin-right: 0 !important;
        text-align: left !important;
    }
    .bf-timeline::before {
        left: 20px;
    }
    .timeline-icon {
        left: 20px;
        transform: translateX(-50%);
    }
    .bf-page-header {
        padding: 60px 0 40px;
    }
    .bf-page-header h1 {
        font-size: 2rem;
    }
    .footer-logo {
        width: 50px;
        height: 50px;
    }
}

/* Mobile Large (max-width: 767px) */
@media (max-width: 767px) {
    .bf-hero-slider,
    .bf-hero-slider .carousel-item {
        min-height: 70vh;
        height: auto;
    }
    .bf-hero-content {
        position: relative;
        min-height: 70vh;
        height: auto;
        padding: 60px 15px;
    }
    .bf-hero-content h1 {
        font-size: 1.85rem;
        line-height: 1.3;
    }
    .bf-hero-content p.subtitle {
        font-size: 0.95rem;
    }
    .bf-hero-content p.mission {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    .bf-hero-content .d-flex {
        flex-direction: column;
        align-items: center;
    }
    .bf-hero-content .bf-btn-gold,
    .bf-hero-content .bf-btn-outline {
        width: 80%;
        text-align: center;
        padding: 12px 20px;
        font-size: 1rem !important;
    }
    .bf-section {
        padding: 45px 0;
    }
    .bf-section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    .bf-card {
        padding: 20px;
    }
    .bf-stat h3 {
        font-size: 2.2rem;
    }
    .bf-btn-primary, .bf-btn-gold {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
    .bf-gallery-item img {
        height: 200px;
    }
    .bf-page-header {
        padding: 50px 0 35px;
    }
    .bf-page-header h1 {
        font-size: 1.75rem;
    }
    .bf-footer {
        text-align: center;
    }
    .bf-footer .d-flex.align-items-center {
        justify-content: center;
    }
    .bf-footer h5 {
        display: block !important;
    }
    .bf-footer .social-links {
        justify-content: center;
        display: flex;
    }
    .footer-logo {
        width: 45px;
        height: 45px;
    }
    .bf-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        bottom: 20px;
        left: 20px;
    }
    .bf-back-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0,0,0,0.3);
        border-radius: 50%;
        opacity: 1;
    }
    .carousel-control-prev {
        left: 10px;
    }
    .carousel-control-next {
        right: 10px;
    }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
    .carousel-indicators {
        bottom: 10px;
    }
    .carousel-indicators button {
        width: 8px;
        height: 8px;
        border-radius: 50%;
    }
}

/* Mobile Small (max-width: 575px) */
@media (max-width: 575px) {
    body {
        font-size: 14px;
    }
    .bf-navbar .logo-img {
        width: 38px;
        height: 38px;
    }
    .bf-navbar .brand-text {
        font-size: 1rem;
    }
    .bf-hero-content h1 {
        font-size: 1.5rem;
    }
    .bf-hero-content p.subtitle {
        font-size: 0.85rem;
    }
    .bf-hero-content p.mission {
        font-size: 1rem;
    }
    .bf-section-title {
        font-size: 1.4rem;
    }
    .bf-card {
        padding: 16px;
        border-radius: 10px;
    }
    .bf-program-card h4 {
        font-size: 0.95rem;
    }
    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    .bf-footer-bottom p {
        font-size: 0.75rem;
    }
    .bf-page-header {
        padding: 40px 0 30px;
    }
    .bf-page-header h1 {
        font-size: 1.5rem;
    }
    .breadcrumb {
        font-size: 0.8rem;
    }
    .display-4 {
        font-size: 1.75rem !important;
    }
    .footer-logo {
        width: 40px;
        height: 40px;
    }
}

/* Touch Device Enhancements */
@media (hover: none) {
    .bf-card:hover {
        transform: none;
    }
    .bf-navbar .navbar-brand:hover .logo-img {
        transform: none;
    }
}
