/* COMPLETE REDESIGN - Modern & Engaging Style */

/* Hero Section - New Design */
.kkn-hero-new {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.kkn-hero-new::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    top: -250px;
    right: -250px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem;
    border-radius: 24px;
    text-align: center;
}

.hero-card i {
    font-size: 5rem;
    color: #10b981;
    margin-bottom: 1.5rem;
}

.hero-card h4 {
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
}

/* About KKN Section */
.about-kkn {
    padding: 8rem 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    background: white;
    padding: 2rem;
}

.about-content {
    padding-right: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #64748b;
    margin-bottom: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: #475569;
}

.feature-item i {
    color: #10b981;
    font-size: 1.3rem;
}

/* Programs Showcase - New Layout */
.programs-new {
    padding: 8rem 0;
    background: #f8fafc;
}

.programs-showcase {
    margin-top: 4rem;
}

.program-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.program-item-new {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    position: relative;
    border: 2px solid transparent;
}

.program-item-new.large {
    padding: 4rem;
}

.program-item-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: #10b981;
}

.program-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(16, 185, 129, 0.08);
}

.program-icon-new {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);
}

.program-icon-new.small {
    width: 60px;
    height: 60px;
}

.program-icon-new i {
    font-size: 2.2rem;
    color: white;
}

.program-icon-new.small i {
    font-size: 1.8rem;
}

.program-item-new h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.program-item-new.large h3 {
    font-size: 1.8rem;
}

.program-item-new p {
    color: #64748b;
    line-height: 1.8;
    font-size: 1.05rem;
}

.program-impact {
    margin-top: 1.5rem;
}

.impact-tag {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.programs-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Supervisor - New Design */
.supervisor-new {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.supervisor-wrapper {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 6rem;
    align-items: center;
}

.label-tag {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.supervisor-name {
    font-size: 3.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.supervisor-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: #475569;
}

.detail-item i {
    color: #10b981;
    font-size: 1.2rem;
}

.supervisor-bio {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #64748b;
}

.supervisor-photo {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.supervisor-photo img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.photo-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.photo-badge i {
    font-size: 1.2rem;
}

/* Team Grid - Card Design */
.team-new {
    padding: 8rem 0;
    background: white;
}

.team-grid-new {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
    grid-auto-flow: row;
    /* Disable dense packing */
}

/* Row 1: Cards 1-3 (Executives) - Centered in columns 2-4 */
.team-grid-new .member-card:nth-child(1) {
    grid-column: 2;
    grid-row: 1;
}

.team-grid-new .member-card:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
}

.team-grid-new .member-card:nth-child(3) {
    grid-column: 4;
    grid-row: 1;
}

/* Row 2: Cards 4-8 (Full row of 5) */
.team-grid-new .member-card:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
}

.team-grid-new .member-card:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
}

.team-grid-new .member-card:nth-child(6) {
    grid-column: 3;
    grid-row: 2;
}

.team-grid-new .member-card:nth-child(7) {
    grid-column: 4;
    grid-row: 2;
}

.team-grid-new .member-card:nth-child(8) {
    grid-column: 5;
    grid-row: 2;
}

/* Row 3: Cards 9-13 (Full row of 5) */
.team-grid-new .member-card:nth-child(9) {
    grid-column: 1;
    grid-row: 3;
}

.team-grid-new .member-card:nth-child(10) {
    grid-column: 2;
    grid-row: 3;
}

.team-grid-new .member-card:nth-child(11) {
    grid-column: 3;
    grid-row: 3;
}

.team-grid-new .member-card:nth-child(12) {
    grid-column: 4;
    grid-row: 3;
}

.team-grid-new .member-card:nth-child(13) {
    grid-column: 5;
    grid-row: 3;
}


.member-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    border-color: #10b981;
}


.member-photo {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.member-card:hover .member-photo img {
    transform: scale(1.08);
}

.role-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.role-badge.koordinator {
    background: #10b981;
}

.member-info {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    /* Ensure consistent card height */
}

.member-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.member-nim {
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    height: 1.35rem;
    /* Fixed height */
}

.member-major {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    flex-grow: 1;
    /* Push social icons to bottom */
    min-height: 1.4rem;
}

.member-social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: auto;
    /* Always at bottom */
}

.member-social a {
    width: 38px;
    height: 38px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1rem;
    transition: all 0.3s;
}

.member-social a:hover {
    background: #10b981;
    color: white;
    transform: translateY(-3px);
}

/* CTA Section - New */
.cta-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.cta-box {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    align-items: center;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.9;
}

.cta-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-badge i {
    font-size: 2.5rem;
    color: white;
}

.info-badge div {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-badge strong {
    color: white;
    font-size: 1.1rem;
}

.info-badge span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* Section Headers - New Style */
.section-header-new {
    margin-bottom: 3rem;
}

.section-header-new.centered {
    text-align: center;
}

.section-title-new {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-subtitle-new {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-visual {
        display: none;
    }

    /* Tablet: Change to 3 columns, reset explicit positioning */
    .team-grid-new {
        grid-template-columns: repeat(3, 1fr);
    }

    /* CRITICAL FIX: Reset all explicit grid positioning to allow natural flow */
    .team-grid-new .member-card {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .programs-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {

    .about-grid,
    .supervisor-wrapper,
    .cta-box {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image img,
    .supervisor-photo img {
        height: auto;
        max-height: 500px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .supervisor-name {
        font-size: 2.5rem;
    }

    /* Mobile Landscape: 2 columns */
    .team-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }

    .program-featured {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .kkn-hero-new {
        padding: 6rem 0 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title-new {
        font-size: 2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    /* Mobile: 1 column */
    .team-grid-new,
    .programs-grid-new {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .info-badge {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .supervisor-photo img {
        height: 350px;
    }
}