/* ==========================================================================
   PPID Pengadilan Tinggi Padang - Optimized Stylesheet
   Colors: #FFF1CA, #FFB823, #708A58, #2D4F2B
   ========================================================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2D4F2B;
    background-color: #708A58;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2D4F2B;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #708A58;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #FFB823, #f4bd46);
    color: rgb(21, 77, 43);
    box-shadow: 0 4px 15px rgba(255, 184, 35, 0.3);
}

.btn-primary:hover {
    background: #FF9800;
    color: white;
    box-shadow: 0 6px 20px rgba(255, 184, 35, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #708A58, #FFEAA7);
    color: #2D4F2B;
    box-shadow: 0 4px 15px #2D4F2B;
}

.btn-secondary:hover {
    background: #2D4F2B;
    color: white;
    border: 2px solid #2D4F2B;
}

/* Header */
.header {
    background: #344e41;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(45, 79, 43, 0.1);
}

.header.scrolled {
    background: #344e41;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    max-height: 67px;
    margin-right: 28px;
    object-fit: contain;
}

/* Navigation */
.navbar {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    align-items: center;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
    display: block;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: #FFB823;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFB823;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
}

.dropdown-toggle:hover {
    color: #FFB823;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle i,
.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    max-height: 300px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
}

.dropdown.active .dropdown-menu,
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #2D4F2B;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 400;
}

.dropdown-menu a:hover {
    background: #FFF1CA;
    color: #FFB823;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border: none;
    background: none;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(196, 30, 58, 0.1);
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    gap: 100px;
    color: #666;
}

