/* Global Configuration */
:root {
    --bs-primary: #004aad; /* Vibrant Blue */
    --bs-secondary: #ff6b00; /* Vibrant Orange */
    --bs-primary-rgb: 0, 74, 173;
    --bs-secondary-rgb: 255, 107, 0;
    --bs-dark: #1e1e24;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #4a4a4a;
    background-color: #fcfcfc;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--bs-dark);
}

/* Utilities */
.text-primary { color: var(--bs-primary) !important; }
.bg-primary { background-color: var(--bs-primary) !important; }
.text-secondary { color: var(--bs-secondary) !important; }
.bg-secondary { background-color: var(--bs-secondary) !important; }

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.4);
}

.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    color: white;
}

.btn-secondary {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 74, 173, 0.4);
}

/* Top Bar */
.top-bar {
    font-size: 0.85rem;
    font-weight: 400;
}

.top-bar a:hover {
    color: var(--bs-secondary) !important;
}

/* Navbar */
.navbar {
    padding-top: 15px;
    padding-bottom: 15px;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.navbar-nav .nav-link {
    color: var(--bs-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bs-secondary);
    transition: width 0.3s;
}

.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after {
    width: 70%;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 400;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
    color: var(--bs-primary);
    padding-left: 2rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0 100px;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.95) 0%, rgba(0, 40, 97, 0.95) 100%), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    color: white;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-shape svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0.9;
}

.featured-image-box {
    position: relative;
    z-index: 1;
}

.featured-image-box::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    z-index: -1;
}

.featured-image-box img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.floating-card {
    position: absolute;
    bottom: -30px;
    right: -20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    color: var(--bs-secondary);
}

.floating-card-title {
    color: var(--bs-dark);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
}
.floating-card-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* Common Section padding */
.section-padding {
    padding: 80px 0;
}

.section-title {
    position: relative;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--bs-secondary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title.text-start::after {
    left: 0;
    transform: none;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--bs-primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--bs-primary);
    color: white;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.course-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-img-wrapper img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bs-secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.course-content {
    padding: 30px;
}

.course-title {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.course-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

.course-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.course-features li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.course-features li i {
    color: var(--bs-primary);
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Results / Testimonials */
.bg-light-blue {
    background-color: #f4f8ff;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin: 15px 0;
}

.testimonial-icon {
    font-size: 2rem;
    color: rgba(var(--bs-primary-rgb), 0.2);
    margin-bottom: 15px;
}

.student-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.student-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--bs-primary);
}

.student-name {
    font-weight: 600;
    margin: 0;
}

.student-rank {
    color: var(--bs-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}

/* Call to Action */
.cta-section {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #003073 100%);
    padding: 70px 0;
    color: white;
    border-radius: 20px;
    margin: 60px 0;
    box-shadow: 0 15px 40px rgba(0, 74, 173, 0.3);
}

/* Footer */
footer {
    background-color: #12151e !important;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0a5ba;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.btn-social {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #002b63 100%);
    padding: 80px 0 60px;
    color: white;
    text-align: center;
    position: relative;
}

.breadcrumb {
    justify-content: center;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* Form controls */
.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #e1e5eb;
    background-color: #f8f9fa;
}

.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.1);
    background-color: white;
}

/* Contact Info Box */
.contact-info-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Registration Form */
.registration-form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 40px;
    position: relative;
    z-index: 10;
}

/* Responsive adjust */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section-padding {
        padding: 50px 0;
    }
    .floating-card {
        display: none; /* Hide on mobile to save space */
    }
}
