:root {
    --primary-color: #003366;
    /* Deep Blue */
    --secondary-color: #D4AF37;
    /* Gold */
    --accent-color: #0056b3;
    /* Brighter Blue for interactions */
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --footer-bg: #1a1a1a;
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius-sm: 5px;
    --radius-md: 10px;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

/* Header & Navbar */
header {
    background-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s, transform 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
    transform: translateY(-1px);
}

.btn-login {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 700 !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-login:hover {
    background-color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.7)), url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    padding: 0 1rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.btn-cta {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.05);
    background-color: #e5bd42;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.6);
}

/* Sections General */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2.section-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    font-weight: 700;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    text-align: center;
}

.feature-card {
    padding: 2rem;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(0, 51, 102, 0.05);
    /* very light blue bg */
    padding: 1.5rem;
    border-radius: 50%;
    transition: all 0.3s;
}

.feature-card:hover i {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
}

/* Courses Section (with background) */
.courses-section {
    background-color: var(--bg-white);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 5rem 0;
}

.courses-section h2,
.courses-section .courses-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.course-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    color: var(--primary-color);
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

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

.btn-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
}

.btn-link i {
    margin-left: 5px;
    transition: transform 0.2s;
}

.btn-link:hover {
    color: var(--primary-color);
}

.btn-link:hover i {
    transform: translateX(5px);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: #bbb;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    border-left: 3px solid var(--secondary-color);
    padding-left: 10px;
}

.footer-col ul li a {
    color: #bbb;
    transition: color 0.3s;
}

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

.copyright {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}