:root {
    --text: #2b2b2b;
    --muted: #505050;
    --accent: #daa24e;
    --accent-dark: #ac7119;
    --card: #fff;
    --shadow: 0 6px 18px rgba(43, 43, 43, 0.08);
    --radius: 12px;
    --container-padding: 1.25rem;
    --transition: 220ms ease;
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    --font-serif: Georgia, "Merriweather", serif;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    display: flex;
    flex-direction: column; 
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    line-height: 1.45;
    font-size: 16px;
    overflow-x: hidden;
}
main {
    flex: 1;
}
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(43, 43, 43, 0.04);
    backdrop-filter: blur(6px);
}

header>* {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    gap: 20px;
    box-sizing: border-box;
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 0 0 auto;
}

nav .logo a,
nav .custom-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.6rem;
}

nav .logo img,
nav .custom-logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

nav .logo a {
    margin: 0;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text);
    white-space: nowrap;
}

.menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.menu ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.menu a {
    color: var(--text);
    text-decoration: none;
    padding: 0.35rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: color var(--transition), transform 0.2s ease;
}

.menu a:hover {
    transform: translateY(-2px);
    color: var(--accent);
}

.contact-btn {
    background: var(--accent);
    text-decoration: none;
    color: #fff !important;
    border: none;
    border-radius: var(--radius);
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: color-mix(in srgb, var(--accent) 85%, rgb(255, 255, 255));
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.menu-toggle:hover {
    color: var(--accent);
}

.menu-icons {
    display: flex;
    margin-left: 24px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
}

.icon-btn:hover {
    color: var(--accent-dark);
}

.search-container {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 0 0.5rem;
    transition: all 0.3s ease;
}

.search-container:hover {
    border-color: var(--accent-dark);
}

.search-input {
    background-color: transparent;
    border: none;
    outline: none;
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
    width: 120px;
    transition: width 0.3s ease;
}

.search-input:focus {
    width: 180px;
}


@media (max-width: 1024px) {
    nav {
        align-items: center;
    }

    nav .logo p {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        z-index: 101;
    }

    .menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(6px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 100;
    }

    .menu.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .menu a {
        font-size: 1.3rem;
        color: var(--text);
        text-decoration: none;
        font-weight: 600;
        transition: color 0.2s ease;
    }

    .menu ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
        margin: 0;
    }

    .contact-btn {
        display: none;
    }

    .menu-icons {
        margin-top: 1rem;
    }


    .menu-toggle .fa-times {
        display: none;
    }

    .menu.open~.menu-toggle .fa-bars {
        display: none;
    }

    .menu.open~.menu-toggle .fa-times {
        display: block;
    }
}

@media (max-width: 480px) {
    nav {
        align-items: center;
        padding: 12px 0;
    }

    nav .logo p {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        z-index: 101;
    }

    .menu a {
        font-size: 1.6rem;
    }

    .menu-icons {
        gap: 1.25rem;
    }

    .search-input {
        width: 160px;
    }

    .menu-toggle i {
        font-size: 32px;
        padding-right: 12px;
        transition: transform 0.2s ease;
    }

}

.hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    min-height: 88vh;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(193, 112, 3, 0.25), rgba(99, 58, 2, 0.25)),
        url("../images/shero.jpeg") 50% 70%/cover no-repeat;
    background-blend-mode: overlay;
    background-size: cover;
}

.h1container {
    position: relative;
    left: 20%;
    top: 50%;
    padding: 1rem 1.25rem;
    max-width: 520px;
    width: 40vw;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin: 0 0 0.5rem 0;
    display: block;
    transform: none;
    max-width: 1200px;
}

.hero h1::after {
    content: "";
    display: block;
    height: 0;
}

.hero .button {
    text-decoration: none;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    margin-top: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: color-mix(in srgb, var(--accent) 85%, rgb(255, 255, 255));
}


@media (max-width: 1024px) {
    .h1container {
        position: static;
        left: auto;
        top: auto;
        width: 100%;
        padding: 1rem;
    }

    .hero h1 {
        line-height: 1;
        margin-bottom: 20px;
    }
}

