:root {
    --primary-color: #f28c28;
    --secondary-color: #1f9d61;
    --dark-color: #0d2d1e;
    --light-color: #f7f9f7;
    --text-color: #1d2d26;
    --text-light: #53665f;
    --white: #ffffff;
    --shadow: 0 15px 35px rgba(16, 57, 39, 0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: #f8fbff;
    padding-top: 80px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1120px, 90%);
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.6rem;
    border: none;
    border-radius: 40px;
    background: linear-gradient(135deg, var(--primary-color), #0b4b86);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 22px rgba(14, 107, 183, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(14, 107, 183, 0.24);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-kicker {
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.left-align {
    text-align: left;
}

.left-align::after {
    left: 0;
    transform: none;
}

.top-bar {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-info span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.contact-info i,
.feature i,
.hero-points i,
.info-item i,
.course-video-box i {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.social-icons a:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 18px rgba(7, 24, 39, 0.08);
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    color: var(--dark-color);
    font-weight: 800;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--dark-color);
}

/* =========================================================
   Responsive Navigation (single source of truth)
   All breakpoints that affect the nav bar live here so the
   menu (including the "Free Course" item) never overlaps,
   wraps awkwardly, or overflows at any screen width.
   ========================================================= */

/* Roomy desktop: keep the bar on one line, but let it wrap to a
   second row instead of overflowing if a translation, browser
   zoom, or a future item ever makes it too wide. */
@media (min-width: 1025px) {
    .nav-links {
        flex-wrap: wrap;
        row-gap: 0.6rem;
        justify-content: flex-end;
    }
}

/* Narrower desktops / small laptops: tighten spacing a little
   before anything is forced to wrap or collapse. */
@media (min-width: 1025px) and (max-width: 1220px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.92rem;
    }
}

/* Tablets and phones: collapse into the hamburger-driven panel.
   1024px keeps this comfortably above the point where 9 nav
   items would otherwise crowd or wrap the bar. */
@media (max-width: 1024px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 80vh;
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.98);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1.5rem 1.5rem;
        box-shadow: 0 12px 28px rgba(7, 24, 39, 0.08);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links > li {
        width: 100%;
    }

    .nav-links > li > a {
        display: block;
        padding: 0.9rem 0.25rem;
    }
}

/* Small phones: trim padding/font size further so all 9 items
   remain comfortable to tap without excessive scrolling. */
@media (max-width: 400px) {
    .nav-links {
        padding: 0.4rem 1rem 1.25rem;
    }

    .nav-links > li > a {
        font-size: 0.95rem;
        padding: 0.75rem 0.25rem;
    }
}

