/*
Theme Name: Twenty Twenty-Two
Theme URI: https://wordpress.org/themes/twentytwentytwo/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Built on a solidly designed foundation, Twenty Twenty-Two embraces the idea that everyone deserves a truly unique website. The theme’s subtle styles are inspired by the diversity and versatility of birds: its typography is lightweight yet strong, its color palette is drawn from nature, and its layout elements sit gently on the page. The true richness of Twenty Twenty-Two lies in its opportunity for customization. The theme is built to take advantage of the Site Editor features introduced in WordPress 5.9, which means that colors, typography, and the layout of every single page on your site can be customized to suit your vision. It also includes dozens of block patterns, opening the door to a wide range of professionally designed layouts in just a few clicks. Whether you’re building a single-page website, a blog, a business website, or a portfolio, Twenty Twenty-Two will help you create a site that is uniquely yours.
Requires at least: 5.9
Tested up to: 6.1
Requires PHP: 5.6
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentytwo
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, accessibility-ready

Twenty Twenty-Two WordPress Theme, (C) 2021 WordPress.org
Twenty Twenty-Two is distributed under the terms of the GNU GPL.
*/

/*
 * Font smoothing.
 * This is a niche setting that will not be available via Global Styles.
 * https://github.com/WordPress/gutenberg/issues/35934
 */

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

/*
 * Text and navigation link styles.
 * Necessary until the following issue is resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/27075
 */

a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25ch;
}

a:hover,
a:focus {
	text-decoration-style: dashed;
}

a:active {
	text-decoration: none;
}

.wp-block-navigation .wp-block-navigation-item a:hover,
.wp-block-navigation .wp-block-navigation-item a:focus {
	text-decoration: underline;
	text-decoration-style: solid;
}

/*
 * Search and File Block button styles.
 * Necessary until the following issues are resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/36444
 * https://github.com/WordPress/gutenberg/issues/27760
 */

.wp-block-search__button,
.wp-block-file .wp-block-file__button {
	background-color: var(--wp--preset--color--primary);
	border-radius: 0;
	border: none;
	color: var(--wp--preset--color--background);
	font-size: var(--wp--preset--font-size--medium);
	padding: calc(.667em + 2px) calc(1.333em + 2px);
}

/*
 * Button hover styles.
 * Necessary until the following issue is resolved in Gutenberg:
 * https://github.com/WordPress/gutenberg/issues/27075
 */

.wp-block-search__button:hover,
.wp-block-file .wp-block-file__button:hover,
.wp-block-button__link:hover {
	opacity: 0.90;
}

/*
 * Alignment styles.
 * These rules are temporary, and should not be relied on or
 * modified too heavily by themes or plugins that build on
 * Twenty Twenty-Two. These are meant to be a precursor to
 * a global solution provided by the Block Editor.
 *
 * Relevant issues:
 * https://github.com/WordPress/gutenberg/issues/35607
 * https://github.com/WordPress/gutenberg/issues/35884
 */

.wp-site-blocks,
body > .is-root-container,
.edit-post-visual-editor__post-title-wrapper,
.wp-block-group.alignfull,
.wp-block-group.has-background,
.wp-block-cover.alignfull,
.is-root-container .wp-block[data-align="full"] > .wp-block-group,
.is-root-container .wp-block[data-align="full"] > .wp-block-cover {
	padding-left: var(--wp--custom--spacing--outer);
	padding-right: var(--wp--custom--spacing--outer);
}

.wp-site-blocks .alignfull,
.wp-site-blocks > .wp-block-group.has-background,
.wp-site-blocks > .wp-block-cover,
.wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
.wp-site-blocks > .wp-block-template-part > .wp-block-cover,
body > .is-root-container > .wp-block-cover,
body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
body > .is-root-container > .wp-block-template-part > .wp-block-cover,
.is-root-container .wp-block[data-align="full"] {
	margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
	margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
	width: unset;
}

/* Blocks inside columns don't have negative margins. */
.wp-site-blocks .wp-block-columns .wp-block-column .alignfull,
.is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"],
/* We also want to avoid stacking negative margins. */
.wp-site-blocks .alignfull:not(.wp-block-group) .alignfull,
.is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] {
	margin-left: auto !important;
	margin-right: auto !important;
	width: inherit;
}

/*
 * Responsive menu container padding.
 * This ensures the responsive container inherits the same
 * spacing defined above. This behavior may be built into
 * the Block Editor in the future.
 */

.wp-block-navigation__responsive-container.is-menu-open {
	padding-top: var(--wp--custom--spacing--outer);
	padding-bottom: var(--wp--custom--spacing--large);
	padding-right: var(--wp--custom--spacing--outer);
	padding-left: var(--wp--custom--spacing--outer);
}

