/* Modern Help Your Math Homepage Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --text-color: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(30, 41, 59, 0.95) !important;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.navbar-brand img {
    transition: var(--transition);
    filter: brightness(1.1);
}

.navbar-brand:hover img {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.navbar-nav .nav-link {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Account for fixed navbar */
    margin-top: 80px; /* Push content below navbar */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/img/new1.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Floating Cards Animation */
.floating-cards {
    position: relative;
    height: 400px;
}

.floating-card-1,
.floating-card-2,
.floating-card-3 {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.floating-card-2 {
    top: 100px;
    right: 20px;
    animation-delay: 2s;
}

.floating-card-3 {
    bottom: 20px;
    right: 140px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating-card-1:hover,
.floating-card-2:hover,
.floating-card-3:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Resource Cards */
.resource-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.resource-card .card-body {
    padding: 2rem;
}

.resource-icon {
    transition: var(--transition);
}

.resource-card:hover .resource-icon {
    transform: scale(1.1);
}

/* Course Cards */
.course-card {
    display: flex;
    flex-direction: column;          /* stack image above content */
    padding: 16px;
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
    height: 280px;                   /* fixed card height */
}

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

.course-card .media {
    width: 100%;
    height: 120px;                   /* smaller, more compact image area */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 12px;
}

.course-card .media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;              /* show whole image without crop */
}

.course-card .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-card .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;                    /* smaller badge spacing */
    margin: 8px 0;
    justify-content: center;
}

.course-card .card-title {
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.course-card .card-text {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #666;
}

.course-card .btn {
    font-size: 0.9rem;
    padding: 8px 16px;
}

.course-features .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/img/office-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.stat-item {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1rem;
}

.stat-icon {
    transition: var(--transition);
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin: 1rem 0;
}

.stat-label {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Support Section */
.support-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    text-align: center;
    transition: var(--transition);
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* About Section */
.about-features .feature-item {
    padding: 0.5rem 0;
}

.about-features i {
    font-size: 1.25rem;
}

/* Team Section */
.team-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.team-image img {
    transition: var(--transition);
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

.team-position {
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.team-department {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Team member loading animation */
#additional-team-members .col-lg-4 {
    animation: fadeInUp 0.6s ease-out;
}

/* Ensure proper grid layout for team members */
#additional-team-members {
    margin: 0;
}

#additional-team-members .row {
    margin-bottom: 2rem;
}

.volunteer-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent-color);
}

/* Back to Top Button */
#back-top {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#back-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    padding: 0.75rem 1.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}


.btn-outline-primary {
    border: 2px solid #0b57d0;
    color: #fff;
}

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

.btn-outline-secondary{
    border: 2px solid #0b57d0;
    color:#0b57d0;
}

.btn-outline-secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Logo Styling */
.navbar-brand img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.partner-img {
    max-width: 80%;
    height: auto;
    transition: transform 0.3s ease;
  }

.partner-img:hover {
    transform: scale(1.05);
}


.bmcc-img {
    max-width: 100%;
    height: auto;
    transform: scale(1.15);
    transform-origin: center;
  }

 .partner-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  padding: 10px;
}

.partner-logo img {
  width: 100%;
  max-width: 600px;          
  height: auto;
  aspect-ratio: 602 / 101;   
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partner-logo img:hover {
    transform: scale(1.05);
}

@media (max-width: 992px) {
  .partner-logo img {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .partner-logo img {
    max-width: 380px;
  }
}


@media (max-width: 576px) {
  .partner-logo img {
    max-width: 280px;
  }
}


.partner-logo img[alt="BMCC Logo"] {
  transform: scale(1.65);     
  transform-origin: center;
}


.partner-logo img[alt="BMCC Logo"]:hover {
  transform: scale(1.3);
}




/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 70px; /* Slightly less padding on mobile */
        min-height: calc(100vh - 70px);
        margin-top: 70px; /* Push content below navbar */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .floating-cards {
        height: 600px;
        position: relative;
        padding: 20px 10px;
    }

    .floating-card-1 {
        position: absolute;
        top: 20px;
        left: 5px;
        width: 50%;
        animation: float 6s ease-in-out infinite;
        animation-delay: 0s;
    }

    .floating-card-2 {
        position: absolute;
        top: 140px;
        right: 5px;
        width: 40%;
        animation: float 6s ease-in-out infinite;
        animation-delay: 2s;
    }

    .floating-card-3 {
        position: absolute;
        bottom: 20px;
        right: 70px;
        width: 40%;
        animation: float 6s ease-in-out infinite;
        animation-delay: 4s;
    }

    /* Make Free Courses card text smaller on medium mobile screens */
    .floating-card-1 h5 {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .floating-card-1 p {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }

    .floating-card-1 .course-labels .badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 60px; /* Even less padding on very small screens */
        min-height: calc(100vh - 60px);
        margin-top: 60px; /* Push content below navbar */
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
    }

    .hero-buttons .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .floating-cards {
        height: 500px;
        margin-top: 1rem;
        padding: 15px 5px;
    }

    .floating-card-1 {
        width: 45%;
        top: 15px;
        left: 2px;
    }

    .floating-card-2 {
        width: 35%;
        top: 120px;
        right: 2px;
    }

    .floating-card-3 {
        width: 35%;
        bottom: 15px;
        right: 35px;
    }

    .floating-card-1,
    .floating-card-2,
    .floating-card-3 {
        padding: 0.5rem;
    }

    .floating-card-1 .card-body,
    .floating-card-2 .card-body,
    .floating-card-3 .card-body {
        padding: 0.5rem;
    }

    .floating-card-1 h5,
    .floating-card-2 h5,
    .floating-card-3 h5 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .floating-card-1 p,
    .floating-card-2 p,
    .floating-card-3 p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .floating-card-1 .badge,
    .floating-card-2 .badge,
    .floating-card-3 .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    /* Specific styling for Free Courses card to prevent text cutoff */
    .floating-card-1 h5 {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .floating-card-1 p {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }

    .floating-card-1 .course-labels .row {
        margin-bottom: 0.2rem;
    }

    .floating-card-1 .course-labels .badge {
        font-size: 0.55rem;
        padding: 0.1rem 0.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Make all badges smaller for better fit */
    .floating-card-1 .course-labels .badge {
        font-size: 0.5rem;
        padding: 0.08rem 0.2rem;
        line-height: 1.2;
    }

    .resource-card .card-body,
    .team-card,
    .contact-form {
        padding: 1.5rem;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}


