:root {
    --brand-green: #4A6A34;
}

/* =========================================
   Home Agenda & Pengumuman Styles
   ========================================= */
.text-brand-green {
    color: var(--brand-green) !important;
}

.bg-brand-green {
    background-color: var(--brand-green) !important;
}

.agenda-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    border-left: 4px solid transparent;
}

.agenda-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-left-color: var(--brand-green);
}

.agenda-item .event_date {
    flex-shrink: 0;
    margin-right: 20px;
    float: none; /* Override default float */
}

.agenda-item .event-date-wrap {
    background: var(--brand-green);
    border: none;
    border-radius: 6px;
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    box-shadow: 0 4px 10px rgba(74, 106, 52, 0.3);
}

.agenda-item .event-date-wrap p {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 2px;
}

.agenda-item .event-date-wrap span {
    font-size: 12px;
    text-transform: uppercase;
}

.agenda-item .date-description {
    margin-left: 0; /* Override default margin */
    flex-grow: 1;
}

.agenda-item .date-description h3 {
    font-size: 18px;
    margin-bottom: 8px;
    margin-top: 0;
    line-height: 1.4;
}

.agenda-item .date-description h3:after {
    display: none; /* Remove the underline from default style */
}

.agenda-item .date-description h3 a {
    color: #333;
    transition: color 0.3s;
    text-decoration: none;
}

.agenda-item:hover .date-description h3 a {
    color: var(--brand-green);
}

.agenda-item .date-description p {
    font-size: 14px;
    color: #777;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Pengumuman Styles */
.pengumuman-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.pengumuman-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-top-color: var(--brand-green);
}

.pengumuman-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 0;
    line-height: 1.4;
}

.pengumuman-item h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.pengumuman-item:hover h3 a {
    color: var(--brand-green);
}

.pengumuman-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.pengumuman-meta i {
    margin-right: 8px;
    color: var(--brand-green);
}

.pengumuman-item p {
    font-size: 14px;
    color: #777;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .agenda-item {
        flex-direction: row; /* Keep row layout on mobile but adjust sizes if needed */
        padding: 15px;
    }
    
    .agenda-item .event-date-wrap {
        width: 60px;
        height: 60px;
    }
    
    .agenda-item .event-date-wrap p {
        font-size: 20px;
    }
    
    .agenda-item .date-description h3,
    .pengumuman-item h3 {
        font-size: 16px;
    }
}

/* =========================================
   Mobile Bottom Navigation
   ========================================= */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1040;
    height: 60px;
    justify-content: space-around;
    align-items: center;
    display: none; /* Default hidden, shown in media query */
}

.mobile-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 600;
    height: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-bottom-nav__item i {
    font-size: 20px;
    margin-bottom: 4px;
    color: #999;
    transition: all 0.2s ease;
}

.mobile-bottom-nav__item:hover,
.mobile-bottom-nav__item.active {
    color: var(--brand-green);
    background-color: #f9f9f9;
}

.mobile-bottom-nav__item:hover i,
.mobile-bottom-nav__item.active i {
    color: var(--brand-green);
}

@media (max-width: 991px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Hide default top toggler */
    .navbar-toggler {
        display: none !important;
    }
    
    /* Add padding to body so content isn't covered */
    body {
        padding-bottom: 60px;
    }

    /* Optional: Style the collapse menu when opened via bottom nav */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 60px; /* Above bottom nav */
        background: rgba(255, 255, 255, 0.98);
        z-index: 1030;
        padding: 80px 20px 20px; /* Top padding for header space */
        overflow-y: auto;
        transform: translateY(-100%); /* Hidden by default */
        transition: transform 0.3s ease-in-out;
        display: block !important; /* Override bootstrap display none */
        height: auto !important;
        opacity: 0;
        visibility: hidden;
    }

    .navbar-collapse.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Style nav items in the full screen menu */
    .navbar-nav {
        text-align: center;
    }

    .navbar-nav > li {
        margin: 15px 0 !important;
    }

    .navbar-nav > li > a {
        font-size: 18px;
        font-weight: 700;
        color: #333;
    }
}

/* =========================================
   Footer Styles
   ========================================= */
.main-footer {
    background-color: #2b2b2b; /* Darker modern background */
    color: #eee;
    padding: 40px 0 20px; /* Reduced padding */
    font-size: 13px; /* Slightly smaller font */
}

.foot-logo {
    margin-bottom: 15px;
}

.footer-logo-img {
    max-width: 150px; /* Resize logo smaller */
    height: auto;
    margin-bottom: 10px;
    /* Removed filter to allow original logo colors/brightness */
}

.foot-logo p {
    color: #aaa;
    line-height: 1.5;
    margin-top: 10px;
}

.footer-login-link a {
    color: var(--brand-green);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-login-link a:hover {
    color: #fff;
}

.sitemap h3, .address h3 {
    color: #fff;
    font-size: 16px; /* Reduced title size */
    font-weight: 700;
    margin-bottom: 15px; /* Reduced margin */
    position: relative;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sitemap h3::after, .address h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--brand-green);
}

