/* ============================================
   ORDINARY PAGE TEMPLATE STYLES
   ChileCasinoSites.com
   ============================================ */

/* ============================================
   LAYOUT — Page Container + Grid
   ============================================ */

.ord-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.ord-page-row {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
}

.ord-main-column {
    min-width: 0;
}

.ord-sidebar-column {
    position: sticky;
    top: 100px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.ord-hero-section {
    background: linear-gradient(135deg, #203E94 0%, #1a3278 50%, #0f1f52 100%);
    padding: 50px 0 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.ord-hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.ord-hero-section .container {
    position: relative;
    z-index: 1;
}

.ord-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.ord-hero-intro {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

/* Benefit Tags */
.ord-hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.ord-benefit-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.ord-benefit-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.ord-benefit-tag .bi {
    font-size: 1rem;
}

.ord-benefit-icon {
    font-size: 1rem;
    line-height: 1;
}

/* Quick Nav Anchors */
.ord-hero-anchors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ord-anchor-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ord-anchor-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    text-decoration: none;
}

/* Entry Content (when no hero) */
.entry-header {
    margin-bottom: 2rem;
    padding-top: 40px;
}

.entry-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.entry-content h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.entry-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #203E94;
    margin: 2rem 0 0.75rem;
}

.entry-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
    margin: 1.5rem 0 0.5rem;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

.entry-content a {
    color: #203E94;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.entry-content a:hover {
    color: #1a3278;
}

.entry-content ul,
.entry-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* ============================================
   FAQ SECTION (ACF — plain text, no dropdowns)
   ============================================ */

.ord-faq-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.ord-faq-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.ord-faq-item {
    margin-bottom: 1.75rem;
}

.ord-faq-question {
    font-size: 1.15rem;
    font-weight: 700;
    color: #203E94;
    margin: 0 0 0.5rem;
}

.ord-faq-answer {
    font-size: 1rem;
    line-height: 1.75;
    color: #4a5568;
}

.ord-faq-answer p:last-child {
    margin-bottom: 0;
}

/* ============================================
   EDITORIAL BOX
   ============================================ */

.ord-editorial-box {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #203E94;
    border-radius: 8px;
}

.ord-editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
}

.ord-editorial-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ord-editorial-item--full {
    grid-column: 1 / -1;
}

.ord-editorial-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ord-editorial-value {
    font-size: 0.95rem;
    color: #334155;
    font-weight: 500;
}

.ord-editorial-value a {
    color: #203E94;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ord-editorial-value a:hover {
    color: #1a3278;
}

/* ============================================
   TABS SHORTCODE
   ============================================ */

.ccs-tabs-wrapper {
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.ccs-tabs-nav {
    display: flex;
    overflow-x: auto;
    background: #f1f5f9;
    border-bottom: 2px solid #e2e8f0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ccs-tabs-nav::-webkit-scrollbar {
    display: none;
}

.ccs-tab-btn {
    flex: 0 0 auto;
    padding: 14px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    margin-bottom: -2px;
}

.ccs-tab-btn:hover {
    color: #203E94;
    background: rgba(32, 62, 148, 0.05);
}

.ccs-tab-btn.active {
    color: #203E94;
    border-bottom-color: #203E94;
    background: #ffffff;
}

.ccs-tab-panel {
    display: none;
    padding: 1.5rem;
    animation: ccsFadeIn 0.3s ease;
}

.ccs-tab-panel.active {
    display: block;
}

@keyframes ccsFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ACCORDION SHORTCODE
   ============================================ */

.ccs-accordion-wrapper {
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.ccs-acc-item {
    border-bottom: 1px solid #e2e8f0;
}

.ccs-acc-item:last-child {
    border-bottom: none;
}

.ccs-acc-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: none;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.ccs-acc-header:hover {
    background: #f8fafc;
}

.ccs-acc-title {
    flex: 1;
}

.ccs-acc-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #203E94;
}

.ccs-acc-item.open .ccs-acc-icon {
    transform: rotate(180deg);
}

.ccs-acc-body {
    overflow: hidden;
}

.ccs-acc-content {
    padding: 0 20px 16px;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #4a5568;
}

.ccs-acc-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   INFO BOXES
   ============================================ */

.ccs-info-box {
    display: flex;
    gap: 14px;
    padding: 1.25rem;
    margin: 1.75rem 0;
    border-radius: 10px;
    border: 1px solid;
}

.ccs-info-box-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.ccs-info-box-body {
    flex: 1;
    min-width: 0;
}

.ccs-info-box-title {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.ccs-info-box-content {
    font-size: 0.95rem;
    line-height: 1.7;
}

.ccs-info-box-content p:last-child {
    margin-bottom: 0;
}

/* CTA */
.ccs-info-box--cta {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
}

.ccs-info-box--cta .ccs-info-box-icon {
    color: #203E94;
}

.ccs-info-box--cta .ccs-info-box-title {
    color: #1e3a8a;
}

/* Tip */
.ccs-info-box--tip {
    background: #f0fdf4;
    border-color: #86efac;
}

.ccs-info-box--tip .ccs-info-box-icon {
    color: #16a34a;
}

.ccs-info-box--tip .ccs-info-box-title {
    color: #166534;
}

/* Warning */
.ccs-info-box--warning {
    background: #fffbeb;
    border-color: #fcd34d;
}

.ccs-info-box--warning .ccs-info-box-icon {
    color: #d97706;
}

.ccs-info-box--warning .ccs-info-box-title {
    color: #92400e;
}

/* Note */
.ccs-info-box--note {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.ccs-info-box--note .ccs-info-box-icon {
    color: #64748b;
}

.ccs-info-box--note .ccs-info-box-title {
    color: #334155;
}

/* ============================================
   IMAGE SLIDER
   ============================================ */

.ccs-image-slider {
    position: relative;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}

.ccs-slider-track {
    position: relative;
}

.ccs-slide {
    display: none;
    text-align: center;
}

.ccs-slide.active {
    display: block;
    animation: ccsFadeIn 0.4s ease;
}

.ccs-slide img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.ccs-slide-caption {
    padding: 10px 16px;
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    background: rgba(255, 255, 255, 0.9);
}

.ccs-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s ease;
    color: #203E94;
}

.ccs-slider-btn:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ccs-slider-prev {
    left: 10px;
}

.ccs-slider-next {
    right: 10px;
}

.ccs-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
}

.ccs-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.ccs-slider-dot.active {
    background: #203E94;
    border-color: #203E94;
}

/* ============================================
   STYLED TABLE
   ============================================ */

.ccs-table-wrapper {
    margin: 1.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.ccs-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.ccs-table-wrapper thead th {
    background: #203E94;
    color: #ffffff;
    padding: 12px 16px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ccs-table-wrapper tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: middle;
}

.ccs-table-wrapper tbody tr:last-child td {
    border-bottom: none;
}

.ccs-table-wrapper tbody tr:nth-child(even) {
    background: #f8fafc;
}

.ccs-table-wrapper tbody tr:hover {
    background: #eff6ff;
}

/* Striped variant */
.ccs-table-wrapper.striped tbody tr:nth-child(odd) {
    background: #f1f5f9;
}

.ccs-table-wrapper.striped tbody tr:nth-child(even) {
    background: #ffffff;
}

/* ============================================
   SIDEBAR WIDGETS
   (Reuse existing right-sidebar.php styles)
   ============================================ */

.ord-sidebar-column .widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.ord-sidebar-column .widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #203E94;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #203E94;
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .ord-page-row {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .ord-page-container {
        padding: 0 15px 40px;
    }

    .ord-page-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ord-sidebar-column {
        position: static;
    }

    /* Hero */
    .ord-hero-section {
        padding: 35px 0 30px;
        margin-bottom: 25px;
    }

    .ord-hero-title {
        font-size: 1.75rem;
    }

    .ord-hero-intro {
        font-size: 1rem;
    }

    .ord-hero-benefits {
        gap: 6px;
    }

    .ord-benefit-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .ord-hero-anchors {
        gap: 6px;
    }

    .ord-anchor-link {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    /* Entry */
    .entry-title {
        font-size: 2rem;
    }

    .entry-header {
        padding-top: 25px;
    }

    /* Editorial */
    .ord-editorial-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* Tabs */
    .ccs-tab-btn {
        padding: 12px 16px;
        font-size: 0.875rem;
    }

    .ccs-tab-panel {
        padding: 1rem;
    }

    /* Accordion */
    .ccs-acc-header {
        padding: 14px 16px;
    }

    .ccs-acc-content {
        padding: 0 16px 14px;
    }

    /* Info Box */
    .ccs-info-box {
        flex-direction: column;
        gap: 8px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .ord-hero-title {
        font-size: 1.5rem;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .entry-content {
        font-size: 0.975rem;
    }

    .entry-content h2 {
        font-size: 1.35rem;
    }

    .ccs-tabs-nav {
        gap: 0;
    }

    .ccs-tab-btn {
        padding: 10px 12px;
        font-size: 0.8125rem;
    }
}