/* 
   LCC Home Page Styles
   Using the centralized color scheme
   Enhanced with responsive text using clamp() and improved alignments
*/

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    max-width: 100vw;
    aspect-ratio: 16 / 9;
    color: var(--neutral-white);
    overflow: hidden;
}

.hero-section #homeHeroCarousel,
.hero-section #homeHeroCarousel .carousel-inner,
.hero-section #homeHeroCarousel .carousel-item {
    height: 100%;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: subtle-zoom 20s infinite alternate;
}

@keyframes subtle-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 3.5vw, 4rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fade-in 1s ease-out;
    line-height: 1.2;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.8rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    animation: fade-in 1.5s ease-out;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    animation: fade-in 2s ease-out;
    flex-wrap: wrap;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-ticker-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.7);
    padding: 0.5rem 0;
    z-index: 2;
}

/* Announcement Banner */
.announcement-banner {
    background-color: var(--primary-yellow);
    padding: 1rem 0;
    color: var(--neutral-dark);
}

.announcement-icon {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--neutral-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.announcement-text {
    font-weight: 500;
    font-size: clamp(0.9rem, 1vw + 0.5rem, 1.1rem);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    height: 100%;
}

/* About Section */
.about-section {
    background-color: #f1fdf6d7;
    padding: 5rem 0;
}

.about-stats {
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
    width: 100%;
}

.stat-item {
    padding: 1rem;
    border-radius: var(--border-radius-md);
    background-color: var(--neutral-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--primary-navy);
    line-height: 1.1;
}

.stat-label {
    font-size: clamp(0.8rem, 1vw + 0.3rem, 1rem);
    color: var(--neutral-dark);
    margin-top: 0.25rem;
}

.section-title {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--primary-navy);
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
    line-height: 1.2;
}

.section-subtitle {
    color: var(--neutral-dark);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    font-size: clamp(1rem, 1vw + 0.5rem, 1.2rem);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Programs Section */
.programs-section {
    padding: 5rem 0;
    background-color: azure;
}

.program-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    height: clamp(250px, 30vw, 300px);
    transition: var(--transition-base);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.program-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-image {
    transform: scale(1.1);
}

.program-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--neutral-white);
    padding: 2rem 1rem 1rem;
    text-align: center;
    transition: var(--transition-base);
}

.program-card:hover .program-info {
    padding-bottom: 2rem;
}

.program-info h5 {
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    font-weight: var(--font-weight-bold);
    font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.5rem);
}

/* Why Choose Us Section */
.why-choose-section {
    padding: 5rem 0;
    background-color: #f1fdf6d7;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition-base);
    text-align: center;
    background-color: #ffffff93;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: clamp(2rem, 3vw + 0.5rem, 2.5rem);
    color: var(--primary-navy);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h4 {
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
    font-weight: 600;
    color: var(--primary-navy);
    font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.4rem);
}

/* Campus Life Section */
.campus-life-section {
    padding: 5rem 0;
    background-color: azure;
}

.campus-card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    height: 100%;
    border: solid 1px var(--border-color);
}

.campus-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.campus-card-body {
    padding: 1.5rem;
}

.campus-card h4 {
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
    font-weight: 600;
    color: var(--primary-navy);
    font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.4rem);
}

.campus-card img {
    height: 300px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border: solid 1px var(--border-color);
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background-color: #dfffedd7;
}

.testimonial-card {
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition-base);
    background-color: #ffffff93;
}

.testimonial-image {
    height: 300px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border: solid 3px var(--border-color);
    margin-bottom: 1rem;
    border-radius: var(--border-radius-sm);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    position: relative;
    padding-top: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    font-size: clamp(0.9rem, 1vw + 0.4rem, 1.1rem);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h5 {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--primary-navy);
    font-size: clamp(1rem, 1.2vw + 0.4rem, 1.2rem);
}

.author-info p {
    color: var(--neutral-dark);
    font-size: clamp(0.8rem, 0.9vw + 0.3rem, 0.9rem);
}

/* News Section */
.news-section {
    padding: 5rem 0;
    background-color: azure;
}

/* Video Section */
.video-section {
    padding: 5rem 0;
    background-color: #f1fdf6d7;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Accreditation Section */
.accreditation-section {
    padding: 5rem 0;
    background-color: var(--neutral-light);
}

.accreditation-logo {
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition-base);
}

.accreditation-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Call to Action Section */
.cta-section {
    padding: 5rem 0;
    background: var(--gradient-navy);
    color: var(--neutral-white);
}

.cta-title {
    font-size: clamp(1.8rem, 3vw + 0.8rem, 2.5rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.2;
}

.cta-text {
    font-size: clamp(1rem, 1.2vw + 0.5rem, 1.2rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    flex-wrap: wrap;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1.5rem;
        font-size: clamp(0.9rem, 1vw + 0.5rem, 1.1rem);
    }
    
    .announcement-banner .row {
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 80%;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .announcement-banner .row {
        text-align: center;
        flex-direction: column;
    }
    
    .announcement-icon {
        margin-bottom: 0.5rem;
    }
    
    .announcement-banner .btn {
        margin-top: 0.5rem;
        width: 80%;
    }
    
    .program-card {
        height: clamp(200px, 50vw, 250px);
    }
    
    .feature-card, .testimonial-card, .campus-card {
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 80%;
        margin: 0 auto;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 50vh;
    }
    
    .announcement-banner .row {
        flex-direction: column;
        text-align: center;
    }
    
    .announcement-icon {
        margin-bottom: 0.5rem;
    }
    
    .announcement-text {
        margin-bottom: 0.5rem;
    }
}
