/* Home Page Specific Styles */

/* --- Hero Section Slider --- */
.hero-slider {
    position: relative;
    height: 600px;
    background: #000;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    /* or contain if they want full flyer, but cover is standard */
    background-position: center top;
    /* Focus on top (faces) */
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Reducing opacity from 0.8 to 0.4 to show the image better */
    background: linear-gradient(to right, rgba(11, 60, 140, 0.5), rgba(0, 0, 0, 0.2));
}

.slide.poster-slide {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #000;
}

/* Ensure overlay is visible for text readability, but maybe lighter? */
.slide.poster-slide::before {
    display: block;
    background: rgba(0, 0, 0, 0.4);
    /* Darker plain overlay for better text contrast/image visibility balance */
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--vikas-yellow);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Founder Section --- */
.founder-section {
    padding: 80px 0;
    background: var(--white);
}

.founder-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--light-gray);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.founder-img {
    flex: 0 0 300px;
    position: relative;
}

.founder-img img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    /* Prevent it from being too tall */
    object-fit: contain;
    /* Show full image without cropping */
    border-radius: 10px;
    border: 5px solid var(--white);
    box-shadow: var(--box-shadow);
    background: var(--white);
    /* White background for non-square images */
}

.founder-info h2 {
    font-size: 2rem;
    color: var(--vikas-blue);
    margin-bottom: 10px;
}

.founder-role {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--vikas-pink);
    margin-bottom: 20px;
    display: block;
}

.founder-text {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 20px;
    font-family: 'Roboto Slab', serif;
    /* Good for quotes/text */
}

/* Standardized Founder Image */
.founder-dual-img {
    width: 100%;
    height: 500px;
    /* Match user reference */
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
    border: 5px solid white;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.founder-dual-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(11, 60, 140, 0.15);
}

/* Founder Typography */
.founder-info {
    text-align: center;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.founder-name {
    color: var(--vikas-blue);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.founder-role {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--vikas-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--vikas-yellow);
    display: inline-block;
    padding-bottom: 5px;
}

.founder-quote-telugu {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #444;
    font-weight: 500;
    margin-bottom: 25px;
    font-style: italic;
    background: #fff9e6;
    padding: 15px;
    border-left: 4px solid var(--vikas-yellow);
    border-radius: 4px;
}

.founder-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* --- Programs Section --- */
.programs-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--vikas-blue) 0%, #1a237e 100%);
    color: var(--white);
}

.programs-section .section-title {
    color: var(--white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.program-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid var(--vikas-yellow);
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--vikas-blue);
}

.program-card h3 {
    font-size: 1.5rem;
    color: var(--vikas-blue);
    margin-bottom: 10px;
    font-weight: 700;
}

.program-card p {
    color: var(--gray-text);
}

/* --- Achievements Section --- */
.results-preview {
    padding: 80px 0;
    background: url('../images/pattern.png');
    /* If available, else white */
}

.results-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.result-card {
    background: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
}

.result-card img {
    width: 100%;
    height: 300px;
    /* Reducing height slightly */
    object-fit: cover;
    /* Cover crop to fill area */
    object-position: top;
    /* Focus on faces/top of image */
}

.result-info {
    padding: 15px;
    text-align: center;
}

.result-rank {
    background: var(--vikas-red);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.result-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--vikas-blue);
}

/* --- CTA Section --- */
.cta-section {
    padding: 60px 0;
    text-align: center;
    background: var(--vikas-yellow);
}

.cta-section h2 {
    color: var(--vikas-blue);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--dark-text);
    margin-bottom: 30px;
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    /* Uniform squares */
    border-radius: 8px;
    transition: transform 0.3s;
    border: 1px solid #ddd;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Contact Form --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-card,
.form-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--vikas-blue);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    transition: var(--transition);
}

/* Marquee Animation */
.marquee-track {
    display: flex;
    flex-direction: row;
    /* Horizontal Layout */
    gap: 30px;
    width: max-content;
    animation: scroll-horizontal 20s linear infinite;
    /* Adjust time for speed */
}

.marquee-item {
    width: 300px;
    flex-shrink: 0;
    display: inline-block !important;
    /* Force block to override any JS hiding */
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move left half way */
    }
}

/* Pause on hover */
.marquee-track:hover {
    animation-play-state: paused;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--vikas-blue);
    outline: none;
}