/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* Navbar Styles */
.navbar {
    padding: 20px 148px;
    background: linear-gradient(90deg, #3498db, #8e44ad);
    height: 80px;
    margin: 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    position: relative;
    z-index: 100;
    padding-left: 20px;
    padding-right: 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 10px;
}

.brand-text {
    font-size: 1.5rem;
    line-height: 50px; /* Sesuaikan dengan tinggi logo */
}

/* Efek hover */
.navbar-brand:hover {
    color: #f39c12 !important;
}

/* Responsif */
@media (max-width: 768px) {
    .navbar-logo {
        width: 40px;
        height: 40px;
    }
    
    .brand-text {
        font-size: 1.2rem;
        line-height: 40px;
    }
}

/* Logo Styling */
.logo img {
    object-fit: cover;
    object-position: top;
    max-width: 100px;    /* Atur ukuran sesuai kebutuhan */
    margin-right: 10px;     /* Menambahkan spasi antara logo dan teks */
    align-items: center;    /* Supaya logo dan teks sejajar */
    border-radius: 8%;
}

.logo a {
    font-size: 2rem;  /* Atur ukuran teks SISPENWAS */
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.navbar .links {
    display: flex;
    list-style: none;
}

.navbar .links li {
    margin: 0 10px;
}

.navbar .links a {
    color: #fff;
    text-decoration: none;
    padding: 15px 15px;
    transition: color 0.3s, background-color 0.3s;
    font-size: 18px;
    font-weight: bold;
}

.navbar .links a:hover,
.navbar .links a.active {
    color: #f39c12 !important;
    background-color: transparent; /* Menghapus background saat hover */
}

/* Tambahkan ini untuk memastikan link aktif tetap berwarna #f39c12 */
.navbar .links .nav-item .nav-link.active {
    color: #f39c12 !important;
    background-color: transparent;
}

.main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('../img/bg-pattern.png');
    border-radius: 16px;
    margin: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-left, .logo-right {
    width: 50px;
    height: auto;
}

.info {
    text-align: center;
    max-width: 600px;
    padding: 0 20px;
}

.info h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.info p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.info button {
    background: linear-gradient(90deg, #3498db, #8e44ad);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.main img {
    width: 270px;
    height: 270px;
    border-radius: "";
}

/* News */

.separator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    margin: 40px 20px 20px;
}

.separator h3 {
    font-size: 2rem;
    color: #2c3e50;
    position: relative;
}

.separator h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #8e44ad);
}

.separator a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 15px;
    border-radius: 20px;
}

.separator a:hover {
    color: #8e44ad;
    background: rgba(52, 152, 219, 0.1);
}

.featured {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 40px;
    margin: 20px auto;
    max-width: 1200px;
}

.featured .item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.featured .item img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.featured .details {
    padding: 15px;
}

.featured .details h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #2c3e50;
}

.featured .item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.year-badge {
    background: linear-gradient(90deg, #3498db, #8e44ad);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.item-info h4 {
    color: #666;
    font-size: 0.9rem;
}

.featured .details p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #666;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 992px) {
    .featured {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .featured {
        grid-template-columns: 1fr;
    }
}



.page-title {
    padding: 80px 234px 20px;
    width: 100%;
}

.content {
    padding: 30px 148px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Page Title */
.page-title {
    text-align: center;
    margin: 30px -10;
    font-size: 2.5rem;
    color: #3498db;
}

/* Gallery Styles */
.wrapper {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery .image {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    height: 250px;
}

.gallery .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery .image:hover img {
    transform: scale(1.1);
}

/* Preview Box */
.preview-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 900px;
    width: 100%;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
}

.preview-box.show {
    opacity: 1;
    pointer-events: auto;
}

.preview-box .details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.details .title {
    display: flex;
    align-items: center;
    gap: 5px;
}

.details .icon {
    font-size: 20px;
    cursor: pointer;
}

.image-box {
    position: relative;
}

.image-box img {
    width: 100%;
    height: auto;
}

.slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    cursor: pointer;
    color: #fff;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.slide.prev {
    left: 10px;
}

.slide.next {
    right: 10px;
}

.shadow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2;
    display: none;
}

.shadow.show {
    display: block;
}

/* about us */
/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin: 20px;
    border-radius: 16px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* News List */
