@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #243949 0%, #517fa4 100%);
    color: #fff;
    margin-top: 80px;
}

body p, body h1, body h2, body h3, body h4, body h5, body h6 {
    text-align: justify;
    text-justify: auto;
}

h2 {
    color: #fff !important;
}

.hero-bg {
    background: url('https://thumbs.dreamstime.com/b/ai-machine-learning-hands-robot-human-touching-big-data-network-connection-background-science-artificial-intelligence-172987598.jpg?w=992') no-repeat center center;
    background-size: cover;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero-bg video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1px);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 3;
    transform: translateY(20px);
    opacity: 0;
    animation: slideIn 1s ease forwards;
}

@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.5s ease;
    background: linear-gradient(135deg, #f43b47, #453a94);
}

.navbar.scrolled {
    background: linear-gradient(135deg, #f43b47, #453a94);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.navbar a {
    transition: color 0.3s ease, transform 0.3s ease;
    color: #fff;
}

.navbar a:hover {
    color: #fef08a;
    transform: scale(1.1);
}

.navbar-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: contain;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: linear-gradient(135deg, #f43b47, #453a94);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1;
    border-radius: 5px;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    text-align: left;
}

.dropdown:hover .dropdown-content {
    display: block;
}

@media (max-width: 640px) {
    .navbar .text-3xl {
        display: none;
    }
    .navbar .space-x-8 a {
        font-size: 0.9rem;
    }
    .navbar .space-x-8 {
        space-x: 4;
    }
    .navbar-logo {
        width: 40px;
        height: 40px;
    }
    .dropdown-content {
        position: static;
        background: none;
        box-shadow: none;
        padding-left: 20px;
    }
    .dropdown.active .dropdown-content {
        display: block;
    }
    .hero-content h1 {
        text-align: center !important;
    }
}

.card {
    background: linear-gradient(135deg, #243949, #517fa4);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.card.service-card {
    background: linear-gradient(135deg, #FFC796, #FF6B95);
}

.card.service-card h3 {
    color: #4682b4;
}

.card.service-card img {
    height: 60%;
    width: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.card.service-card p {
    text-align: justify;
    text-justify: auto;
}

.card.project-card {
    background: linear-gradient(135deg, #c1c161, #c1c161, #d4d4b1);
}

.card.project-card h3 {
    color: #4682b4;
}

.card:hover {
    transform: translateY(-20px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card.project-card img {
    height: 60%;
    width: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.card.project-card .content {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.card.project-card .content p {
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: justify;
    text-justify: auto;
}

@media (max-width: 640px) {
    .card {
        height: 350px;
    }
    .card.project-card .content p,
    .card.service-card p {
        font-size: 0.8rem;
    }
    .card h3 {
        font-size: 1rem;
    }
}

.btn {
    background: linear-gradient(135deg, #243949, #517fa4);
    border: 2px solid #fef08a;
    border-radius: 20px;
    color: #fff;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
    background: #8b4513;
    transform: scale(1.1);
}

@media (max-width: 640px) {
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

section {
    background: linear-gradient(135deg, #243949, #517fa4);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(36, 57, 73, 0.8), rgba(81, 127, 164, 0.8));
    z-index: 1;
}

section > * {
    position: relative;
    z-index: 2;
}

section.highlight {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
}

@media (max-width: 640px) {
    section {
        padding: 40px 0;
    }
    h2 {
        font-size: 1.5rem;
    }
}

.parallax {
    background: url('https://example.com/services-bg.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

@media (max-width: 640px) {
    .parallax {
        background-attachment: scroll;
    }
}

.slideshow-container {
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

.activities-wrapper {
    overflow: hidden;
    width: 100%;
}

.activities-scroller {
    display: flex;
    animation: scroll-right-to-left 30s linear infinite;
    width: 200%;
}

.activities-wrapper, .partners-wrapper {
    overflow: hidden;
}

.activities-scroller, .partners-scroller {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.activities-scroller::-webkit-scrollbar, .partners-scroller::-webkit-scrollbar {
    display: none;
}

@keyframes scroll-right-to-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.activity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: 300px;
}

.activity-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.activity-item img:hover {
    transform: scale(1.05);
}

.activity-item p {
    font-size: 0.9rem;
    text-align: center;
}

.activities-scroller > * {
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .activity-item {
        width: 200px;
    }
    .activity-item img {
        height: 150px;
    }
    .activity-item p {
        font-size: 0.7rem;
    }
    .activities-scroller {
        width: max-content;
        animation: scroll-right-to-left-mobile 60s linear infinite;
    }
    @keyframes scroll-right-to-left-mobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-100% + 200px));
        }
    }
}

footer {
    background: linear-gradient(135deg, #874da2, #c43a30);
    padding: 40px 0;
    position: relative;
}

.footer-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.footer-left {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.footer-right .social-links {
    display: flex;
    gap: 20px;
}

.footer-map iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 10px;
}

.footer-address p {
    margin-bottom: 10px;
}

@media (max-width: 640px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    .footer-left, .footer-right {
        flex: 1;
        width: 100%;
        text-align: center;
    }
    .footer-map iframe {
        height: 200px;
    }
}

.animate-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f43b47, #453a94);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
}

.scroll-to-top:hover {
    transform: scale(1.1);
}

@media (max-width: 640px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 10px;
        right: 10px;
    }
}

.popup-icon-container {
    position: fixed;
    top: 100px;
    right: 10px;
    z-index: 1000;
}

.new-icon {
    width: 60px;
    height: 60px;
    cursor: pointer;
    animation: blink 4.0s infinite;
}

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0;
    }
}

.popup-icons {
    position: absolute;
    top: 60px;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 12px;
    background-color: #d2b48c;
    border: 2px solid #8b4513;
    border-radius: 10px;
    padding: 10px;
}

@media (min-width: 641px) {
    .popup-icon-container:hover .popup-icons {
        display: flex;
    }
}

.popup-icon-container.active .popup-icons {
    display: flex;
}

.popup-icons img {
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: transform 0.3s ease;
    object-fit: contain;
    border-radius: 50%;
}

.popup-icons img:hover {
    transform: scale(1.1);
}

@media (max-width: 640px) {
    .popup-icon-container {
        top: 80px;
        right: 5px;
    }
    .new-icon {
        width: 50px;
        height: 50px;
    }
    .popup-icons img {
        width: 35px;
        height: 35px;
    }
}

.heading-animate {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.heading-animate.visible {
    opacity: 1;
    transform: translateX(0);
}

.review-slide {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    min-height: 160px;
    animation: flip 1s ease-in-out;
}

.review-slide.active {
    display: flex;
}

@keyframes flip {
    0% {
        transform: perspective(400px) rotateY(90deg);
        opacity: 0;
    }
    100% {
        transform: perspective(400px) rotateY(0deg);
        opacity: 1;
    }
}

.review-slide img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-slide .review-content {
    max-width: 600px;
    text-align: left;
}

.review-slide .review-content p.quote {
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 5px;
    min-height: 60px;
}

.review-slide .review-content p.author {
    font-weight: 600;
    font-size: 0.8rem;
}

@media (max-width: 640px) {
    .review-slide {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        padding: 5px;
        min-height: 120px;
    }
    .review-slide img {
        width: 40px;
        height: 40px;
    }
    .review-slide .review-content p.quote {
        font-size: 0.8rem;
        min-height: 48px;
    }
    .review-slide .review-content p.author {
        font-size: 0.7rem;
    }
    .slideshow-container {
        min-height: 140px;
    }
}

.partners-wrapper {
    overflow: hidden;
    width: 100%;
}

.partners-scroller {
    display: flex;
    animation: scroll-right-to-left 20s linear infinite;
    width: 200%;
}

@keyframes scroll-right-to-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: 150px;
}

.partner-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.partner-item img:hover {
    transform: scale(1.1);
}

.partner-item p {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    color: #fef08a;
}

.partners-scroller > * {
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .partner-item {
        width: 120px;
    }
    .partner-item img {
        width: 60px;
        height: 60px;
    }
    .partner-item p {
        font-size: 0.7rem;
    }
    .partners-scroller {
        width: max-content;
        animation: scroll-right-to-left-mobile-partners 80s linear infinite;
    }
    @keyframes scroll-right-to-left-mobile-partners {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-100% + 120px));
        }
    }
}

.map-section iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
}

@media (max-width: 640px) {
    .map-section iframe {
        height: 300px;
    }
}

.contact-video video {
    width: 100%;
    height: 318px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
    .contact-video video {
        height: 203px;
    }
}

body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
}

.popup-content {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    max-width: 90%;
    max-height: 80vh;
    overflow: auto;
}

.popup-content img {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f43b47;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.popup-close:hover {
    background: #d32f2f;
}

.login-form {
    background: linear-gradient(135deg, #FFC796, #FF6B95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.login-form input {
    color: #000;
    width: 100%;
    padding: 12px 40px 12px 40px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    border-color: #fef08a;
}

.login-form button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
}

.login-form label, .login-form input::placeholder {
    color: #000 !important;
}

.error-message {
    color: #ff0000;
    font-size: 0.9rem;
    text-align: center;
    display: none;
    margin-bottom: 10px;
}

@media (max-width: 640px) {
    .login-form {
        padding: 20px;
    }
    .login-form input {
        padding: 10px 35px 10px 35px;
    }
    .login-form button {
        padding: 10px;
    }
    .login-form .flex.items-center {
        display: flex;
        align-items: center;
        white-space: nowrap;
    }
    .login-form .flex.items-center label {
        margin-left: 8px;
        font-size: 0.9rem;
    }
}

.registration-form {
    background: linear-gradient(135deg, #FFC796, #FF6B95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.registration-form input,
.registration-form select,
.registration-form textarea {
    color: #000;
}

.registration-form-container {
    height: auto;
	min-height: 600px; /* Optional: ensures container accommodates iframe */
}

.registration-form .notes-field textarea {
    height: 4rem;
}

.email-phone-row {
    display: flex;
    gap: 1rem;
}

.email-phone-row > div {
    flex: 1;
}

.payment-iframe {
    width: 100%;
    border: none;
    height: 1000px;
}

#qrCodeContainer {
    display: none;
    margin-top: 20px;
    text-align: center;
}

#qrCode {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    margin: 0 auto;
}

#qrCodeContainer p {
    margin-top: 10px;
    font-size: 1rem;
    color: #fef08a;
}

#qrCodeMessage {
    font-size: 1rem;
    color: #fef08a;
    margin-bottom: 10px;
}

#downloadRegistrations {
    margin-top: 20px;
    background: linear-gradient(135deg, #243949, #517fa4);
    border: 2px solid #fef08a;
    border-radius: 20px;
    color: #fff;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    display: none;
}

#downloadRegistrations.visible {
    display: inline-block;
}

#downloadRegistrations:hover {
    background: #8b4513;
    transform: scale(1.1);
}

