/*
Theme Name: AIPI
Theme URI:
Author: AIPI
Description: WordPress theme based on Underscores for the AIPI site.
Version: 1.0.0
Text Domain: aipi
*/
.post p,
.entry-content p {
    margin-bottom: 20px;
}
.font-bold {
    font-weight: 600!important;
}
/* ================================
   HEADINGS
================================ */
.post h1,
.entry-content h1 {
  font-size: 34px;
  margin-bottom: 20px;
}

.post h2,
.entry-content h2 {
  font-size: 28px;
  margin: 32px 0 12px;
}

.post h3,
.entry-content h3 {
  font-size: 22px;
  margin: 28px 0 10px;
}

/* ================================
   PARAGRAPH & TEXT
================================ */
.post p,
.entry-content p {
  margin-bottom: 16px;
}

.post strong,
.entry-content strong {
  font-weight: 600;
}
.entry-content a {
    text-decoration: underline;
}
/* ================================
   LIST
================================ */
.post ul,
.post ol,
.entry-content ul,
.entry-content ol,
.entry-content ul.wp-block-list,
.entry-content ol.wp-block-list {
  padding-left: 20px;
  margin-bottom: 16px;
  list-style-position: outside;
}

.entry-content ul,
.entry-content ul.wp-block-list {
  list-style-type: disc;
}

.entry-content ol,
.entry-content ol.wp-block-list {
  list-style-type: decimal;
}

.post li,
.entry-content li,
.entry-content ul.wp-block-list li,
.entry-content ol.wp-block-list li {
  margin-bottom: 8px;
}

/* ================================
   IMAGE
================================ */
.post img,
.entry-content img {
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  display: block;
  border-radius: 12px;
}

/* ================================
   QUOTE
================================ */
.post blockquote,
.entry-content blockquote,
.wp-block-quote {
  border-left: 4px solid #000;
  padding-left: 16px;
  margin: 24px 0;
  color: #555;
  font-style: italic;
}

/* ================================
   GUTENBERG BLOCKS
================================ */
.wp-block-paragraph {
  margin-bottom: 16px;
}

.wp-block-image img {
  border-radius: 12px;
}

.wp-block-code {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
}

/* ================================
   CUSTOM CALLOUT BOX
================================ */
.highlight-box {
  background: #f9f9f9;
  padding: 20px;
  border-left: 4px solid #ff9900;
  margin: 24px 0;
}

/* ================================
   POST & PAGE SPECIFIC
================================ */
.single-post .post {
  padding-top: 20px;
}

.page .post {
  padding-top: 10px;
}

/* ================================
   MOBILE RESPONSIVE
================================ */
@media (max-width: 768px) {
  .post,
  .entry-content {
    padding: 0 16px;
    font-size: 15px;
  }

  .post h1,
  .entry-content h1 {
    font-size: 26px;
  }

  .post h2,
  .entry-content h2 {
    font-size: 22px;
  }

  .post h3,
  .entry-content h3 {
    font-size: 18px;
  }
}

/* Golden Button */
.btn-gold {
    background-color: #c49018;
    color: white;
    transition: background 0.2s;
}
.btn-gold:hover {
    background-color: #a97a13;
}
/* AIPI Website Styles */

/* Base Styles */
body {
    background-color: #F8F2EF;
}

body.bg-cream {
    background-color: #F8F2EF;
}

body.bg-light {
    background-color: #fafafa;
}

.font-noto {
    font-family: 'Noto Serif', serif;
}

/* Color Variables */
.bg-burgundy {
    background-color: #75292C;
}

.bg-dark-burgundy {
    background-color: #3d1b1f;
}

.bg-cream {
    background-color: #F8F2EF;
}

.text-burgundy {
    color: #75292C;
}

.text-orange {
    color: #F1AD68;
}

.border-burgundy {
    border-color: #75292C;
}

/* Hero Section */

.hero-section {
    min-height: 740px;
    height: 740px;
    position: relative;
    background-color: #2a1a1a;
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 600px;
        height: 600px;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.40);
    pointer-events: none;
    z-index: 5;
}