.breadcrumb a {
    color: #c41e3a;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Profile Section */
.profil-content {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.main-content {
    padding: 40px 0;
}

.profile-header {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 50px;
    position: relative;
}

.profile-header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.profile-header h1::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 280px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
}

.profile-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.profile-content {
    display: flex;
    width: 100%;
    gap: 40px;
    margin-bottom: 50px;
}

.content-section {
    background: #dff2d8;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.content-section h2 {
    color: #c41e3a;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.content-section p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
    color: #2D4F2B;
}

.highlight-box {
    background-color: #fff;
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
}

.highlight-box h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.regulations-list {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.regulations-list h2 {
    color: #c41e3a;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.regulation-item {
    padding: 15px;
    border-left: 4px solid #c41e3a;
    background: #dff2d8;
    margin-bottom: 15px;
    border-radius: 0 10px 10px 0;
}

.regulation-item h4 {
    color: #c41e3a;
    margin-bottom: 5px;
}

.regulation-item p {
    color: #666;
    font-size: 0.9rem;
}

/* Timeline */
.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.timeline-title {
    text-align: center;
    color: #c41e3a;
    margin: 8px 0 2px;
    font-size: 2rem;
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 880px;
    background: #c41e3a;
}

.timeline-item {
    position: relative;
    width: 100%;
    min-height: 120px;
    margin: 30px 0;
}

.timeline-item:nth-child(odd) .timeline-content {
    position: absolute;
    right: 55%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    position: absolute;
    left: 55%;
    text-align: left;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 45%;
}

.timeline-date {
    background: #c41e3a;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 10px;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    top: 1px;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #c41e3a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    z-index: 1;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: url('../img/background-pengadilan.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 4rem;
    align-items: center;
    padding: 6rem 0 1rem;
}

.hero-title {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: center;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: #dff2d8;
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    animation: heroCardFloat 6s ease-in-out infinite;
}

@keyframes heroCardFloat {
    0%, 100% { transform: translateY(20px); }
    50% { transform: translateY(0); }
}

.hero-card i {
    font-size: 3rem;
    color: #FFB823;
    margin-bottom: 1rem;
}

.hero-card h3 {
    color: #2D4F2B;
    margin-bottom: 1rem;
}

.hero-card p {
    color: #708A58;
    font-size: 0.9rem;
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: white;
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FFB823, transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background-color: #dff2d8;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFB823, #FF9800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 5px 15px rgba(255, 184, 35, 0.3);
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2D4F2B;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #708A58;
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2D4F2B;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #909f55;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #dff2d8;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 184, 35, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2D4F2B, #708A58);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 20px rgba(45, 79, 43, 0.3);
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    color: #2D4F2B;
    margin-bottom: 1rem;
}

.service-card p {
    color: #708A58;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-btn {
    display: inline-block;
    padding: 12px 25px;
    margin-top: auto;
    background: linear-gradient(135deg, #FFB823, #FF9800);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 184, 35, 0.4);
}

/* Information Section */
.information {
    padding: 5rem 0;
    background-color: #c6dea6;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.info-content h2 {
    font-size: 2.5rem;
    color: #0a0d0a;
    margin-bottom: 1.5rem;
}

.info-content p {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.info-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-feature i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FFB823, #FF9800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-feature h4 {
    color: #000000;
    margin-bottom: 0.5rem;
}

.info-feature p {
    color: #000000;
    margin-bottom: 0;
}

.info-card {
    background: linear-gradient(135deg, #2D4F2B, #708A58);
    padding: 2rem;
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.info-card h3 {
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
}

.schedule {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.schedule-item span:first-child {
    font-weight: 500;
}

.schedule-item span:last-child {
    color: #FFB823;
    font-weight: 600;
}

/* News Section */
.news {
    padding: 5rem 0;
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: #dff2d8;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #FFB823, #FF9800);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.news-content {
    padding: 2rem;
}

.news-content h3 {
    color: #2D4F2B;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.news-content p {
    color: #708A58;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-link {
    color: #FFB823;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #2D4F2B;
}

.news-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.news-link:hover::after {
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: #2D4F2B;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: #708A58;
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2D4F2B, #708A58);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: #2D4F2B;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #708A58;
    margin-bottom: 0;
}

/* Contact Form */
.contact-form {
    background-color: #708A58;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: #f4bd46;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2D4F2B;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(45, 79, 43, 0.2);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFB823;
    box-shadow: 0 0 0 3px rgba(255, 184, 35, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: #344e41;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FFB823;
}

.footer-section ul li i {
    margin-right: 0.5rem;
    color: #FFB823;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.footer-maps iframe {
    border-radius: 8px;
}

/* Social Icons */
.social-icons-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-icon-circle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #667eea;
    color: #667eea;
    transform: scale(1.1);
}

.social-icon-circle i {
    font-size: 20px;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FFB823, #FF9800);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(255, 184, 35, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 184, 35, 0.4);
}

/* Accordion */
.accordion-button {
    background: #FFF1CA;
    border: none;
    padding: 12px 16px;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.accordion-button:hover {
    background: #FFB823;
    color: white;
}

.accordion-content {
    display: none;
    margin-bottom: 16px;
}

.accordion-content .card {
    background: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 8px;
}

.accordion-content .card a {
    text-decoration: none;
    color: #2D4F2B;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 184, 35, 0.3);
}

.content-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Accessibility Toolbar */
#accessibility-toolbar {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    gap: 4px;
    z-index: 9999;
    font-size: 14px;
    flex-wrap: wrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    max-width: 400px;
}

#accessibility-toolbar button {
    background: white;
    border: 1px solid #708A58;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2D4F2B;
    transition: all 0.3s ease;
}

#accessibility-toolbar button:hover {
    background: #FFB823;
    color: white;
    border-color: #FFB823;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 184, 35, 0.3);
}

#accessibility-toolbar button:focus-visible {
    outline: 3px solid #FFB823;
    outline-offset: 2px;
}

/* Button Active State - Saat fitur menyala */
#accessibility-toolbar button[aria-pressed="true"],
#accessibility-toolbar button.active {
    background: #FFB823 !important;
    color: white !important;
    border-color: #FFB823 !important;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(255, 184, 35, 0.5);
}

#accessibility-toolbar button[aria-pressed="true"]:hover,
#accessibility-toolbar button.active:hover {
    background: #FF9800 !important;
    border-color: #FF9800 !important;
    transform: translateY(-1px);
}

/* Auto Read Button Active State */
.auto-read-active {
    background: #FFB823 !important;
    color: white !important;
    border-color: #FFB823 !important;
    font-weight: 600;
}

/* Toolbar Groups */
.toolbar-group {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

/* Icon Buttons */
#accessibility-toolbar button i {
    pointer-events: none;
}

/* Reset Button - Special Style */
#reset-accessibility {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

#reset-accessibility:hover {
    background: #c0392b !important;
    border-color: #c0392b !important;
}


/* High Contrast Mode */
.high-contrast {
    background: #000 !important;
    color: #FFF !important;
    filter: contrast(160%);
}

.high-contrast a {
    color: #FFEAA7 !important;
}

.high-contrast .btn-primary {
    background: #FFB823 !important;
    color: #1f3d1f !important;
}

.high-contrast .btn-secondary {
    background: #708A58 !important;
    color: #fff !important;
}

/* High Contrast - Dropdown Fix */
.high-contrast .dropdown-toggle {
    color: #FFF !important;
}

.high-contrast .dropdown-toggle:hover {
    color: #FFEAA7 !important;
}

.high-contrast .dropdown-menu {
    background: #000 !important;
    border: 2px solid #FFEAA7 !important;
}

.high-contrast .dropdown-menu a {
    color: #FFF !important;
    background: #000 !important;
}

.high-contrast .dropdown-menu a:hover {
    background: #FFEAA7 !important;
    color: #000 !important;
}

.high-contrast .nav-menu.active .dropdown-menu {
    background: rgba(0, 0, 0, 0.95) !important;
}

.high-contrast .nav-menu .dropdown-menu a {
    color: #FFF !important;
}

