/* ============================================================
   CUSTOM CSS - IC-AnBioS
   Tema: Prestige (Leconfe)
   Deskripsi: Menyeragamkan tampilan, merapikan layout,
              dan menyesuaikan dengan saran perbaikan.
   ============================================================ */

/* ------------------------------------------------------------
   1. PENGATURAN UMUM & TIPOGRAFI
   ------------------------------------------------------------ */
/* Samakan font seluruh halaman dengan font menu */
body, .content, .about-content, .review-process, .payment-info,
.schedule, .committee, .scope, .keynote-speakers {
    font-family: inherit !important;
    color: #333 !important;
    line-height: 1.7 !important;
    font-size: 1rem !important;
}

/* Hilangkan bold yang tidak perlu di About dan halaman teks */
.about-content strong,
.about-content b,
.review-process strong,
.review-process b {
    font-weight: normal !important;
}

/* Perbaiki spasi koma dan kurung */
p, li, div {
    word-spacing: normal !important;
}

/* ------------------------------------------------------------
   2. HEADER / HOME
   ------------------------------------------------------------ */
/* Sembunyikan tulisan Conference Dates dan Conference Venue jika masih ada */
.conference-dates, .conference-venue,
[class*="conference-date"], [class*="conference-venue"] {
    display: none !important;
}

/* Pusatkan foto pembicara di Home */
.speaker-image img,
.speakers img,
.keynote-speaker img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
}

/* ------------------------------------------------------------
   3. ABOUT
   ------------------------------------------------------------ */
/* Samakan font About dengan menu */
.about-content {
    font-family: inherit !important;
}

/* ------------------------------------------------------------
   4. SPEAKERS / KEYNOTE SPEAKERS
   ------------------------------------------------------------ */
/* Pusatkan foto pembicara */
.speaker-card img,
.keynote-speaker img,
.speakers-list img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 200px !important;
    height: auto !important;
    border-radius: 50% !important; /* foto bulat, opsional */
}

/* ------------------------------------------------------------
   5. SCOPE
   ------------------------------------------------------------ */
/* Tambahkan jarak antar item scope */
.scope-list li {
    margin-bottom: 0.5rem !important;
}

/* ------------------------------------------------------------
   6. SCHEDULE ACTIVITIES
   ------------------------------------------------------------ */
/* Buat tabel schedule center dan responsif */
.schedule-table,
.table-schedule,
table.schedule {
    margin: 0 auto !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
}

/* Beri lebar minimal pada kolom waktu agar tidak terpotong */
.schedule-table td:first-child,
.schedule-table th:first-child,
.table-schedule td:first-child,
.table-schedule th:first-child {
    min-width: 100px !important;
    white-space: nowrap !important;
}

/* Semua sel tabel center */
.schedule-table th,
.schedule-table td,
.table-schedule th,
.table-schedule td {
    text-align: center !important;
    vertical-align: middle !important;
    padding: 0.75rem !important;
    border: 1px solid #dee2e6 !important;
}

/* Bungkus tabel dengan overflow-x auto untuk mobile */
.table-responsive {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* ------------------------------------------------------------
   7. COMMITTEE
   ------------------------------------------------------------ */
/* Buat dua kolom untuk SC dan Organizing Committee */
.committee-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2rem !important;
    justify-content: center !important;
}

.committee-column {
    flex: 1 1 45% !important;
    min-width: 300px !important;
}

.committee-column h3 {
    text-align: center !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #0056b3 !important;
    margin-bottom: 1rem !important;
    text-transform: uppercase !important;
}

.committee-column ul {
    list-style: none !important;
    padding: 0 !important;
    text-align: center !important;
}

.committee-column ul li {
    margin-bottom: 0.5rem !important;
}

/* ------------------------------------------------------------
   8. REVIEW PROCESS
   ------------------------------------------------------------ */
/* Atur flowchart agar center */
.review-process img,
.review-flowchart img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Rapikan paragraf di review process */
.review-process p {
    text-align: justify !important;
    margin-bottom: 1rem !important;
}

/* ------------------------------------------------------------
   9. PAYMENT
   ------------------------------------------------------------ */
/* Tampilkan info bank dengan rapi */
.payment-info {
    font-family: inherit !important;
    background-color: #f8f9fa !important;
    padding: 1.5rem !important;
    border-radius: 8px !important;
    border-left: 4px solid #0056b3 !important;
    margin: 1rem 0 !important;
}

.payment-info strong {
    font-weight: 600 !important;
    color: #0056b3 !important;
}

/* ------------------------------------------------------------
   10. FOOTER
   ------------------------------------------------------------ */
/* Sembunyikan iframe peta di footer */
.footer iframe,
footer iframe,
iframe[src*="google.com/maps"],
iframe[src*="maps.google"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Atur footer menjadi 3 kolom */
.footer .grid,
footer .grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Styling footer */
.footer, footer {
    background-color: #f8f9fa !important;
    color: #333 !important;
    padding: 2.5rem 1.5rem !important;
    border-top: 3px solid #0056b3 !important;
    margin-top: 3rem !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    clear: both !important;
}

/* Judul kolom footer */
.footer h4, footer h4 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #0056b3 !important;
    margin-bottom: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Daftar di footer */
.footer ul, footer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer ul li, footer ul li {
    margin-bottom: 0.4rem !important;
    color: #444 !important;
}

/* Link di footer */
.footer a, footer a {
    color: #0056b3 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.footer a:hover, footer a:hover {
    color: #003d80 !important;
    text-decoration: underline !important;
}

/* ------------------------------------------------------------
   11. MAPS - HANYA MUNCUL DI HOME
   ------------------------------------------------------------ */
/* Catatan: CSS tidak bisa mendeteksi URL secara langsung.
   Jika tema menambahkan class 'home' pada <body>, gunakan kode di bawah.
   Jika tidak, gunakan JavaScript atau pindahkan peta ke section khusus Home. */

/* Sembunyikan peta di semua halaman */
body:not(.home) .map-container,
body:not(.home) iframe[src*="google.com/maps"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Tampilkan peta hanya di Home */
body.home .map-container,
body.home iframe[src*="google.com/maps"] {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
}

/* ------------------------------------------------------------
   12. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    .footer .grid, footer .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        max-width: 100% !important;
    }

    .footer, footer {
        padding: 1.5rem 1rem !important;
    }

    .footer h4, footer h4 {
        font-size: 1rem !important;
    }

    .committee-container {
        flex-direction: column !important;
    }

    .committee-column {
        flex: 1 1 100% !important;
    }

    .schedule-table td:first-child,
    .schedule-table th:first-child {
        min-width: 80px !important;
    }
}

/* ------------------------------------------------------------
   13. TAMBAHAN: FOTO TERNAK / GALERI
   ------------------------------------------------------------ */
.gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1rem !important;
    margin: 2rem 0 !important;
}

.gallery img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    object-fit: cover !important;
}

/* ------------------------------------------------------------
   14. SEMBUNYIKAN BRANDING LECONFE (OPSIONAL)
   ------------------------------------------------------------ */
/* Hapus komentar di bawah jika ingin menghilangkan tulisan "Leconfe - Academic Conference Platform" */
/*
.footer > div:last-child:contains("Leconfe"),
footer > div:last-child:contains("Academic Conference Platform") {
    display: none !important;
}
*/