﻿/* Homepage Specific Styles */

/* Remove any spacing from body/html for homepage */
body {
    margin: 0 !important;
    padding: 0 !important;
}

.content-section {
    padding: 0 !important;
    margin: 0 !important;
}

/* Full Section Scrolling - REMOVED min-height constraint */
.home-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

/* Section 1: Hero Banner Slider */
.hero-slider-section {
    padding: 0 !important;
    position: relative;
    width: 100%;
    margin: 0 !important;
    margin-top: 0 !important;
}

.hero-slide {
    display: none;
    height: 560px;
    align-items: stretch;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 39, 180, 0.85) 0%, rgba(123, 45, 158, 0.75) 100%);
    z-index: 1;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 80px;
    position: relative;
    z-index: 2;
    height: 100%;
}

.hero-text {
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-text p {
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.hero-btn-primary {
    background: white;
    color: #0e27b4fa;
}

.hero-btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero-btn-secondary:hover {
    background: white;
    color: #0e27b4fa;
}

.hero-images {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-end;
    overflow: visible;
}

.hero-image-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 115%;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-image-bottom img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
}

.hero-image-top {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40%;
    height: auto;
    z-index: 3;
}

.hero-image-top img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.hero-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

/* Hero Navigation Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    color: white;
    font-size: 20px;
}

.hero-arrow:hover {
    background: rgba(255,255,255,0.4);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow-left {
    left: 30px;
}

.hero-arrow-right {
    right: 30px;
}

/* Section 2: Events & Spotlight */
.events-spotlight-section {
    background: #f8f9fa;
}

.events-spotlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    padding: 60px 20px;
}

.events-column, .spotlight-column {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 600px;
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #0e27b4fa;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    font-size: 32px;
}

.events-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    max-height: 500px;
    scroll-behavior: smooth;
}

.events-list::-webkit-scrollbar {
    width: 6px;
}

.events-list::-webkit-scrollbar-thumb {
    background: #0e27b4fa;
    border-radius: 3px;
}

.event-item {
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #0e27b4fa;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.event-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    text-decoration: none;
}

.event-date {
    font-size: 13px;
    color: #0e27b4fa;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.event-date i {
    font-size: 16px;
    color: #0e27b4fa;
}

.event-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.spotlight-slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.spotlight-track {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease;
    height: 100%;
}

.spotlight-item {
    min-height: 100%;
    height: 500px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spotlight-image {
    width: 100%;
    height: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.spotlight-name {
    text-align: center;
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-transform: capitalize;
}

.spotlight-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.spotlight-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0e27b4fa;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.spotlight-btn:hover {
    background: #0a1d8a;
    transform: scale(1.1);
}

.view-more-btn {
    margin-top: 15px;
    padding: 10px 24px;
    background: #0e27b4fa;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.view-more-btn:hover {
    background: #0a1d8a;
    transform: translateY(-2px);
}

/* Section 6: Counters & Collaborations */
.counters-section {
    background: linear-gradient(135deg, rgba(14, 39, 180, 0.05) 0%, rgba(123, 45, 158, 0.05) 100%);
    min-height: auto !important;
}

.counters-container {
    max-width: 1400px;
    padding: 60px 20px;
    margin: 0 auto;
}

.video-section {
    text-align: center;
    margin-bottom: 50px;
}

.video-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: #0e27b4fa;
    margin-bottom: 20px;
}

.video-section p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.video-wrapper video {
    width: 100%;
    height: auto;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin: 50px 0;
}

.counter-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.counter-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.counter-icon {
    font-size: 48px;
    color: #0e27b4fa;
    margin-bottom: 15px;
}

.counter-number {
    font-size: 42px;
    font-weight: 700;
    color: #0e27b4fa;
    margin-bottom: 10px;
}

.counter-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.collaborations-section {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.collaboration-slider {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
}

.collaboration-slider h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0e27b4fa;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.collab-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
}

.collab-track::-webkit-scrollbar {
    height: 6px;
}

.collab-track::-webkit-scrollbar-thumb {
    background: #0e27b4fa;
    border-radius: 3px;
}

.collab-logo {
    flex: 0 0 auto;
    width: 150px;
    height: 100px;
    object-fit: contain;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.collab-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Section 7: Admissions */
.admissions-section {
    background: white;
}

.admissions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    padding: 60px 20px;
    align-items: center;
}

.admissions-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.admissions-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.admissions-form h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0e27b4fa;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0e27b4fa;
    box-shadow: 0 0 0 3px rgba(14, 39, 180, 0.1);
}

