/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: #0A192F;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: #F5F5F5;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #0A192F;
}

p {
    margin-bottom: 15px;
}

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

.section-title {
    font-size: 36px;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.highlight {
    color: #E63946;
}

.section-subtitle {
    font-size: 18px;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.underline {
    width: 80px;
    height: 4px;
    background-color: #E63946;
    margin: 0 auto 20px;
}

.bracket {
    color: #E63946;
    font-weight: 700;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #E63946;
    color: #fff;
    border: 2px solid #E63946;
}

.btn-primary:hover {
    background-color: transparent;
    color: #E63946;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #0A192F;
}

.btn-outline {
    background-color: transparent;
    color: #0A192F;
    border: 2px solid #0A192F;
}

.btn-outline:hover {
    background-color: #0A192F;
    color: #fff;
}

/* ===== HEADER ===== */
@media (max-width: 768px) {
    .logo-image {
        height: 24px;
    }
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.logo-image {
    height: 30px;
    width: auto;
    margin-right: 10px;
}

.nav-links a.active ~ .logo,
.nav-links-mobile a.active ~ .logo {
    transform: none !important;
    width: 30px !important;
    height: auto !important;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: #0A192F;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.nav-desktop, .cta-button {
    display: none;
}

@media (min-width: 992px) {
    .nav-desktop, .cta-button {
        display: block;
    }

    .hamburger {
        display: none;
    }
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    font-size: 14px;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #E63946;
    transition: width 0.3s ease;
}

.nav-links a:hover:after
{
    width: 100%;
}

/* Mobile Navigation */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-mobile {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: #0A192F;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

@media (max-width: 480px) {
    .nav-mobile{
        top: 116.78px;
    }
}

/* Media query untuk desktop */
@media screen and (min-width: 768px) {
    .nav-mobile {
        width: 20%;
    }
}

.nav-mobile.active {
    transform: translateX(0);
}

.nav-links-mobile li {
    margin-bottom: 15px;
}

.nav-links-mobile a {
    display: block;
    color: #fff;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-btn {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('beranda_200kb.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.8);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 36px;
    color: #fff;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

@media (min-width: 576px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 48px;
    }
}

/* ===== ABOUT SECTION ===== */
.card-title {
    display: inline-flex;
    align-items: center;
}

.card-title h4{
    margin-left: 15px;
}

.about-cards-vertical {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.about-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: all 0.3s ease;
    width: 100%;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .main-card {
        flex-direction: row;
    }
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    max-height: 300px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text h3 {
    color: #0A192F;
    margin-bottom: 15px;
    font-size: 24px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(230, 57, 70, 0.1);
    color: #E63946;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.vision-card, .mission-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.vision-card h4, .mission-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #0A192F;
}

.mission-list {
    padding-left: 0;
    margin-top: 10px;
}

.mission-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    list-style: none;
}

.mission-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #E63946;
    font-size: 18px;
}

/* Media queries for smaller screens */
@media (max-width: 767px) {
    .about-card {
        padding: 20px;
    }
    
    .about-text h3 {
        font-size: 20px;
    }
    
    .mission-list li {
        font-size: 14px;
    }
}

/* Media queries for smaller screens */
@media (max-width: 767px) {
    .about-card {
        padding: 20px;
    }
    
    .about-text h3 {
        font-size: 20px;
    }
    
    .mission-list li {
        font-size: 14px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== PRODUK HUKUM SECTION ===== */
.law-products-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .law-products-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .law-products-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.law-product-item {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    height: 100%;
}

.law-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.law-product-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.law-product-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #0A192F;
}

.law-product-content .summary {
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Styling untuk link tahun */
.year-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: auto;
}

.year-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f5f5f5;
    color: #0A192F;
    border-radius: 5px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
}

.year-link:hover {
    background-color: #E63946;
    color: white;
}

.download-button {
    margin-top: auto;
}

.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: #0A192F;
    border: 2px solid #0A192F;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.btn-outline:hover {
    background-color: #0A192F;
    color: white;
}

/* ===== SCOP SECTION ===== */
.scop-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .scop-content {
        grid-template-columns: 1fr 1fr;
    }
}

.scop-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.scop-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.scop-text p {
    margin-bottom: 20px;
}

.scop-text .btn {
    align-self: flex-start;
    margin-top: 20px;
}

.scop-image {
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.2));
}

/* ===== ORMAWA SECTION ===== */
.ormawa-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .ormawa-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .ormawa-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ormawa-card {
    padding: 40px 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.ormawa-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ormawa-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.ormawa-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.ormawa-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* ===== PROGRAM SECTION ===== */
.program-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.program-item {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.program-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.program-item:hover .program-icon {
    background-color: #0A192F;
    color: #fff;
}

.program-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(230, 57, 70, 0.1);
    color: #E63946;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    transition: all 0.3s ease;
}

.program-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Media queries for responsive behavior */
@media (max-width: 1200px) {
    .program-grid {
        justify-content: center;
    }
    
    .program-item {
        flex: 0 0 calc(20% - 24px);
    }
}

@media (max-width: 992px) {
    .program-item {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .program-item {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 576px) {
    .program-grid {
        flex-direction: column;
    }
    
    .program-item {
        flex: 0 0 100%;
    }
}

/* ===== FOOTER ===== */
.footer {
    background-color: #0A192F;
    color: #fff;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    display: inline-flex;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: #E63946;
    padding-left: 5px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.newsletter-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 576px) {
    .newsletter-input {
        flex-direction: row;
    }
}

.newsletter-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.newsletter-input input:focus {
    outline: none;
    border-color: #E63946;
}

.newsletter-btn {
    background-color: #E63946;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background-color: #fff;
    color: #E63946;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ===== ANIMATIONS & TRANSITIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header,
.about-content,
.law-products-list,
.scop-content,
.ormawa-cards,
.program-grid,
.news-slider,
.faq-content,
.contact-content {
    animation: fadeInUp 0.8s ease;
}

/* ===== RESPONSIVE STYLES ===== */
@media (min-width: 576px) {
    .hero-title {
        font-size: 42px;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 42px;
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 54px;
    }
}