/*
Theme Name: UII Press Theme
Theme URI: https://uiipress.uii.ac.id
Author: Custom Developer
Author URI: https://uiipress.uii.ac.id
Description: Tema WordPress khusus Penerbit & Percetakan UII Press berbasis WooCommerce & Katalog Buku.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uiipress
*/

:root {
    --primary-blue: #0B2545;
    --secondary-blue: #134074;
    --accent-yellow: #FFCC00;
    --accent-red: #D9381E;
    --bg-light-blue: #E8F1F5;
    --text-dark: #1D2A44;
    --text-muted: #556B2F;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(bluesky);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-red);
}

/* Header Styles */
.site-header {
    background-color: var(#1A2B4C);
    border-bottom: 3px solid var(--primary-blue);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-area img {
    max-height: 70px;
    width: auto;
}

.value-props {
    list-style: none;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--primary-blue);
    border-left: 2px dashed #AAC0D0;
    padding-left: 15px;
}

.value-props li {
    margin-bottom: 2px;
}

.header-tagline {
    text-align: right;
}

.header-tagline h1 {
    color: var(--accent-red);
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    letter-spacing: -0.5px;
}

.nav-bar-container {
    background-color: var(--yellow);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.nav-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.nav-bar ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-bar li a {
    color: var(#1A2B4C);
    padding: 14px 24px;
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-bar li a:hover,
.nav-bar li.current-menu-item a {
    background-color: var(--secondary-blue);
    color: var(--accent-yellow);
}

/* Main Container */
.site-content {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 20px;
    min-height: 60vh;
}

/* Badge Section */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.badge-terbaru {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 8px 24px;
    font-weight: 800;
    border-radius: 20px;
    font-size: 1.1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 2px solid #E6B800;
}

.section-line {
    flex-grow: 1;
    height: 2px;
    background-color: #CBD5E1;
    margin-left: 15px;
}

/* Book Grid */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.book-card {
    background: var(--white);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.12);
}

.book-cover-wrapper {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f8fafc;
}

.book-cover-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.book-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 8px;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.book-price {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 1.05rem;
    margin-top: auto;
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary-blue);
    color: var(--white);
    margin-top: 50px;
    border-top: 4px solid var(--accent-yellow);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
}

.footer-content h3 {
    color: var(--accent-yellow);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.footer-content p {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #E2E8F0;
}

.footer-content a {
    color: var(--accent-yellow);
    text-decoration: underline;
}

.footer-bottom {
    background-color: #06172B;
    padding: 12px;
    text-align: center;
    font-size: 0.85rem;
    color: #94A3B8;
}

/* Forms & Pages */
.page-card {
    background: var(--white);
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.page-title {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-light-blue);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    .header-tagline {
        text-align: center;
    }
    .header-tagline h1 {
        font-size: 1.2rem;
    }
    .value-props {
        border-left: none;
        padding-left: 0;
    }
}
