/* -------------------------------------------------- */
/*   GLOBAL - PREMIUM BRIGHT DESIGN                   */
/* -------------------------------------------------- */
body {
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(0, 74, 173, 0.15), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 193, 7, 0.15), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(0, 168, 255, 0.1), transparent),
        radial-gradient(1px 1px at 80% 20%, rgba(0, 74, 173, 0.1), transparent),
        radial-gradient(2px 2px at 30% 80%, rgba(255, 193, 7, 0.1), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%, 100% 100%, 50% 50%, 0% 100%, 100% 0%;
    animation: backgroundShift 20s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundShift {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 0% 100%, 100% 0%;
    }
    50% {
        background-position: 100% 100%, 0% 0%, 50% 50%, 100% 0%, 0% 100%;
    }
}

/* Ensure content is above background */
body > * {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5 {
    background: linear-gradient(135deg, #002855 0%, #004aad 50%, #0066cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 {
    background: linear-gradient(135deg, #002855 0%, #004aad 50%, #0066cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    background: linear-gradient(135deg, #002855 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a {
    text-decoration: none !important;
    transition: all 0.3s ease;
}

/* -------------------------------------------------- */
/*  NAVBAR - ENHANCED WITH GRADIENTS                   */
/* -------------------------------------------------- */
.navbar {
    background: linear-gradient(135deg, #001a3d 0%, #002855 50%, #003d7a 100%) !important;
    padding-top: 12px;
    padding-bottom: 12px;
    box-shadow: 0 4px 20px rgba(0, 40, 85, 0.3);
    border-bottom: 3px solid rgba(255, 193, 7, 0.3);
}

.navbar .nav-link,
.navbar-brand {
    color: #fff !important;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffc107, #ff9800, #ff6b35);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after {
    width: 100%;
}

.navbar .nav-link:hover {
    color: #ffc107 !important;
    transform: translateY(-2px);
}

/* -------------------------------------------------- */
/*  HERO — SPLIT LAYOUT (HOME PAGE)                    */
/* -------------------------------------------------- */
.hero-split {
    display: flex;
    align-items: center;
    gap: 60px;
    justify-content: space-between;
    padding: 80px 0;
}

.hero-split .left h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.25;
    color: #002855;
}

.hero-split .left p {
    font-size: 20px;
    color: #444;
    margin-top: 15px;
}

.hero-split .right img {
    width: 100%;
    max-width: 520px;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    object-fit: cover;
}

@media (max-width: 992px) {
    .hero-split {
        flex-direction: column;
        text-align: center;
        padding: 50px 0;
    }

    .hero-split .right img {
        max-width: 95%;
    }
}

/* -------------------------------------------------- */
/*   GENERIC HERO SECTIONS - COLORFUL GRADIENTS         */
/* -------------------------------------------------- */
.course-hero, 
.page-hero {
    padding: 80px 0;
    text-align: center;
    color: white;
    border-radius: 0 0 30px 30px;
    background: linear-gradient(135deg, #001a3d 0%, #002855 25%, #004aad 50%, #0066cc 75%, #0080ff 100%);
    position: relative;
    overflow: hidden;
}

.course-hero::before,
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 152, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.course-hero h1,
.page-hero h1 {
    font-size: 48px;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.course-hero p,
.page-hero p {
    font-size: 20px;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* -------------------------------------------------- */
/*   FORMS + CARDS - ENHANCED DESIGN                   */
/* -------------------------------------------------- */
.card {
    border-radius: 20px !important;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #002855, #004aad, #0066cc, #ffc107);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 40, 85, 0.15);
}

.form-control,
.form-select {
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #e0e6ed;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus,
.form-select:focus {
    border-color: #004aad;
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(0, 74, 173, 0.15);
    transform: translateY(-1px);
}

/* -------------------------------------------------- */
/*   BUTTONS - COLORFUL & PROFESSIONAL                 */
/* -------------------------------------------------- */
.btn-primary {
    background: linear-gradient(135deg, #002855 0%, #004aad 50%, #0066cc 100%);
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 40, 85, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #004aad 0%, #0066cc 50%, #0080ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 40, 85, 0.4);
}

.btn-outline-primary {
    border: 2px solid #002855;
    color: #002855;
    border-radius: 30px;
    padding: 10px 24px;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #002855 0%, #004aad 100%);
    color: white;
    border-color: #002855;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 40, 85, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* -------------------------------------------------- */
/*   COURSE CARDS - COLORFUL & MODERN                 */
/* -------------------------------------------------- */
.course-card {
    border-radius: 20px !important;
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
    position: relative;
    border: 1px solid rgba(0, 40, 85, 0.1);
}

.course-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #002855, #004aad, #0066cc, #ffc107, #ff9800);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.course-card:hover::after {
    transform: scaleX(1);
}

.course-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 40, 85, 0.2);
    border-color: rgba(0, 74, 173, 0.3);
}

.course-card img {
    width: 100%;
    border-bottom: 2px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.course-card:hover img {
    transform: scale(1.05);
}

.course-card .card-body {
    padding: 1.5rem;
    background: linear-gradient(to bottom, white, #f8f9fa);
}

.course-card .btn-outline-primary {
    background: linear-gradient(135deg, #002855 0%, #004aad 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.course-card .btn-outline-primary:hover {
    background: linear-gradient(135deg, #004aad 0%, #0066cc 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.4);
}

/* -------------------------------------------------- */
/*   TABLE STYLE — COLORFUL & PROFESSIONAL             */
/* -------------------------------------------------- */
.table {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 40, 85, 0.1);
}

.table th {
    background: linear-gradient(135deg, #002855 0%, #004aad 50%, #0066cc 100%) !important;
    color: white !important;
    text-align: center;
    vertical-align: middle;
    font-size: 16px;
    font-weight: 600;
    padding: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none !important;
}

.table td {
    vertical-align: middle !important;
    font-size: 15px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: linear-gradient(90deg, rgba(0, 74, 173, 0.05) 0%, rgba(255, 193, 7, 0.05) 100%);
    transform: scale(1.01);
}

/* -------------------------------------------------- */
/*  FEATURE ICONS - COLORFUL DESIGN                     */
/* -------------------------------------------------- */
.feature-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.feature-icons div {
    text-align: center;
    width: 150px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 40, 85, 0.1);
    transition: all 0.3s ease;
}

.feature-icons div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 40, 85, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
}

.feature-icons i {
    font-size: 48px;
    background: linear-gradient(135deg, #002855 0%, #004aad 50%, #0066cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.feature-icons div:hover i {
    transform: scale(1.1);
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 50%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* -------------------------------------------------- */
/*   WHATSAPP FLOAT BUTTON - ENHANCED (Styles in footer.php) */
/* -------------------------------------------------- */
/* WhatsApp button styles are now defined inline in footer.php for better control */

/* -------------------------------------------------- */
/*   COURSE NAVIGATION — FLOATING ARROWS (NEW)         */
/* -------------------------------------------------- */

.course-float-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: #002855;
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: 0.25s ease;
    opacity: 0.85;
}

.course-float-arrow:hover {
    transform: translateY(-50%) scale(1.12);
    background: #004aad;
    opacity: 1;
}

.course-prev { left: 20px; }
.course-next { right: 20px; }

/* Bottom navigation bar */
.course-nav-wrap {
    display: flex;
    justify-content: space-between;
    margin: 60px 0 20px;
    padding: 0 10px;
}

.course-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #002855;
    color: #fff !important;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s ease;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.course-nav-btn:hover {
    background: #004aad;
    transform: translateY(-3px);
}

/* -------------------------------------------------- */
/*   ADDITIONAL COLORFUL ELEMENTS                       */
/* -------------------------------------------------- */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #002855 0%, #004aad 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

.alert {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1.25rem 1.5rem;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Section backgrounds with subtle gradients */
section {
    position: relative;
    background: transparent;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 74, 173, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 193, 7, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

section > * {
    position: relative;
    z-index: 1;
}

/* Premium card styling */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px rgba(0, 40, 85, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 50px rgba(0, 40, 85, 0.15);
    transform: translateY(-2px);
}

@media (max-width: 768px){
    .course-float-arrow { display: none; }
    
    h1 {
        font-size: 32px !important;
    }
    
    h2 {
        font-size: 28px !important;
    }
    
    .course-card:hover {
        transform: translateY(-4px);
    }
}

/* -------------------------------------------------- */
/*   FOOTER - ENHANCED DESIGN                          */
/* -------------------------------------------------- */
.footer {
    background: linear-gradient(135deg, #001a3d 0%, #002855 50%, #003d7a 100%);
    padding: 35px 25px;
    color: #fff;
    text-align: center;
    margin-top: 60px;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 40, 85, 0.3);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffc107, #ff9800, #ff6b35, #ffc107);
}

.footer p {
    margin: 0;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}
