/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #2E7D32;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    border-radius: 5px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar a:hover, .navbar a.active {
    background-color: rgba(255,255,255,0.1);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(46, 125, 50, 0.8), rgba(46, 125, 50, 0.9)), url('https://images.unsplash.com/photo-1511795409834-ef04bbd61622?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Button Styles */
.btn, .btn-outline, .btn-small {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn {
    background-color: #2E7D32;
    color: white;
}

.btn:hover {
    background-color: #1B5E20;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-outline {
    background-color: transparent;
    color: #2E7D32;
    border: 2px solid #2E7D32;
}

.btn-outline:hover {
    background-color: #2E7D32;
    color: white;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2rem;
    color: #2E7D32;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
    margin-top: 30px;
}

/* Agenda Styles */
.agenda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.agenda-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.agenda-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.agenda-date {
    background: #2E7D32;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
}

.agenda-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.2rem;
    color: #333;
}

.agenda-card p {
    padding: 0 20px;
    color: #666;
    font-size: 0.95rem;
}

.agenda-meta {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #888;
}

.agenda-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Galeri Styles */
.galeri-grid, .galeri-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.galeri-item, .galeri-item-full {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.galeri-item img, .galeri-item-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.galeri-item:hover img, .galeri-item-full:hover img {
    transform: scale(1.05);
}

.galeri-overlay, .galeri-overlay-full {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.galeri-item:hover .galeri-overlay, .galeri-item-full:hover .galeri-overlay-full {
    transform: translateY(0);
}

.galeri-overlay h4, .galeri-overlay-full h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.galeri-overlay p, .galeri-overlay-full p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.galeri-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Video Styles */
.video-grid, .video-container {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.video-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.video-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.video-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(46, 125, 50, 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s;
}

.video-card:hover .play-btn {
    background: rgba(46, 125, 50, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.2rem;
}

.video-card p {
    padding: 0 20px;
    color: #666;
    font-size: 0.95rem;
}

.video-card .btn-small {
    margin: 15px 20px 20px;
}

/* Video Full Page */
.video-item-full {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .video-item-full {
        flex-direction: row;
    }
}

.video-wrapper {
    flex: 1;
    min-height: 250px;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 250px;
    border: none;
}

.video-info {
    flex: 1;
    padding: 20px;
}

.video-meta {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Agenda Full Page */
.agenda-list {
    margin-top: 30px;
}

.agenda-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    display: flex;
}

.agenda-item-date {
    background: #2E7D32;
    color: white;
    padding: 20px;
    min-width: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 1.2rem;
    margin: 5px 0;
}

.date-year {
    font-size: 1rem;
    opacity: 0.9;
}

.agenda-item-content {
    flex: 1;
    padding: 20px;
}

.agenda-item-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.agenda-item-content p {
    color: #666;
    margin-bottom: 15px;
}

/* Filter Styles */
.filter-agenda, .filter-galeri, .filter-video {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-agenda select, .filter-galeri select, .filter-video select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 1rem;
    min-width: 150px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    margin-top: 50px;
}

#modalCaption {
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #2E7D32;
}

/* Footer */
.footer {
    background: linear-gradient(to right, #1B5E20, #2E7D32);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: white;
}

.footer-col p {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s, padding-left 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.contact-info i {
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: white;
    color: #2E7D32;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-bottom p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #2E7D32;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: #1B5E20;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .agenda-item {
        flex-direction: column;
    }
    
    .agenda-item-date {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        min-width: auto;
    }
    
    .date-day, .date-month, .date-year {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .navbar {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: #2E7D32;
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .navbar.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .video-item-full {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-agenda, .filter-galeri, .filter-video {
        flex-direction: column;
        align-items: center;
    }
    
    .agenda-grid {
        grid-template-columns: 1fr;
    }
}

/* Tambahkan di akhir file style.css */

/* Kalender Styles */
.kalender {
    padding: 40px 0;
    background: #f9f9f9;
    min-height: 80vh;
}

.fc {
    font-family: 'Roboto', sans-serif;
}

.fc-toolbar-title {
    font-weight: 600;
    color: #333;
    font-size: 1.5rem !important;
}

.fc-button {
    background-color: #2E7D32 !important;
    border-color: #2E7D32 !important;
    font-weight: 500 !important;
}

.fc-button:hover {
    background-color: #1B5E20 !important;
    border-color: #1B5E20 !important;
}

.fc-button-primary:not(:disabled).fc-button-active {
    background-color: #1B5E20 !important;
    border-color: #1B5E20 !important;
}

.fc-button-primary:disabled {
    background-color: #81C784 !important;
    border-color: #81C784 !important;
}

.fc-day-today {
    background-color: rgba(46, 125, 50, 0.1) !important;
}

.fc-event {
    border-radius: 4px;
    border: none;
    padding: 3px 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.fc-daygrid-event {
    margin: 1px 2px;
}

.fc-event-title {
    font-weight: 500;
}

/* Modal event detail */
.event-detail-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.event-detail-content {
    background-color: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    position: relative;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

.event-detail-title {
    color: #2E7D32;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.event-detail-info {
    margin-bottom: 20px;
}

.event-detail-item {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.event-detail-item i {
    color: #2E7D32;
    margin-right: 10px;
    margin-top: 3px;
    width: 20px;
}

.event-detail-item strong {
    display: block;
    margin-bottom: 3px;
    color: #333;
}

/* Month agenda */
.month-agenda {
    margin-top: 50px;
}

.month-agenda-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.month-agenda-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #2E7D32;
    transition: transform 0.3s, box-shadow 0.3s;
}

.month-agenda-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.month-agenda-date {
    font-weight: 600;
    color: #2E7D32;
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.month-agenda-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 1.2rem;
}

.month-agenda-meta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.month-agenda-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Calendar header actions */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.calendar-header h2 {
    color: #2E7D32;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-actions {
    display: flex;
    gap: 10px;
}

.calendar-btn {
    background: #2E7D32;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s;
}

.calendar-btn:hover {
    background: #1B5E20;
}

.calendar-btn-outline {
    background: transparent;
    color: #2E7D32;
    border: 1px solid #2E7D32;
}

.calendar-btn-outline:hover {
    background: #2E7D32;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .calendar-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .fc-toolbar-chunk {
        margin-bottom: 10px;
    }
    
    .month-agenda-list {
        grid-template-columns: 1fr;
    }
}

/* Modern Islamic Theme Overrides */
:root {
    --primary: #0f766e;
    --primary-dark: #115e59;
    --accent: #facc15;
    --text: #0f172a;
    --muted: #64748b;
}

body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    color: var(--text);
    background:
      radial-gradient(circle at 25px 25px, rgba(250,204,21,0.06) 2px, transparent 2px),
      radial-gradient(circle at 75px 75px, rgba(250,204,21,0.06) 2px, transparent 2px),
      linear-gradient(#f8fafc, #eef2ff);
    background-size: 100px 100px, 100px 100px, auto;
}

.header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.45);
    padding: 14px 0;
    backdrop-filter: blur(14px);
}

.logo img {
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}

.logo h1 {
    letter-spacing: 0.04em;
}

.navbar ul {
    gap: 8px;
}

.navbar a {
    border-radius: 999px;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.26s ease;
}

.navbar a:hover, .navbar a.active {
    background: rgba(250, 204, 21, 0.14);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.navbar a.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
}

.hero {
    color: var(--text);
    padding: 120px 0 96px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(248, 250, 252, 0.98), rgba(15, 118, 110, 0.05)), url('https://images.unsplash.com/photo-1526498460520-4c246339dccb?auto=format&fit=crop&w=1400&q=80');
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(244, 244, 245, 0.85), rgba(15, 118, 110, 0.32));
}

.hero .container { position: relative; z-index: 1; }

.hero-content h2 {
    letter-spacing: 0.06em;
}

.btn, .btn-outline, .btn-small {
    border-radius: 999px;
    gap: 8px;
}

.btn {
    background: linear-gradient(135deg, #f8b400, var(--accent));
    color: #1f2933;
    box-shadow: 0 10px 25px rgba(250, 204, 21, 0.55);
}

.btn:hover {
    background: linear-gradient(135deg, var(--accent), #f97316);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.45);
}

.btn-outline {
    color: var(--primary);
    border: 1.5px solid rgba(15, 118, 110, 0.6);
}

.btn-outline:hover {
    background: rgba(15, 118, 110, 0.06);
    color: var(--primary);
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.15);
}

.agenda-card, .video-card, .month-agenda-item, .video-item-full, .agenda-item {
    border: 1px solid rgba(15,118,110,0.08);
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.agenda-card:hover, .month-agenda-item:hover, .video-card:hover, .galeri-item:hover img, .galeri-item-full:hover img {
    filter: saturate(1.02);
}

/* Header state on scroll (used by script.js) */
.header.scrolled {
    padding: 10px 0;
    background: linear-gradient(135deg, rgba(15,118,110,0.95), rgba(17,94,89,0.95));
}
