/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #0c1929 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="2"/></svg>') repeat;
    background-size: 200px 200px;
    animation: floatBg 20s linear infinite;
}

@keyframes floatBg {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

.cta-section h2 {
    font-size: 2.2rem;
    position: relative;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.cta-buttons {
    gap: 15px;
}

.btn-donate {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    padding: 14px 35px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-donate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-outline-light-custom {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 12px 33px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

.btn-media {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    padding: 14px 35px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-media:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.cta-icon {
    font-size: 1.3em;
}

/* ===== MARQUEE TEXT ANIMATION ===== */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 12s linear infinite;
}

.marquee-text:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* ===== FOOTER FULL WIDTH ===== */
footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 60px 0 30px;
    margin-top: 60px;
}

footer .container-fluid {
    max-width: 100%;
}

footer h5, footer h6 {
    color: #ffffff;
}

footer a {
    color: #cbd5e1;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #3b82f6;
}

footer .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

footer .social-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

footer .social-icon:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ===== RESET ===== */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f6f9;
}

.sidebar-stats {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-top: 15px;
    font-size: 14px;
}

.sidebar-stats h6 {
    font-weight: bold;
    margin-bottom: 10px;
}

/* ===== CAROUSEL STYLES ===== */
.carousel-section {
    position: relative;
    overflow: hidden;
}

.carousel-img {
    height: 60vh;
    min-height: 400px;
    max-height: 700px;
    object-fit: cover;
    object-position: center;
    transition: transform 6s ease-in-out;
    transform: scale(1);
}

/* Ken Burns Effect - Zoom In Animation */
.carousel-item.active .carousel-img {
    animation: kenBurnsIn 6s ease-in-out forwards;
}

.carousel-item:not(.active) .carousel-img {
    transform: scale(1.1);
}

@keyframes kenBurnsIn {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(2%, 1%);
    }
}

/* Alternative Ken Burns - Pan Right Animation */
@keyframes kenBurnsPanRight {
    0% {
        transform: scale(1.1) translateX(-2%);
    }
    100% {
        transform: scale(1.15) translateX(2%);
    }
}

/* Smooth carousel transitions */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev {
    opacity: 1;
}

.carousel-fade .carousel-item.active:not(.carousel-item-start),
.carousel-fade .carousel-item.active:not(.carousel-item-end),
.carousel-fade .carousel-item-next:not(.carousel-item-start),
.carousel-fade .carousel-item-prev:not(.carousel-item-end) {
    transform: none;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px 30px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
    left: 0;
    right: 0;
}

.carousel-caption h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 1rem;
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    margin: 0 5px !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    background-size: 50%;
}

/* Responsive carousel */
@media (max-width: 768px) {
    .carousel-img {
        height: 40vh;
        min-height: 300px;
    }
    
    .carousel-caption {
        padding: 10px 15px;
    }
    
    .carousel-caption h2 {
        font-size: 1.3rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
        display: none;
    }
}

@media (max-width: 576px) {
    .carousel-img {
        height: 30vh;
        min-height: 250px;
    }
}

/* ===== LAYOUT ===== */
.layout {
    display: flex;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 250px;
    height: 100vh;
    background: #1e293b;
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    padding-top: 20px;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar .menu {
    list-style: none;
    padding: 0;
}

.sidebar .menu li {
    padding: 12px 20px;
}

.sidebar .menu li a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
}

.sidebar .menu li a:hover {
    background: #334155;
    border-radius: 6px;
    color: white;
}