.high-contrast .nav-menu .dropdown-menu a:hover {
    background: #FFEAA7 !important;
    color: #000 !important;
}

/* Dyslexia Font */
.dyslexia-font {
    font-family: 'OpenDyslexic', 'Poppins', sans-serif !important;
}

/* Underline Links */
.underline-links a {
    text-decoration: underline !important;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2D4F2B;
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.skip-link:focus {
    top: 0;
}

/* Focus Styles */
:focus-visible {
    outline: 3px solid #FFB823;
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

/* Desktop - Default (min-width: 769px) */
@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
    }
    
    .hamburger {
        display: none !important;
    }
}

/* Tablet & Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        padding: 0.8rem 15px;
    }
    
    .logo img {
        max-height: 50px;
        margin-right: 15px;
    }
    
    .hamburger {
        display: flex !important;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        background: rgba(52, 78, 65, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        border-radius: 0 0 10px 10px;
        z-index: 999;
        width: 100%;
        flex-direction: column;
        gap: 0;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 15px 20px;
        color: white !important;
        width: 100%;
        font-size: 1rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover {
        background: rgba(255,184,35,0.2);
        color: #FFB823 !important;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        display: flex !important;
        justify-content: space-between;
        padding: 15px 20px;
        color: white !important;
        width: 100%;
        font-size: 1rem;
    }

    .dropdown-toggle:hover {
        background: rgba(255,184,35,0.2);
    }

    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: rgba(255,255,255,0.1) !important;
        border-radius: 0 !important;
        padding: 0 !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
    }

    .dropdown-menu a {
        color: rgba(255,255,255,0.9) !important;
        padding: 12px 40px !important;
        font-size: 0.95rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .dropdown-menu a:hover {
        background: rgba(255,184,35,0.3) !important;
        color: #FFB823 !important;
    }
    
    .hero-content {
        display: block;
        padding: 4rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-buttons .btn {
        width: 200px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-maps iframe {
        height: 200px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }

    .profile-content {
        flex-direction: column;
    }

    .timeline::before {
        height: auto;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        position: relative !important;
        width: calc(100% - 60px) !important;
        left: 60px !important;
        right: auto !important;
        text-align: left !important;
    }

    .timeline-icon {
        left: 20px;
        transform: none;
    }

    #accessibility-toolbar {
        /* Pindah ke bawah untuk mobile */
        top: auto !important;
        bottom: 10px !important;
        right: 10px !important;
        left: auto !important;
        
        /* Compact layout */
        flex-direction: column;
        gap: 5px;
        padding: 6px;
        max-width: 160px;
        
        /* Smaller shadow for mobile */
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
        
        /* Pastikan toolbar group tetap berfungsi */
    }
    
    .toolbar-group {
        display: flex;
        gap: 4px;
        flex-wrap: wrap;
    }
    
    #accessibility-toolbar button {
        padding: 5px 8px;
        font-size: 0.75rem;
        min-width: 38px;
        border-radius: 5px;
        /* Larger touch target */
        min-height: 36px;
    }
    
    /* Stack buttons vertically on very small screens */
     @media (max-width: 360px) {
          #accessibility-toolbar {
            max-width: 140px;
        }
        
        #accessibility-toolbar button {
            font-size: 0.7rem;
            padding: 4px 6px;
            min-width: 35px;
        }
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons .btn {
        width: 180px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

/* ============================================================
   SCREEN READER CONSENT POPUP
   ============================================================ */
.auto-read-active {
    background: #FFB823 !important;
    color: white !important;
    border-color: #FFB823 !important;
}

.consent-popup {
    position: fixed;
    bottom: 15px;
    left: 15px;
    background: white;
    border: 2px solid #2D4F2B;
    padding: 12px 18px;
    border-radius: 8px;
    z-index: 9999;
    max-width: 260px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 0.95rem;
    display: none;
}

.consent-popup p {
    margin-bottom: 10px;
    color: #2D4F2B;
    font-weight: 500;
}

.consent-buttons {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.consent-popup button {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}

#allow-screenreader {
    background: #FFB823;
    color: white;
}

#deny-screenreader {
    background: #ccc;
    color: #333;
}

/* Optimasi Navigation untuk 1024px */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-content {
        padding: 0.7rem 5px;
        gap: 10px;
    }
    
    .logo img {
        max-height: 50px;
        margin-right: 10px;
    }
    
    .nav-menu {
        gap: 0.3rem; /* Kurangi gap antar menu */
    }
    
    .nav-link {
        font-size: 0.75rem; /* Font lebih kecil */
        padding: 0.5rem 0.2rem;
        white-space: nowrap;
    }
    
    .dropdown-toggle {
        font-size: 0.75rem;
        padding: 0.5rem 0.2rem;
    }
    
    .dropdown-toggle i {
        font-size: 0.6rem;
        margin-left: 2px;
    }
}