/* =========================================
   GAYA NEWS TICKER (GAMBAR + TEKS)
   ========================================= */

/* 1. Wadah Utama (Container) */
.ticker-container {
    width: 100%;
    background-color: #222; /* Background gelap */
    border-bottom: 2px solid #e63946; /* Garis aksen merah di bawah */
    color: #fff;
    overflow: hidden; /* Sembunyikan konten yang lewat batas layar */
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    height: 60px; /* Tinggi disesuaikan agar muat gambar */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* Bayangan halus */
}

/* 2. Label "TERKINI" (Diam di kiri) */
.ticker-label {
    background-color: #e63946; /* Merah terang */
    color: white;
    padding: 0 20px;
    height: 100%; /* Penuhi tinggi container */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800; /* Font tebal */
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 20; /* Pastikan selalu di atas teks berjalan */
    position: relative;
    box-shadow: 4px 0 10px rgba(0,0,0,0.3); /* Bayangan pemisah */
}

/* 3. Area Bungkus Animasi */
.ticker-wrap {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* 4. Jalur Gerak (Animasi) */
.ticker-move {
    display: flex;
    align-items: center;
    padding-left: 100%; /* Mulai dari luar layar kanan */
    /* Kecepatan animasi: ubah 35s jika ingin lebih cepat/lambat */
    animation: ticker-animation 35s linear infinite; 
}

/* Berhenti saat mouse diarahkan (Hover) */
.ticker-move:hover {
    animation-play-state: paused;
}

/* 5. Item Berita Individual */
.ticker-item {
    display: flex;
    align-items: center;
    padding: 0 25px; /* Jarak antar berita */
    border-right: 1px solid #444; /* Garis pemisah tipis antar berita */
}

/* 6. Gaya Gambar Thumbnail */
.ticker-image-wrapper {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.ticker-img {
    height: 40px;     /* Tinggi gambar dikunci 40px */
    width: auto;      /* Lebar menyesuaikan */
    border-radius: 4px; /* Sudut melengkung */
    object-fit: cover; /* Agar gambar tidak gepeng */
    border: 1px solid #555;
}

/* 7. Gaya Teks Judul */
.ticker-item a {
    color: #f1f1f1;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ticker-item a:hover {
    color: #e63946; /* Berubah merah saat disorot */
    text-decoration: underline;
}

/* 8. Definisi Keyframes (Gerakan) */
@keyframes ticker-animation {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Responsif untuk layar HP (Opsional: Mengecilkan font/gambar sedikit) */
@media screen and (max-width: 600px) {
    .ticker-container { height: 50px; }
    .ticker-img { height: 30px; }
    .ticker-label { padding: 0 10px; font-size: 11px; }
    .ticker-item a { font-size: 12px; }
}

/* =========================================
   CLEAN FOOTER STYLES
   ========================================= */

/* Wadah Utama */
.clean-footer-wrapper {
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
    padding: 60px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: #333;
}

.clean-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

/* Kolom Umum */
.clean-footer-col {
    flex: 1;
    min-width: 200px; /* Mencegah kolom terlalu gepeng */
}

/* --- Bagian Brand (Logo & Sosmed) --- */
.clean-footer-brand {
    flex: 1.5; /* Kolom pertama lebih lebar sedikit */
}

.clean-footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid #000;
    border-radius: 12px;
    font-size: 28px;
    font-weight: 800;
    color: #000;
    margin-bottom: 24px;
}

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

.clean-footer-social a {
    display: block;
    width: 24px;
    height: 24px;
    color: #000;
    transition: transform 0.2s ease, color 0.2s ease;
}

.clean-footer-social a:hover {
    color: #555;
    transform: translateY(-3px); /* Efek naik sedikit saat hover */
}

.clean-footer-social svg {
    width: 100%;
    height: 100%;
    fill: currentColor; /* Mengikut warna teks (color) */
}

/* --- Bagian Navigasi (Menu) --- */
.clean-footer-heading {
    font-size: 16px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 24px;
    color: #000;
    text-transform: capitalize;
}

.clean-footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clean-footer-nav li {
    margin-bottom: 14px;
}

.clean-footer-nav a {
    text-decoration: none;
    color: #555;
    font-size: 15px;
    transition: color 0.2s ease;
}

.clean-footer-nav a:hover {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* --- Responsif (HP) --- */
@media screen and (max-width: 768px) {
    .clean-footer-container {
        flex-direction: column; /* Tumpuk ke bawah */
        gap: 40px;
    }
    
    .clean-footer-wrapper {
        padding: 40px 20px;
    }
}