/* Home specific styles - Premium Google-Inspired UI */
.hero-section {
    position: relative;
    padding: 0;
    margin-top: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 60px;
    max-width: 500px;
    margin-inline: auto;
    line-height: 1.6;
}

/* Google Style Search Widget */
.search-widget {
    background: #ffffff;
    border-radius: 60px;
    padding: 12px 30px;
    box-shadow: 0 8px 24px rgba(32, 33, 36, 0.15);
    max-width: 950px;
    margin: 0 auto;
    position: absolute;
    bottom: -45px;
    left: 20px;
    right: 20px;
    transform: translateY(0);
    z-index: 10;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.search-widget:hover {
    box-shadow: 0 12px 36px rgba(32, 33, 36, 0.22);
}

.search-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-group {
    flex: 1;
    padding: 0 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.search-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-group label i {
    color: var(--primary-color);
    margin-right: 5px;
}

.search-group input,
.search-group select {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 5px 0;
    outline: none;
    cursor: pointer;
}

.search-group input::placeholder {
    font-weight: 500;
    color: var(--text-light);
}

.search-divider {
    width: 2px;
    height: 45px;
    background: #e8eaed;
    margin: 0 15px;
}

.search-btn {
    padding: 16px 40px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 50px;
    white-space: nowrap;
    background: var(--primary-color);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* Sections */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #0F172A;
}

.promo-section {
    margin-top: 100px;
    /* Space for absolute search widget */
    margin-bottom: 60px;
}

.promo-banner {
    background: var(--primary-gradient);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.promo-banner::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.promo-text h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.promo-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Cards */
.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Premium School Cards */
.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.school-card {
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.school-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -15px rgba(30, 41, 59, 0.12),
        0 0 20px -5px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.card-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f1f5f9;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.school-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 60%);
    opacity: 0.8;
}

.verified-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(245, 158, 11, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 8px 16px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 1px;
    box-shadow: 0 8px 16px -4px rgba(245, 158, 11, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 2;
    overflow: hidden;
}

.verified-badge::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -60%;
    }

    20% {
        left: 120%;
    }

    100% {
        left: 120%;
    }
}

.admissions-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 12px;
    z-index: 2;
}

.card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 8px;
}

.tag-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
}

.tag-indigo {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #e0e7ff;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.school-card:hover .card-title {
    color: #2563eb;
}

.card-location {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.card-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fee-info {
    display: flex;
    flex-direction: column;
}

.fee-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.fee-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.action-btn {
    width: 48px;
    height: 48px;
    background: #0f172a;
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.action-btn:hover {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
    .search-form {
        flex-direction: column;
        gap: 15px;
    }

    .search-group {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .search-divider {
        display: none;
    }

    .search-btn {
        width: 100%;
        margin-top: 10px;
    }

    .search-widget {
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(30px);
        margin: 0 20px;
    }

    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    .hero-section {
        padding-top: 120px;
        padding-bottom: 60px;
    }
}

/* New Animations */
@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 4s ease-in-out infinite;
}

.animate-fade-in {
    animation: fade-in 1s ease-out forwards;
}

/* Custom Scrollbar for subtle premium feel */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
    border: 3px solid #f8fafc;
}

::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Problem/Solution Story Section Utilities */
.shadow-premium {
    box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.1);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}