@import url("global.css");

.top-banner {
    background: var(--alt-color);
    color: var(--text-color);
    text-align: center;
    padding: 10px 40px 10px 20px;
    font-size: 14px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-banner .banner-message {
    flex: 1;
    min-width: 200px;
}

.top-banner .close-banner {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

@media (max-width: 600px) {
    .top-banner {
        font-size: 13px;
        padding: 12px 30px 12px 15px;
    }

    .top-banner .close-banner {
        font-size: 18px;
        right: 10px;
    }
}

/* Header */
header {
    position: relative;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--bg-color);
    padding: 8px 15px;
    border-bottom: 1px solid var(--text-color);
    position: relative;
}

/* Sticky Navbar */
.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    background: var(--bg-color);
}

.logo img {
    height: 40px;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);

    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 1px;
    background-color: var(--text-color);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    font-weight: 600;
    color: var(--alt-color);
}

.nav-links a.active::after {
    width: 100%;
}

.dropdown-menu {
    position: absolute;
    top: 105%;
    left: 0;
    background-color: var(--bg-color);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px;
    min-width: 160px;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.dropdown-menu li {
    padding: 8px 10px;
    list-style: none;
}

.dropdown-menu a {
    color: var(--text-color);
    display: block;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.1);
}

.nav-links li:hover .dropdown-menu {
    display: flex;
}

.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    width: 250px;
    background: var(--bg-color);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 15px;
    z-index: 1000;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu ul li {
    text-align: center;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px;
    display: block;
}

/* Mobile Dropdown */
.mobile-menu .dropdown-menu {
    display: none;
    position: relative;
    background: var(--second-bg-color);
    box-shadow: none;
    padding: 10px;
    border-radius: 6px;
}

/* Active Mobile Menu */
.mobile-menu.active {
    display: block;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-menu.active {
        display: block;
    }

    .dropdown-menu {
        position: relative;
        box-shadow: none;
    }

    .dropdown-menu.active {
        display: flex;
    }
}

/*2*/
/* General Section Styling */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 50px;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
}

.text-content {
    flex: 1;
    min-width: 300px;
}

.text-content h1 {
    font-size: 50px;
    font-weight: bold;
}

.text-content p {
    font-size: 18px;
    line-height: 1.5;
    max-width: 500px;
}

/* Wrapper for Cards */
.wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.wrapcontainer {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    padding: 20px 0;
    overflow-x: hidden;
}

/* Cards */
.card {
    width: 120px;
    height: 180px;
    border-radius: 15px;
    cursor: pointer;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    transition: all 0.5s ease-in-out;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Images */
.card img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    border-radius: 10px 10px 0 0;
}

/* Details inside Card */
.card .details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    text-align: center;
    padding: 10px;
    height: 100%;
    min-height: 300px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
@media (max-width: 768px) {
    .card .details {
        min-height: 100px;
    }
    .scroll-hint {
        display: block !important;
    }
}

.card .details::-webkit-scrollbar {
    display: none;
}

.card .details .icon {
    background: var(--alt-color);
    color: var(--text-color);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 2px;
}

.card h4 {
    font-size: 16px;
    margin: 5px 0;
    flex-shrink: 0;
}

.card p {
    font-size: 14px;
    line-height: 1.4;
    display: none;
    padding: 0 5px;
    flex-shrink: 0;
}
input[type="radio"] {
    display: none;
}

input:checked + label {
    width: 300px;
    height: 250px;
}

input:checked + label .details {
    opacity: 1;
}

input:checked + label p {
    display: block;
}

.scroll-hint {
    font-size: 12px;
    color: #aaa;
    animation: blink 1.5s infinite;
    display: none;
}

@keyframes blink {
    0%,
    100% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .text-content {
        margin-bottom: 30px;
    }

    .wrapcontainer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .card {
        width: 100px;
        height: 150px;
    }

    input:checked + label {
        width: 250px;
        height: 220px;
    }

    .search-box {
        justify-content: center;
        padding: 10px;
    }
}

/* 2 */
.categorycontainer {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}
.categorycontainer h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}
.categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}
.categories a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    padding-bottom: 5px;
    cursor: pointer;
    transition: border-bottom 0.3s ease;
}