.hero {
    background: linear-gradient(120deg, rgba(7, 24, 39, 0.88), rgba(14, 107, 183, 0.78)), url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: var(--white);
    padding: 6rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.hero-content p {
    max-width: 700px;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-points {
    display: grid;
    gap: 0.75rem;
    padding-left: 0;
    color: rgba(255, 255, 255, 0.92);
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.tutorial-panel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-header h3 {
    font-size: 1.5rem;
}

.panel-header span {
    background: rgba(243, 156, 18, 0.14);
    color: #ffd87d;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.tutorial-links {
    display: grid;
    gap: 0.9rem;
}

.tutorial-links a {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-weight: 600;
}

.tutorial-links a:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(2px);
}

.panel-note {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
}

.stats-bar {
    background: linear-gradient(135deg, var(--dark-color), #143a2d);
    padding: 1.4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: var(--white);
}

.stat-item strong {
    font-size: clamp(1.8rem, 2.8vw, 2.9rem);
    color: var(--primary-color);
    font-weight: 800;
}

.stat-item span {
    color: rgba(255, 255, 255, 0.82);
    margin-top: 0.3rem;
}

.stats-indicators {
    display: none;
}

.showcase {
    padding: 5rem 0;
    background: linear-gradient(180deg, #fff9f1 0%, #f5faf7 100%);
}

.testimonial-grid,
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-card,
.portfolio-card,
.media-upload-box {
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(31, 157, 97, 0.08);
}

.testimonial-card {
    padding: 1.5rem;
}

.rating-stars {
    color: #f7b500;
    letter-spacing: 0.15em;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.testimonial-card p {
    color: var(--text-light);
    margin-bottom: 1.3rem;
}

.person {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.person img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
}

.person h4 {
    color: var(--dark-color);
    margin-bottom: 0.1rem;
}

.person span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.portfolio-card {
    overflow: hidden;
}

.portfolio-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.portfolio-info {
    padding: 1.2rem 1.1rem 1.5rem;
}

.portfolio-info span {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary-color);
    margin-bottom: 0.45rem;
}

.portfolio-info h3 {
    color: var(--dark-color);
    font-size: 1.2rem;
}

.media-upload-box {
    margin-top: 2.2rem;
    padding: 2rem;
}

.media-upload-box h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.media-upload-form {
    display: grid;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.media-upload-form input,
.media-upload-form select,
.media-upload-form textarea {
    width: 100%;
    border: 1px solid rgba(31, 157, 97, 0.12);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    background: #f9fbfa;
    color: var(--text-color);
}

.media-upload-form textarea {
    min-height: 120px;
    resize: vertical;
}

.upload-row {
    align-items: center;
    grid-template-columns: 1.2fr 0.8fr;
}

.file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    border: 1.5px dashed rgba(242, 140, 40, 0.6);
    border-radius: 14px;
    background: rgba(242, 140, 40, 0.04);
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    padding: 0.8rem;
}

.file-upload input {
    display: none;
}

.services,
.training,
.consultation,
.contact,
.software-sales {
    padding: 5rem 0;
}

.services-grid,
.free-training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.service-card,
.free-course-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(14, 107, 183, 0.08);
    transition: var(--transition);
}

.service-card:hover,
.free-course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(13, 32, 53, 0.15);
}

.service-card i,
.free-course-card i {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3,
.free-course-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    color: var(--dark-color);
}

.training {
    background: #f0f6fb;
}

.free-training-grid {
    margin-bottom: 2.5rem;
}

.course-accordion {
    display: grid;
    gap: 1rem;
}

.course-dropdown {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(14, 107, 183, 0.08);
    overflow: hidden;
}

.course-dropdown summary {
    list-style: none;
    cursor: pointer;
    padding: 1.3rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
}

.course-dropdown summary::-webkit-details-marker {
    display: none;
}

.course-dropdown summary::after {
    content: "+";
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    color: var(--primary-color);
}

.course-dropdown[open] summary::after {
    content: "−";
}

.course-content {
    padding: 0 1.5rem 1.5rem;
    display: grid;
    gap: 1rem;
    border-top: 1px solid rgba(14, 107, 183, 0.08);
}

.course-video-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    background: #eff6ff;
}

.course-video-box h4 {
    margin: 0;
    color: var(--dark-color);
}

.course-video-box a {
    color: var(--primary-color);
    font-weight: 700;
}

.course-content ul {
    list-style: disc;
    padding-left: 1.2rem;
    color: var(--text-light);
}

.software-accordion {
    display: grid;
    gap: 1rem;
}

.software-dropdown {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-color);
    overflow: hidden;
    transition: var(--transition);
}

.software-dropdown:hover {
    box-shadow: 0 20px 40px rgba(242, 140, 40, 0.15);
    border-color: var(--secondary-color);
}

.software-dropdown summary {
    list-style: none;
    cursor: pointer;
    padding: 1.4rem 1.6rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(242, 140, 40, 0.06), rgba(31, 157, 97, 0.04));
}

.software-dropdown summary::-webkit-details-marker {
    display: none;
}

.software-dropdown summary::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.software-dropdown summary::after {
    content: "▼";
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.software-dropdown[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary-color);
}

.software-dropdown[open] summary {
    border-bottom: 2px solid var(--primary-color);
}

.software-content {
    padding: 1.5rem 1.6rem;
    display: grid;
    gap: 1.2rem;
    background: linear-gradient(135deg, rgba(242, 140, 40, 0.02), rgba(31, 157, 97, 0.02));
}

