/* General Styles */
:root {
    --primary-color: #0D1F3C;
    --secondary-color: #D4A236;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --dark-navy: #0D1F3C;
    --light-navy: #1a3456;
    --orange-gold: #D4A236;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Navbar Styles */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

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

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #1e3a8a;
    border-color: #1e3a8a;
    transform: translateY(-2px);
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background-color: #b8891f;
    border-color: #b8891f;
    transform: translateY(-2px);
    color: var(--white);
}

/* Hero Slider Section */
.hero-slider-section {
    position: relative;
    overflow: hidden;
}

.hero-slider-section .carousel,
.hero-slider-section .carousel-inner,
.hero-slider-section .carousel-item {
    height: 100%;
}

.hero-slide {
    position: relative;
    min-height: 680px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #0D1F3C;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 25, 41, 0.88) 0%, rgba(13, 31, 60, 0.80) 50%, rgba(26, 52, 86, 0.70) 100%);
    z-index: 0;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    height: 100%;
}

.hero-slide .row {
    min-height: 480px;
}

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

.hero-slide h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-slide-subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.8;
}

/* Hero right-side image */
.hero-right-img {
    max-height: 460px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
    animation: heroImgFloat 4s ease-in-out infinite;
}

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

/* Slide 2 cert box */
.hero-cert-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 162, 54, 0.4);
    border-radius: 16px;
    backdrop-filter: blur(6px);
    max-width: 400px;
}

/* Slide 3 stats box */
.hero-stats-box {
    max-width: 420px;
}
.hero-stat-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 162, 54, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    transition: background 0.3s;
}
.hero-stat-card:hover {
    background: rgba(212, 162, 54, 0.2);
}

/* Carousel controls */
.hero-indicators {
    bottom: 24px;
    z-index: 10;
}
.hero-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
    margin: 0 5px;
    transition: background 0.3s, transform 0.3s;
}
.hero-indicators button.active {
    background-color: var(--secondary-color);
    transform: scale(1.3);
}

.hero-carousel-prev,
.hero-carousel-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}
.hero-carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: rgba(212, 162, 54, 0.85);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    transition: background 0.3s, transform 0.3s;
}
.hero-carousel-prev:hover .hero-carousel-arrow,
.hero-carousel-next:hover .hero-carousel-arrow {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Carousel fade animation */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Legacy hero-content z-index (keep) */
.hero-right-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.hero-right-content .target-audience {
    color: var(--white);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

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

.section-title.text-start::after {
    left: 0;
    transform: translateX(0);
}

.section-subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* Card Styles */
.course-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

.course-card img {
    height: 200px;
    object-fit: cover;
}

.course-card .card-body {
    padding: 1.5rem;
}

.course-card .card-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.course-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.badge-level {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Category Card */
.category-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e5e7eb;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}

.category-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.category-card h5 {
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 1.25rem;
}

.category-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.category-card .btn {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 0.6rem 1.5rem;
}

.category-card .btn:hover {
    background-color: #b8891f;
    border-color: #b8891f;
}

/* Instructor Card */
.instructor-card {
    text-align: center;
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.instructor-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 5px solid var(--bg-light);
}

.instructor-card h5 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.instructor-card .text-muted {
    font-size: 0.9rem;
}

/* Blog Card */
.blog-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

.blog-card img {
    height: 200px;
    object-fit: cover;
}

.blog-date {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Footer Styles */
.footer {
    background-color: #1f2937;
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--white);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.footer a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #9ca3af;
}

/* Stats Section */
.stats-section {
    background-color: var(--secondary-color);
    padding: 3rem 0;
}

.stat-item {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--white);
    font-weight: 500;
}

/* Utilities */
.py-section {
    padding: 5rem 0;
}

.bg-light-custom {
    background-color: var(--bg-light);
}

/* Additional decorative elements */
.wave-decoration {
    width: 100px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0 auto 1rem;
}

.section-icon {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* About section image */
.about-img-wrapper {
    display: inline-block;
    width: 100%;
}
.about-main-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 12px;
}
.about-img-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* CTA boxes */
.cta-box {
    background: var(--dark-navy);
    color: var(--white);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
}

.cta-box h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.cta-box .btn {
    margin-top: 1rem;
}

/* Hover card effect */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
}

/* Page Header Banner */
.page-header-banner {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--light-navy) 100%);
    color: var(--white);
    padding: 3rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slide {
        min-height: 520px;
        padding: 80px 0 60px;
    }

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

    .hero-slide .row {
        min-height: auto;
    }

    .hero-carousel-prev,
    .hero-carousel-next {
        display: none;
    }

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

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

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .stat-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
}
/* Course placeholder images (shown when no image uploaded) */
.course-placeholder-img {
    width: 100%;
    height: 380px;
    background: linear-gradient(135deg, #0D1F3C 0%, #1a3a6b 60%, #c8960c 100%);
}

.course-placeholder-img-sm {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0D1F3C 0%, #1a3a6b 60%, #c8960c 100%);
}

/* Search Box Styles */
.search-box {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-box .form-control {
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
}

.search-box .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.search-box .btn {
    border-radius: 0;
    padding: 12px 25px;
}

.search-box .btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.search-box .btn-primary-custom:hover {
    background-color: var(--light-navy);
    border-color: var(--light-navy);
}

.search-box .btn-outline-secondary {
    border-color: #dee2e6;
    color: var(--text-light);
}

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

/* Sidebar Styles */
.sidebar-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.sidebar-card .card-header {
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.sidebar-card .card-body {
    padding: 0;
}

.sidebar-card .list-group-item {
    border: none;
    padding: 12px 1.25rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-card .list-group-item:last-child {
    border-bottom: none;
}

.sidebar-card .list-group-item:hover {
    background-color: #f8f9fa;
    padding-left: 1.5rem;
}

.sidebar-card .list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.sidebar-card .list-group-item.active:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    padding-left: 1.25rem;
}

.sidebar-card .list-group-item.active .badge {
    background-color: var(--white) !important;
    color: var(--primary-color);
}

.sidebar-card .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Responsive sidebar */
@media (max-width: 991px) {
    .sidebar-card {
        margin-bottom: 2rem;
    }
}