.categories .active {
    border-bottom: 2px solid var(--text-color);
}
.courses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.course {
    display: block;
    background: transparent;
    padding: 15px;
    border-radius: 10px;
    overflow: hidden;
    height: fit-content;
    cursor: pointer;
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
    .courses {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .courses {
        grid-template-columns: repeat(1, 1fr);
    }
}

.course {
    background: transparent;
    padding: 15px;
    border-radius: 10px;
    overflow: hidden;
    height: fit-content;
    display: none;
}
.course.active {
    display: block;
}
.course img {
    width: 100%;
    border-radius: 10px;
}
.course h2 {
    font-size: 18px;
    margin: 10px 0;
}
.course p {
    color: var(--text-color);
    font-size: 14px;
}
.hidden {
    display: none;
}
@media (max-width: 768px) {
    .categories {
        flex-wrap: wrap;
    }
}

/*=============== CARD ===============*/

.card__container {
    display: grid;
    row-gap: 3.5rem;
}

.card__article {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: fit-content;
}

.card__img {
    width: 328px;
    border-radius: 1.5rem;
}
.card__data {
    cursor: pointer;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    left: 50%;
    transform: translate(-50%, 100%);
    background-color: var(--bg-color);
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.15);
    border-radius: 1rem;
    position: absolute;
    text-decoration: none !important;
    bottom: 0;
    right: 0;
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.card__data a {
    text-decoration: none !important;
}
.card__data a:hover {
    text-decoration: underline !important;
    color: var(--alt-color) !important;
}

.card__data::-webkit-scrollbar {
    width: 5px;
}

.card__data::-webkit-scrollbar-thumb {
    background: var(--alt-color);
    border-radius: 5px;
}

.card__data::-webkit-scrollbar-track {
    background: transparent;
}

.card__description {
    display: block;
    margin-bottom: 0.25rem;
}

.card__title {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.card__button {
    text-decoration: none;
    font-weight: 500;
    color: var(--alt-color);
    font-size: 12px;
}

.card__button:hover {
    text-decoration: underline;
}

.card__article:hover .card__data {
    opacity: 1;
    transform: translate(-50%, 0);
}

.card__article:not(:hover) .card__data {
    opacity: 0;
    transform: translateY(100%);
}

@keyframes show-data {
    50% {
        transform: translateY(-10rem);
    }
    100% {
        transform: translateY(-7rem);
    }
}

@keyframes remove-overflow {
    to {
        overflow: initial;
    }
}

@keyframes remove-data {
    0% {
        transform: translateY(-7rem);
    }
    50% {
        transform: translateY(-10rem);
    }
    100% {
        transform: translateY(0.5rem);
    }
}

@keyframes show-overflow {
    0% {
        overflow: initial;
        pointer-events: none;
    }
    50% {
        overflow: hidden;
    }
}

@media screen and (max-width: 340px) {
    .card__data {
        width: 250px;
        padding: 1rem;
    }
}

@media screen and (min-width: 768px) {
    .card__container {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 1.5rem;
    }
}

@media screen and (min-width: 1120px) {
    .ccontainer {
        height: fit-content;
    }

    .card__container {
        grid-template-columns: repeat(3, 1fr);
    }
    .card__img {
        width: 348px;
    }
    .card__data {
        width: 316px;
        padding-inline: 2.5rem;
    }
}

/* 3 */
.skillcontainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    max-width: 1200px;
    margin: auto;
}

.text-section {
    flex: 1;
    max-width: 500px;
}

.text-section h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.description {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.skills {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.skill {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.skill.visible {
    opacity: 1;
    transform: translateY(0);
}

.connector {
    width: 2px;
    height: 40px;
    background-color: var(--alt-color);
    margin-left: 20px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.connector.visible {
    opacity: 1;
}

.icon {
    font-size: 1.5rem;
}

.image-section {
    flex: 1;
    position: relative;
    max-width: 600px;
}

.video-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    max-width: 100%;
    max-height: 550px;
    height: auto;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--alt-color);
    color: var(--text-color);
    padding: 15px;
    border-radius: 5px;
    display: flex;
    gap: 20px;
}

.stat h2 {
    margin: 0;
    font-size: 1.5rem;
}

.stat p {
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .skillcontainer {
        flex-direction: column;
        text-align: center;
    }
    .image-section {
        margin-top: 20px;
    }
    .overlay {
        top: auto;
        bottom: 10px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    .connector {
        height: 30px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Testimonial Section */
.testcontainer {
    width: 100%;
    max-width: 900px;
    text-align: center;
    margin: auto;
    padding: 40px 20px;
    position: relative;
}

.testcontainer h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.testimonial-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.testimonial-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.testimonial {
    width: 100%;
    max-width: 350px;
    background: transparent;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin: 0 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: left;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial p {
    font-size: 16px;
    color: var(--text-color);
}

.author {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.author img {
    width: 100px;
    height: 100px;
    margin-right: 12px;
    object-fit: contain;
}

.author div {
    display: flex;
    flex-direction: column;
}

.role {
    color: var(--alt-color);
    font-size: 14px;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.controls button {
    background: var(--bg-color);
    color: var(--text-color);
    border: none;
    font-size: 22px;
    cursor: pointer;
    margin: 5px;
    padding: 12px 16px;
    border-radius: 50%;
    transition: background 0.3s, transform 0.2s;
}

.controls button:hover {
    transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .testimonial-container {
        gap: 15px;
    }

    .testimonial {
        max-width: 300px;
        padding: 18px;
    }
}

@media (max-width: 768px) {
    .testimonial-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        display: flex;
        flex-direction: row;
        justify-content: start;
        padding-bottom: 10px;
    }

    .testimonial {
        scroll-snap-align: center;
        min-width: 75%;
        max-width: 75%;
        margin: 0 auto;
    }

    .controls {
        display: none;
    }
}

@media (max-width: 480px) {
    .testimonial {
        min-width: 90%;
        max-width: 90%;
        padding: 16px;
    }

    .testimonial p {
        font-size: 14px;
    }
}