.software-content ul {
    list-style: none;
    padding: 0;
    color: var(--text-light);
}

.software-content ul li {
    padding: 0.7rem 0;
    padding-left: 1.8rem;
    position: relative;
}

.software-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.software-dropdown .btn {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
}

.software-panel {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(14, 107, 183, 0.92), rgba(7, 24, 39, 0.96));
    color: var(--white);
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.software-panel p {
    color: rgba(255, 255, 255, 0.85);
}

.software-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.software-tutorials {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.consultation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.consultation-info,
.consultation-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.consultation-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.consultation-features {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.8rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(14, 107, 183, 0.15);
    border-radius: 12px;
    background: #f9fbff;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.contact {
    background: #f0f6fb;
}

.contact-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: center;
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: var(--dark-color);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
}

.contact-map {
    height: 430px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

footer {
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.9);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    display: grid;
    gap: 0.6rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

#newsletter-form {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

#newsletter-form input {
    flex: 1 1 180px;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
}

#newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 920px) {
    .hero-grid,
    .consultation-content,
    .contact-content,
    .software-panel,
    .form-row,
    .upload-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .top-bar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding-top: 5rem;
    }

    /* Loop through the counters one at a time, same mechanism as .carousel-slide */
    .stats-bar {
        padding: 2rem 0;
    }

    .stats-grid {
        display: block;
        position: relative;
        overflow: hidden;
        height: 140px;
    }

    .stats-grid .stat-item {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        animation: statsCycle 20s ease-out infinite;
    }

    .stats-grid .stat-item:nth-child(1) {
        animation-delay: -20s;
    }

    .stats-grid .stat-item:nth-child(2) {
        animation-delay: -15s;
    }

    .stats-grid .stat-item:nth-child(3) {
        animation-delay: -10s;
    }

    .stats-grid .stat-item:nth-child(4) {
        animation-delay: -5s;
    }

    /* One shared 20s loop (4 items x 5s each), same negative-delay technique
       as .testimonialCycle so each counter gets its own turn without ever
       drifting back into sync with the others. */
    @keyframes statsCycle {
        0% {
            left: -100%;
            opacity: 0;
        }
        4% {
            left: 0;
            opacity: 1;
        }
        21% {
            left: 0;
            opacity: 1;
        }
        25% {
            left: 100%;
            opacity: 0;
        }
    }

    .stats-indicators {
        display: flex;
        justify-content: center;
        gap: 0.6rem;
        margin-top: 0.75rem;
    }

    .showcase {
        padding-top: 4rem;
        margin-top: 1.5rem;
    }

    .section-title {
        font-size: 2.1rem;
    }
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

#newsletter-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #444;
}

.theme-toggle {
    margin-top: 15px;
}

.theme-btn {
    padding: 5px 15px;
    margin-left: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.theme-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Blue Theme */
.blue-theme {
    --primary-color: #87cefa;
    --secondary-color: #ff69b4;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .consultation-content,
    .tshirt-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .consultation-info,
    .tshirt-gallery,
    .contact-info {
        margin-bottom: 50px;
    }
    
    #course-upload-form {
        grid-template-columns: 1fr;
    }
    
    #course-upload-form textarea {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .tshirt-gallery {
        grid-template-columns: 1fr;
    }
}

/* Testimonials Carousel Styles */
.testimonials-carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    padding: 0;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 22px;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    animation: testimonialCycle 15s ease-out infinite;
}

.carousel-slide:nth-child(1) {
    animation-delay: -15s;
}

.carousel-slide:nth-child(2) {
    animation-delay: -10s;
}

.carousel-slide:nth-child(3) {
    animation-delay: -5s;
}

/* One shared 15s loop (3 slides x 5s each): 0.8s slide-in, ~3.4s hold,
   0.8s slide-out, then hidden until the loop comes back around.
   Each slide starts at a different point in the SAME loop via a negative
   animation-delay, so it never drifts back into sync with the others. */
