:root {
    --primary-color: #003566;
    --secondary-color: #3b82f6;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-color: #1e293b;
    --text-light: #64748b;
}

/* Modern Page Background */
body.modern-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #f8fafc 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

body.modern-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 53, 102, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 53, 102, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Modern Banner - Ensure it stays below header */
.modern-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 4rem 1.5rem;
    padding-top: 5.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    z-index: 1;
}

/* Ensure header always stays on top */
.header.sticky {
    z-index: 100000 !important;
}

.modern-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: banner-shine 20s infinite;
}

.modern-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

@keyframes banner-shine {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.modern-banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.modern-banner-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    animation: fadeInUp 0.6s ease-out;
}

.modern-banner-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decorative Elements */
.modern-banner-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(40px);
    animation: float 6s ease-in-out infinite;
}

.modern-banner-decoration:nth-child(1) {
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.modern-banner-decoration:nth-child(2) {
    bottom: -100px;
    right: -100px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* Ensure cards and content stay below header */
.modern-courses-container,
.modern-contact-container,
.main-content {
    position: relative;
    z-index: 1;
}

/* Modern course cards - ensure they stay below header */
.modern-course-card {
    position: relative;
    z-index: 1;
}

/* Modern contact cards - ensure they stay below header */
.modern-contact-card {
    position: relative;
    z-index: 1;
}

/* Sticky Footer - Ensure footer stays at bottom */
body.modern-page,
body.modern-login-page {
    display: flex;
    flex-direction: column;
}

body.modern-page > header.header,
body.modern-login-page > header.header {
    flex-shrink: 0;
}

body.modern-page > .modern-banner,
body.modern-login-page > .modern-banner {
    flex-shrink: 0;
}

body.modern-page > main,
body.modern-login-page > .modern-login-container {
    flex: 1 0 auto;
    min-height: 0;
}

body.modern-page > .footer,
body.modern-login-page > .footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Contact buttons - ensure they work properly with flex layout */
body.modern-page .contact-buttons {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-banner {
        padding: 3rem 1.5rem;
    }
    
    .modern-banner-title {
        font-size: 2rem;
    }
    
    .modern-banner-subtitle {
        font-size: 1rem;
    }
}

