/* CSS Home Page Specific Styles */

/* Welcome Section with Logo */
.welcome-section {
    padding: 4rem 0;
    background-color: #ffffff;
    text-align: center;
}

.welcome-section .container {
    display: flex;
    flex-direction: column;
}

.welcome-section .css-logo {
    max-width: 300px;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    order: 3;
}

.welcome-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #FF6B00;
    margin-bottom: 1.5rem;
    order: 1;
}

.welcome-section p {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
    color: #4b5563;
    text-align: center;
    order: 2;
}

.button-container {
    margin-top: 2rem;
    text-align: center;
    order: 4;
}

/* Working Areas Section */
.working-areas-section {
    padding: 0;
    background-color: transparent;
}

.working-areas-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #FF6B00;
    text-align: center;
    margin-bottom: 1rem;
}

.working-areas-section > .container > p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    color: #4b5563;
    line-height: 1.8;
}

.css-infograph {
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.css-infograph-mobile {
    display: none;
}

.css-infograph-desktop {
    display: block;
}

/* Student Empowerment Section */
.empowerment-section {
    padding: 4rem 0;
    background-color: #FF6B35;
    color: white;
    text-align: center;
}

.empowerment-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.empowerment-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Featured Content Section */
.featured-content-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.featured-content-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #FF6B00;
    text-align: center;
    margin-bottom: 1rem;
}

.featured-content-section > .container > p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    color: #4b5563;
    line-height: 1.8;
}

.featured-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.featured-video-card {
    background-color: #ffffff;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    overflow: hidden;
}

.featured-video-card .video-wrapper {
    margin: 0;
}

.featured-video-card .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.featured-video-card .video-container:hover {
    transform: scale(1.02);
}

.featured-video-card .video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background-color: #000000;
}

.featured-video-card .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.featured-video-card .video-container:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.featured-video-card .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.featured-video-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FF6B00;
    margin-bottom: 0.5rem;
    padding: 1.5rem 1.5rem 0;
}

.featured-video-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 1.5rem 1.5rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.testimonials-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #FF6B00;
    text-align: center;
    margin-bottom: 1rem;
}

.testimonials-section > .container > p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    color: #4b5563;
    line-height: 1.8;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: #ffffff;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    overflow: hidden;
}

.testimonial-card .video-wrapper {
    margin-bottom: 0;
}

.testimonial-card .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.testimonial-card .video-container:hover {
    transform: scale(1.02);
}

.testimonial-card .video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background-color: #000000;
}

.testimonial-card .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.testimonial-card .video-container:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.testimonial-card .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.testimonial-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FF6B00;
    margin-bottom: 0.5rem;
    padding: 1.5rem 1.5rem 0;
}

.testimonial-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 1.5rem;
}

.testimonial-card p:last-child {
    padding-bottom: 1.5rem;
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background-color: #FF6B35;
    color: white;
}

.stats-section h2 {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-card:last-child {
    border-right: none;
}

.stat-card img {
    height: 30px;
    width: auto;
    margin: 0 auto 1rem;
    display: block;
}

.stat-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Societies Forums Section */
.societies-forums-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.societies-forums-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #FF6B00;
    text-align: center;
    margin-bottom: 1rem;
}

.societies-forums-section > .container > p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    color: #4b5563;
    line-height: 1.8;
}

.societies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.society-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.society-card:hover {
    transform: translateY(-5px);
}

.society-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center center;
    background-color: #ffffff;
}

.society-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #FF6B00;
    padding: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.society-card p {
    color: #6b7280;
    font-size: 0.9rem;
    padding: 0 1rem 1rem;
    line-height: 1.5;
    text-align: center;
}

.view-all-btn {
    text-align: center;
    margin-top: 2rem;
}

/* How to Join Section */
.how-to-join-section {
    padding: 4rem 0;
    background-color: #f9fafb;
}

.how-to-join-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #FF6B00;
    text-align: center;
    margin-bottom: 2rem;
}

.how-to-join-section p {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    color: #4b5563;
    line-height: 1.8;
    text-align: center;
}

/* Visual Stories Section */
.visual-stories-section {
    padding: 4rem 0;
    background-color: #ffffff;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.visual-stories-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #FF6B00;
    text-align: center;
    margin-bottom: 1rem;
}

.visual-stories-section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #4b5563;
    line-height: 1.8;
}

/* Carousel Styles - Stacked 3-Image Layout */
.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 3rem;
    overflow-x: hidden;
}

.carousel-wrapper {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 100px;
}

.carousel-track {
    position: relative;
    width: 700px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    background-color: #f9fafb;
}

/* Left slide - smaller and behind */
.carousel-slide.left {
    width: 400px;
    height: 300px;
    left: -150px;
    z-index: 1;
    opacity: 0.7;
    transform: scale(0.85);
}

.carousel-slide.left:hover {
    opacity: 0.9;
    transform: scale(0.88);
}

