:root {
    /* Kraton Yogyakarta Green - Gadung Melati / Pare Anom approx */
    --primary-color: #234d20;
    /* Deep Kraton Green */
    --primary-dark: #1a3a18;

    /* KADIN Logo Colors */
    --secondary-color: #CFB53B;
    /* Gold */
    --accent-red: #D32F2F;
    /* Red from Shield */
    --accent-blue: #000080;
    /* Blue from Banner */

    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --bg-light: #f4f8f4;
    /* Slight green tint */
    --bg-white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    display: inline-block;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    /* Often used on dark backgrounds */
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    display: inline-block;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 3px solid var(--secondary-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 75px;
}

.logo-text h1 {
    font-size: 1rem;
    margin: 0;
    color: var(--primary-color);
    line-height: 1.1;
    font-weight: 800;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--accent-red);
    /* Red accent for text */
    margin: 0;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-links .btn-primary {
    padding: 8px 20px;
    color: white !important;
}

/* News Ticker */
.news-ticker-container {
    background-color: var(--accent-red);
    color: white;
    width: 100%;
    position: fixed;
    top: 108px;
    /* Height of navbar approx (75px img + 30px padding + border) check actual */
    z-index: 999;
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news-ticker-wrap {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}

.news-ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
    color: white;
    font-weight: 500;
    text-decoration: none;
}

.news-ticker-content:hover {
    color: var(--secondary-color);
    text-decoration: underline;
    animation-play-state: paused;
}

/* News Carousel */
.news-carousel-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: white;
    padding: 10px 0;
}

.news-carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollCarousel 15s linear infinite alternate;
}

.news-carousel-track img {
    height: 200px;
    /* Fixed height for consistency */
    width: auto;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform 0.3s;
}

.news-carousel-track img:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Scroll first set of images */
    }
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Overlay with Kraton Green tint */
    background: linear-gradient(rgba(35, 77, 32, 0.75), rgba(35, 77, 32, 0.6)), url('assets/background.jpg');
    background-size: cover;
    background-position: center bottom;
    display: flex;
    align-items: center;
    /* Align content symmetrically */
    text-align: center;
    color: white;
    margin-top: 0;
    /* Override section margin if any for first section */
    padding-top: 150px;
    /* Account for navbar + ticker */
    padding-bottom: 0;
    /* Remove bottom padding so image touches edge */
    position: relative;
    overflow: hidden;
    /* Prevent image overflow */
}

.hero-content {
    display: flex;
    align-items: stretch;
    /* Stretch to fill height */
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    height: 100%;
    /* Full height */
    z-index: 2;
}

.hero-text {
    flex: 1;
    text-align: left;
    max-width: 600px;
    align-self: center;
    /* Center text vertically */
    padding-bottom: 50px;
    /* Slight adjustment */
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Ensure image is centered */
    height: 100%;
}

.hero-image img {
    width: 700px;
    height: 600px;
    object-fit: contain;
    object-position: center center;
    /* Center within the container */
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
    /* Make it pop */
}

.hero .greeting {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    /* Align left */
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

.chairman-pfp {
    margin: 2rem auto;
    text-align: center;
    max-width: 300px;
}

.chairman-pfp img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 5px solid var(--secondary-color);
    box-shadow: var(--shadow);
}

.chairman-pfp .chairman-name {
    margin-bottom: 0px;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.chairman-pfp .caption {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    padding: 30px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-card h3 {
    color: var(--primary-color);
}

.mission-list {
    list-style: none;
    text-align: left;
    margin-top: 15px;
}

.mission-list li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.4;
}

.mission-list li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Social Media Sidebar */
.social-sidebar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 999;
}

.social-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    white-space: nowrap;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 5px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.social-btn:hover {
    transform: translateY(-5px);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.social-btn.instagram:hover {
    background: #E1306C;
    color: white;
}

.social-btn.youtube:hover {
    background: #FF0000;
    color: white;
}

.social-btn.tiktok:hover {
    background: #000000;
    color: white;
}

.bg-light {
    background-color: var(--bg-light);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.stat-item {
    background: white;
    padding: 30px;
    border-radius: 50%;
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
    border: 3px solid var(--secondary-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-weight: 600;
    margin: 10px 0;
    font-size: 1.1rem;
}

.stat-desc {
    font-size: 0.9rem;
    color: #666;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid #eee;
    border-radius: var(--radius);
    transition: 0.3s;
}

.service-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--secondary-color);
}

.service-card .icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-card .icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px dashed var(--secondary-color);
    border-radius: 50%;
    animation: rotateCircle 10s linear infinite;
}