.hero-slider {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-inner {
    position: relative;
    z-index: 10;
}

/* Fixed/Sticky Section */
.fixed-section {
    position: sticky;
    top: 0;
    z-index: 40;
}

/* Sticky sidebar for Decades section */
@media (min-width: 768px) {
    .md\:sticky {
        position: sticky;
    }

    .md\:top-24 {
        top: 6rem;
    }
}

/* Button Styles */
.btn-burgundy {
    background-color: #75292C;
    color: white;
}

.btn-burgundy:hover {
    opacity: 0.9;
}

.btn-outline-burgundy {
    border: 2px solid #75292C;
    color: #75292C;
}

.btn-outline-burgundy:hover {
    background-color: #75292C;
    color: white;
}

/* Link Styles */
.link-burgundy {
    color: #75292C;
    font-weight: 600;
}
.link-burgundy.flex.items-center.underline {
    text-decoration: none;
    border-bottom: solid 2px;
    display: inline-block;
}
.link-burgundy:hover {
    text-decoration: underline;
}

/* Card Styles */
.card-burgundy {
    background-color: #75292C;
    color: white;
}

.card-cream {
    background-color: #f5f1ed;
}

/* Member Card Active Status */
.status-active {
    width: 0.75rem;
    height: 0.75rem;
    background-color: #10b981;
    border-radius: 9999px;
    border: 2px solid white;
}

/* Book Cover Style */
.book-cover-burgundy {
    background-color: #75292C;
    color: white;
}

/* Footer Styles */
.footer-dark {
    background-color: #240607;
}

/* Badge Styles */
.badge-memoriam {
    background-color: rgba(0, 0, 0, 0.3);
}

.badge-dark {
    background-color: #1f2937;
}

.badge-cream {
    background-color: #f5f1ed;
}

/* ================================
   HEADER SCROLL SHRINK
================================ */
#site-header {
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background  0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: box-shadow;
}

#site-header .header-logo {
    transform-origin: left center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

#site-header .header-inner {
    height: 88px;
    transition: height  0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#site-header.scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
}

#site-header.scrolled .header-logo {
    transform: scale(0.65);
}

#site-header.scrolled .header-inner {
    height: 52px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Navigation */
nav {
    background-color: white;
}

/* Desktop dropdown submenu */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
}

/* Hide submenus by default and position absolutely */
nav ul li .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-radius: 6px;
    padding: 8px 0;
    z-index: 60;
}

nav ul li .sub-menu li {
    width: 100%;
}

nav ul li .sub-menu a {
    display: block;
    padding: 8px 16px;
    color: #374151;
    text-decoration: none;
}

nav ul li .sub-menu a:hover {
    background: #f3f4f6;
}

/* Show submenu on hover for desktop */
@media (min-width: 768px) {
    nav ul li:hover > .sub-menu {
        display: block;
    }
}

/* Pagination Active */
.pagination-active {
    background-color: #75292C;
    color: white;
}

/* Featured Banner */
.featured-banner {
    background-color: #75292C;
}

/* Opinion Card */
.opinion-card {
    background-color: #8A5F3D;
}

/* Agenda Card */
.agenda-card {
    background-color: #f5f1ed;
}

/* Opacity utilities for hover */
.hover-opacity:hover {
    opacity: 0.9;
}

/* Focus ring for burgundy */
.focus-ring-burgundy:focus {
    outline: none;
    ring: 2px;
    ring-color: #75292C;
}

/* Gradient overlay for images */
.gradient-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* Play button overlay */
.play-button-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Grayscale filter for memoriam */
.grayscale {
    filter: grayscale(100%);
}

/* Sticky sidebar */
.sticky-sidebar {
    position: sticky;
    top: 6rem;
}

/* Shadow styles */
.shadow-burgundy {
    box-shadow: 0 4px 6px -1px rgba(139, 35, 50, 0.1), 0 2px 4px -1px rgba(139, 35, 50, 0.06);
}

/* Transition utilities */
.transition-all {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #75292C;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6d1b27;
}