.content {
    padding: 20px 40px;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-list .item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-list .item img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.news-list .details {
    padding: 15px;
}

.news-list .details h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.item-info {
    gap: 10px;
    margin: 10px 0;
}

.year-badge {
    padding: 4px 12px;
    font-size: 0.8rem;
}

.news-list .details p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.buttons button {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-list {
        grid-template-columns: 1fr;
    }
    
    .content {
        padding: 15px;
    }
}

/* Animation */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* login */
.action_btn {
    background-color: #f39c12;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.action_btn:hover {
    background-color: #fc5130;
}

.toggle_btn {
    display: none;
    cursor: pointer;
}

.toggle_btn i {
    font-size: 24px;
    color: #fff;
}

/* Dropdown Menu */
.dropdown_menu {
    display: none;
    flex-direction: column;
    background: #8e44ad;
    position: absolute;
    top: 60px;
    right: 50px;
    border-radius: 10px;
    padding: 20px;
    z-index: 100;
}

.dropdown_menu.open {
    display: flex;
}

.dropdown_menu ul {
    list-style: none;
}

.dropdown_menu li {
    margin-bottom: 20px;
}

.dropdown_menu a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.dropdown_menu a:hover {
    background-color: #f39c12;
}

/* Media Queries for Responsiveness */

 /* Responsive adjustments */
@media (max-width: 768px) {
    .navbar ul.links {
        display: none;
    }

    .toggle_btn {
        display: block;
    }

    .dropdown_menu {
        display: none;
        flex-direction: column;
        background-color: #333;
        padding: 1rem;
    }

    .dropdown_menu.open {
        display: flex;
    }

    .main {
        flex-direction: column;
        justify-content: space-around;
        margin: 40px 0;
        height: auto;
    }

    .main .info h1{
        font-size: 30px;
        margin-bottom: 16px;
    }

    .main .info p{
        margin-bottom: 16px;
    }

    .main .info button{
        padding: 6px 20px;
        font-size: 13px;
    }

    .main img{
        margin-top: 20px;
        width: 100%;
        height: auto;
        border-radius: 0px;
    }


    .separator {
        flex-direction: column;
        text-align: center;
    }

    .featured {
        grid-template-columns: 1fr;
    }

    .separator .posts,
    .content .container{
        flex-direction: column;
    }

    .content .container img{
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .navbar ul.links {
        display: none;
    }

    .action_btn{
        display: none;
    }

    .dropdown_menu .action_btn{
        display: block;
        flex-direction: column;
        background-color: #333;
        padding: 1rem;
    }

    .dropdown_menu.open {
        display: flex;
    }

    .main {
        flex-direction: column;
        justify-content: space-around;
        margin: 40px 0;
        height: auto;
    }

    .main .info h1{
        font-size: 30px;
        margin-bottom: 16px;
    }

    .main .info p{
        margin-bottom: 16px;
    }

    .main .info button{
        padding: 6px 20px;
        font-size: 13px;
    }

    .main img{
        margin-top: 20px;
        width: 100%;
        height: auto;
        border-radius: 0px;
    }


    .separator {
        flex-direction: column;
        text-align: center;
    }

    .featured {
        grid-template-columns: 1fr;
    }

    .separator .posts,
    .content .container{
        flex-direction: column;
    }

    .content .container img{
        width: 100%;
        height: auto;
    }
    .main.info h1 {
        font-size: 1rem;
    }

    .info p {
        font-size: 0.9rem;
    }

    .separator h3 {
        font-size: 1.2rem;
    }
}

.navbar-nav {
    margin-left: -150px; /* Sesuaikan nilai ini sesuai kebutuhan */
}

/* Statistics Section */
.statistics {
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    margin: 20px;
}

.stat-container {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-item i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-item h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-item p {
    color: #666;
}



.features {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-item i {
    font-size: 24px;
    color: #3498db;
    margin-right: 15px;
}

.feature-item span {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
}

.learn-more {
    background: linear-gradient(90deg, #3498db, #8e44ad);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-decoration: none;
    display: inline-block;
}

.learn-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    color: white;
}


/* CTA Section */
.cta-section {
    background: linear-gradient(90deg, #3498db, #8e44ad);
    padding: 60px 20px;
    text-align: center;
    color: white;
    border-radius: 16px;
    margin: 20px;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-button {
    background: white;
    color: #3498db;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    margin-top: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    color: #3498db;
}


.buttons {
    margin-top: 20px;
    text-align: right;
}

.buttons button {
    background: linear-gradient(90deg, #3498db, #8e44ad);
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .buttons {
        text-align: center;
    }
    
    .buttons button {
        width: 100%;
        padding: 10px 20px;
    }
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #3498db;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.stat-item:hover h3 {
    transform: scale(1.1);
    color: #8e44ad;
}

/* Modal Login Styles */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-container {
    width: 90%;
    max-width: 350px;
    position: relative;
    z-index: 1001;
    transform: translateY(0);
    margin: auto;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    z-index: 1002;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

/* Sisanya gunakan style yang sudah ada dari form login Anda */
.login-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 35px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    position: relative;
    width: 100%;
    margin: auto;
}

/* ... style lainnya tetap sama ... */

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        width: 95%;
        padding: 10px;
    }
    
    .login-box {
        padding: 25px 20px;
    }
}

/* Modal Styles */
.login-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    margin: auto;
    width: 90%;
    max-width: 350px;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    animation: modalFadeIn 0.3s ease-out;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 1;
}

.close-btn:hover {
    color: #333;
}

.login-box {
    padding: 30px 35px;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    width: 70px;
    height: auto;
}

.title-container {
    text-align: center;
    margin-bottom: 25px;
}

.title-container h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

.title-container p {
    font-size: 14px;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #2c3e50, #3498db);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(45deg, #34495e, #2980b9);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
    }
    
    .login-box {
        padding: 25px 20px;
    }
    
    .title-container h1 {
        font-size: 22px;
    }
}

