/* Custom Styles for LearnHub 360 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400&display=swap');

:root {
    --primary-color: #2E7DB3;
    --secondary-color: #6BA843;
    --success-color: #6BA843;
    --warning-color: #ffc107;
    --navbar-bg: #005a9c;
    --primary-font: 'Montserrat', sans-serif;
    --secondary-font: 'Open Sans', sans-serif;
}

body {
    font-family: var(--secondary-font);
    line-height: 1.6;
    color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6,
.btn,
.navbar-brand {
    font-family: var(--primary-font);
    font-weight: 700;
}

.navbar {
    background-color: var(--navbar-bg) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    color: #ffffff !important;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar .nav-link {
    color: #ffffff !important;
    font-weight: 500;
}

.navbar .nav-link:hover {
    color: #e0e0e0 !important;
}

.navbar .nav-link.active {
    color: #ffffff !important;
    text-decoration: underline;
    text-underline-offset: 5px;
    font-weight: 600;
}

.btn-warning {
    background-color: #00A651;
    border-color: #00A651;
    color: #ffffff;
}

.btn-warning:hover {
    background-color: #008a42;
    border-color: #008a42;
    color: #ffffff;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.hero-section {
    background: #005a9c;
    min-height: 500px;
    padding: 80px 0;
}

.stats-section .row {
    display: flex;
    align-items: stretch;
}

.stats-section .col-md-4 {
    display: flex;
}

.stats-section .stat-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    width: 100%;
}

.stats-section .stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.cert-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cert-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.benefit-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    height: 100%;
}

.testimonial-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    object-position: center;
    border: 2px solid #e0e0e0;
}


.page-header {
    background: #005a9c;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.btn {
    border-radius: 25px;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: #005a9c;
}

.btn-primary:hover {
    background: #004a80;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 179, 0.4);
}

.form-control,
.form-select {
    border-radius: 10px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 179, 0.15);
}

.value-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }
}


/* Better Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Toast Notification Styling */
.toast {
    min-width: 300px;
}

.toast-header {
    border-bottom: none;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

/* Partner Logo Cards */
.partner-logo-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.partner-logo-card img {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partner-logo-card:hover img {
    opacity: 1;
}

.partner-logo-card-small {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-card-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.partner-logo-card-small small {
    font-weight: 500;
    font-size: 0.75rem;

}

/* Marquee Slider Styles */
.marquee-container {
    overflow: hidden;
    padding: 40px 0;
    background: #fdfdfd;
    position: relative;
    width: 100%;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
    align-items: center;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    flex: 0 0 200px;
    /* Standardize every logo slot */
    display: flex;
    align-items: center;
    justify-content: center;
}


@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.hero-marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 10px 0;
}

.marquee-content.marquee-reverse {
    animation: scroll-reverse 40s linear infinite;
}

.hero-marquee-card {
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 0 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 80px;
}

.hero-marquee-card img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* Ensure logos look good in marquee */
.marquee-item img {
    max-height: 35px;
    /* Tighter logos look more even */
    max-width: 130px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.marquee-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Custom Footer Color */
footer {
    background-color: #333333 !important;
}