﻿/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

section[id] {
    scroll-margin-top: 30px; /* Adjust based on your navbar height */
}
section[id] {
    padding-top: 80px;
    margin-top: -80px;
}
.section {
    padding: 3rem 0;
}

.bg-light {
    background-color: #f9f9f9;
}

.section-header h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #004680;
}

.sub-heading {
    text-align: center;
    margin: 2.5rem 0 1.5rem;
    color: #004680;
    font-size: 1.5rem;
}

/* Navbar */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%; /* ← Add this */
}

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0; /* Optional: add vertical padding */
    }
     

.logo-link {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 150px;
    width: auto;
    max-width: 250px;
    transition: transform 0.3s ease;
}

    .logo-img:hover {
        transform: scale(1.05);
    }

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

    .nav-links a {
        text-decoration: none;
        color: #333;
        font-weight: 500;
    }
/* Navbar shrink effect on scroll */
.navbar.shrink {
    padding: 8px 0;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

    .navbar.shrink .logo-img {
        height: 60px; /* Adjust to your preferred shrunk size */
        max-width: 200px;
    }

    .navbar.shrink .nav-links a {
        font-size: 1rem;
    }

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-image: url('computerroom.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* Ensure anchor links account for sticky navbar */
#home {
    scroll-margin-top: 100px; /* Adjust based on your navbar + logo height */
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 70, 128, 0.85);
        z-index: 1;
    }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.intro,
.intro-text {
    font-size:12pt;
    max-width: 700px;
    margin: 0 auto;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.intro {
    margin-top: 2rem;
    margin-left:15px;
}

.cta-buttons .btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    margin: 0 0.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
}

.btn.primary {
    background: #FFD700;
    color: #004680;
}

.btn.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

/* About & Content Sections */
.about-content,
.impact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.image-placeholder {
    background: #e0e0e0;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
    border-radius: 8px;
}

/* Prevent layout shift from scrollbar appearing/disappearing */
html {
    overflow-y: scroll;
}

.center {
    grid-column: span 2;
    margin-top: 2rem;
}

/* Programmes Grid */
.programmes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
/* Different background colors for each course card */
/* 1 – Light Blue */
.programme-card:nth-child(1) {
  background: #e3f2fd;
}

/* 2 – Light Purple */
.programme-card:nth-child(2) {
  background: #f3e5f5;
}

/* 3 – Light Green */
.programme-card:nth-child(3) {
  background: #e8f5e9;
}

/* 4 – Light Orange */
.programme-card:nth-child(4) {
  background: #fff3e0;
}

/* 5 – Light Red / Pink */
.programme-card:nth-child(5) {
  background: #ffebee;
}

/* 6 – Light Teal */
.programme-card:nth-child(6) {
  background: #e0f7fa;
}

/* 7 – Light Amber (soft yellow) */
.programme-card:nth-child(7) {
  background: #fff8e1;
}

/* 8 – Light Lime */
.programme-card:nth-child(8) {
  background: #f9fbe7;
}

/* 9 – Light Cyan */
.programme-card:nth-child(9) {
  background: #e0f7f7;
}

/* 10 – Light Indigo */
.programme-card:nth-child(10) {
  background: #e8eaf6;
}

/* 11 – Light Pink */
.programme-card:nth-child(11) {
  background: #fce4ec;
}

/* 12 – Light Deep Orange */
.programme-card:nth-child(12) {
  background: #fbe9e7;
}

/* 13 – Light Brown / Beige */
.programme-card:nth-child(13) {
  background: #efebe9;
}

/* 14 – Light Grey / Warm Gray */
.programme-card:nth-child(14) {
  background: #f5f5f5;
}

/* 15 – Light Blue Grey */
.programme-card:nth-child(15) {
  background: #eceff1;
}

/* 16 – Light Coral / Salmon */
.programme-card:nth-child(16) {
  background: #ffebef;
}

/* Light cyan */

/* Optional: Add subtle border and hover effect */
.programme-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .programme-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    }
.programme-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

    .programme-card h3 {
        color: #004680;
        margin-bottom: 1rem;
    }

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

.audience-item {
    background: #004680;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

/* Value Proposition */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

    .value-card h3 {
        color: #004680;
        margin-bottom: 1rem;
    }

/* Accreditation */
.accreditation-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Sponsors */
.sponsors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
    overflow-x: auto;
}

    .sponsors img {
        max-width: 150px;
        max-height: 150px;
        filter: grayscale(100%);
        object-fit: contain;
        transition: filter 0.3s ease;
    }

        .sponsors img:hover {
            filter: grayscale(0%);
        }

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.contact-form button {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    background: #FFD700;
    color: #004680;
    font-size: 1rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info .btn.secondary {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    color: #004680;
    border-color: #004680;
    background: transparent;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
}
.contact-info .social-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #FFD700;
    text-decoration: underline;
    font-weight: 500;
}

    .contact-info .social-link:hover {
        color: #ffd700cc;
    }