@keyframes rotateCircle {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.service-card .icon {
    font-size: 3rem;
    background: #f9f9f9;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

/* Stories */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.story-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.story-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.story-card .author h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.story-card .author p {
    font-size: 0.9rem;
    color: #888;
}

/* CTA Registration */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
}

.registration-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.step {
    max-width: 200px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-large {
    font-size: 1.2rem;
    padding: 15px 40px;
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.btn-large:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Footer */
.footer {
    background: var(--accent-blue);
    /* KADIN Blue */
    color: #e0e0e0;
    padding: 60px 0 20px;
    border-top: 5px solid var(--accent-red);
    /* Red Accent */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info h3 {
    color: var(--secondary-color);
    /* Gold text */
}

.contact-person {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: var(--radius);
    border-left: 3px solid var(--secondary-color);
}

.wa-link {
    color: #4fe07b;
    /* WhatsApp Green brighter against blue */
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* Assistant Widget */
.assistant-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: auto;
    height: 60px;
    padding: 0 20px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 2000;
    border: 3px solid var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
    gap: 10px;
}

.assistant-trigger:hover {
    transform: scale(1.05);
}

.assistant-trigger .chat-text {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
    white-space: nowrap;
}

.assistant-trigger img {
    height: 40px;
    width: auto;
}

.marketplace-trigger {
    position: fixed;
    bottom: 100px;
    /* Position above chat button (30px + 60px height + 10px gap) */
    right: 30px;
    width: auto;
    height: 60px;
    padding: 0 20px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 2000;
    border: 3px solid var(--accent-blue);
    /* Different border color to distinguish */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
    gap: 10px;
    text-decoration: none;
    /* Reset link style */
}

.marketplace-trigger:hover {
    transform: scale(1.05);
}

.marketplace-trigger .chat-text {
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 1rem;
    white-space: nowrap;
}

.marketplace-trigger img {
    height: 30px;
    /* Adjust size as needed */
    width: auto;
}

.assistant-widget {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
}

.assistant-widget.active {
    display: flex;
}

.assistant-header {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.assistant-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
}

.assistant-title {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.assistant-title span:first-child {
    font-weight: 700;
    font-size: 1rem;
}

.assistant-title .status {
    font-size: 0.75rem;
    opacity: 0.9;
    color: #90ff90;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.assistant-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background: #fdfdfd;
}

.message {
    margin-bottom: 15px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.bot {
    align-self: flex-start;
    background: #f0f0f0;
    padding: 10px 15px;
    border-radius: 12px 12px 12px 0;
    color: #333;
}

.message.user {
    align-self: flex-end;
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 12px 12px 0 12px;
    margin-left: auto;
}

.assistant-input-area {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.assistant-input-area input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.assistant-input-area button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add mobile menu logic if needed, for simplicity just hiding for now or can implement simple toggle */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        gap: 20px;
    }

    .assistant-widget {
        width: 90%;
        right: 5%;
        bottom: 100px;
    }
}

/* Event Section Styles */
.event-content {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #eee;
}

.event-image-container {
    flex: 1;
    max-width: 400px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--radius);
}

.event-flyer {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.event-image-container:hover .event-flyer {
    transform: scale(1.05);
}

.overlay-hint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.event-image-container:hover .overlay-hint {
    opacity: 1;
}

.overlay-hint span {
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.event-details {
    flex: 1;
    max-width: 500px;
}

.event-details h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.event-details p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-details .btn-primary,
.event-details .btn-secondary {
    margin-top: 20px;
    margin-right: 10px;
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 3000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.9);
    /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    margin: auto;
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 3001;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@media (max-width: 768px) {
    .event-content {
        flex-direction: column;
        text-align: center;
    }

    .event-details {
        text-align: center;
    }

    .event-details p {
        justify-content: center;
    }
}