.form-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #0e27b4fa;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: #0a1d8a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Section 11: Testimonials */
.testimonials-section {
    background: linear-gradient(135deg, #0e27b4fa 0%, #7b2d9e 100%);
    color: white;
}

.testimonials-container {
    max-width: 1200px;
    padding: 60px 20px;
}

.testimonials-container h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 40px;
    text-align: center;
}

.testimonial-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 5px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.testimonial-text {
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 25px;
}

.testimonial-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.testimonial-course {
    font-size: 16px;
    opacity: 0.9;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.testimonial-dot.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .hero-content {
        padding: 0 60px;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-text p {
        font-size: 15px;
    }
    
    .counters-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .counters-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-slide {
        height: auto;
        min-height: 420px;
    }
    
    .hero-content {
        grid-template-columns: 55% 45%;
        gap: 0;
        padding: 0 30px;
        height: auto;
        min-height: 420px;
    }
    
    .hero-text {
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-images {
        height: 100%;
    }
    
    .hero-image-bottom {
        height: 110%;
    }
    
    .hero-image-top {
        width: 45%;
        top: 20px;
        right: 20px;
    }
    
    .events-spotlight-grid,
    .admissions-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .counter-item {
        padding: 20px 15px;
    }
    
    .counter-icon {
        font-size: 36px;
    }
    
    .counter-number {
        font-size: 32px;
    }
    
    .counter-label {
        font-size: 13px;
    }
    
    .events-column, .spotlight-column {
        height: auto;
    }
    
    .video-section h2 {
        font-size: 28px;
    }
    
    .video-section p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        height: auto !important;
        min-height: 0;
        overflow: visible;
    }

    /* Stack everything vertically: text on top, images below */
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        padding: 0;
        gap: 0;
        height: auto;
        align-items: stretch;
        min-height: 0;
    }

    /* TEXT — top, full width, visible over the gradient */
    .hero-text {
        order: 1;
        padding: 20px 16px 12px;
        text-align: center;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: white !important;
        position: relative;
        z-index: 5;
    }

    .hero-text h1 {
        font-size: clamp(16px, 5vw, 22px);
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .hero-text p {
        font-size: clamp(12px, 3.5vw, 14px);
        margin-bottom: 12px;
        line-height: 1.5;
    }

    .hero-buttons {
        display: none;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* IMAGES — below text */
    .hero-images {
        order: 2;
        position: relative;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        height: 240px;
        width: 100%;
        overflow: visible;
    }

    /* Badge/logo — top of images block */
    .hero-image-top {
        position: absolute;
        top: 0;
        right: 10px;
        width: 70px;
        height: auto;
        z-index: 3;
    }

    .hero-image-top img {
        width: 100%;
        height: auto;
        max-height: 70px;
        object-fit: contain;
    }

    /* Main person/group photo — fills bottom */
    .hero-image-bottom {
        position: absolute !important;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        height: 100% !important;
        z-index: 2;
        display: block !important;
        visibility: visible !important;
    }

    .hero-image-bottom img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        object-position: bottom center;
        display: block !important;
    }

    .hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .hero-arrow-left { left: 8px; }
    .hero-arrow-right { right: 8px; }
    
    .counters-container {
        padding: 40px 20px;
    }
    
    .video-section h2 {
        font-size: 24px;
    }
    
    .video-section p {
        font-size: 14px;
    }
    
    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .counter-item {
        padding: 15px 10px;
    }
    
    .counter-icon {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .counter-number {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    .counter-label {
        font-size: 11px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .collaboration-slider {
        padding: 20px;
    }
    
    .collaboration-slider h3 {
        font-size: 18px;
    }
    
    .collab-logo {
        width: 100px;
        height: 70px;
    }
}

/* ── Mobile: force hero-image-bottom visible ── */
@media (max-width: 768px) {
    .hero-images {
        height: 240px !important;
        width: 100% !important;
        position: relative !important;
        display: flex !important;
        overflow: visible !important;
    }

    .hero-image-bottom {
        display: block !important;
        visibility: visible !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 2 !important;
    }

    .hero-image-bottom img {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: bottom center !important;
    }
}