.AboutMe {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.aboutme_content {
    width: 100%;
    min-width: 0;
    padding-right: 1.2rem;
}

.aboutme_content h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

.aboutme_content p {
    color: var(--muted);
}

.aboutme_image {
    width: 100%;
    min-width: 0;
}

.aboutme_image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

@media (max-width: 1024px) {
    .AboutMe {
        grid-template-columns: 1fr;
    }

    .aboutme_image {
        display: none;
    }
}

/* Courses */
.courses {
    background: linear-gradient(180deg, rgba(199, 146, 64, 0.3), rgba(193, 112, 3, 0.3));
    padding-bottom: 2rem;
}

.courses_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem 0
}

.courses h2 {
    padding: 0 1.5rem 0 0;
}

.course-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;

}

.course-item {
    background: var(--card);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 0.85rem;
    align-items: start;
    flex-direction: column;
}

.course-image {
    height: 50vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    object-fit: cover;
    display: block;

}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
    position: relative;
    overflow: hidden;
}

.course-content h3 {
    margin: 0 0 0.5rem 0
}

.course-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    text-decoration: none;
    transition: opacity 0.3s ease-in-out;
}

.course-overlay span {
    background: var(--accent);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow);
    transform: translateY(10px);
    transition: transform 0.3s ease-in-out;
}


.course-image:hover .course-overlay {
    opacity: 1;
}

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

.course-image:hover .course-overlay span {
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .course-image {
        height: 40vh;
    }

    .course-list {
        grid-template-columns: repeat(1, 1fr)
    }
}

.certificates-section {
    width: 100%;
    padding: 4rem 0;
    text-align: center;
}

.cert-title {
    margin-bottom: 3rem;
}

.cert-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
}

.cert {
    width: 280px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cert-center {
    width: 320px;
    z-index: 2;
    transform: scale(1.1);
}

.cert-left {
    transform: rotate(-4deg);
    opacity: 0.85;
}

.cert-right {
    transform: rotate(4deg);
    opacity: 0.85;
}

.cert:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
}

.lightbox.show {
    display: flex;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .cert-wrapper {
        display: flex;
        align-items: flex-end;
        gap: 1.5rem;

        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 1rem;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .cert {
        flex: 0 0 auto;
        width: 220px;
        scroll-snap-align: center;
    }

    .cert-center {
        width: 220px;
        transform: none;
    }

    .cert-left,
    .cert-right {
        transform: none;
        opacity: 1;
    }

    .cert-wrapper::-webkit-scrollbar {
        display: none;
    }
}



.gallery {
    background: linear-gradient(180deg, rgba(199, 146, 64, 0.3), rgba(193, 112, 3, 0.3));
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0rem auto;
    padding-bottom: 2rem;
}

.gallery h2 {
    margin: 1rem 0;
}

.gallery-wrapper {
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.gallery-track {
  overflow: hidden;
}

.gallery-slider {
  display: flex;
  transition: transform 0.4s ease;
}

.gallery-slider img {
  flex: 0 0 calc(33.33%);
  height: 50vh;
  object-fit: cover;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 2em;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 4px;
    color: var(--accent-dark);
}

.gallery-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-btn.prev {
    left: 20px;
}

.gallery-btn.next {
    right: 20px;
}


@media (max-width: 480px) {
  .gallery-slider img { flex: 0 0 50%; }
  .gallery-btn {
    font-size: 8px;
    padding: 8px 10px;
  }
}

footer {
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(199, 146, 64, 0.3), rgba(193, 112, 3, 0.3));
}

footer .footer-icons {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem
}

footer .footer-icons img {
    width: 28px;
    height: 28px;
    display: block;
    opacity: 0.75;
}

footer p {
    margin: 0;
    text-align: center;
    font-size: 0.95rem
}

/* Utilities & responsive */
.center {
    text-align: center
}

.muted {
    color: var(--muted)
}