@media (max-width: 640px) {
    .registration-form {
        padding: 15px;
    }
    #qrCode {
        width: 150px;
        height: 150px;
    }
    #qrCodeMessage {
        font-size: 0.9rem;
    }
    #downloadRegistrations {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

#courses .course-card-container {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: linear-gradient(135deg, #8B4513, #243949);
    color: #fff;
}

#courses .course-card-container img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

#courses .course-info {
    position: relative;
}

#courses .course-info h4 {
    position: absolute;
    top: -70px;
    right: 10px;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: right;
    color: #FFD700;
    z-index: 20;
}

#courses .course-info p {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

#courses .discount-circle {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: red;
    color: #fff;
    border-radius: 50%;
    padding: 5px 10px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 10;
}

#courses .price-container {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

#courses .original-price {
    text-decoration: line-through;
    color: #ccc;
}

#courses .discounted-price {
    font-weight: bold;
    font-size: 1.1rem;
}

#courses .rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

#courses .rating i {
    color: #facc15;
}

#courses .course-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    #courses .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    #courses .course-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.course-tabs .tab-content img {
    height: 100%;
    object-fit: cover;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #243949;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.prev:hover, .next:hover {
    background: #517fa4;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

/* Styles for learning-history section */
#learning-history {
    background: linear-gradient(135deg, #243949, #517fa4);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

#learning-history::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(36, 57, 73, 0.8), rgba(81, 127, 164, 0.8));
    z-index: 1;
}

#learning-history > * {
    position: relative;
    z-index: 2;
}

@media (max-width: 640px) {
    #learning-history {
        padding: 40px 0;
    }
}

#learning-history .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

#learning-history table {
    width: 100%;
    border-collapse: collapse;
}

#learning-history th, #learning-history td {
    padding: 0.75rem;
    border: 1px solid #fff;
}

#learning-history th {
    font-weight: 600;
    text-align: left;
}

#learning-history input {
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #fff;
}

#learning-history button {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}