.story-gd.prof {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Kolom pertama lebih besar */
    grid-template-rows: repeat(2, 1fr);
    /* 2 baris */
    gap: 10px;
    /* Jarak antar elemen */
}

.story-gd.prof img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Memastikan gambar terisi penuh */
    border-radius: 8px;
    /* Opsional, membuat sudut melengkung */
}

/* Aturan tata letak untuk setiap gambar */
.story-gd.prof img:nth-child(1) {
    grid-column: span 1;
    /* Gambar 1 mengisi kolom pertama */
    grid-row: span 2;
    /* Mengisi 2 baris vertikal */
}

.story-gd.prof img:nth-child(2) {
    grid-column: 2;
    /* Gambar 2 di kolom kedua */
    grid-row: 1;
    /* Baris pertama */
}

.story-gd.prof img:nth-child(3) {
    grid-column: 2;
    /* Gambar 3 di kolom kedua */
    grid-row: 2;
    /* Baris kedua */
}

.story-gd.prof img:nth-child(4) {
    grid-column: span 2;
    /* Gambar 4 mengisi seluruh lebar */
    grid-row: 3;
    /* Baris ketiga */
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .story-gd.prof {
        grid-template-columns: 1fr;
        /* 1 kolom */
        grid-template-rows: auto;
        /* Baris otomatis */
    }

    .story-gd.prof img:nth-child(1),
    .story-gd.prof img:nth-child(2),
    .story-gd.prof img:nth-child(3),
    .story-gd.prof img:nth-child(4) {
        grid-column: span 1;
        /* Semua gambar dalam satu kolom */
        grid-row: auto;
    }
}

/*  */
.story-gd.prof2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 kolom */
    grid-template-rows: auto;
    /* Tinggi otomatis berdasarkan konten */
    gap: 10px;
    /* Jarak antar elemen */
}

.story-gd.prof2 img {
    width: 100%;
    height: auto;
    /* Mengatur tinggi otomatis sesuai proporsi */
    object-fit: cover;
    /* Memastikan gambar terisi penuh */
    border-radius: 8px;
    /* Opsional untuk sudut melengkung */
}

/* Pengaturan tata letak khusus */
.story-gd.prof2 img:nth-child(1) {
    grid-column: span 2;
    /* Gambar pertama mengisi 2 kolom */
    grid-row: span 2;
    /* Mengisi 2 baris */
}

.story-gd.prof2 img:nth-child(2),
.story-gd.prof2 img:nth-child(3),
.story-gd.prof2 img:nth-child(4),
.story-gd.prof2 img:nth-child(5),
.story-gd.prof2 img:nth-child(6) {
    grid-column: span 1;
    /* Gambar lainnya mengisi 1 kolom */
    grid-row: span 1;
    /* Mengisi 1 baris */
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .story-gd.prof2 {
        grid-template-columns: 1fr;
        /* 1 kolom */
        grid-template-rows: auto;
        /* Baris otomatis */
    }

    .story-gd.prof2 img {
        grid-column: span 1;
        /* Semua gambar dalam satu kolom */
    }
}

.container2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.middle-section2 {
    text-align: center;
}

.title {
    font-size: 24px;
    font-weight: bold;
}

.subtitle {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
}

.portfolio {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.column2 {
    flex: 1;
    min-width: 300px;
}

.card {
    width: 100%;
        /* Pastikan card mengambil lebar penuh dalam grid */
        min-width: 280px;
        /* Hindari ukuran terlalu kecil */
        background: #fff;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge {
    position: absolute;
    top: -10px;
    left: 10px;
    background: #ffa500;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
}

.card h3 {
    margin: 20px 0 10px;
    font-size: 18px;
}

.card .year {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.card .location {
    font-size: 12px;
    color: #888;
}

iframe {
    flex: 1;
    /* Iframe akan menyesuaikan dengan ukuran div */
    width: 100%;
    /* Pastikan iframe memenuhi lebar div */
    height: 100%;
    /* Pastikan iframe memenuhi tinggi div */
    border: none;
    /* Opsional, untuk menghilangkan border iframe */
}

.team-info {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s ease-in-out;
    text-align: center;
}

.team-info:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    /* Bikin gambar jadi lingkaran */
    object-fit: cover;
    /* Supaya gambar tidak terpotong aneh */
    border: 5px solid #f1f1f1;
    /* Tambahkan border putih agar lebih elegan */
}

.name-pos {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-top: 10px;
}

.name-pos a {
    text-decoration: none;
    color: #333;
}

.name-pos a:hover {
    color: #ff8c00;
    /* Warna hover yang menarik */
}

.text-muted {
    font-size: 14px;
    color: #666;
}

/* Pastikan jarak antar kartu pas */
.item {
    margin-bottom: 30px;
}

.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.small-images img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .small-images img {
        width: 120px;
        height: 90px;
    }
}

.grid-container {
    display: grid;
    /* grid-template-columns: repeat(3, 1fr); */
    grid-template-columns: repeat(3, minmax(400px, 1fr));
    /* Maksimalkan ruang */
    gap: 20px;
    /* Beri jarak antar elemen */
    justify-content: center;
    /* Posisi tengah */
}
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        /* Jadi 2 kolom di tablet */
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(1, 1fr);
        /* Jadi 1 kolom di HP */
    }
}