/* ===== TOPBAR ===== */
.topbar {
    position: fixed;
    left: 250px;
    top: 0;
    right: 0;
    height: 60px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ===== CONTENT ===== */
.content {
    margin-left: 250px;
    margin-top: 60px;
    padding: 30px;
    width: 100%;
}

/* ===== CARD STAT ===== */
.stat-card {
    padding: 20px;
    border-radius: 10px;
    color: white;
}

.bg-gradient-primary {
    background: linear-gradient(45deg, #2563eb, #1d4ed8);
}

.bg-gradient-success {
    background: linear-gradient(45deg, #16a34a, #15803d);
}

.bg-gradient-info {
    background: linear-gradient(45deg, #0ea5e9, #0369a1);
}

.bg-gradient-warning {
    background: linear-gradient(45deg, #f59e0b, #d97706);
}

/* ===== MEDIA CENTER STYLES ===== */
.card iframe {
    width: 100%;
    height: 250px;
    border-radius: 8px;
}

.card {
    border: none;
    border-radius: 12px;
}

.card-header.bg-danger {
    border-radius: 12px 12px 0 0;
}

/* ===== TEAM SECTION STYLES ===== */
.team-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== ORGANIZATIONAL CHART STYLES ===== */
.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.org-chart-level {
    width: 100%;
    text-align: center;
}

.org-chart-members {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.org-chart-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: none;
    padding: 30px 20px;
    min-width: 200px;
    max-width: 250px;
    cursor: pointer;
}

.org-chart-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.org-chart-photo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
}

.org-chart-card:hover .org-chart-photo-wrapper {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.org-chart-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.org-chart-card:hover .org-chart-photo {
    transform: scale(1.15);
}

.org-chart-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.org-chart-badge {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.org-chart-card:hover .org-chart-badge {
    transform: scale(1.05);
}

.team-section h2 {
    margin-bottom: 20px;
    color: #1e293b;
    font-weight: 700;
}

.team-section .text-muted {
    color: #64748b !important;
}

.division-title {
    margin-top: 50px;
    margin-bottom: 30px;
    color: #0f172a;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.division-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
}

.team-card {
    width: 100%;
    max-width: 280px;
}

.team-card .card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: none;
}

.team-card:hover .card {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.team-card .card-body {
    padding: 30px 20px;
}

.photo-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
}

.team-card:hover .photo-wrapper {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-card:hover .member-photo {
    transform: scale(1.15);
}

.member-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.position-badge {
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.team-card:hover .position-badge {
    transform: scale(1.05);
}

/* Badge Colors */
.badge.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #64748b, #475569) !important;
}

/* Modal Styles */
#memberModal .modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

#memberModal .modal-header {
    padding: 20px 20px 0;
}

#memberModal .modal-body {
    padding: 30px;
}

.modal-photo-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.modal-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#memberModal .modal-body h4 {
    color: #1e293b;
    font-size: 1.5rem;
}

#memberModal .modal-body .badge {
    font-size: 0.9rem;
    padding: 8px 20px;
}

#memberModal .modal-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
}

.contact-info {
    margin-top: 20px;
}

.contact-info .btn {
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-info .btn:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .photo-wrapper {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: 60px 15px;
    }
    
    .division-title {
        font-size: 1.3rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .team-card .card-body {
        padding: 20px 15px;
    }
    
    .photo-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .member-name {
        font-size: 1rem;
    }
    
    .position-badge {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-card {
        max-width: 100%;
    }
    
    .photo-wrapper {
        width: 140px;
        height: 140px;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-card {
    animation: fadeInUp 0.6s ease forwards;
}

.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.2s; }
.team-card:nth-child(3) { animation-delay: 0.3s; }
.team-card:nth-child(4) { animation-delay: 0.4s; }
.team-card:nth-child(5) { animation-delay: 0.5s; }

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: jalanTerus 12s linear infinite;
}

.marquee-track span {
    white-space: nowrap;
    font-size: inherit;
    font-weight: inherit;
}

/* PAUSE SAAT HOVER */
.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes jalanTerus {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.text-gradient {
    background: linear-gradient(90deg, #00c6ff, #0072ff); /* warna biru ke biru tua */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-modified {
  width: 300px; /* Sesuaikan ukuran sesuai kebutuhan */
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden; /* Agar foto mengikuti sudut border */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Bagian Foto di Atas */
.card-image img {
  width: 100%;
  height: 200px; /* Sesuaikan tinggi foto */
  object-fit: cover; /* Agar foto tidak terdistorsi */
}

/* Konten Bawah (dapat disesuaikan sesuai konten awal) */
.card-content {
  padding: 16px;
}

.card-content h3 {
  margin-top: 0;
}