/* new-home.css */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #000000;
    --secondary: #7D2AE8;
    --accent: #7D2AE8;
    --light: #FFFFFF;
    --gray: #F5F5F5;
    --dark-gray: #333333;
    --text: #222222;
    --text-light: #666666;
    --border: #E5E5E5;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 8px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.accent {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--light);
}

.btn-primary:hover {
    background-color: #6a1fc9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--light);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--light);
}

.btn-full {
    width: 100%;
}

/* Navbar */
.navbar {
    background-color: var(--light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-img {
    height: 50px;
    margin-right: 10px;
}

.nav-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-link {
    padding: 20px 15px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.login-btn {
    background-color: var(--accent);
    color: var(--light);
    border-radius: var(--radius);
    margin-left: 10px;
}

.login-btn:hover {
    background-color: #6a1fc9;
    color: var(--light);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background-color: var(--gray);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* ================= HERO IMAGE SLIDER ================= */

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 500px; /* Taller for portrait */
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.hero-slide-track img {
    width: 50%;
    height: 100%;
    object-fit: contain; /* keeps proper fill */
}

.hero-slide-track {
    display: flex;
    width: 200%;
    height: 100%;
    animation: heroSlide 8s infinite;
}

/* Animation */
@keyframes heroSlide {
    0% { transform: translateX(0); }
    45% { transform: translateX(0); }
    50% { transform: translateX(-50%); }
    95% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: 420px;
        max-width: 100%;
    }

    #hero-desktop {
        display: none;
    }

    #hero-mobile {
        display: contents;
    }
}

#hero-mobile {
    display: none;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(125, 42, 232, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 30px;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.feature-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.feature-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.feature-link:hover i {
    transform: translateX(3px);
}

/* Courses Preview */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.course-card {
    background-color: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-level {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent);
    color: var(--light);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.course-content {
    padding: 20px;
}

.course-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.course-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.course-meta span {
    display: flex;
    align-items: center;
}

.course-meta i {
    margin-right: 5px;
}

.course-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

/* Testimonials */
.testimonials {
    background-color: var(--gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
}

.testimonial-content::before {
    content: "";
    font-size: 60px;
    color: rgba(125, 42, 232, 0.2);
    position: absolute;
    top: -20px;
    left: -10px;
    z-index: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.author-info span {
    font-size: 14px;
    color: var(--text-light);
}

/* CTA Section */
.cta {
    background-color: var(--primary);
    color: var(--light);
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cta-buttons .btn-secondary {
    color: var(--light);
    border-color: var(--light);
}

.cta-buttons .btn-secondary:hover {
    background-color: var(--light);
    color: var(--primary);
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: var(--light);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo h3 {
    font-size: 22px;
}

.footer-col p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent);
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--light);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-col ul li a:hover {
    opacity: 1;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    margin-top: 3px;
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--light);
    margin: 10% auto;
    padding: 30px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: var(--accent);
    outline: none;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.form-footer a {
    color: var(--accent);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    #hero-desktop {
        display: none;
    }

    #hero-mobile {
        display: contents;
    }

    .hero-slider {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--light);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-link {
        padding: 30px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links li {
        margin-top: 30px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        margin-bottom: 10px;
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .course-price {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .course-price .btn {
        margin-top: 10px;
        width: 100%;
    }
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
}

.member-image {
    width: 200px;
    height: auto;
    overflow: hidden;
    margin: 0 auto 20px;
}

.member-imagemfi img{
    width: 100px;
}

.member-image2 img {
    width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--accent);
}

.team-member h3 {
    margin-bottom: 5px;
}

.member-role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
}

/* Additional CSS for the new sliders */
    .slider-section {
        margin: 60px 0;
    }

    .slider-container {
        position: relative;
        overflow: hidden;
        margin-top: 16px;
        border-radius: 14px;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }

    .slider-track {
        display: flex;
        transition: transform 0.6s cubic-bezier(.2, .9, .2, 1);
    }

    .slider-slide {
        min-width: 100%;
        opacity: 0;
        transition: opacity 0.4s ease;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .slider-slide.active {
        opacity: 1;
    }

    /* Expo Images (9:16 Portrait) */
    #expo-slider .slider-slide {
        background: #f8f9fa;
        padding: 20px;
    }

    #expo-slider .slider-slide img {
        width: auto;
        max-width: 100%;
        height: 200px;
        object-fit: contain;
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .slide-caption {
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(15, 23, 42, 0.7);
        color: #ffffff;
        padding: 6px 14px;
        border-radius: 999px;
        font-size: 13px;
        backdrop-filter: blur(4px);
        white-space: nowrap;
    }

    .slider-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 22px;
        background: rgba(255, 255, 255, 0.825);
        color: #7D2AE8;
        border: none;
        cursor: pointer;
        padding: 4px 10px;
        border-radius: 999px;
        z-index: 10;
        transition: background 0.3s ease;
    }

    .slider-arrow:hover {
        background: rgba(15, 23, 42, 0.16);
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

    .slider-dots {
        text-align: center;
        margin-top: 10px;
    }

    .slider-dots button {
        width: 9px;
        height: 9px;
        border-radius: 999px;
        border: none;
        margin: 0 3px;
        background: rgba(15, 23, 42, 0.18);
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .slider-dots button.active {
        background: #7D2AE8;
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        /* Workshop Images on Mobile */
        #workshop-slider .slider-slide img {
            height: 300px;
        }

        /* Expo Images on Mobile */
        #expo-slider .slider-slide {
            padding: 10px;
        }

        #expo-slider .slider-slide img {
            height: 400px;
            max-width: 95%;
        }

        .slider-arrow {
            font-size: 18px;
            padding: 3px 8px;
        }

        .slide-caption {
            font-size: 12px;
            padding: 4px 10px;
        }
    }

    @media (max-width: 480px) {
        /* Workshop Images on Small Mobile */
        #workshop-slider .slider-slide img {
            height: 250px;
        }

        /* Expo Images on Small Mobile */
        #expo-slider .slider-slide img {
            height: 350px;
        }

        .slider-arrow {
            font-size: 16px;
            padding: 2px 6px;
        }

        .slider-prev {
            left: 5px;
        }

        .slider-next {
            right: 5px;
        }
    }

    /* For very tall expo images on desktop */
    @media (min-width: 1024px) {
        #expo-slider .slider-slide img {
            height: 550px;
        }
    }

