* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    background: #f4f7fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding: 0;
}

/* HEADER */
.main-header {
    background: #0b1136;
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
}

.logo-image {
    width: 45px;
    height: 45px;
    background: #009b4d;
    border-radius: 50%;
    border: 3px solid white;
}

.logo-text {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-nav {
    display: flex;
    gap: 25px;
}

.top-nav a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: color 0.3s;
}

.top-nav a:hover {
    color: #009b4d;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    gap: 5px;
}

.lang-switcher a {
    color: white;
    padding: 3px 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.lang-switcher a.active {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.btn-admin {
    background: #009b4d;
    padding: 6px 15px;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-admin:hover {
    background: #007a3c;
}

.btn-logout {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
}

/* HERO SLIDER */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
}

.slide {
    display: none;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* GRID MODERN */
.section-title {
    text-align: center;
    color: #0b1136;
    padding: 40px 0 20px;
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    width: 50px;
    height: 3px;
    background: #009b4d;
    display: block;
    margin: 10px auto 0;
}

.sdg-section {
    background: #f4f7fa;
    /* Same as body - no gap visible */
    padding: 0;
    margin: 0;
    border-top: 4px solid #009b4d;
    /* Green separator line - clean connection with slider */
}

.sdg-section .section-title {
    color: #1a2e3b !important;
    text-shadow: none;
    padding-top: 35px;
    padding-bottom: 5px;
    margin: 0;
}

.sdg-section .section-title {
    color: #1a2e3b !important;
    text-shadow: none;
}

.sdg-section-title {
    padding-top: 35px !important;
    color: #1a2e3b;
}

.sdg-section .section-title::after {
    background: #009b4d;
    width: 80px;
    height: 4px;
    margin: 12px auto 30px;
}

.sdg-grid-container {
    max-width: 1400px;
    margin: 0 auto 0;
    padding: 0 30px;
}

.sdg-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    /* Better spacing */
}

.sdg-item {
    aspect-ratio: 1/1;
    position: relative;
    padding: 15px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    /* Premium curved corners */
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sdg-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

/* Gradient Overlay for Text Readability */
.sdg-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.sdg-gif-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
}

.sdg-title-local {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.15;
    z-index: 2;
    /* Shows above the gradient */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
}

.sdg-item:hover .sdg-gif-overlay {
    opacity: 1;
}

.sdg-static-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.sdg-item:hover .sdg-static-bg {
    opacity: 0;
    /* Hide static image when hovering so GIF is visible */
}

.sdg-item.image-filled {
    padding: 0;
    border: none;
    background: transparent;
    justify-content: center;
    align-items: center;
}

.sdg-item.image-filled img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sdg-number {
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 5px;
}

.sdg-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
}

.sdg-item.plus-block {
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #fff;
    border: 2px dashed #ccc;
    color: #999;
}

.sdg-item.plus-block .sdg-number {
    font-size: 24px;
    margin-bottom: 5px;
    color: #666;
}

.sdg-item.plus-block .sdg-title {
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

/* RECENT NEWS grid */
.news-grid {
    max-width: 1200px;
    margin: 0 auto 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card .news-content {
    padding: 20px;
}

.news-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #0b1136;
}

.news-card p {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

/* FOOTER */
.main-footer {
    background: #0b1136;
    color: #b0b5c9;
    padding: 50px 20px 20px;
    font-size: 13px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-col h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #b0b5c9;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #009b4d;
}

.logo-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo-footer .icon {
    width: 50px;
    height: 50px;
    background: #009b4d;
    border-radius: 50%;
    display: inline-block;
}

.logo-footer .text {
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.call-center {
    margin-top: 15px;
    background: white;
    color: #000;
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
}

.call-center strong {
    font-size: 14px;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: white;
    color: #0b1136;
    text-align: center;
    line-height: 35px;
    border-radius: 4px;
    margin-right: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    color: #666;
    font-size: 12px;
    padding-bottom: 10px;
}

/* ADMIN GENERAL */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 20px;
}

.admin-tab {
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    padding: 10px 20px;
    border-radius: 6px;
    transition: 0.2s ease;
}

.admin-tab.active {
    background: #009b4d;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 155, 77, 0.2);
}

.admin-tab:hover:not(.active) {
    background: #f0f0f0;
    color: #333;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    color: white;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #0b1136;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

table.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-block: 20px;
    font-size: 14px;
}

table.admin-table th {
    background: #f4f6fb;
    color: #0b1136;
    font-weight: bold;
}

table.admin-table th,
table.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}