.sitemap ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

.sitemap ul li {
    margin-bottom: 8px; /* Reduced item spacing */
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 5px;
}

.sitemap ul li:last-child {
    border-bottom: none;
}

.sitemap ul li a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.sitemap ul li a:before {
    content: '\f105'; /* FontAwesome angle-right */
    font-family: 'FontAwesome';
    margin-right: 8px;
    color: var(--brand-green);
    font-size: 13px;
    transition: margin-right 0.3s;
}

.sitemap ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.sitemap ul li a:hover:before {
    margin-right: 12px;
}

.address p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 10px;
}

.address p span {
    color: #fff;
    font-weight: 600;
}

.footer-social-icons {
    padding-left: 0;
    list-style: none;
    display: flex;
    gap: 10px;
    margin-top: 15px; /* Reduced margin */
}

.footer-social-icons li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Smaller icons */
    height: 32px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

.footer-social-icons li a:hover {
    background: var(--brand-green);
    border-color: var(--brand-green);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(74, 106, 52, 0.4);
}

/* =========================================
   Download Page Styles
   ========================================= */
.download-page {
    padding: 60px 0;
    background-color: #f9f9f9;
    min-height: 80vh;
}

.page-header-box {
    text-align: center;
    margin-bottom: 50px;
}

.page-header-box h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.page-header-box h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--brand-green);
    margin: 10px auto 0;
    border-radius: 2px;
}

.page-header-box p {
    color: #777;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.table-container-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 30px;
    border-top: 5px solid var(--brand-green);
}

.table-download thead th {
    background-color: #f5f5f5;
    border-bottom: none;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    padding: 15px;
}

.table-download tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
    color: #555;
}

.file-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.file-name i {
    color: var(--brand-green);
    margin-right: 10px;
    font-size: 18px;
}

.btn-download {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--brand-green);
    color: #fff !important;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(74, 106, 52, 0.2);
}

.btn-download:hover {
    background-color: #3a542a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(74, 106, 52, 0.3);
}

.btn-download i {
    margin-right: 5px;
}

/* DataTables Customization */
.dataTables_wrapper .dataTables_paginate .paginate_button.current, 
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--brand-green) !important;
    color: #fff !important;
    border-color: var(--brand-green) !important;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 15px;
    outline: none;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--brand-green);
}

/* =========================================
   Header Styles
   ========================================= */
.header-logo-img {
    max-height: 50px;
    width: auto;
}

/* =========================================
   Fasilitas Section
   ========================================= */
.fasilitas-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.fasilitas-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--brand-green);
}

.fasilitas-img-wrapper {
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f5f5f5;
}

.fasilitas-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.fasilitas-card:hover .fasilitas-img {
    transform: scale(1.1);
}

.fasilitas-card h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.fasilitas-desc {
    color: #777;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   Partnership Section
   ========================================= */
.partnership {
    padding: 60px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.partnership-title {
    color: #333;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.partnership-underline {
    display: block;
    width: 50px;
    height: 3px;
    background: var(--brand-green);
    margin: 10px auto 0;
    border-radius: 2px;
}

.partnership-subtitle {
    color: #777;
    margin-bottom: 40px;
}

.partnership-logos-container {
    overflow: hidden;
    padding: 20px 0;
    width: 100%;
    position: relative;
}

.partnership-logos {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.partnership-logos:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partnership-logo {
    flex: 0 0 auto;
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.partnership-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.partnership-logo img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partnership-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* =========================================
   Layanan Siswa Styles
   ========================================= */
.layanan-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.layanan-link:hover {
    text-decoration: none;
}

.layanan-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 30px 20px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.layanan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--brand-green);
}

.layanan-card i {
    color: var(--brand-green);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.layanan-card:hover i {
    transform: scale(1.2);
}

.layanan-card h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.layanan-card .card-desc {
    font-size: 13px;
    color: #777;
    margin-bottom: 0;
    line-height: 1.5;
}

/* =========================================
   Jenjang Pendidikan Styles
   ========================================= */
.jenjang-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.jenjang-link:hover {
    text-decoration: none;
}

.jenjang-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 40px 30px;
    height: 100%;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.jenjang-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-bottom-color: var(--brand-green);
}

.jenjang-card i {
    color: #fff;
    background: var(--brand-green);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(74, 106, 52, 0.3);
    transition: all 0.3s ease;
}

.jenjang-card:hover i {
    transform: rotateY(180deg);
}

.jenjang-card h5 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.jenjang-card .card-desc {
    font-size: 15px;
    color: #777;
    margin-bottom: 0;
    line-height: 1.6;
}

/* =========================================
   Section Separators & General Layout
   ========================================= */
.section-entrance {
    padding: 80px 0;
}

.layanan-siswa {
    background-color: #fff;
}

.jenjang-pendidikan {
    background-color: #f4f6f2; /* Light greenish gray */
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.fasilitas {
    background-color: #fff;
}

.event {
    background-color: #fff;
    border-top: 1px solid #eee;
}