@keyframes testimonialCycle {
    0% {
        left: -100%;
        opacity: 0;
    }
    5.33% {
        left: 0;
        opacity: 1;
    }
    28% {
        left: 0;
        opacity: 1;
    }
    33.33% {
        left: 100%;
        opacity: 0;
    }
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary-color);
}

.indicator:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

@media (max-width: 576px) {
    .top-bar .container {
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 10px;
    }
    
    .hero {
        height: auto;
        min-height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 8px 15px;
    }
}
/* =========================================================
   Nav Dropdown (Downloads: Opensource Software / Study Notes)
   ========================================================= */
.nav-item.has-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-color);
    font-size: 0.7rem;
    padding: 0.2rem 0.3rem;
}

.dropdown-caret i {
    transition: transform 0.3s ease;
}

.nav-item.has-dropdown:hover .dropdown-caret i,
.nav-item.has-dropdown.open .dropdown-caret i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.9rem);
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 1100;
}

.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li:not(:last-child) {
    margin-bottom: 0.4rem;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--dark-color);
    background: rgba(242, 140, 40, 0.07);
    border: 1px solid rgba(242, 140, 40, 0.16);
}

.dropdown-menu li a::after {
    display: none;
}

.dropdown-menu li a:hover {
    background: rgba(242, 140, 40, 0.14);
    border-color: rgba(242, 140, 40, 0.3);
    color: var(--primary-color);
}

@media (max-width: 1024px) {
    .nav-links > li.nav-item.has-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }

    .dropdown-caret {
        font-size: 0.9rem;
        padding: 0.5rem 0.7rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: none;
        display: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        margin-top: 0.4rem;
    }

    .nav-item.has-dropdown.open .dropdown-menu {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        max-height: 300px;
        padding: 0.2rem 0;
    }

    .dropdown-menu li:not(:last-child) {
        margin-bottom: 0;
    }

    .dropdown-menu li a {
        background: rgba(242, 140, 40, 0.08);
        border: 1px solid rgba(242, 140, 40, 0.2);
        border-radius: 12px;
        padding: 0.8rem 1rem;
        text-align: center;
    }

    .dropdown-menu li a:active,
    .dropdown-menu li a:hover {
        background: rgba(242, 140, 40, 0.16);
    }
}

/* =========================================================
   WhatsApp-styled button (One-on-One Mentorship, etc.)
   ========================================================= */
.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp:hover {
    box-shadow: 0 14px 28px rgba(37, 211, 102, 0.34);
}

.btn-whatsapp i {
    margin-right: 0.5rem;
}

/* =========================================================
   Software & Digital Solutions - systems photo gallery
   ========================================================= */
/* Software Systems Gallery Carousel
   Same fade/slide-in visual language as .testimonials-carousel, but driven
   by script.js instead of fixed nth-child keyframes. Because the active
   slide is toggled with a JS-managed .active class instead of a CSS
   animation-delay chain, this works for any number of .software-gallery-item
   figures -- add or remove slides in index.html and this CSS never needs
   to change. Sizing uses aspect-ratio (not a fixed px height) so it scales
   smoothly across phone, tablet and desktop widths. */
.software-carousel {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.software-carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3.35;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: var(--shadow);
    background: var(--white);
}

.software-carousel .software-gallery-item {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid rgba(14, 107, 183, 0.08);
    opacity: 0;
    transform: translateX(6%);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

.software-carousel .software-gallery-item.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 1;
}

.software-carousel .software-gallery-item.leaving {
    transform: translateX(-6%);
}

.software-gallery-photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
    min-height: 0;
    background: linear-gradient(135deg, rgba(242, 140, 40, 0.14), rgba(31, 157, 97, 0.14));
}

.software-gallery-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.software-gallery-photo i {
    position: relative;
    font-size: 2.4rem;
    color: var(--secondary-color);
}

.software-gallery-item figcaption {
    padding: 1rem 0.75rem;
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
}

.software-carousel-indicators {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.3rem;
}

@media (max-width: 480px) {
    .software-carousel-track {
        border-radius: 16px;
    }
}

/* =========================================================
   Our Team section
   ========================================================= */
