/* style.css */
:root {
    --primary-color: #4A90E2; /* Baby blue / soft blue */
    --primary-dark: #357ABD;
    --secondary-color: #50E3C2; /* Soft tosca/green */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F4F7F6;
    --white: #FFFFFF;
    --danger: #E74C3C;
    --border-color: #E0E0E0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Mencegah pelebaran / horizontal scroll di body */
}

/* Make media responsive by default */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Navbar */
.navbar {
    background: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 50%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links li a {
    color: var(--text-color);
    font-weight: 500;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.btn-donasi {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
}

.btn-donasi:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* Slider Section */
.slider-container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 450px;
    max-height: 700px;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 1.2rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Custom Link Banner */
.custom-link-banner {
    background: var(--primary-color);
    text-align: center;
    padding: 15px;
}

.custom-website-link {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.custom-website-link:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Quick Icons Section */
.quick-icons-section {
    background: var(--bg-light);
}

.quick-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.icon-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.icon-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    color: var(--primary-color);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.icon-card:hover .icon-circle {
    background: var(--primary-color);
    color: var(--white);
}

/* Sections */
.section {
    padding: 60px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.section-title h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Profile Section */
.profile-content {
    display: flex;
    gap: 40px;
    align-items: center;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.profile-text {
    flex: 1;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 1100px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-body {
    padding: 20px;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: block;
}

/* Contact Section */
.three-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.contact-card h3 {
    font-size: 1.25rem;
    margin: 10px 0;
    color: var(--text-color);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.bank-box {
    margin-top: 15px;
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed var(--primary-color);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.btn-copy {
    padding: 8px 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Footer */
footer {
    background: #2C3E50;
    color: var(--white);
    text-align: center;
    padding: 40px 20px 20px;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 10px;
    display: inline-block;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Admin Dashboard Specifics */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.sidebar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.sidebar-nav li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    border-left: 4px solid transparent;
}

.sidebar-nav li a:hover, .sidebar-nav li a.active {
    background: var(--bg-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.admin-content {
    flex: 1;
    padding: 40px;
    background: var(--bg-light);
}

.mobile-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    margin-right: 15px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: var(--white);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: #c0392b;
}

.alert {
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 99999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: slideInFadeOut 4s forwards;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    max-width: 400px;
    border-left: 5px solid transparent;
}

@keyframes slideInFadeOut {
    0% { transform: translateX(120%); opacity: 0; }
    10% { transform: translateX(0); opacity: 1; }
    85% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(120%); opacity: 0; visibility: hidden; }
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: var(--bg-light);
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.current-logo {
    margin-top: 10px;
    max-width: 150px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 5px;
}

/* FAQ Accordion */
.faq-container {
    width: 100%;
    margin-top: 30px;
}
.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    background: var(--white);
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, color 0.3s ease;
}
.faq-question:hover, .faq-question.active {
    background: var(--bg-light);
    color: var(--primary-color);
}
.faq-question i {
    transition: transform 0.3s ease;
}
.faq-question.active i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--white);
}
.faq-answer p {
    padding: 0 20px 20px 20px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        position: relative;
        padding: 1rem 15px; /* Reduce side padding on mobile */
    }
    .logo-text {
        font-size: 1.1rem; /* Prevent long titles from stretching the screen */
        white-space: normal;
        line-height: 1.2;
    }
    .quick-icons-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px 15px;
        gap: 15px;
    }
    .slider-container {
        height: 60vh;
        min-height: 350px;
        max-height: 500px;
    }
    .slide {
        background-position: center top;
    }
    .slide-content h1 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    .slide-content p {
        font-size: 0.95rem;
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px;
        text-align: center;
        gap: 15px;
    }
    .nav-links.active {
        display: flex;
    }
    .btn-donasi {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
    .profile-content {
        flex-direction: column;
    }
    .admin-layout {
        flex-direction: column;
    }
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        width: 260px;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    .sidebar.active {
        left: 0;
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    .sidebar-overlay.active {
        display: block;
    }
    .mobile-sidebar-toggle {
        display: block !important;
    }
    .admin-content {
        padding: 20px;
    }
    .section {
        padding: 40px 15px;
    }
    
    /* Horizontal scroll for news cards on mobile */
    .news-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px; /* Space for scrollbar */
        -webkit-overflow-scrolling: touch;
        gap: 15px;
    }
    
    .news-grid .news-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
    }
    
    /* Keep contact cards stacked */
    .three-col-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
.alert {
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideInFadeOut 4s forwards;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

@keyframes slideInFadeOut {
    0% { transform: translateX(100%); opacity: 0; }
    10% { transform: translateX(0); opacity: 1; }
    80% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; visibility: hidden; }
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}
. a l e r t - s u c c e s s   {   b a c k g r o u n d - c o l o r :   # d 4 e d d a ;   c o l o r :   # 1 5 5 7 2 4 ;   b o r d e r - l e f t :   5 p x   s o l i d   # 2 8 a 7 4 5 ;   }  
 