/* 
* Nusantara Lawfirm - Main Stylesheet
* Author: Nusantara Lawfirm
* Version: 1.0
*/

/* ===== SLIDER STYLES ===== */
.slider-container {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    color: #000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.3s;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

@media (max-width: 768px) {
    .slider-container {
        height: 400px;
    }
    
    .slide-content {
        max-width: 90%;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #0A2647;
    --secondary-color: #C9A227;
    --light-color: #ffffff;
    --dark-color: #333333;
    --gray-color: #f5f5f5;
    --text-color: #444444;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--primary-color);
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    display: block !important;
    visibility: visible !important;
}

@media (max-width: 768px) {
    .logo-img {
        height: 30px;
    }
    
    .logo-text {
        font-size: 18px;
        white-space: nowrap;
    }
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    font-weight: 600;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

.language-switch {
    margin-left: 20px;
    cursor: pointer;
    font-weight: 600;
    padding: 5px 10px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    transition: var(--transition);
}

.language-switch:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(10, 38, 71, 0.8), rgba(10, 38, 71, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--light-color);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--light-color);
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--light-color);
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 50px;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

/* Project Slider */
.project-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.project-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.project-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.project-slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.project-prev-btn {
    left: 10px;
}

.project-next-btn {
    right: 10px;
}

.values-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
}

.value-item {
    flex-basis: calc(33.33% - 30px);
    margin-bottom: 30px;
    padding: 30px;
    background-color: var(--gray-color);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.value-title {
    font-size: 20px;
    margin-bottom: 15px;
}

/* ===== SERVICES SECTION ===== */
.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.service-item {
    flex-basis: calc(33.33% - 30px);
    margin-bottom: 40px;
    padding: 30px;
    background-color: var(--gray-color);
    border-radius: 8px;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 20px;
    margin-bottom: 15px;
}

/* ===== TEAM SECTION ===== */
.team-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.team-member {
    flex-basis: calc(25% - 30px);
    margin-bottom: 40px;
    text-align: center;
}

.team-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid var(--gray-color);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 20px;
    margin-bottom: 5px;
}

.team-position {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.team-bio {
    margin-bottom: 15px;
}

.team-social {
    display: flex;
    justify-content: center;
}

.team-social a {
    margin: 0 10px;
    font-size: 18px;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: flex;
    flex-wrap: wrap;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 20px;
    color: var(--secondary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-text h4 {
    margin-bottom: 5px;
}

.map-container {
    margin-top: 30px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo {
    flex-basis: 30%;
    margin-bottom: 30px;
}

.footer-links {
    flex-basis: 20%;
    margin-bottom: 30px;
}

.footer-contact {
    flex-basis: 30%;
    margin-bottom: 30px;
}

.footer h4 {
    color: var(--light-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--light-color);
    opacity: 0.8;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--light-color);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* News Section Styles */
.news-section {
    padding: 80px 0;
}

.news-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    min-width: 320px;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #0A2647;
    color: #fff;
    padding: 10px 15px;
    text-align: center;
    line-height: 1.2;
}

.news-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.news-date .month, .news-date .year {
    display: block;
    font-size: 14px;
}

.news-content {
    padding: 25px;
}

.news-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #0A2647;
    font-weight: 600;
    line-height: 1.4;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.news-meta span {
    display: flex;
    align-items: center;
}

.news-meta i {
    margin-right: 5px;
    color: #D4AF37;
}

.news-excerpt {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.btn-read-more {
    display: inline-block;
    padding: 8px 20px;
    background: #D4AF37;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
    text-decoration: none;
}

.btn-read-more:hover {
    background: #0A2647;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a.active, .pagination a:hover {
    background: #0A2647;
    color: #fff;
}

.pagination a.next {
    width: auto;
    padding: 0 15px;
}

/* Page Hero Section */
.page-hero {
    background: #0A2647;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.breadcrumb {
    font-size: 16px;
}

.breadcrumb a {
    color: #D4AF37;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Admin Dashboard Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: #0A2647;
    color: #fff;
    padding: 20px 0;
    position: fixed;
    height: 100%;
    overflow-y: auto;
}

.admin-logo {
    display: flex;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 30px;
}

.admin-logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.admin-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-menu li {
    margin-bottom: 5px;
}

.admin-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.admin-menu a:hover, .admin-menu a.active {
    background: rgba(255, 255, 255, 0.1);
}

.admin-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    background: #f5f5f7;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.admin-title {
    font-size: 24px;
    font-weight: 600;
    color: #0A2647;
}

.admin-user {
    display: flex;
    align-items: center;
}

.admin-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.admin-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.admin-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #0A2647;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.admin-form-group {
    margin-bottom: 20px;
}

.admin-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.admin-form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.admin-form-control:focus {
    border-color: #0A2647;
    outline: none;
}

.admin-btn {
    padding: 10px 20px;
    background: #0A2647;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.admin-btn:hover {
    background: #D4AF37;
}

.admin-btn-secondary {
    background: #6c757d;
}

.admin-btn-danger {
    background: #dc3545;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

.admin-action-btn {
    padding: 6px 12px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    margin-right: 5px;
    display: inline-block;
}

.admin-action-btn.edit {
    background: #0A2647;
}

.admin-action-btn.delete {
    background: #dc3545;
}

.admin-action-btn:hover {
    opacity: 0.9;
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 992px) {
    .value-item,
    .service-item {
        flex-basis: calc(50% - 20px);
    }
    
    .team-member {
        flex-basis: calc(50% - 20px);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
        position: relative;
        margin-right: 10px;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--light-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    .language-switch {
        margin: 15px 0 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .about-text,
    .about-image {
        flex: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .value-item,
    .service-item {
        flex-basis: 100%;
    }
    
    .team-member {
        flex-basis: 100%;
    }
    
    .contact-form,
    .contact-info {
        flex: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .footer-logo,
    .footer-links,
    .footer-contact {
        flex-basis: 100%;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        width: 0;
        transition: width 0.3s ease;
    }
    
    .admin-sidebar.active {
        width: 250px;
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .admin-content.sidebar-active {
        margin-left: 250px;
    }
    
    .admin-toggle-btn {
        display: block;
    }
}

@media screen and (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
}