.team {
    padding: 5rem 0;
    background: #f0f6fb;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.team-card {
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(31, 157, 97, 0.08);
    padding: 2.2rem 1.8rem;
    text-align: center;
}

.team-photo {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.team-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-photo i {
    position: relative;
    font-size: 3.4rem;
    color: rgba(255, 255, 255, 0.9);
}

.team-card h3 {
    color: var(--dark-color);
    font-size: 1.35rem;
    margin-bottom: 0.3rem;
}

.team-role {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.9rem;
}

.team-card p {
    color: var(--text-light);
}

/* =========================================================
   Downloads Page
   ========================================================= */
.downloads-hero {
    background: linear-gradient(120deg, rgba(7, 24, 39, 0.92), rgba(14, 107, 183, 0.82)), url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: var(--white);
    padding: 5rem 0 4rem;
    text-align: center;
}

.downloads-hero .section-kicker {
    color: #ffd87d;
}

.downloads-hero h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.downloads-hero p {
    max-width: 640px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
}

.downloads-section {
    padding: 5rem 0;
}

.downloads-section.opensource-section {
    background: #fff9f1;
}

.downloads-section.notes-section {
    background: #f0f6fb;
}

/* Opensource software download cards */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.download-card {
    background: var(--white);
    padding: 2rem 1.6rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(31, 157, 97, 0.1);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(13, 32, 53, 0.15);
}

.download-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 157, 97, 0.1);
    color: var(--secondary-color);
    font-size: 1.7rem;
}

.download-card h3 {
    color: var(--dark-color);
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.download-card p {
    color: var(--text-light);
    font-size: 0.94rem;
    margin-bottom: 1.4rem;
    flex-grow: 1;
}

.download-btn {
    justify-content: center;
    width: 100%;
}

.download-btn i {
    margin-right: 0.5rem;
}

/* Thank-you / buy-a-pizza support note */
.support-note {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(37, 211, 102, 0.07);
    border: 1.5px dashed rgba(37, 211, 102, 0.55);
    border-radius: 18px;
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow);
}

.support-note i {
    flex-shrink: 0;
    font-size: 2.2rem;
    color: #25d366;
}

.support-note p {
    color: var(--text-color);
    margin: 0;
}

.support-note a {
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: underline;
}

/* Study notes - class level accordion */
.notes-accordion .course-dropdown summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.notes-files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.8rem;
}

.note-file {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.92rem;
}

.note-file:hover {
    background: rgba(14, 107, 183, 0.1);
}

.note-file i {
    font-size: 1.3rem;
}

.note-file.pdf i {
    color: #e2574c;
}

.note-file.ppt i {
    color: #d24726;
}

.note-file.doc i {
    color: #2b579a;
}

.note-file.xls i {
    color: #1d6f42;
}

.notes-empty {
    color: var(--text-light);
    font-size: 0.94rem;
    font-style: italic;
}

/* Mobile responsiveness for the downloads page */
@media (max-width: 920px) {
    .download-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 760px) {
    .downloads-hero {
        padding: 4rem 0 3rem;
    }

    .downloads-section {
        padding: 3.5rem 0;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .support-note {
        flex-direction: column;
        text-align: center;
    }

    .notes-files {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .downloads-hero h1 {
        font-size: 1.7rem;
    }

    .download-card {
        padding: 1.6rem 1.2rem;
    }
}

/* Join-the-team call to action under Our Team */
.team-join {
    max-width: 700px;
    margin: 3rem auto 0;
    text-align: center;
    background: var(--white);
    border: 1.5px dashed rgba(37, 211, 102, 0.55);
    border-radius: 20px;
    padding: 2.2rem 1.8rem;
    box-shadow: var(--shadow);
}

.team-join h3 {
    color: var(--dark-color);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.team-join p {
    color: var(--text-light);
    margin-bottom: 1.4rem;
}

/* Study notes - subject groupings (General / Programming / Web Development) */
.notes-subject {
    margin-top: 2.8rem;
}

.notes-subject:first-of-type {
    margin-top: 0;
}

.notes-subject-title {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-left: 0.2rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 0.8rem;
}
