/* ==========================================================================
   Home Page Specific Styles
   ========================================================================== */

/* Hero Section */
.hero-section {
    position: relative;
    height: 75vh;
    min-height: 550px;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    background-attachment: fixed;
    padding-top: 0; /* Nav space is handled by header-wrapper */
}

@media (max-width: 991px) {
    .hero-section {
        background-attachment: scroll;
        height: auto;
        padding: 60px 0;
        min-height: 500px;
    }
}

/* Admission Popup Style */
.admission-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.admission-popup.show {
    display: flex;
    opacity: 1;
}

.popup-content {
    max-width: 600px;
    width: 100%;
    position: relative;
    background: white;
    padding: 10px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.admission-popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: var(--primary-yellow);
    border: none;
    border-radius: 50%;
    color: black;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 2;
    transition: all 0.3s ease;
}

.popup-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: white;
}

.popup-body img {
    border-radius: 15px;
    width: 100%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--white);
    transform: skewY(-2deg);
    z-index: 10;
}

.hero-subtitle {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(250, 204, 21, 0.2);
    color: var(--primary-yellow);
    font-weight: 700;
    border-radius: 30px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--white);
    text-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.hero-title span {
    color: var(--primary-yellow);
}

.hero-desc {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 650px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.8;
}

/* Feature Cards (About Preview) */
.feature-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border-bottom: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.05) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary-yellow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #F59E0B 100%);
    color: var(--primary-dark);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(250, 204, 21, 0.3);
    transform: rotate(-5deg);
}

.feature-card:hover .feature-icon {
    transform: rotate(0deg) scale(1.1);
}

/* Why Choose Us */
.why-choose-section {
    background-color: var(--bg-gray);
    position: relative;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary-yellow);
}

.benefit-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #F59E0B 100%);
    color: var(--primary-dark);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    transition: all 0.3s ease;
    transform: rotate(5deg);
}

.benefit-item:hover .benefit-icon {
    transform: rotate(0deg) scale(1.05);
}

/* Counters */
.counter-section {
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)), url('https://images.unsplash.com/photo-1541829070764-84a7d30dd3f3?q=80&w=2069&auto=format&fit=crop') center/cover no-repeat;
    background-attachment: fixed;
    color: var(--white);
    padding: 100px 0;
}

@media (max-width: 991px) {
    .counter-section {
        background-attachment: scroll;
    }
}

.counter-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(250, 204, 21, 0.3);
}

.counter-icon {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.4));
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.counter-title {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.8;
}

/* Facilities */
.facility-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.facility-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.facility-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(31, 41, 55, 0.9), transparent);
    color: var(--white);
}

.facility-card:hover {
    box-shadow: var(--shadow-hover);
}

.facility-card:hover .facility-img {
    transform: scale(1.05);
}

/* Testimonials */
.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    position: relative;
    margin-top: 30px;
}

.testimonial-icon {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-yellow);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
    margin-top: 10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h5 {
    margin: 0;
    font-size: 1.1rem;
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