/* Footer */
.footer {
    background: #004680;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

    .footer p {
        margin: 0.5rem 0;
    }
/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

    .slide.active {
        opacity: 1;
    }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 70, 128, 0.85);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1.5rem;
    text-align: center;
    color: white;
}

/* Keep existing .hero h1, .tagline, etc. — they’ll work as-is */

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

        .nav-links.active {
            display: flex;
        }

    .logo-img {
        height: 50px;
    }


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

    .tagline {
        font-size: 1.2rem;
    }

    .cta-buttons .btn {
        display: block;
        margin: 0.5rem auto;
        width: 80%;
    }

    .about-content,
    .impact-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .image-placeholder.center {
        grid-column: span 1;
    }

    a {
        color: aqua;
    }

        a:visited {
            color: #6c757d;
        }

        a:hover {
            color: #e76f51;
        }

        a:active {
            color: #f4a261;
        }
}
/* About Us Image */
.about-image {
    display: inline-block;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.graduation-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

    .graduation-img:hover {
        transform: scale(1.02);
    }
.image-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.project-image {
    display: inline-block;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.graduation-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

    .graduation-img:hover {
        transform: scale(1.02);
    }

.image-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Community Outreach Image */
.community-image {
    display: inline-block;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.outreach-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

    .outreach-img:hover {
        transform: scale(1.02);
    }

.image-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}
/* Computer Lab / ICT Training Environment Image */
.training-environment {
    display: inline-block;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}



    .lab-img:hover {
        transform: scale(1.02);
    }
/* Ensure cards are styled */
.programme-card {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

    .programme-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    }

    .programme-card h3 {
        color: #004680;
        margin-bottom: 1rem;
    }

/* Show More Button */
.show-more-btn {
    display: block;
    margin: 2rem auto 0;
    padding: 0.8rem 1.8rem;
    background: #004680;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

    .show-more-btn:hover {
        background: #003366;
    }


    /* Optional: Add a semi-transparent overlay for better text readability */
    .lab-background::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 70, 128, 0.6); /* Dark blue tint for contrast */
        z-index: 2;
    }

.lab-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: white;
    text-align: center;
    padding: 1.5rem;
}

.image-caption {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    max-width: 800px;
}
/* === COURSES SECTION WITH BACKGROUND IMAGE === */
section#courses {
    background-image: url('images/lap.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 4rem 0;
    position: relative;
}

    /* Overlay for readability */
    section#courses::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.93); /* Light overlay */
        z-index: 0;
    }

    section#courses .container {
        position: relative;
        z-index: 1;
    }

/* Keep your existing .programme-card styles */
/* Ensure colors apply only to short courses if needed */
#short-courses-list .programme-card:nth-child(1) {
    background: #e3f2fd;
}

#short-courses-list .programme-card:nth-child(2) {
    background: #f3e5f5;
}

#short-courses-list .programme-card:nth-child(3) {
    background: #e8f5e9;
}

#short-courses-list .programme-card:nth-child(4) {
    background: #fff3e0;
}

#short-courses-list .programme-card:nth-child(5) {
    background: #ffebee;
}

#short-courses-list .programme-card:nth-child(6) {
    background: #e0f7fa;
}

#short-courses-list .programme-card:nth-child(7) {
    background: #fff8e1;
}

#short-courses-list .programme-card:nth-child(8) {
    background: #f9fbe7;
}

#short-courses-list .programme-card:nth-child(9) {
    background: #e0f7f7;
}

#short-courses-list .programme-card:nth-child(10) {
    background: #e8eaf6;
}

#short-courses-list .programme-card:nth-child(11) {
    background: #fce4ec;
}

#short-courses-list .programme-card:nth-child(12) {
    background: #fbe9e7;
}

#short-courses-list .programme-card:nth-child(13) {
    background: #efebe9;
}

#short-courses-list .programme-card:nth-child(14) {
    background: #f5f5f5;
}

#short-courses-list .programme-card:nth-child(15) {
    background: #eceff1;
}

#short-courses-list .programme-card:nth-child(16) {
    background: #ffebef;
}
.hidden-course {
    display: none;
}

.show-more-container {
    margin: 2rem 0;
}

#showMoreBtn {
    background: #004680;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

    #showMoreBtn:hover {
        background: #003366;
    }
/* Hide extra courses by default */
.hidden-course {
    display: none;
}

/* Show More Button Styling */
.show-more-container {
    text-align: center;
    margin: 2rem 0;
}

.show-more-btn {
    background: #004680;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

    .show-more-btn:hover {
        background: #003366;
    }