/* ================= ASSOCIATION SLIDER (FIXED) ================= */

.slider-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    perspective: 1000px;
}

.slider-item {
    position: absolute;
    top: 50%;
    left: 50%;

    /* RESPONSIVE SIZE */
    width: 400px;
    aspect-ratio: 3 / 2;   /* ✅ consistent ratio */

    transform-origin: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);

    border-radius: 14px;
    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.slider-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;   /* ✅ logos stay correct */
}

/* CENTER ITEM */
.slider-item.center {
    transform: translate(-50%, -50%) scale(1.25);
    z-index: 10;
    border: 3px solid var(--accent);
    box-shadow: 0 25px 60px rgba(125, 42, 232, 0.35);
}

/* LEFT & RIGHT */
.slider-item.left {
    transform: translate(-170%, -50%) scale(0.85) rotateY(18deg);
    opacity: 0.85;
}

.slider-item.right {
    transform: translate(70%, -50%) scale(0.85) rotateY(-18deg);
    opacity: 0.85;
}

/* BACK ITEMS */
.slider-item.hidden {
    transform: translate(-50%, -50%) scale(0.55);
    opacity: 0.25;
    z-index: 1;
}

/* ================= MOBILE FIX ================= */
@media (max-width: 768px) {
    .slider-container {
        height: 400px !important;
    }

    .slider-item {
        height: 300px !important;
        width: 250px !important;
        aspect-ratio: 3 / 2;
        padding: 0% !important;
    }

    .slider-item.center {
        transform: translate(-50%, -50%) scale(1.15);
    }

    .slider-item.left {
        transform: translate(-150%, -50%) scale(0.75);
    }

    .slider-item.right {
        transform: translate(50%, -50%) scale(0.75);
    }
}

/* EXTRA SMALL */
@media (max-width: 480px) {
    .slider-container {
        height: 200px;
    }

    .slider-item {
        width: 130px;
        padding: 10px;
    }
}

/* STS Slider - Carousel Design */
.sts-slider {
    padding: 60px 0;
}

.carousel-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    height: 400px;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 40px 30px 30px;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.carousel-slide:hover .slide-overlay {
    transform: translateY(0);
}

.slide-overlay h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: white;
}

.slide-overlay p {
    font-size: 16px;
    opacity: 0.9;
}

/* Arrow buttons for STS Slider */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--accent);
    font-size: 24px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.carousel-arrow:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev-arrow {
    left: 30px;
}

.carousel-arrow.next-arrow {
    right: 30px;
}

/* Dots navigation for STS Slider */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dots button.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* Responsive styles */
@media (max-width: 768px) {
    .slider-container {
        height: 250px;
    }
    
    .slider-item {
        width: 160px;
        height: 100px;
    }
    
    .carousel-track {
        height: 300px;
    }
    
    .carousel-arrow {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .carousel-arrow.prev-arrow {
        left: 15px;
    }
    
    .carousel-arrow.next-arrow {
        right: 15px;
    }
    
    .slide-overlay {
        padding: 20px 15px 15px;
    }
    
    .slide-overlay h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 200px;
    }
    
    .slider-item {
        width: 120px;
        height: 80px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-track {
        height: 250px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}