/* ========================================
   SOPHISTICATED LAYOUTS - WAJAHNI INSPIRED
   ======================================== */

/* ===== SECTION HEADER ===== */
.section-header-advanced {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    animation: fade-in 0.6s ease;
}

.section-title-main {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--black);
    animation: fade-in-up 0.6s ease forwards;
}

.section-title-main .highlight {
    color: var(--gold-dark);
}

.section-description {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fade-in-up 0.6s ease forwards;
    animation-delay: 0.2s;
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fade-in-up 0.6s ease forwards;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: translateX(0);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--gold-light);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(230, 194, 0, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 40px;
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(230, 194, 0, 0.2));
    transform: scale(1.1) rotate(5deg);
}

.card-number {
    font-size: 64px;
    font-weight: 800;
    color: var(--gold-light);
    margin-bottom: 16px;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--black);
}

.card-text {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, var(--black) 0%, var(--gray-800) 100%);
    border-radius: 24px;
    padding: 80px 60px;
    margin: 80px 0;
    color: var(--white);
    animation: fade-in 0.8s ease forwards;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    text-align: center;
}

.stat-item {
    animation: fade-in-up 0.6s ease forwards;
}

.stat-item:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(4) {
    animation-delay: 0.3s;
}

.stat-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
    padding: 80px 60px;
    background: var(--gray-100);
    border-radius: 20px;
    margin: 80px 0;
}

.partners-header {
    text-align: center;
    margin-bottom: 60px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 40px;
}

.partner-logo {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fade-in 0.6s ease forwards;
    cursor: pointer;
}

.partner-logo:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--gold);
    box-shadow: 0 16px 40px rgba(255, 215, 0, 0.15);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(60%);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

/* ===== MARQUEE PARTNERS ===== */
.partners-marquee {
    display: flex;
    gap: 40px;
    overflow: hidden;
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
}

.partners-track {
    display: flex;
    gap: 40px;
    animation: marquee 30s linear infinite;
    min-width: 100%;
}

.partner-marquee-item {
    flex: 0 0 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 12px;
    padding: 15px;
}

.partner-marquee-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ===== PROCESS STEPS ===== */
.process-section {
    padding: 80px 60px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step-card {
    position: relative;
    animation: fade-in-up 0.6s ease forwards;
}

.step-card:nth-child(2) {
    animation-delay: 0.1s;
}

.step-card:nth-child(3) {
    animation-delay: 0.2s;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.step-image {
    width: 100%;
    height: 200px;
    background: var(--gray-100);
    border-radius: 16px;
    margin: 24px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--black);
}

.step-description {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== UNIVERSITY CARDS ===== */
.university-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.university-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fade-in-up 0.6s ease forwards;
}

.university-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.university-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.university-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.university-card:hover .university-card-image img {
    transform: scale(1.1);
}

.university-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: var(--black);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.university-card-content {
    padding: 24px;
}

.university-card-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--black);
}

.university-card-location {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.university-card-programs {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.university-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.university-rating {
    display: flex;
    gap: 4px;
}

.university-rating .star {
    color: var(--gold);
    font-size: 14px;
}

.university-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--black);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.university-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

/* ===== INSTITUTION SELECTOR ===== */
.institution-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.institution-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fade-in 0.6s ease forwards;
}

.institution-card:hover,
.institution-card.active {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(230, 194, 0, 0.03));
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.15);
}

.institution-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.institution-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.institution-description {
    font-size: 13px;
    color: var(--gray-600);
}

/* ===== FEATURED SECTION ===== */
.featured-section {
    background: var(--white);
    border-radius: 20px;
    padding: 60px 40px;
    margin: 60px 0;
    border: 1px solid var(--gray-200);
}

.featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.featured-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
}

.featured-view-all {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--black);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.featured-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.3);
}

/* ===== ANIMATIONS FOR ELEMENTS ===== */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .section-title-main {
        font-size: 32px;
    }

    .stats-section {
        padding: 40px 30px;
    }

    .partners-section {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-title-main {
        font-size: 24px;
    }
}
