/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f7fa;
    color: #222;
}

/* Prevent sticky header from hiding section titles when jumping to anchors */
:target {
    scroll-margin-top: 90px;
}

/* ================================
   FIXED TOP NAV BAR
   ================================ */

.top-nav {
    background: #ffffff;
    border-bottom: 1px solid #e2e2e2;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.nav-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Allows menu wrap handling across compact viewports */
    row-gap: 10px;
}

.logo-img {
    max-height: 60px;
    display: block;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    align-items: center; /* Vertically centers text lines across shared baseline elements */
    gap: 24px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: #003366;
    padding-bottom: 4px;
    position: relative;
    white-space: nowrap; /* Prevents multi-word menu texts from stacking vertically */
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #00509e;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: #00509e;
    transition: width 0.25s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #00509e;
}

.nav-links a.active::after {
    width: 100%;
    background: #00509e;
}

/* ================================
   FULL-WIDTH HERO SLIDER
   ================================ */

.hero-slider {
    position: relative;
    width: 100%;
    height: 75vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Gradient overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.75)
    );
    z-index: 1;
}

/* HERO TEXT */
.hero-content {
    position: absolute;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.6rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* HERO BUTTONS */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 4px;
    background: #003366;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.btn:hover {
    background: #00509e;
}

.btn-secondary {
    background: #fff;
    color: #003366;
    border: 1px solid #003366;
}

.btn-secondary:hover {
    background: #003366;
    color: #fff;
}

/* SLIDER DOTS */
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background: #fff;
    opacity: 0.5;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    opacity: 1;
}

/* ================================
   MAIN WRAPPER & SECTIONS
   ================================ */

.main-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    margin-bottom: 40px;
}

.section h1,
.section h2 {
    margin-bottom: 12px;
    color: #003366;
}

.section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ================================
   COURSE CARDS WITH THUMBNAILS
   ================================ */

.course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e2e2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-thumb {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: #f0f4f8;
    padding: 20px;
}

.course-top {
    padding: 20px;
    flex-grow: 1;
}

.course-top h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: #003366;
}

/* NEW: clickable course headers */
.course-link {
    text-decoration: none;
    color: #003366;
    font-weight: 700;
}
.course-link:hover {
    color: #00509e;
}

.course-top p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.5;
}

.course-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    display: block;
}

.course-bottom {
    padding: 20px;
    border-top: 1px solid #e2e2e2;
}

.tag {
    display: inline-block;
    background: #003366;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

/* ================================
   FEATURES
   ================================ */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e2e2;
}

/* ================================
   CARDS (Feedback / Updates)
   ================================ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e2e2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #003366;
}

.card p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 12px;
}

.card-meta {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

/* ================================
   ACCREDITATIONS
   ================================ */

.accreditation-strip {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e2e2e2;
    text-align: center;
    margin-top: 40px;
}

.accreditation-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 10px;
  	justify-content: center; /* Centers the logos horizontally */
    align-items: center;    /* Keeps the logos vertically aligned with each other */
}

.accreditation-logos img {
    max-height: 50px;
}

/* ================================
   FOOTER
   ================================ */

footer {
    margin-top: 40px;
    background: #ffffff;
    border-top: 1px solid #e2e2e2;
}

.footer-divider {
    height: 1px;
    background: #e2e2e2;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.footer-logo-img {
    max-height: 50px;
}

.footer-contact p {
    margin-bottom: 6px;
}

.footer-social {
    margin-top: 10px;
}

.social-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
}

.linkedin-icon {
    background-image: url("Images/linkedin.png");
}

.email-icon {
    background-image: url("Images/email.png");
}

.footer-copy {
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    color: #666;
}

/* ================================
   MOBILE RESPONSIVE
   ================================ */

@media (max-width: 920px) {
    .nav-wrapper {
        justify-content: center;
        padding: 10px;
    }
    .nav-links {
        gap: 16px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 60vh;
    }
    .btn,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    .course-list {
        grid-template-columns: 1fr;
    }
    .accreditation-logos img {
        max-height: 40px;
    }
}

/* ================================
   CONTACT FORM PAGE
   ================================ */

.contact-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e2e2e2;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #003366;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background: #f9f9f9;
}

.contact-form textarea {
    height: 140px;
    resize: vertical;
}

.contact-form button.btn {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    border-radius: 6px;
}
