/* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* ================= HEADER ================= */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
    background: #ffffff;
    border-bottom: 1px solid #eee;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 45px;
}

.logo span {
    font-size: 20px;
    font-weight: bold;
    color: #0d6efd;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

nav ul li a:hover {
    color: #fd7e14;
}

/* ================= HERO ================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 70px 60px;
    background: linear-gradient(135deg, #3aa1ff, #1e6de8);
    color: #fff;
}

.hero-content {
    max-width: 50%;
}

.hero h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 520px;
}

.hero-image img {
    max-width: 480px;
    border: 4px solid #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ================= WELCOME ================= */
.welcome {
    padding: 60px;
    text-align: center;
}

.welcome h2 {
    color: #0d6efd;
    margin-bottom: 20px;
    font-size: 32px;
}

.welcome p {
    max-width: 900px;
    margin: auto;
    font-size: 17px;
}

/* ================= TRAINING ================= */
.training {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 60px;
    background: #f9f9f9;
}

.training-item h3 {
    color: #fd7e14;
    margin-bottom: 15px;
    font-size: 26px;
}

.training-item strong {
    color: #0d6efd;
    display: block;
    margin-top: 15px;
}

.training-item p {
    margin-top: 8px;
    font-size: 16px;
}

/* ================= POPULAR COURSES ================= */
.popular-courses {
    padding: 60px;
    text-align: center;
}

.popular-courses h2 {
    font-size: 32px;
    color: #0d6efd;
    margin-bottom: 10px;
}

.course-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.course {
    padding: 25px;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
}

/* course colors */
.course:nth-child(1) { background: #198754; }
.course:nth-child(2) { background: #ffc107; color:#000; }
.course:nth-child(3) { background: #0dcaf0; }
.course:nth-child(4) { background: #b5651d; }
.course:nth-child(5) { background: #c9a227; }
.course:nth-child(6) { background: #6f42c1; }
.course:nth-child(7) { background: #fd7e14; }
.course:nth-child(8) { background: #1207d7; }

/* ================= FOOTER ================= */
.footer {
    background: #0b2b50;
    color: #ffffff;
    padding: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer h3,
.footer h4 {
    color: #fd7e14;
    margin-bottom: 15px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    color: #ffffff;
    text-decoration: none;
}

.footer ul li a:hover {
    text-decoration: underline;
}

.footer p {
    font-size: 15px;
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    font-size: 14px;
}

/* ================= FOOTER LOGO ================= */
.footer-logo {
    display: block;
    max-width: 180px;              /* Adjust size as needed */
    margin: 0 auto 15px auto;      /* Center and add space below */
    border-radius: 8px;            /* Rounded corners */
    border: 2px solid #ffffff;     /* Bold white border */
    padding: 5px;                  /* Optional: space between image and border */
    box-sizing: border-box;        /* Ensure padding doesn't break layout */
}

.footer-contact p {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 15px;
}

.footer-contact strong {
    color: #fd7e14;
    font-weight: 600;
}


/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .hero-image img {
        max-width: 320px;
    }

    .training {
        grid-template-columns: 1fr;
    }

    .top-header {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ------------------- courses ------------------- */
.courses-page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.courses-page h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.courses-page .intro {
    margin-bottom: 20px;
    color: #555;
}

.course-table {
    width: 100%;
    border-collapse: collapse;
}

.course-table th,
.course-table td {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: left;
}

.course-table th {
    background: #f5f5f5;
}

/* ------------------- batches ------------------- */
.batches-page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.batches-page h1 {
    font-size: 30px;
    margin-bottom: 20px;
}

.batch-table {
    width: 100%;
    border-collapse: collapse;
}

.batch-table th,
.batch-table td {
    border: 1px solid #444;
    padding: 12px;
    text-align: center;
}

.batch-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.batch-note {
    margin-top: 15px;
    color: red;
    font-size: 14px;
}

/* ------------------- placements ------------------- */
.placement-page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.placement-page h1 {
    font-size: 30px;
    margin-bottom: 15px;
}

.placement-page h2 {
    margin-top: 20px;
}

.placement-page ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.placement-page li {
    margin-bottom: 8px;
}

.placement-note {
    color: red;
    font-weight: bold;
    margin-top: 20px;
}

/* ------------------- about ------------------- */
.about-page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.about-page h1 {
    font-size: 30px;
    margin-bottom: 20px;
}

.about-page p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.about-list {
    margin-top: 20px;
}

.about-list li {
    margin-bottom: 10px;
}

.about-list span {
    color: red;
    font-weight: bold;
}

/* ------------------- contact ------------------- */
/* ===== PAGE TITLE ===== */
.page-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
    text-decoration: underline;
}


/* ================= CONTACT PAGE ================= */
.contact-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.contact-wrapper h1 {
    font-size: 36px;
    color: #0d6efd;
    text-align: center;
    margin-bottom: 40px;
}

.contact-box {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item p {
    font-size: 18px;
    color: #333;
    line-height: 1.5;
}

.contact-item p strong {
    color: #fd7e14;
}

.contact-item {
    background: #ffffff;
    padding: 20px 25px;
    border-left: 6px solid #0d6efd;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .contact-wrapper {
        margin: 40px 20px;
        padding: 15px;
    }

    .contact-wrapper h1 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .contact-item p {
        font-size: 16px;
    }
}

/* ================= PRIVACY PAGE ================= */
.privacy-page {
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px;
    line-height: 1.7;
    color: #333;
}

.privacy-page .page-title {
    font-size: 36px;
    color: #0d6efd;
    text-align: center;
    margin-bottom: 40px;
    text-decoration: underline;
}

.privacy-page h2 {
    font-size: 24px;
    color: #fd7e14;
    margin-top: 25px;
    margin-bottom: 15px;
}

.privacy-page p,
.privacy-page ul {
    font-size: 16px;
    margin-bottom: 15px;
}

.privacy-page ul {
    margin-left: 25px;
}

.privacy-page ul li {
    margin-bottom: 10px;
}

/* page title */
.page-title {
    font-size: 36px;
    color: #0d6efd;
    text-align: center;
    margin-bottom: 40px;
}



/* ================= COURSE MARQUEE ================= */
.marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 30px;
}

.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marquee-scroll 20s linear infinite;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Pause on hover (good UX) */
.marquee:hover .marquee-track {
    animation-play-state: paused;
}