.rounded {
    border-radius: 10px!important;
}

.card-product {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    /* height: 450px; */
}

.card-product p {
    border-bottom: solid 1px #C98789;
    padding-bottom: 20px;
}

.card-data {
    border-left: solid 10px #C98789;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border: solid 1px #D68955;
    border-radius: 10px;
    background: #fff;
    margin-top: 4px;
}

/* Post Thumbnail with Overlay Title */
.post-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.post-thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    padding: 3rem 2rem 2rem;
}

.post-thumbnail-title {
    color: white;
    font-size: 2.25rem;
    font-weight: bold;
    line-height: 1.2;
    margin: 0;
}

@media (min-width: 768px) {
    .post-thumbnail-title {
        font-size: 3rem;
    }
}
a.wp-block-button__link {
    background-color: #75292C;
    border-radius: 10px !important;
    font-size: 1rem;
    line-height: 1.5rem;
    text-decoration: none;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}
/* Sidebar Share Buttons */
.sidebar-share {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: #fff;
    color: #4b5563;
    transition: all 0.2s ease;
}

.share-button:hover {
    background-color: #75292C;
    color: white;
    transform: translateY(-2px);
}

/* Product Gallery Slider */
.product-gallery-slider {
    position: relative;
}

.gallery-slide {
    display: none;
}

.gallery-slide.active {
    display: block;
}

.gallery-dot {
    width: 8px;
    height: 8px;
}

.gallery-dot.active {
    background-color: #75292C;
}

/* Product Content Show More */
.product-content-full {
    display: none;
}

.product-content-full.show {
    display: block;
}

.product-content-short.hide {
    display: none;
}
#anggota-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}
#anggota-grid.list-view .anggota-card {
    flex-direction: column;
    min-height: unset !important;
    align-items: start;
    padding: 1rem 1.5rem;
}
#anggota-grid.list-view .anggota-card-media {
    flex-shrink: 0;
}
#anggota-grid.list-view .anggota-card-body {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: start;
    flex: 1;
}
#btn-view-grid.active, #btn-view-list.active {
    background: #fff;
    border-color: #75292C;
    color: #75292C;
}

tts-play-button.tts_play_button {
    margin-bottom: 30px;
    display: block;
}
.underline-more {
    border-bottom: solid 1px;
    padding-bottom: 0px;
}

.underline-more:hover {
    filter: brightness(0.8);
}
.tipe-agenda tts-play-button.tts_play_button {
    display: none;
}
/* Responsive Styles */
@media (max-width: 768px) {
    /* Hero section mobile adjustments */
    .hero-section {
        min-height: 500px;
        height: 500px;
    }
    
    /* Typography mobile adjustments */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    /* Card adjustments */
    .card-product {
        height: auto;
        min-height: 300px;
    }
    
    /* Remove sticky positioning on mobile */
    .md\:sticky {
        position: static !important;
    }
    
    .sticky-sidebar {
        position: static;
    }
    
    /* Navigation improvements */
    nav {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    /* Content spacing */
    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Button adjustments */
    .btn-burgundy,
    .btn-gold,
    .btn-outline-burgundy {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Grid adjustments */
    .grid {
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    /* Extra small mobile adjustments */
    .hero-section {
        min-height: 450px;
        height: 450px;
        padding: 0!important;
    }
    
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    /* Reduce padding on small screens */
    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Make images full width on mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Improve form elements */
    input[type="text"],
    input[type="email"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Select dropdown arrow spacing */
select {
    padding-right: 35px!important;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23374151' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
}

/* Tablet optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
    .hero-section {
        min-height: 600px;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
}

/* Mobile Menu Styles */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

#mobile-menu.hidden {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Mobile menu links */
#mobile-menu a {
    display: block;
    transition: all 0.2s ease;
}

#mobile-menu a:hover {
    padding-left: 0.5rem;
}

/* Ensure mobile menu is full width */
#mobile-menu .menu {
    width: 100%;
}

#mobile-menu .menu li {
    width: 100%;
}
