/* Global Styles */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap');

:root {
    --primary-color: #1a237e; /* Deep Blue */
    --primary-dark: #000051;
    --accent-color: #d81b60; /* Pink/Red accent */
    --action-color: #ff9800; /* Orange/Yellow for buttons */
    --action-hover: #f57c00;
    --secondary-color: #ffffff;
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --border-color: #e0e0e0;
    --footer-bg: #e6e7e8;
    --footer-text: #333;
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
header {
    background-color: var(--secondary-color);
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-item {
    position: relative;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.nav-link {
    color: #333;
    transition: var(--transition);
    padding: 30px 5px;
    display: block;
}

.nav-link:hover, .nav-item.active .nav-link {
    color: var(--accent-color);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 280px;
    border-top: 3px solid var(--accent-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 0;
    z-index: 1001;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #555;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    text-transform: none;
    font-weight: 400;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #fafafa;
    color: var(--accent-color);
}

.dropdown-item::before {
    content: '- ';
    color: var(--accent-color);
    margin-right: 5px;
    font-weight: bold;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero-container {
    position: relative;
    width: 100%;
    height: 600px;
    background: url('../images/hero-chefs.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1); /* Slight overlay */
}

.hero-banner {
    position: relative;
    background-color: rgba(26, 35, 126, 0.95); /* Deep Blue */
    color: white;
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    margin-top: 100px; /* Position it lower like in screenshot */
}

.hero-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.2;
}

.hero-subtext {
    text-align: center;
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
}

/* Page Titles (Deep Blue Bar) */
.page-title-bar {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 40px 0;
}

.page-title-bar h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(to right, #ffb74d, #ff9800);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn:hover {
    background: linear-gradient(to right, #ff9800, #f57c00);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.8rem;
}

/* Section Common */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

/* Course List Styling */
.course-list-item {
    display: flex;
    align-items: center;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    padding: 0;
    border-radius: 4px; /* Slight radius */
    overflow: hidden;
}

.course-list-img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
}

.course-list-content {
    padding: 20px 30px;
    flex-grow: 1;
}

.course-code {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.course-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
    max-width: 700px;
}

.course-action {
    padding: 0 30px;
    flex-shrink: 0;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-logo {
    margin-bottom: 20px;
    max-width: 180px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #555;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.contact-details li {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    color: #555;
}

.contact-details i {
    color: var(--primary-color);
    margin-top: 4px;
}

.social-icons a {
    margin-right: 15px;
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #dcdcdc;
    color: #777;
    font-size: 0.8rem;
}

/* === SPECIFIC PAGE STYLES === */

/* About Page */
.about-image {
    width: 100%;
    margin: 40px 0;
    border-radius: 4px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    margin-top: 40px;
}

.value-item img {
    height: 150px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 15px;
}

.value-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.value-item p {
    font-size: 0.85rem;
    color: #666;
}

/* For Learners - Vertical Tabs */
.learners-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.learner-sidebar {
    background-color: #f5f5f5;
}

.learner-tab {
    display: block;
    padding: 15px 20px;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.learner-tab:hover {
    background-color: #eee;
}

.learner-tab.active {
    background-color: var(--primary-color);
    color: white;
}

.learner-tab i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.learner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.learner-item {
    display: flex;
    gap: 20px;
}

.learner-icon {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 40px;
}

.learner-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.learner-content p {
    font-size: 0.9rem;
    color: #666;
}

/* For Employers */
.employer-hero {
    background-color: #8c9eff; /* Periwinkle blue from screenshot */
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.employer-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.employer-hero-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.employer-hero-text p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.employer-hero-img img {
    max-width: 100%;
}

/* Support Services */
.support-hero {
    position: relative;
    background-color: white;
}

.support-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.support-hero-overlay {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    background: white;
    padding: 40px;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 50px 0;
}

.support-item {
    display: flex;
    gap: 20px;
}

.support-icon {
    font-size: 2rem;
    color: #ffb74d; /* Orange icon color from screenshot */
    min-width: 40px;
}

/* Contact Form */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form label {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.contact-form label span {
    color: red;
}

.contact-form input, .contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid {
        grid-template-columns: 1fr;
    }
    .course-list-item {
        flex-direction: column;
        text-align: center;
    }
    .course-list-img {
        width: 100%;
        height: 200px;
    }
    .course-action {
        padding-bottom: 20px;
    }
    .contact-page-grid {
        grid-template-columns: 1fr;
    }
    .employer-hero-content {
        grid-template-columns: 1fr;
    }
    .learners-layout {
        grid-template-columns: 1fr;
    }
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        align-items: stretch;
    }

    .nav-links.active {
        display: flex;
    }
    
    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    .program-cols {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .learner-grid {
        grid-template-columns: 1fr;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.icon-item img {
    max-width: 120px;
    margin-bottom: 15px;
}

.icon-item h3 {
    font-size: 1rem;
    font-weight: 600;
}
.icon-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.white-card {
    background: #fff;
    border-radius: 12px;
    padding: 50px 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-width: 1100px;
    margin: 0 auto;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 60px;
}
.why-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.why-icon {
    font-size: 28px;
    color: #1a237e;
    min-width: 32px;
}
.why-content h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.why-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}
.subsidised-programs .section-title {
    text-align: center;
}

.subsidised-programs .section-title p {
    max-width: 900px;
    margin: 0 auto 60px;
    font-size: 0.9rem;
    line-height: 1.6;
}
.program-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px;
    text-align: center;
    margin-bottom: 70px;
}
.program-col h3 {
    color: #ffa726;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.program-col h4 {
    color: #ffa726;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.program-col p {
    font-size: 0.8rem;
    color: #333;
}
.cta-section {
    text-align: center;
    margin-top: 60px;
}

.cta-label {
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: #000;
}

.cta-heading {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 15px 0 25px;
}
.cta-section .btn {
    background: #ffa726;
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}
.icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 items per row */
    gap: 40px;
    text-align: center;
}

.icon-item {
    display: flex;
    flex-direction: column;   /* 👈 THIS puts text below image */
    align-items: center;
}

.icon-item img {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;      /* space between image & text */
}

.icon-item h3 {
    font-size: 1rem;
    color: #222;
    line-height: 1.4;
}
/* Add this to your css/styles.css file */

.contact-page-grid {
    display: grid;
    /* This creates two columns of equal size, separated by a gap */
    grid-template-columns: 1fr 1fr; 
    gap: 40px; /* Adjust gap as needed */
    margin-top: 40px;
}

/* Make sure the layout stacks on smaller screens */
@media (max-width: 768px) {
    .contact-page-grid {
        /* On small screens, stack the map and form vertically */
        grid-template-columns: 1fr;
    }
}


@media (max-width: 1200px) {
    :root {
        --container-width: 100%;
    }

    .container {
        padding: 0 24px;
    }

    .program-cols {
        gap: 60px;
    }

    .white-card {
        padding: 40px;
    }
}


@media (max-width: 992px) {

    /* NAVBAR */
    .navbar {
        height: auto;
        padding: 15px 0;
    }

    /* HERO */
    .hero-container {
        height: 500px;
    }

    .hero-banner h1 {
        font-size: 2rem;
    }

    /* GRIDS */
    .values-grid,
    .icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .program-cols {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    /* COURSE LIST */
    .course-list-item {
        flex-direction: column;
        text-align: center;
    }

    .course-list-img {
        width: 100%;
        height: 220px;
    }

    .course-action {
        padding: 20px 0;
    }

    /* LEARNERS */
    .learners-layout {
        grid-template-columns: 1fr;
    }

    .learner-grid {
        grid-template-columns: 1fr;
    }

    /* FOOTER */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* MOBILE DROPDOWN FIX */
@media (max-width: 768px) {

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .nav-item.active .dropdown-menu {
        display: block;
    }
}


@media (max-width: 768px) {

    /* MOBILE NAV */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
    }

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

    .nav-link {
        padding: 14px 20px;
        border-bottom: 1px solid #eee;
    }

    /* Disable hover dropdown on mobile */
    .nav-item:hover .dropdown-menu {
        display: none;
    }

    /* HERO */
    .hero-container {
        height: auto;
        padding: 80px 0 40px;
    }

    .hero-banner {
        margin-top: 0;
        padding: 30px 15px;
    }

    .hero-banner h1 {
        font-size: 1.6rem;
    }

    /* ICONS */
    .icon-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* CONTACT PAGE */
    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* SUPPORT */
    .support-grid {
        grid-template-columns: 1fr;
    }

    .support-hero-overlay {
        position: static;
        transform: none;
        margin-top: 20px;
        max-width: 100%;
    }

    /* FOOTER */
    .footer-content {
        grid-template-columns: 1fr;
    }

    footer {
        text-align: center;
    }

    .contact-details li {
        justify-content: center;
    }
}
@media (max-width: 480px) {

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .white-card {
        padding: 30px 20px;
    }

    .course-code {
        font-size: 1rem;
    }

    .course-desc {
        font-size: 0.85rem;
    }
}
