/* Nompilo Academy - Main Stylesheet */

/* CSS Variables */
:root {
    --primary-blue: #003366;
    --secondary-blue: #0052A3;
    --accent-gold: #FFB81C;
    --dark-navy: #001F3F;
    --cream: #FFF8DC;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;
    --gradient-overlay: linear-gradient(135deg, rgba(0, 51, 102, 0.9), rgba(0, 82, 163, 0.8));
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

img {
    display: block;
    max-width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    background-color: var(--primary-blue);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu > li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.78rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-gold);
}

/* Dropdown */
.nav-menu .dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu .dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-menu .dropdown > a::after {
    content: '▾';
    font-size: 0.65rem;
    transition: transform 0.2s;
}

.nav-menu .dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-navy);
    min-width: 220px;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    list-style: none;
    padding: 0.5rem 0;
    z-index: 2000;
    margin-top: 0;
}

/* Bridge gap so cursor doesn't lose hover */
.nav-menu .dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.1rem;
    font-size: 0.78rem;
    color: var(--white);
    white-space: nowrap;
    border-left: 3px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
    background-color: rgba(255,255,255,0.07);
    border-left-color: var(--accent-gold);
    color: var(--accent-gold);
}

.nav-menu .dropdown:hover .dropdown-menu,
.nav-menu .dropdown:focus-within .dropdown-menu {
    display: block;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--dark-navy);
}

.btn-primary:hover {
    background-color: #E5A519;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 184, 28, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--accent-gold);
}

.btn-secondary:hover {
    background-color: var(--accent-gold);
    color: var(--dark-navy);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-light:hover {
    background-color: var(--accent-gold);
    color: var(--dark-navy);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 31, 63, 0.7), rgba(0, 51, 102, 0.8)), 
                url('images/hero-graduation.jpg') center/cover no-repeat;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Accreditation Section */
.accreditation-section {
    background-color: var(--cream);
    padding: 2rem 0;
}

.accreditation-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.badge {
    text-align: center;
}

.badge h4 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.badge p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.accreditation-tagline {
    text-align: center;
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 600;
}

/* About Preview Section */
.about-preview {
    padding: 5rem 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    display: flex;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* What We Offer */
.what-we-offer {
    padding: 5rem 0;
    background-color: var(--white);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.offer-card {
    background-color: var(--cream);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.15);
}

.offer-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.offer-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.offer-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.offer-list {
    list-style: none;
    text-align: left;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.offer-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.7rem;
}

.offer-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: 700;
}

/* Popular Courses */
.popular-courses {
    padding: 5rem 0;
    background-color: var(--cream);
}

.section-title {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-top: -2rem;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    font-style: italic;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.course-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.2);
}

.course-icon {
    background-color: var(--primary-blue);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-icon img {
    width: 50px;
    height: 50px;
}

.course-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.course-level {
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.course-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Success Stories Preview */
.success-stories-preview {
    padding: 5rem 0;
    background-color: #003366;
    background: var(--gradient-overlay), url('images/success-bg.jpg') center/cover;
    color: var(--white);
}

.success-stories-preview .section-title {
    color: var(--white);
}

.success-stories-preview .section-subtitle {
    color: var(--accent-gold);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.story-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.story-card:hover {
    transform: scale(1.05);
}

.story-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.story-content {
    padding: 1.5rem;
}

.story-content h4 {
    color: var(--accent-gold);
    margin-bottom: 0.3rem;
}

.story-role {
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.story-quote {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--white);
}

/* CTA Section */
.cta-section {
    background-color: #002244;
    background: var(--gradient-overlay), url('images/cta-bg.jpg') center/cover;
    padding: 5rem 0;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background-color: var(--dark-navy);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    color: var(--accent-gold);
    font-size: 1.8rem;
}

.tagline {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-col h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.accreditation-logos {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.accreditation-logos span {
    color: var(--accent-gold);
    font-size: 0.9rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-gold);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 2.5rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .container {
        width: min(92%, 720px);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-blue);
        width: 100%;
        text-align: left;
        transition: 0.3s;
        padding: 1rem 0;
        gap: 0;
        align-items: stretch;
        overflow-y: auto;
        max-height: calc(100vh - 70px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu > li {
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .nav-menu > li > a,
    .nav-menu .dropdown > a {
        display: block;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .nav-menu .dropdown > a::after {
        float: right;
        transition: transform 0.2s;
    }

    .nav-menu .dropdown.open > a::after {
        transform: rotate(180deg);
    }

    /* Inline dropdown on mobile */
    .nav-menu .dropdown {
        position: static;
        display: block;
    }

    .nav-menu .dropdown::after {
        display: none;
    }

    .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        border-radius: 0;
        background-color: rgba(0,0,0,0.2);
        padding: 0;
        min-width: unset;
        width: 100%;
    }

    .nav-menu .dropdown.open .dropdown-menu {
        display: block;
    }

    /* Disable hover-based dropdown on mobile */
    .nav-menu .dropdown:hover .dropdown-menu,
    .nav-menu .dropdown:focus-within .dropdown-menu {
        display: none;
    }

    .nav-menu .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 0.7rem 1.5rem 0.7rem 2.5rem;
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 0.85rem;
    }

    .dropdown-menu li a:hover,
    .dropdown-menu li a.active {
        background-color: rgba(255,255,255,0.07);
        border-left: none;
        color: var(--accent-gold);
    }

    .hamburger {
        display: flex;
    }

    .nav-btn {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        width: 92%;
    }

    .navbar {
        padding: 0.85rem 0;
    }

    .nav-wrapper {
        gap: 1rem;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .hero {
        min-height: 520px;
        padding: 5rem 0 4rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .about-preview,
    .what-we-offer,
    .popular-courses,
    .success-stories-preview,
    .cta-section {
        padding: 4rem 0;
    }

    .section-title {
        margin-bottom: 2rem;
        font-size: 2rem;
    }

    .about-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .offer-grid,
    .courses-grid,
    .stories-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .offer-card,
    .course-card {
        padding: 1.5rem;
    }

    .story-card:hover,
    .offer-card:hover,
    .course-card:hover {
        transform: none;
    }

    .story-card img {
        height: 260px;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .accreditation-logos,
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .container {
        width: 94%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        max-width: 300px;
    }

    .logo-img {
        height: 42px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .accreditation-badges {
        gap: 1.5rem;
    }

    .accreditation-tagline {
        font-size: 1rem;
    }

    .about-preview,
    .what-we-offer,
    .popular-courses,
    .success-stories-preview,
    .cta-section,
    .footer {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .about-grid {
        gap: 2rem;
    }

    .about-image img {
        max-height: 360px;
    }

    .section-title {
        font-size: 1.8rem;
        line-height: 1.15;
    }

    .section-subtitle {
        margin-top: -1rem;
        margin-bottom: 2rem;
        font-size: 1rem;
    }

    .offer-card,
    .course-card,
    .story-content {
        padding: 1.25rem;
    }

    .offer-icon {
        font-size: 2.5rem;
    }

    .offer-card h3,
    .course-card h3 {
        font-size: 1.2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .courses-grid,
    .stories-grid {
        grid-template-columns: 1fr;
    }

    .offer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn,
    .btn-lg {
        padding-inline: 1.25rem;
    }

    .offer-card,
    .course-card {
        border-radius: 8px;
    }

    .story-card img {
        height: 220px;
    }
}
