:root {
    --primary-blue: #003366;
    --accent-red: #D32F2F;
    --light-gray: #F4F7F6;
    --dark-text: #333;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--light-gray);
    color: var(--dark-text);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    line-height: 1.7;
    font-size: 16px;
}


.container {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
}

/* ================= TITLE ================= */
.title-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.4rem;
    color: var(--primary-blue);
    border-bottom: 3px solid var(--accent-red);
    display: inline-block;
    padding-bottom: 8px;
}

/* ================= HEADER ================= */
header {
    background: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}


nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: var(--accent-red);
}

a {
    text-decoration: none;
}

.btn-enroll {
    background: var(--accent-red);
    color: white !important;
    padding: 8px 18px;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-enroll:hover {
    background: var(--primary-blue);
}

/* ================= HERO ================= */
.hero {
    position: relative;
    background: url("images/hero.jpg") center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 140px 20px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
}

.hero h1,
.hero p,
.hero a {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    max-width: 700px;
    margin: auto;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* ================= FEATURES ================= */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* ================= SHARED CARD STYLE ================= */
.feature-card,
.course-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Feature specific */
.feature-card {
    padding: 30px;
    text-align: center;
}

/* Course specific */
.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-body {
    padding: 20px;
}

.course-body ul {
    list-style: none;
}

.course-body li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.course-header {
    background: var(--primary-blue);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.cyber-card .course-header {
    background: var(--accent-red);
}

/* ================= HOVER EFFECT ================= */

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}

.course-card:hover img {
    transform: scale(1.05);
}

/* ================= FLOWING BLUE BORDER ================= */

.course-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        transparent 35%,
        #003366,
        #00509e,
        #003366,
        transparent 65%
    );
    background-size: 300% 300%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.course-card:hover::before {
    opacity: 1;
    animation: blueFlow 3s linear infinite;
}

/* ================= COURSE GRID FIX ================= */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

@keyframes blueFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ================= CTA ================= */
.cta-section {
    text-align: center;
    margin-top: 80px;
    padding: 40px;
    background: var(--primary-blue);
    color: white;
    border-radius: 8px;
}

/* ================= FOOTER ================= */
footer {
    background: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 20px; 
    margin-top: 60px;
}

/* ================= INTRO ================= */
.intro-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 80px;
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 15px;
}

.intro-text h3 {
    color: var(--accent-red);
    margin-bottom: 20px;
}

.intro-text p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.intro-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.intro-image img {
    width: 85%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ================= SCROLL ANIMATION ================= */
.scroll-anim {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.7s ease-out;
}

.scroll-anim.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay classes */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }


/* ===== Achievements Counter Style Upgrade ===== */

.counter {
    font-size: 2.5rem;          /* bigger size */
    font-weight: 700;
    color: #D32F2F;             /* red color */
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

/* Slight pop effect when visible */
.scroll-anim.visible .counter {
    transform: scale(1.05);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .intro-section {
        flex-direction: column;
        text-align: center;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.7rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.logo img {
    height: 45px;   /* adjust size if needed */
    width: auto;
}

.logo-text span {
    color: var(--accent-red);
}