/* Center slide - large and in front */
.carousel-slide.center {
    width: 700px;
    height: 450px;
    left: 0;
    z-index: 3;
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* Right slide - smaller and behind */
.carousel-slide.right {
    width: 400px;
    height: 300px;
    right: -150px;
    left: auto;
    z-index: 1;
    opacity: 0.7;
    transform: scale(0.85);
}

.carousel-slide.right:hover {
    opacity: 0.9;
    transform: scale(0.88);
}

/* Hidden slides */
.carousel-slide.hidden {
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.carousel-nav:hover {
    background-color: #FF6B00;
    color: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.carousel-nav svg {
    width: 26px;
    height: 26px;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Dot Indicators */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #FF6B00;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background-color: rgba(255, 107, 0, 0.5);
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: #FF6B00;
    transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-section .css-logo {
        order: 4;
        margin-top: 3.5rem;
    }

    .welcome-section .button-container {
        order: 3;
    }

    .css-infograph-desktop {
        display: none;
    }

    .css-infograph-mobile {
        display: block;
    }

    .featured-videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card:nth-child(2n) {
        border-right: none;
    }

    .societies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hide cards 5-8 on mobile */
    .society-card:nth-child(n+5) {
        display: none;
    }

    /* Carousel responsive */
    .carousel-container {
        padding: 0 15px 3rem;
        max-width: 100%;
        overflow: hidden;
    }

    .carousel-wrapper {
        height: 380px;
        padding: 0 50px;
        overflow: hidden;
        max-width: 100%;
    }

    .carousel-track {
        width: 100%;
        max-width: 500px;
        height: 320px;
        margin: 0 auto;
    }

    .carousel-slide.center {
        width: 100%;
        max-width: 500px;
        height: 320px;
        left: 50%;
        transform: translateX(-50%);
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
        background-color: #f9fafb;
    }

    .carousel-slide.left,
    .carousel-slide.right {
        width: 280px;
        height: 200px;
    }

    .carousel-slide.left {
        left: -100px;
    }

    .carousel-slide.right {
        right: -100px;
        left: auto;
    }

    .carousel-nav {
        width: 45px;
        height: 45px;
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .welcome-section h2,
    .working-areas-section h2,
    .featured-content-section h2,
    .testimonials-section h2,
    .stats-section h2,
    .societies-forums-section h2,
    .how-to-join-section h2,
    .visual-stories-section h2 {
        font-size: 1.5rem;
        padding: 0 10px;
    }

    .welcome-section p,
    .working-areas-section > .container > p,
    .featured-content-section > .container > p,
    .testimonials-section > .container > p,
    .societies-forums-section > .container > p,
    .how-to-join-section p,
    .visual-stories-section p {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    .welcome-section .css-logo {
        max-width: 200px;
        margin-bottom: 1.5rem;
        order: 4;
    }

    .welcome-section .button-container {
        order: 3;
    }

    .societies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Hide cards 5-8 on mobile */
    .society-card:nth-child(n+5) {
        display: none;
    }

    .society-card img {
        height: 180px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        padding: 1.5rem 1rem;
    }

    .stat-card:last-child {
        border-bottom: none;
    }

    .stat-card img {
        height: 25px;
        margin-bottom: 0.75rem;
    }

    .stat-card p {
        font-size: 1rem;
    }

    /* Carousel mobile - Simplified for small screens */
    .carousel-container {
        padding: 0 10px 2.5rem;
        max-width: 100%;
        overflow: hidden;
    }

    .carousel-wrapper {
        height: 300px;
        padding: 0 45px;
        overflow: hidden;
        max-width: 100%;
    }

    .carousel-track {
        width: 100%;
        max-width: 100%;
        height: 220px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-slide.center {
        width: 90%;
        max-width: 280px;
        height: 220px;
        left: 50%;
        transform: translateX(-50%);
        position: relative;
    }

    .carousel-slide.center img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
        background-color: #f9fafb;
    }

    /* Hide side slides on very small screens to prevent overflow */
    .carousel-slide.left,
    .carousel-slide.right {
        display: none;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.9);
    }

    .carousel-nav svg {
        width: 22px;
        height: 22px;
    }

    .carousel-prev {
        left: 2px;
    }

    .carousel-next {
        right: 2px;
    }

    .carousel-dots {
        gap: 8px;
        margin-top: 1.5rem;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

/* Extra small mobile devices */
@media (max-width: 375px) {
    .welcome-section .css-logo {
        max-width: 180px;
    }

    .society-card h3,
    .testimonial-card h3 {
        font-size: 0.95rem;
    }

    .society-card p,
    .testimonial-card p {
        font-size: 0.85rem;
    }

    /* Carousel extra small */
    .carousel-wrapper {
        height: 280px;
        padding: 0 38px;
        overflow: hidden;
    }

    .carousel-track {
        width: 100%;
        max-width: 100%;
        height: 190px;
    }

    .carousel-slide.center {
        width: 85%;
        max-width: 250px;
        height: 190px;
    }

    .carousel-slide.center img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
        background-color: #f9fafb;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
    }

    .carousel-nav svg {
        width: 18px;
        height: 18px;
    }
}
