﻿/* ============================================
   styles.css - Consolidated Stylesheet
   charliekirk.co.za
   Version: 8
   ============================================ */

/* ============================================
   BASE STYLES (from style-v3.1.css)
   ============================================ */


/* Import video end screen styles for modals */

:root {
    --navy: #041E42;
    --red: #BF0D3E;
    --white: #FFFFFF;
    --light-navy: #14325f;
    --gray: #333333;
    --light-gray: #a09e9eff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    text-decoration: none;
}

body {
    background-color: var(--navy);
    color: var(--white);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0px auto;
    padding: 0 15px;
}

ul {
    margin-left: 20px;
    padding-left: 0px;
    padding-top: 15px;
    padding-bottom: 25px;
}

/* Header Styles */
header {
    background-color: var(--light-navy);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: 50px;
    margin-right: 10px;
}

.logo h1 {
    color: var(--white);
    font-size: 1.5rem;
}

/* Navigation Styles */
nav {
    position: relative;
}

.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.main-menu {
    display: flex;
    list-style: none;
}

.main-menu > li {
    position: relative;
    margin-left: 20px;
}

.main-menu > li > a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: bold;
    transition: color 0.3s;
}

.main-menu > li > a:hover {
    color: var(--red);
}

.dropdown {
    position: absolute;
    top: 100%;
    right: -100px;
    background-color: var(--light-navy);
    width: 270px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    list-style: none;
    transition: all 0.3s;
    z-index: 100;
    text-align: center;
}

.main-menu li:hover > .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown li {
    position: relative;
}

.dropdown li a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background 0.3s;
}

.dropdown li a:hover {
    background-color: var(--navy);
}

.sub-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: var(--light-navy);
    width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.dropdown li:hover > .sub-dropdown {
    opacity: 1;
    visibility: visible;
}


.dropdown-toggle {
    display: none;
}

@media (max-width: 768px) {
    .main-menu > li {
        position: relative; /* Anchor dropdown positioning */
        display: inline-flex; /* Use flexbox inline to align items horizontally */
        align-items: center;
        gap: 5px; /* Space between the link and toggle button */
    }
    .dropdown {
        position: absolute;
        top: 100%; /* Directly below the parent */
        left: 0;    /* Align left edge with parent */
        width: 270px; /* or your desired width */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        background-color: var(--light-navy);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        z-index: 100;
    }

    .main-menu > li > a {
        display: inline-block; /* Prevent the link from taking full width */
        white-space: nowrap; /* Prevent text wrapping */
    }
    .main-menu li:hover > .dropdown,
    .main-menu li .dropdown.active {
        opacity: 1;
        visibility: visible;
    }
    .main-menu > li.dropdown-open {
        margin-bottom: 270px; /* height of dropdown */
    }
    .dropdown-toggle {
        display: inline-block;
        background: none;
        border: none;
        color: var(--white);
        font-size: 1.6rem;
        cursor: pointer;
        margin-left: 5px;
    }
}

/* Section Header with View All Button */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2rem;
    color: var(--white);
    position: relative;
    margin-bottom: 30px;
    text-align: center;
}

.section-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--red);
}

.section-header .section-title::after {
    left: 0;
    transform: none;
}

.text-center {
    text-align: center;
}

.margin-top-25 {
    margin-top: 25px;
}

.view-all-btn {
    background-color: var(--red);
    color: var(--white);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.view-all-btn:hover {
    background-color: #a00b33;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.lead {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Featured Video Section - Two Columns */
.featured-video {
    margin-bottom: 40px;
    background-color: var(--light-navy);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.featured-video.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.featured-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.two-columns .featured-video-container {
    margin-bottom: 0;
}

.featured-video-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.video-clickable {
    cursor: pointer;
}

.video-clickable:hover img {
    opacity: 0.7;
}

.play-icon-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(191, 13, 62, 0.8);
    color: var(--white);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 2;
}

.video-clickable:hover .play-icon-large {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.featured-video-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.featured-video-info p {
    color: #ccc;
    margin-bottom: 15px;
}

/* Watch Now Button */
.play-video-btn {
    background-color: var(--red);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
}

.play-video-btn:hover {
    background-color: #a00b33;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.play-video-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.play-video-btn::before {
    content: '\f04b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
}

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

.video-card {
    background-color: var(--light-navy);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.video-clickable:hover img {
    opacity: 0.7;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(191, 13, 62, 0.8);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.video-clickable:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.video-info {
    padding: 15px;
}

.video-title-link {
    text-decoration: none;
    color: var(--white);
    display: block;
}

.video-title-link:hover h3 {
    color: var(--red);
}

.video-info h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    transition: color 0.3s;
   /*  border-top: 1px solid rgba(4, 30, 67, 0.3); */
}

.video-info p {
    color: #ccc;
    font-size: 0.9rem;
}

.featured-video-info {
  padding: 20px;
    padding-top: 20px;
}

@media (max-width: 767px) {

    .video-info h3 {
        font-size: 1rem;
        margin-bottom: 10px;
        transition: color 0.3s;
    }

    .video-info p {
        color: #ccc;
        font-size: 1rem;
    }

}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 80%; 
    max-width: 1200px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

/* .close-modal:hover {
    color: var(--red);
} */

.modal-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.modal-video-container iframe,
.modal-video-container #modalVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background-color: var(--light-navy);
    padding: 50px 0 20px;
    text-align: center;
    position: relative;
}

.memorial-section {
    margin-bottom: 40px;
}

.memorial-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--white);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.memorial-name {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.memorial-years {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 15px;
}

.memorial-quote {
    font-style: italic;
    font-size: 24px;
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

/* Make ads responsive */
@media (max-width: 480px) {
    .memorial-quote br {
        display: none;
    }
}



.memorial-message {
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.memorial-message-legacy {
    max-width: 800px;
    font-size: 24px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.footer-divider {
    width: 100px;
    height: 2px;
    background-color: var(--red);
    margin: 0 auto 30px;
}

.copyright {
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .featured-video.two-columns {
        grid-template-columns: 1fr;
    }
    
    .featured-video-container {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-menu {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        background-color: var(--light-navy);
        width: 340px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        z-index: 100;
    }
    
    .main-menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .main-menu > li {
        margin-left: 0;
    }

    .main-menu ul {
        margin-left: 0;
    }

    .dropdown {
        text-align: left;
    }
    
    .dropdown, .sub-dropdown {
        position: absolute;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    
    .dropdown.active, .sub-dropdown.active {
        display: block;
    }
    
    .dropdown li a, .sub-dropdown li a {
        padding-left: 30px;
    }
    
    .sub-dropdown li a {
        padding-left: 45px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .view-all-btn {
        margin-top: 10px;
    }

    .section-title::after {
        margin-bottom: 10px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .featured-video {
        margin-bottom: 20px;
        background-color: var(--light-navy);
        padding: 0px;
    }

    .desktop-br {
        display: none;
    }
}

/* Featured Category Video */
.featured-category-video {
    margin-bottom: 30px;
}

.featured-video-info .video-title-link {
    display: block;
    color: var(--white);
    text-decoration: none;
}

.featured-video-info .video-title-link:hover h3 {
    color: var(--red);
}

.featured-video-info .video-title-link:hover .fa-arrow-right {
    transform: translateX(5px);
}

.fa-arrow-right {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.featured-video-info h3 {
    transition: color 0.3s;
}

/* Make sure the grid works properly when featured videos are absent */
.section-header + .video-grid {
    margin-top: 20px;
}


/* AD STYLES */

.cka-slot {
    margin: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.cka-inner {
    position: relative;
    max-width: 100%;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cka-link {
    display: block;
}

.cka-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.cka-info {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2px 8px;
    border-bottom-left-radius: 4px;
}

.cka-label {
    color: #ffffff;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* General ad styles */
.cka-slot {
    display: block;
    width: 100%;
    margin: 20px 0;
    position: relative;
    text-align: center;
}

.cka-inner {
    display: inline-block;
    position: relative;
}

.cka-link {
    display: block;
}

.cka-img {
    display: block;
    max-width: 100%;
    height: auto;
}

.cka-info {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(0,0,0,0.6);
    padding: 2px 5px;
    font-size: 10px;
}

.cka-label {
    color: #fff;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
}

/* Specific ad zone styles */
.top-banner .cka-slot {
    margin: 0 0 20px 0;
}

.cka-above {
    margin-bottom: 20px;
}

.cka-below {
    margin-top: 20px;
    margin-bottom: 20px;
}

.sidebar .cka-slot {
    margin-bottom: 30px;
}

.related-item.cka-paid {
    background: none;
    padding: 0;
    box-shadow: none;
}

/* Ad sizes */

/* .top-banner .cka-img {
    width: 728px;
    height: 90px;
} */ 
.top-banner .cka-img, 
.cka-slot .cka-img, 
.cka-above .cka-img,
.cka-below .cka-img, 
.related-item.cka-paid .cka-img {
    width: 1200px;
    height: 120px;
}

.sidebar .cka-img {
    width: 300px;
    height: 250px;
}

/* Make ads responsive */
@media (max-width: 768px) {
    .top-banner .cka-img, 
    .cka-slot .cka-img, 
    .cka-above .cka-img,
    .cka-below .cka-img, 
    .related-item.cka-paid .cka-img {
        width: 100%;
        height: auto;
    }
    
    .sidebar .cka-img {
        width: 100%;
        height: auto;
    }
}

.video-item.ad-item {
    grid-column: 1 / -1; /* Make ad take full width if using CSS Grid */
    background: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.ad-placeholder {
    height: 120px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 14px;
    color: #777;
}

/* Admin edit link styling */
.admin-edit-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    padding-right: 6px;
    transition: all 0.2s ease;
}

.admin-edit-link:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.7);
}

.admin-edit-link .video-duration {
    background: transparent;
    margin: 0;
    padding: 0 5px;
    position: static;
}

.admin-edit-link .edit-icon {
    margin-left: 3px;
    font-size: 0.8em;
    color: #4CAF50;
}

.admin-edit-link:hover .edit-icon {
    color: #fff;
}

/* Social Sharing Section Styles */
.social-sharing {
    background-color: var(--light-navy);
    padding: 30px 0;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sharing-content {
    text-align: center;
}

.sharing-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--white);
}

.sharing-content p {
    margin-bottom: 20px;
    color: var(--white);
}

.sharing-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.share-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    min-width: 120px;
    justify-content: center;
}

.share-btn i {
    margin-right: 8px;
    font-size: 18px;
}

/* Social media brand colors */
.share-btn.facebook {
    background-color: #3b5998;
}
.share-btn.facebook:hover {
    background-color: #2d4373;
}

/* .share-btn.twitter {
    background-color: #1da1f2;
}
.share-btn.twitter:hover {
    background-color: #0c85d0;
} */
 /* X (formerly Twitter) */
.share-btn.x-twitter {
    background-color: #000000;
}
.share-btn.x-twitter:hover {
    background-color: #333333;
}

.share-btn.whatsapp {
    background-color: #25d366;
}
.share-btn.whatsapp:hover {
    background-color: #128c7e;
}

.share-btn.linkedin {
    background-color: #0077b5;
}
.share-btn.linkedin:hover {
    background-color: #005582;
}

.share-btn.telegram {
    background-color: #0088cc;
}
.share-btn.telegram:hover {
    background-color: #006699;
}

.share-btn.reddit {
    background-color: #ff4500;
}
.share-btn.reddit:hover {
    background-color: #cc3700;
}

.share-btn.email {
    background-color: #3498db;
}
.share-btn.email:hover {
    background-color: #2980b9;
}

.share-btn.pinterest {
    background-color: #bd081c;
}
.share-btn.pinterest:hover {
    background-color: #8c0615;
}

.share-btn.copy-link {
    background-color: #555;
}
.share-btn.copy-link:hover {
    background-color: #333;
}

/* For tablets */
@media (max-width: 768px) {
    .sharing-buttons {
        max-width: 600px;
    }
    
    .share-btn {
        min-width: 110px;
        padding: 8px 15px;
    }
}

/* For smaller screens */
@media (max-width: 576px) {
    .sharing-buttons {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }
    
    .share-btn {
        width: 95%;
        justify-content: center;
        margin-bottom: 5px;
    }
}

/* Copy link confirmation message */
.copy-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    display: none;
}

.copy-message.show {
    display: block;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; }
}


/* Books Grid Styles */
.book-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}

.book-card {
/* background-color: var(--white); */
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
transition: transform 0.2s, box-shadow 0.2s;
}

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

.book-thumbnail {
position: relative;
overflow: hidden;
border-radius: 8px 8px 0 0;
}

.book-thumbnail img {
width: 100%;
height: 600px;
object-fit: cover;
transition: transform 0.3s;
}

.book-card:hover .book-thumbnail img {
transform: scale(1.05);
}

/* .book-details {
position: absolute;
bottom: 10px;
left: 10px;
color: var(--gray);
font-size: 0.9rem;
background: rgba(0,0,0,0.6);
padding: 5px 10px;
border-radius: 4px;
display: flex;
gap: 10px;
align-items: center;
} */

.book-pages {
background: rgba(255,255,255,0.2);
padding: 2px 6px;
border-radius: 3px;
color: white;
}

.bestseller-badge {
background: #ab0000;
color: white;
padding: 2px 6px;
border-radius: 3px;
font-weight: 600;
font-size: 0.85rem;
}

.book-info {
padding: 1rem;
background: var(--white);
min-height: 270px;
}

.book-title {
font-size: 1.1rem;
margin-bottom: 0.4rem;
font-weight: 600;
color: var(--navy);
line-height: 1.3;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}

.book-title-link {
color: inherit;
text-decoration: none;
display: block;
}

.book-title-link:hover {
color: var(--red);
}

.author-name {
font-size: 0.85rem;
color: #666;
margin-bottom: 0.6rem;
font-style: italic;
}

.author-name .author-link {
color: var(--navy);
text-decoration: none;
font-style: normal;
font-weight: 600;
display: inline;
}

.author-name .author-link:hover {
color: var(--red);
}

.featured-book-info .author-name .author-link {
color: var(--white);
text-decoration: none;
font-style: normal;
font-weight: 600;
display: inline;
}

.book-description {
color: #555;
font-size: 0.875rem;
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
margin-bottom: 1rem;
}

.amazon-link {
display: inline-flex;
align-items: center;
gap: 8px;
color: #ff9900;
font-weight: 600;
text-decoration: none;
font-size: 0.95rem;
transition: color 0.3s;
}

.amazon-link:hover {
color: #cc7a00;
}

.amazon-link i {
font-size: 1.2rem;
}

@media (max-width: 768px) {
    .book-title {
        -webkit-line-clamp: unset;
        overflow: visible;
        display: block;
    }
}



/* Books Grid Styles */
.book-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.5rem;
margin-bottom: 4rem;
}

.book-card {
/* background-color: var(--white); */
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
transition: transform 0.2s, box-shadow 0.2s;
}

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

.book-thumbnail {
position: relative;
overflow: hidden;
border-radius: 8px 8px 0 0;
}

.book-thumbnail img {
width: 100%;
height: 600px;
object-fit: cover;
transition: transform 0.3s;
}

.book-card:hover .book-thumbnail img {
transform: scale(1.05);
}

/* .book-details {
position: absolute;
bottom: 10px;
left: 10px;
color: var(--gray);
font-size: 0.9rem;
background: rgba(0,0,0,0.6);
padding: 5px 10px;
border-radius: 4px;
display: flex;
gap: 10px;
align-items: center;
} */

.book-pages {
background: rgba(255,255,255,0.2);
padding: 2px 6px;
border-radius: 3px;
color: white;
}

.bestseller-badge {
background: #ab0000;
color: white;
padding: 2px 6px;
border-radius: 3px;
font-weight: 600;
font-size: 0.85rem;
}

/* .book-info {
padding: 1rem;
background: var(--white);
min-height: 240px;
} */

.book-title {
font-size: 1.1rem;
margin-bottom: 0.4rem;
font-weight: 600;
color: var(--navy);
line-height: 1.3;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}

.book-title-link {
color: inherit;
text-decoration: none;
display: block;
}

.book-title-link:hover {
color: var(--red);
}

.author-name {
font-size: 0.85rem;
color: #666;
margin-bottom: 0.6rem;
font-style: italic;
}

.author-name .author-link {
color: var(--navy);
text-decoration: none;
font-style: normal;
font-weight: 600;
}

.author-name .author-link:hover {
color: var(--red);
}

.book-description {
color: #555;
font-size: 0.875rem;
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
margin-bottom: 1rem;
}

.amazon-link {
display: inline-flex;
align-items: center;
gap: 8px;
color: #ff9900;
font-weight: 600;
text-decoration: none;
font-size: 0.95rem;
transition: color 0.3s;
}

.amazon-link:hover {
color: #cc7a00;
}

.amazon-link i {
font-size: 1.2rem;
}

@media (max-width: 768px) {
    .book-title {
        -webkit-line-clamp: unset;
        overflow: visible;
        display: block;
    }
}


.compact-books-grid {
    margin-bottom: 45px;
}

.compact-book-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  padding: 8px;
  gap: 12px;
  transition: box-shadow 0.2s ease;
}

.compact-book-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

.compact-book-thumbnail {
  flex-shrink: 0;
  width: 120px;
  height: 180px; /* tall image */
  overflow: hidden;
  border-radius: 4px;
}

.compact-book-thumbnail-2 {
  flex-shrink: 0;
  width: 250px;
  height: 375px; /* tall image */
  overflow: hidden;
  border-radius: 4px;
}

.compact-book-thumbnail-3 {
  flex-shrink: 0;
  width: 120px;
  height: 180px; /* tall image */
  overflow: hidden;
  border-radius: 4px;
}

.compact-book-thumbnail-4 {
  flex-shrink: 0;
  width: 80px;
  height: 120px; /* tall image */
  overflow: hidden;
  border-radius: 4px;
}

.compact-book-thumbnail img, 
.compact-book-thumbnail-2 img, 
.compact-book-thumbnail-3 img, 
.compact-book-thumbnail-4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


@media (max-width: 998px) {
    .compact-book-thumbnail {
        overflow: hidden;
        border-radius: 4px;
        /* min-width: 30%; */
        flex-shrink: 0;
        height: 270px;
        width: 180px;
    }
    .compact-book-thumbnail-2 img {
        width: 100%;
        height: auto;
        border-radius: 4px;
        display: block;
    }

    /* Book thumbnail styling */
    .compact-book-thumbnail-2 {
        width: 30%; /* Make image 30% of the container width */
        height: auto; /* tall image */
        min-width: 30%;
        flex-shrink: 0;
    }
    .compact-book-thumbnail-3 {
        flex-shrink: 0;
        width: 180px;
        height: 270px; /* tall image */
        overflow: hidden;
        border-radius: 4px;
    }
}

@media (max-width: 768px) {
    .compact-book-thumbnail-2 img {
        width: 100%;
        height: auto;
        border-radius: 4px;
        display: block;
    }

    /* Book thumbnail styling */
    .compact-book-thumbnail-2 {
        width: 30%; /* Make image 30% of the container width */
        height: auto; /* tall image */
        min-width: 30%;
        flex-shrink: 0;
    }
    .compact-book-thumbnail-3 {
        flex-shrink: 0;
        width: 180px;
        height: 270px; /* tall image */
        overflow: hidden;
        border-radius: 4px;
    }
}

@media (max-width: 500px) {
    .compact-book-thumbnail {
        overflow: hidden;
        border-radius: 4px;
        min-width: 30%;
        flex-shrink: 0;
        height: 180px;
        width: 120px;
    }
    .compact-book-thumbnail-2 img {
        width: 120px;
        height: 180px;
        border-radius: 4px;
        display: block;
    }

    /* Book thumbnail styling */
    .compact-book-thumbnail-2 {
        height: 180px;
        min-width: 30%;
        flex-shrink: 0;
        width: 120px;
    }
    .compact-book-thumbnail-3 {
        flex-shrink: 0;
        width: 120px;
        height: 180px; /* tall image */
        overflow: hidden;
        border-radius: 4px;
    }
}
    
.compact-book-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.compact-book-info {
  flex: 1;
  overflow: hidden;
}

.compact-book-title {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.2em * 4); /* to enforce max height */
    word-break: break-word;

    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.compact-book-title-2 {
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(3em * 4);
    word-break: break-word;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 6px 0;
    line-height: 1.5;
    margin-right: 30px;
}

.compact-book-title-3 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.4em * 4);
    word-break: break-word;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 6px 0;
    line-height: 1.4;
}

/* For larger screens (tablets and desktop), use two columns */
@media (max-width: 998px) {
    .compact-book-title {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: calc(1.4em * 4);
        word-break: break-word;
        font-size: 1.4rem;
    }
}
@media (max-width: 768px) {
    .compact-book-title {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: calc(1.2em * 4); /* to enforce max height */
        word-break: break-word;

        font-size: 1rem;
        font-weight: 600;
        color: var(--navy);
        margin: 0 0 6px 0;
        line-height: 1.2;
    }
    .compact-book-title-2 {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: calc(2em * 3);
        word-break: break-word;
        font-size: 1rem;
        font-weight: 600;
        color: var(--navy);
        margin: 0 0 6px 0;
        line-height: 1.5;
        margin-right: 30px;
    }
    .compact-book-title-3 {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: calc(1.2em * 4);
        word-break: break-word;
        font-size: 1.2rem;
    }
}
@media (max-width: 500px) {
    .compact-book-title-3 {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: calc(1em * 4);
        word-break: break-word;
        font-size: 1rem;
    }
}

.compact-book-title-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.2em * 4); /* to enforce max height */
    word-break: break-word;

    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.compact-book-info p {
    font-size: 1.1rem;
    color: #939393;
    margin-bottom: 20px;
}

.compact-book-info p a {
    font-size: 1.1rem;
    color: #939393;
    margin-bottom: 20px;
}

.compact-book-info p.compact-book-author-2 a {
    font-size: 1.1rem;
    color: #939393;
    margin-bottom: 20px;
}

.compact-book-info p.compact-book-author-3 a {
    font-size: 1rem;
    color: #939393;
    margin-bottom: 2px;
}

.compact-book-info p.compact-book-author-4 a { 
    display: none;
}

@media (max-width: 500px) {
    .compact-book-info p.compact-book-author-2 a {
        font-size: 1rem;
        color: #939393;
        margin-bottom: 20px;
    }
}

.amazon-book-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff9900;
    text-decoration: none;
    padding-right: 5px;
}

.amazon-book-link i {
    font-size: 1.1rem;
    padding-left: 5px;
}

.compact-book-link {
    font-size: 1rem;
    font-weight: 600;
    color: #ff9900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.compact-book-link:hover {
  color: #cc7a00;
}

.compact-book-link i {
  /* font-size: 1.1rem; */
  font-size: 1.3rem;
  margin-top: 3px;
}

.compact-book-link-2 {
  /* font-size: 1.2rem; */
  font-weight: 600;
  /* color: #ff9900; */
  text-decoration: none;
  /* display: inline-flex; */
  align-items: center;
  gap: 6px;
}

.compact-book-link-2 {
  display: inline-block;
  margin-top: 8px;
  color: #e47911; /* Amazon color */
  font-size: 0.9em;
}

.compact-book-link-2:hover {
  color: #cc7a00;
}

.compact-book-link-2 i {
  font-size: 1.6em;
  margin-top: 3px;
}

.compact-book-link-3 {
  font-size: 1rem;
  font-weight: 600;
  color: #ff9900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.compact-book-link-3:hover {
  color: #cc7a00;
}

.compact-book-link-3 i {
    font-size: 1.3rem;
    margin-top: 3px;
}

.compact-book-link-4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ff9900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.compact-book-link-4:hover {
  color: #cc7a00;
}

.compact-book-link-4 i {
  font-size: 1.1rem;
}

.columns-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.columns-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.columns-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.columns-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
/* Make ads responsive */
@media (max-width: 998px) {
    .columns-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .columns-3 {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
    }

    .columns-4 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Make ads responsive */
@media (max-width: 759px) {
    .columns-2 {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
    }
    .columns-3 {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
    }

    .columns-4 {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }
}

/* Grid layout - default is single column for mobile */
.columns-2 {
  display: grid;
  grid-template-columns: 1fr; /* One column by default (mobile) */
  gap: 16px;
}

/* For larger screens (tablets and desktop), use two columns */
@media (min-width: 768px) {
  .columns-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}


.charlie-kirk-book-list {
    counter-reset: book-counter;
    padding-left: 30px;
    margin-left: 0px;
    background-color: var(--navy);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    padding-left: 50px;
    padding-right: 50px;
    list-style-type: none; /* Hide original numbering */
}
.charlie-kirk-book-list li {
    counter-increment: book-counter;
    margin-bottom: 15px;
    position: relative;
    padding: 5px 20px;
}
.charlie-kirk-book-list li::before {
    content: counter(book-counter) ".";
    position: absolute;
    top: 4px;
    left: -35px;
    margin-right: 20px;
    color: var(--light-navy);
    font-weight: bold;
    font-size: 1.6em;
}
.charlie-kirk-book-list li p {
    margin: 5px 0;
}
.charlie-kirk-book-list li:nth-child(even) {
    background-color: var(--light-navy);
}

/* Optional hover effect */
.compact-book-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

/* Title and author styles */
.compact-book-title-2 {
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
  margin-right: 10px;
}

.compact-book-author-2 {
  font-size: 0.9em;
  margin: 4px 0;
  color: #666;
}


/* Base styles for the section */
.candace-owens-series {
  color: #f0f0f0;
  padding: 40px 60px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-radius: 12px;
  margin: 40px auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}

/* Heading styles */
.candace-owens-series h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #BF0D3E;
  text-align: center;
  font-weight: 700;
}

.candace-owens-series h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: #14325f;
  text-align: center;
  font-style: italic;
}

/* Paragraph styles */
.candace-owens-series p {
  line-height: 1.7;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Blockquote styles */
.candace-owens-series blockquote {
  font-size: 1.55rem;
  font-style: italic;
  color: #a3a3a3;
  border-left: 5px solid #BF0D3E;
  padding-left: 20px;
  margin-bottom: 30px;
  text-transform: capitalize;
}

/* Mobile styles */
@media (max-width: 768px) {
  .candace-owens-series {
    padding: 30px 30px;
  }
  
  .candace-owens-series h2 {
    font-size: 2rem;
  }
  
  .candace-owens-series h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }
  
  .candace-owens-series blockquote {
    font-size: 1.3rem;
  }
}

/* For even smaller screens */
@media (max-width: 480px) {
  .candace-owens-series h2 {
    font-size: 1.8rem;
  }
  
  .candace-owens-series p {
    font-size: 1rem;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Display Utilities */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.inline {
    display: inline !important;
}

.inline-block {
    display: inline-block !important;
}

.flex {
    display: flex !important;
}

/* Text Decoration Utilities */
.no-decoration {
    text-decoration: none !important;
}

.underline {
    text-decoration: underline !important;
}

/* Text Alignment Utilities */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

/* Spacing Utilities */
.m-0 {
    margin: 0 !important;
}

.mt-10 {
    margin-top: 10px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mt-30 {
    margin-top: 30px !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mb-30 {
    margin-bottom: 30px !important;
}

.p-0 {
    padding: 0 !important;
}

/* Width Utilities */
.w-100 {
    width: 100% !important;
}

.w-auto {
    width: auto !important;
}

/* Position Utilities */
.relative {
    position: relative !important;
}

.absolute {
    position: absolute !important;
}

.fixed {
    position: fixed !important;
}

/* ============================================
   COMPONENT: BREADCRUMB
   ============================================ */

/* Breadcrumb Navigation Component */
.breadcrumb-container {
    background-color: var(--light-navy);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: var(--light-gray);
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

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

.breadcrumb .active {
    color: var(--light-gray);
}


/* ============================================
   COMPONENT: MODAL - Responsive Additions
   ============================================ */

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }

    .close-modal {
        font-size: 1.5rem;
        top: -35px;
    }
}


/* ============================================
   PAGE: SINGLE VIDEO (video.php)
   ============================================ */

/* Article Layout */
.video-article {
    margin: 40px 0;
}

/* Primary Video Section */
.video-primary {
    margin-bottom: 30px;
    background-color: var(--light-navy);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-player-container {
    margin-top: 0px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background-color: #000;
}

.video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-meta {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-title-single {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: bold;
}

.video-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--light-gray);
    font-size: 0.9rem;
}

.video-stats a {
    color: var(--light-gray);
}

.video-date {
    display: flex;
    align-items: center;
}

.video-date::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 5px;
    margin-top: -3px;
}

/* Video Thumbnail and Link Styles */
.video-thumbnail {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-icon i {
    color: white;
    font-size: 1.5rem;
}

.video-thumbnail:hover .play-icon {
    opacity: 1;
}

.video-clickable {
    cursor: pointer;
}

.video-title-link {
    text-decoration: none;
    color: var(--white);
}

.video-title-link:hover h3 {
    color: var(--red);
}

.video-info h3 {
    color: var(--white);
    margin: 10px 0 5px;
    font-size: 1.1rem;
    padding-bottom: 4px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info p {
    color: var(--light-gray);
    font-size: 1rem;
    margin: 0;
    padding-top: 7px;
    border-top: 3px solid rgba(4, 30, 67, 0.2);
}

.video-info h3, .video-info p {
    text-decoration: none;
}

.video-card {
    margin-bottom: 20px;
}

/* Social Sharing */
.social-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.social-share span {
    margin-right: 10px;
    font-weight: bold;
}

@media (max-width: 480px) {
    .social-share span {
        width: 100%;
        text-align: center;
    }
}

.social-share a, .social-share button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s, background-color 0.3s;
}

@media (max-width: 768px) {
    .social-share a, .social-share button {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        color: var(--white);
        text-decoration: none;
        transition: transform 0.3s, background-color 0.3s;
    }
}

.social-share a:hover, .social-share button:hover {
    transform: translateY(-3px);
}

.share-facebook {
    background-color: #3b5998;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.share-whatsapp {
    background-color: #25D366; /* WhatsApp green */
}

.share-tiktok {
    background-color: #000000;
}

.share-email {
    background-color: #757575;
}

.share-link {
    background-color: var(--red);
    border: none;
    cursor: pointer;
}

/* Video Description - Only for main video page description (div element) */
div.video-description {
    padding: 30px;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    position: relative; /* Important for the pseudo-element positioning */
}

/* The expanded class is just a marker - we handle max-height via inline styles */
div.video-description.expanded {
    /* No specific max-height here - handled dynamically by JS */
}

/* Add fade effect at the bottom of collapsed description */
div.video-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Height of the fade effect */
    background: linear-gradient(to bottom, rgba(19, 28, 49, 0.01), var(--light-navy) 95%); /* Fade from transparent to background color */
    pointer-events: none; /* Makes sure the fade doesn't block clicks */
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Hide the fade effect when expanded */
div.video-description.expanded::after {
    opacity: 0;
}

div.video-description .lead {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.6;
}

.description-content {
    margin-bottom: 25px;
    color: #cccccc;
    /* padding: 15px 30px; */
}

.description-content p {
    margin-bottom: 15px;
}

.description-content a {
    color: #ffffff;
    text-decoration: underline;
}
.description-content a:hover {
    color: #ffffff;
}

/* Video Tags */
.video-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 30px;
    /* padding: 0 30px; */
}

.tag-label {
    font-weight: bold;
    color: var(--light-gray);
}

.tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.tag:hover {
    background-color: var(--red);
}

@media (max-width: 576px) {
    .tag-label {
        width: 100%;
        text-align: center;
    }
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 15px;
    background-color: var(--dark-navy);
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: var(--red);
}

.back-button i {
    margin-right: 8px;
}

/* Categories */
.video-meta-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.video-category-link {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    margin-bottom: 10px;
    margin-top: -5px;
}

@media (max-width: 576px) {
    .video-category-link {
        display: inline-block;
        background-color: rgba(255, 255, 255, 0.2);
        padding: 4px 12px;
    }
}

.video-category-link:hover {
    background-color: var(--red);
}

/* Transcript Section */
.video-transcript {
    background-color: var(--light-navy);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-transcript h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--white);
}

.transcript-container {
    color: #cccccc;
}

.transcript-container p {
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.transcript-container p:last-of-type {
    border-bottom: none;
}

.transcript-container strong {
    color: var(--white);
    margin-right: 10px;
}

.transcript-toggle {
    background-color: var(--red);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    margin-top: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.transcript-toggle:hover {
    background-color: #a00b33;
}

.full-transcript {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Comments Section */
.comments-section {
    background-color: var(--light-navy);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none;
    opacity: 0;
}

.comments-section.visible {
    /* Don't set display here; it's handled dynamically by JS */
}
.comments-section.visible {
    /* display: block; */
}

.comments-section h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--white);
}

.comment-form {
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
    font-family: inherit;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--red);
}

.comment-submit {
    background-color: var(--red);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.comment-submit:hover {
    background-color: #a00b33;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment {
    display: flex;
    gap: 15px;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: bold;
    color: var(--white);
}

.comment-date {
    font-size: 0.8rem;
    color: var(--light-gray);
}

.comment-content p {
    color: #cccccc;
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-reply-btn {
    background: none;
    border: none;
    color: var(--light-gray);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    transition: color 0.3s ease;
}

.comment-reply-btn:hover {
    color: var(--red);
}

/* Video Grid for Related Videos */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--red);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 9999;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Import Modal Component */
/* Responsive Styles */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-meta {
        padding: 15px 20px;
    }
    
    .video-title {
        font-size: 1.5rem;
    }
    
    div.video-description {
        padding: 20px;
    }
    
    .social-share {
        justify-content: center;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment-avatar {
        align-self: flex-start;
    }
    
    .video-transcript, 
    .comments-section {
        padding: 20px;
    }
    
    .video-stats {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .video-meta-categories,
    .video-tags {
        justify-content: center;
    }
}

.video-player-container iframe, 
.video-player-container #player-container,
.video-player-container #player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info a.video-link h3,
.video-info a.video-link p {
    text-decoration: none!important;
}
.video-info a.video-link:hover {
    text-decoration: none!important;
}

.video-info a.video-link:hover h3 {
    color: var(--red); /* Changes just the title color on hover */
}

/* Make sure related videos don't compete with main video */
.related-videos {
    margin-top: 40px;
    border-top: 1px solid #dddddd56;
    padding-top: 20px;
}

/* ============================================
   VIDEO END SCREEN OVERLAY
   ============================================ */

.video-end-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-end-screen.show {
    display: flex;
    opacity: 1;
}

.end-screen-content {
    max-width: 900px;
    width: 90%;
    padding: 30px;
    text-align: center;
}

.end-screen-content h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: bold;
}

.end-screen-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.end-screen-video-card {
    background: var(--light-navy);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.end-screen-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.end-screen-thumbnail {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.end-screen-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.end-screen-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.end-screen-video-card:hover .end-screen-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

.end-screen-play-icon i {
    color: var(--white);
    font-size: 1.2rem;
    margin-left: 3px; /* Optical alignment for play icon */
}

.end-screen-video-info {
    padding: 15px;
}

.end-screen-video-info h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.end-screen-video-info p {
    color: var(--light-gray);
    font-size: 0.85rem;
    margin: 0;
}

.replay-video-btn {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    font-weight: 600;
}

.replay-video-btn:hover {
    background: var(--dark-red);
    transform: scale(1.05);
}

.replay-video-btn i {
    margin-right: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .end-screen-videos {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .end-screen-content {
        padding: 20px;
    }

    .end-screen-content h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .end-screen-video-info h4 {
        font-size: 0.85rem;
    }

    .replay-video-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Compact horizontal list view on small phones */
@media (max-width: 600px) {
    .end-screen-content {
        padding: 12px 14px;
        text-align: left;
        width: 100%;
    }
    .end-screen-content h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    .end-screen-videos {
        grid-template-columns: 1fr;
        gap: 2px;
        margin-bottom: 35px;
    }
    .end-screen-video-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        border-radius: 6px;
    }
    .end-screen-thumbnail {
        width: 80px;
        height: 45px;
        flex-shrink: 0;
        padding-bottom: 0;
        margin-left: 10px;
    }
    .end-screen-play-icon {
        display: none;
    }
    .end-screen-video-info {
        padding: 2px 10px;
    }
    .end-screen-video-info h4 {
        font-size: 0.78rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin-bottom: 3px;
    }
    .end-screen-video-info p {
        font-size: 0.72rem;
    }
    .replay-video-btn {
        display: none;
    }
    .autoplay-countdown-overlay {
        width: 40px;
        height: 40px;
    }
    .autoplay-countdown-overlay .countdown-text {
        font-size: 0.95rem;
    }
}

/* ============================================
   AUTOPLAY TOGGLE
   ============================================ */

.autoplay-toggle-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}

.autoplay-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.autoplay-toggle-text {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.autoplay-switch {
    position: relative;
    width: 48px;
    height: 26px;
}

.autoplay-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.autoplay-slider {
    position: absolute;
    inset: 0;
    background: #555;
    border-radius: 26px;
    transition: background 0.25s ease;
}

.autoplay-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.autoplay-checkbox:checked + .autoplay-slider {
    background: var(--red);
}

.autoplay-checkbox:checked + .autoplay-slider::before {
    transform: translateX(22px);
}

.autoplay-checkbox:focus-visible + .autoplay-slider {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* ============================================
   FLOATING SETTINGS PANEL
   ============================================ */

#fsp-trigger {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9100;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #1a1a2e;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 4px 18px rgba(0,0,0,.5);
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
#fsp-trigger:hover,
#fsp-trigger.fsp-active {
    background: var(--red);
    border-color: var(--red);
    transform: scale(1.07);
}

#fsp-panel {
    position: fixed;
    bottom: 80px;
    left: 24px;
    z-index: 9099;
    width: 260px;
    background: #12122a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.6);
    overflow: hidden;
    transform: translateY(12px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
/* chat-bubble tail */
#fsp-panel::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 16px;
    border: 8px solid transparent;
    border-top-color: #12122a;
    border-bottom: none;
}
#fsp-panel.fsp-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.fsp-header {
    padding: 11px 16px;
    background: rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fsp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fsp-row:last-child { border-bottom: none; }

.fsp-row-label {
    color: #e2e8f0;
    font-size: 0.9rem;
}

/* ============================================
   AUTOPLAY COUNTDOWN RING
   ============================================ */

.autoplay-countdown-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    pointer-events: none;
    z-index: 10;
}

.autoplay-countdown-overlay .countdown-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}

.autoplay-countdown-ring {
    transform: rotate(-90deg);
    transform-origin: center;
}

.autoplay-countdown-ring circle.track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.25);
    stroke-width: 4;
}

.autoplay-countdown-ring circle.progress {
    fill: none;
    stroke: var(--red);
    stroke-width: 4;
    stroke-linecap: round;
}

.end-screen-video-card.autoplay-active {
    box-shadow: 0 0 0 3px var(--red);
    transform: translateY(-3px);
}

/* ============================================
   PAGE: VIDEOS LISTING (videos.php)
   ============================================ */

/* Page Header Styles */
.videos-header {
    position: relative;
    margin-top: 15px;
    margin-bottom: 2rem;
    text-align: center;

}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.videos-description {
    max-width: 950px;
    margin: 0 auto 1.5rem;
    color: var(--light-gray);
    line-height: 1.6;
}

.videos-header .read-more-btn {
    display: inline-block;
    margin: 10px auto 20px;
    background-color: var(--red);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.videos-header .read-more-btn:hover {
    background-color: #a00b33;
}

.read-more-btn-single {
    display: block;
    margin: 0 30px 20px auto;
    background-color: var(--red);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    right: 0;
    bottom: 15px;
}

/* Change to "+" on mobile devices */
@media screen and (max-width: 768px) {
  .videos-header .read-more-btn {
    width: 42px;
    height: 42px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hide the original text */
  .videos-header .read-more-btn::before {
    content: "+";
    font-size: 1.5rem;
    font-weight: bold;
  }

  /* Hide the original text but keep it for screen readers */
  .videos-header .read-more-btn {
    font-size: 0;
  }
  .read-more-btn-single {
    /* Optional: adjust width/height for a square button if desired */
    width: 42px;
    height: 42px;
    /* margin: 0; */
    padding: 0;
    top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Hide the original text */
  .read-more-btn-single::before {
    content: "+";
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  /* Hide the original text but keep it for screen readers */
  .read-more-btn-single {
    font-size: 0;
    /* Alternatively, you could use:
    text-indent: -9999px;
    overflow: hidden;
    */
  }
}

/* Filter Section Styles */
.filter-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--light-navy);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-box {
    flex: 1;
    max-width: 500px;
    margin-right: 1rem;
}

.search-box form {
    display: flex;
}

.search-box input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-box .search-btn {
    background-color: var(--navy);
    color: var(--white);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-box .search-btn:hover {
    background-color: #0d62cb;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-btn {
    background-color: #fff;
    color: #444;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 130px;
}

.filter-btn:hover {
    border-color: #aaa;
}

.filter-btn.active {
    background-color: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.filter-btn.active:hover {
    opacity: 0.9;
    border-color: var(--navy);
}

.filter-btn i {
    font-size: 0.9rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    min-width: 250px;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
}

.dropdown-content a.active {
    background-color: #e8f0fe;
    color: var(--navy);
    font-weight: 500;
}

/* Videos Grid Styles */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.video-card {
    background-color: var(--light-navy);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.video-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.play-icon i {
    color: white;
    font-size: 1.25rem;
}

.video-card:hover .play-icon {
    opacity: 1;
}

/* .video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
} */

.video-info {
    padding: 1rem;
}

.video-info p {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fix Featured Video Mobile Styling */
@media (max-width: 500px) {
    .video-info p {
        display: -webkit-box;
        -webkit-line-clamp: 5; /* number of lines to show */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.video-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 4px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
    /* Limit to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #777;
}

.video-date i, .video-views i {
    margin-right: 0.25rem;
}

/* No Videos Found Styles */
.no-videos {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--light-navy);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.no-videos i {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.no-videos h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.no-videos p {
    color: var(--white);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-videos .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.no-videos .btn:hover {
    background-color: #0d62cb;
}

/* Error Message Styles */
.error-message {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.error-message h2 {
    color: #d32f2f;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.error-message p {
    color: #555;
    margin-bottom: 0;
}

/* Pagination Styles */
.pagination {
    margin: 2rem 0;
}

.pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.pagination li {
    margin: 0;
}

.pagination a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    min-width: 40px;
    text-align: center;
    transition: all 0.2s;
}

.pagination a:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.pagination a.active {
    background-color: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.pagination .pagination-arrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination .ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 38px;
    color: #777;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .search-box {
        max-width: 100%;
        margin-right: 0;
    }
    
    .filter-controls {
        justify-content: space-between;
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .page-title {
        font-size: 2rem;
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-dropdown {
        width: 100%;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-content {
        width: 100%;
    }
    
    .pagination a {
        padding: 0.4rem 0.8rem;
        min-width: 36px;
    }
}

.no-results-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.btn.primary-btn {
    background-color: #1a73e8;
    color: white;
    border: 1px solid #1a73e8;
}

.btn.primary-btn:hover {
    background-color: #0d62cb;
}

.btn.secondary-btn {
    background-color: #fff;
    color: #1a73e8;
    border: 1px solid #1a73e8;
}

.btn.secondary-btn:hover {
    background-color: #e8f0fe;
}

@media (min-width: 576px) {
    .no-results-options {
        flex-direction: row;
        justify-content: center;
    }
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
    width: 100%;
    height: 80px; /* Define a fixed height */
    margin-bottom: 20px; /* Add some margin */
}

/* Infinite Scroll Styles */
.videos-container {
    position: relative;
    min-height: 300px;
}

.loading-spinner i {
    font-size: 40px;
    color: #333;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Featured Video Styles */
.featured-video {
    margin-bottom: 30px;
    background: var(--light-navy);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.featured-video-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.featured-video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-video-container:hover img {
    transform: scale(1.05);
}

.play-icon-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-icon-large i {
    color: white;
    font-size: 30px;
}

.featured-video-container:hover .play-icon-large {
    background: rgba(0,0,0,0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.featured-video-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-video-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--white);
}

.featured-video-info p.lead {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--light-gray);
}

.play-video-btn {
    background: var(--red);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 10px;
}

.play-video-btn:hover {
    background: var(--red);
}

/* Import Modal Component */
/* Video modal is now loaded from component */

/* Responsive Styles */
@media (max-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr;
    }
    
    .featured-video-container {
        height: 250px;
    }
    
    .play-icon-large {
        width: 60px;
        height: 60px;
    }
    
    .play-icon-large i {
        font-size: 24px;
    }
    
    .featured-video-info h3 {
        font-size: 20px;
    }
    
    .modal-content {
        width: 95%;
    }
}

/* Video Card Enhancements */
.video-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.video-clickable {
    cursor: pointer;
}

.video-title-link {
    text-decoration: none;
    color: inherit;
}

.video-title-link:hover h3 {
    color: #e74c3c;
}

/* Fix Featured Video Mobile Styling */
@media (max-width: 767px) {
    /* Make featured videos background match regular videos */
    .featured-video {
        background-color: var(--light-navy, #f8f8f8);
        border-radius: 8px;
        overflow: hidden;
        padding: 0px;
    }
    
    /* Fix text colors for all videos */
    .video-card, .featured-video-info {
        background-color: var(--light-navy, #f8f8f8);
        color: var(--dark-text, #333);
    }
    
    /* Remove default link styling on mobile */
    .video-title-link {
        text-decoration: none !important;
        color: var(--dark-text, #333) !important;
    }
    
    .video-title-link:hover, 
    .video-title-link:visited,
    .video-title-link:active {
        text-decoration: none !important;
        color: var(--dark-text, #333) !important;
    }

    .featured-video-info {
        padding-top: 0px;
        margin-top: -12px;
    }
    
    /* Featured video specific mobile tweaks */
    .featured-video .featured-video-info h3 {
        color: var(--white);
        font-size: 1.5em;
        margin-bottom: 10px;
    }
    
    .featured-video .featured-video-info p.lead {
        color: var(--white);
        font-size: 1em;
    }

    .video-info h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
        padding: 0;
    }

    .video-info p {
        font-size: 1.1rem;
    }
    
    /* Grid layout tweaks for mobile */
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    /* Improve spacing on mobile */
    .featured-video-container {
        height: auto;
        /* min-height: 200px; */
    }
    
    /* Fix loading spinner on mobile */
    .loading-spinner {
        height: 80px;
        margin-bottom: 20px;
    }
    .hidden-sm {
        display: none;
    }
}

/* Mobile CSS Fixes for Featured Videos */
@media (max-width: 767px) {
    /* Make featured videos background match regular videos */
    .featured-video {
        background-color: var(--light-navy, #f8f8f8);
        border-radius: 8px;
        overflow: hidden;
    }
    
    /* Fix text colors for all videos */
    .video-card, .featured-video-info {
        background-color: var(--light-navy, #f8f8f8);
        color: var(--dark-text, #333);
    }
    
    /* Remove default link styling on mobile */
    .video-title-link {
        text-decoration: none !important;
        color: var(--dark-text, #333) !important;
    }
    
    .video-title-link:hover, 
    .video-title-link:visited,
    .video-title-link:active {
        text-decoration: none !important;
        color: var(--dark-text, #333) !important;
    }
    
    /* Featured video specific mobile tweaks */
    .featured-video .featured-video-info h3 {
        color: var(--white);
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    
    /* .featured-video .featured-video-info p.lead {
        color: var(--white);
        font-size: 14px;
    } */
}



/* ============================================
   PAGE: SEARCH (search.php)
   ============================================ */

/* Enhanced Infinite Scroll Styles */
.videos-container {
    position: relative;
    min-height: 300px;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
    width: 100%;
    height: 100px; /* Increased height for better visibility */
    margin: 20px 0;
}

.loading-spinner i {
    font-size: 40px;
    color: var(--white);
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll Trigger Enhancement */
.scroll-trigger {
    width: 100%;
    height: 200px; /* Much taller for easier detection */
    position: relative;
    visibility: hidden;
    background: transparent;
}

/* Improved Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.modal-video-container {
    position: relative;
    width: 100%;
    padding-top: 15%; /* 16:9 Aspect Ratio */
}

.modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    background: rgba(0,0,0,0.7);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

/* .close-modal:hover {
    background: rgba(255,0,0,0.2);
} */

/* Improved Video Card Styles */
.video-clickable {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.video-clickable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s;
}

.video-clickable:hover::after {
    opacity: 1;
}

/* New Category and Tag Card Styles */
.category-tag-grid,
.info-card {
    height: 100%;
    background-color: var(--light-navy);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.info-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.info-card i {
    color: var(--white);
    margin-bottom: 1rem;
}

.info-card h3 {
    margin-bottom: 0.75rem;
    color: var(--white);
}

.info-card-description {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.info-card .btn {
    margin-top: auto;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--red);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-weight: bold;
}

.info-card .btn:hover {
    background-color: #c0392b;
}

/* Search Highlight Style */
.highlight {
    background-color: #2d5da8;
    color: white;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: bold;
}

/* Search Result Quality Badges */
.result-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badge-exact   { background: #16a34a; }
.badge-strong  { background: #2563eb; }
.badge-related { background: #d97706; }
.badge-partial { background: #6b7280; }
.transcript-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7a9ab8;
    border: 1px solid #2d4a6a;
    border-radius: 3px;
    padding: 1px 4px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Related Videos Section */
.related-videos {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-navy);
}

.section-title {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--red);
    margin: 0.5rem auto 5px;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .featured-video {
        background-color: var(--light-navy);
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 1.5rem;
    }
    
    .featured-video-container {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    
    /* Optimize loading indicators for mobile */
    .loading-spinner {
        height: 80px;
    }
    
    .scroll-trigger {
        height: 100px;
    }
    
    /* Ensure proper text contrast on mobile */
    .video-title, .video-description {
        color: var(--white) !important;
    }
    
    .video-title-link h3, .video-title-link p {
        color: var(--white) !important;
    }
}

/* Enhanced status messages */
.status-message {
    text-align: center;
    padding: 1rem;
    margin: 1.5rem 0;
    background-color: var(--light-navy);
    border-radius: 8px;
    color: var(--white);
    font-weight: bold;
}

.end-of-content {
    text-align: center;
    padding: 2rem 1rem;
    margin: 1.5rem 0;
    background-color: var(--light-navy);
    border-radius: 8px;
}

.end-of-content h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.end-of-content p {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
}

.end-of-content .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--red);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.end-of-content .btn:hover {
    background-color: #c0392b;
}


/* Books Grid Styles */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.book-card {
    /* background-color: var(--white); */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.book-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.book-thumbnail img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: transform 0.3s;
}

.book-card:hover .book-thumbnail img {
    transform: scale(1.05);
}

/* .book-details {
    position: absolute;
    bottom: 10px;
    left: 3px;
    color: var(--gray);
    font-size: 0.9rem;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 4px;
    display: flex;
    gap: 10px;
    align-items: center;
} */

.book-pages {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 3px;
    color: white;
}

.bestseller-badge {
    background: #ab0000;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* .book-info {
    padding: 1rem;
    background: var(--white);
    min-height: 240px;
} */

.book-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-name {
    font-size: 0.95rem;
    color: var(--light-gray);
    margin-bottom: 0.75rem;
}

.book-description {
    color: var(--light-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    /* Limit to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.amazon-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff9900;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.amazon-link:hover {
    color: #cc7a00;
}

.amazon-link i {
    font-size: 1.3rem;
}

/* ============================================
   PAGE: POLITICAL SPECTRUM (political-spectrum.php)
   ============================================ */

/* Root Extended CSS Variables */
:root {
  /* Extended Political Spectrum Colors */
  /* US Political Party Colors */
  --democrat-blue: #0044c9;
  --republican-red: #d81f29;

  --off-white: rgb(231, 231, 231);

  /* Political Spectrum Colors - Based on US party colors */

    --far-left: #0044c9;          /* Democrat blue */
    --far-left-mobile: #003399;   /* Darker blue */

    --left: #1a58d0;              /* Slightly lighter blue */
    --left-mobile: #0040b0;       /* Darker variant */

    --progressive: #346cd7;       /* Lighter blue */
    --progressive-mobile: #0052c2; /* Darker variant */

    --center-left: #4e80de;       /* Very light blue */
    --center-left-mobile: #2b5bc2; /* Darker variant */

    --center: #f8f7f7;            /* Neutral gray */
    --center-mobile: #e0e0e0;     /* Slightly darker gray for better contrast */

    --center-right: #e04c54;      /* Very light red */
    --center-right-mobile: #b82028; /* Much darker red */

    --conservative: #de353e;      /* Lighter red */
    --conservative-mobile: #b01c24; /* Darker variant */

    --right: #da2831;             /* Slightly lighter red */
    --right-mobile: #a8141c;      /* Darker variant */

    --far-right: #d81f29;         /* Republican red */
    --far-right-mobile: #a10f18;  /* Darker red */
}

/* Political Spectrum Classes */

.political-spectrum h3, 
.political-article h3 {
    margin: 10px 0px 15px;
}

.political-spectrum a, 
.political-article a {
    color: var(--white);
    text-decoration: none;
}
.political-spectrum a:hover, 
.political-article a:hover {
    text-decoration: underline;
}

.blockquote {
    margin: 30px 0;
    padding: 20px 40px 20px 20px;
    background: #f7f7f7;
    border-left: 5px solid var(--republican-red);
    font-style: italic;
    font-size: 1.8em;
    color: var(--gray);
}

/* Far Left/Radical Left */
.political-far-left {
    background-color: var(--far-left);
    color: var(--white);
    border-left: 5px solid #00309a;
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.political-far-left ul {
    margin-bottom: 15px;
    margin-left: 25px;
}

@media only screen and (max-width: 760px) {

    .political-far-left {
        background-color: var(--far-left-mobile);
        padding: 25px 25px 35px 25px;
    }

}

/* Left-wing */
.political-left {
    background-color: var(--left);
    color: var(--white);
    border-left: 5px solid #0044c9;
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.political-left ul {
    margin-bottom: 15px;
    margin-left: 25px;
}

@media only screen and (max-width: 760px) {

    .political-left {
        background-color: var(--left-mobile);
        padding: 25px 25px 35px 25px;
    }

}

/* Progressive */
.political-progressive {
    background-color: var(--progressive);
    color: var(--white);
    border-left: 5px solid #1a58d0;
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.political-progressive ul {
    margin-bottom: 15px;
    margin-left: 25px;
}

@media only screen and (max-width: 760px) {

    .political-progressive {
        background-color: var(--progressive-mobile);
        padding: 25px 25px 35px 25px;
    }

}

/* Center-left leaning */
.political-center-left {
    background-color: var(--center-left);
    color: var(--white);
    border-left: 5px solid #346cd7;
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.political-center-left ul {
    margin-bottom: 15px;
    margin-left: 25px;
}

@media only screen and (max-width: 760px) {

    .political-center-left {
        background-color: var(--center-left-mobile);
        padding: 25px 25px 35px 25px;
    }

}

/* Center/Centrist */
.political-center {
    background-color: var(--center);
    color: var(--gray);
    border-left: 5px solid #ACACAC;
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.political-center ul {
    margin-bottom: 15px;
    margin-left: 25px;
}

@media only screen and (max-width: 760px) {

    .political-center {
        background-color: var(--center-mobile);
        padding: 25px 25px 35px 25px;
    }

}

/* Center-right leaning */
.political-center-right {
    background-color: var(--center-right);
    color: var(--white);
    border-left: 5px solid #da2831;
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.political-center-right ul {
    margin-bottom: 15px;
    margin-left: 25px;
}

@media only screen and (max-width: 760px) {

    .political-center-right {
        background-color: var(--center-right-mobile);
        padding: 25px 25px 35px 25px;
    }

}

/* Conservative */
.political-conservative {
    background-color: var(--conservative);
    color: var(--white);
    border-left: 5px solid #de353e;
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.political-conservative ul {
    margin-bottom: 15px;
    margin-left: 25px;
}

@media only screen and (max-width: 760px) {

    .political-conservative {
        background-color: var(--conservative-mobile);
        padding: 25px 25px 35px 25px;
    }

}

/* Right-wing */
.political-right {
    background-color: var(--right);
    color: var(--white);
    border-left: 5px solid #d81f29;
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.political-right ul {
    margin-bottom: 15px;
    margin-left: 25px;
}

@media only screen and (max-width: 760px) {

    .political-right {
        background-color: var(--right-mobile);
        padding: 25px 25px 35px 25px;
    }

}

/* Far-right/Radical right */
.political-far-right {
    background-color: var(--far-right);
    color: var(--white);
    border-left: 5px solid #b01821;
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.political-far-right ul {
    margin-bottom: 15px;
    margin-left: 25px;
}

@media only screen and (max-width: 760px) {

    .political-far-right {
        background-color: var(--far-right-mobile);
        padding: 25px 25px 35px 25px;
    }

}

/* Political Compass Classes */
.compass-auth-left {
    background: linear-gradient(135deg, var(--far-left) 0%, var(--progressive) 100%);
    color: var(--white);
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.compass-auth-left ul {
    margin-bottom: 15px;
    margin-left: 25px;
}

@media only screen and (max-width: 760px) {

    .compass-auth-left {
        background: linear-gradient(135deg, var(--far-left-mobile) 0%, var(--progressive-mobile) 100%);
        padding: 25px 25px 35px 25px;
    }

}

.compass-auth-right {
    background: linear-gradient(135deg, var(--conservative) 0%, var(--far-right) 100%);
    color: var(--white);
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.compass-auth-right ul {
    margin-bottom: 15px;
    margin-left: 25px;
}

@media only screen and (max-width: 760px) {

    .compass-auth-right {
        background: linear-gradient(135deg, var(--conservative-mobile) 0%, var(--far-right-mobile) 100%);
        padding: 25px 25px 35px 25px;
    }

}

.compass-lib-left {
    background: linear-gradient(135deg, var(--center-left) 0%, var(--left) 100%);
    color: var(--white);
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.compass-lib-left ul {
    margin-bottom: 15px;
    margin-left: 25px;
}

@media only screen and (max-width: 760px) {

    .compass-lib-left {
        background: linear-gradient(135deg, var(--center-left-mobile) 0%, var(--left-mobile) 100%);
        padding: 25px 25px 35px 25px;
    }

}

.compass-lib-right {
    background: linear-gradient(135deg, var(--center-right) 0%, var(--right) 100%);
    color: var(--white);
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.compass-lib-right ul {
    margin-bottom: 15px;
    margin-left: 25px;
}

@media only screen and (max-width: 760px) {

    .compass-lib-right {
        background: linear-gradient(135deg, var(--center-right-mobile) 0%, var(--right-mobile) 100%);
        padding: 25px 25px 35px 25px;
    }

}

/* Q&A Styling */
.qa-container {
    width: 100%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.qa-question {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.qa-answer {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    margin-left: 30px; /* Indentation for answers */
}

.qa-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.qa-content {
    background-color: var(--white);
    border-radius: 10px;
    padding: 15px 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-grow: 1;
}

.qa-content ul {
    margin-bottom: 15px;
    margin-left: 25px;
}

.qa-question .qa-content {
    background-color: var(--white);
    color: var(--gray);
    border-left: 4px solid var(--democrat-blue);
}

.qa-answer .qa-content {
    background-color: var(--white);
    color: var(--gray);
    border-left: 4px solid var(--republican-red);
}

/* Political Article Styling */
.political-article {
    width: 100%;
    margin: 0 auto;
    font-family: Georgia, serif;
    line-height: 1.6;
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dddddd3a;
}

.article-title {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 10px;
}

.article-subtitle {
    color: #b9b9b9;
    font-size: 18px;
    font-style: italic;
}

.article-section {
    margin-bottom: 25px;
}

.section-heading {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #dddddd3a;
}

/* Political Comparison Table */
.political-comparison {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    color: var(--gray);
}

.political-comparison th {
    background-color: var(--navy);
    color: var(--white);
    padding: 12px;
    text-align: left;
}

.political-comparison td {
    padding: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.political-comparison tr:nth-child(even) {
    background-color: #f2f2f2;
}

.political-comparison tr:nth-child(odd) {
    background-color: #f2f2f2de;
}

.political-comparison tr td:first-child {
    font-weight: bold;
}

/* Mobile-friendly table styles */
@media only screen and (max-width: 760px) {
    .political-comparison, 
    .political-comparison thead, 
    .political-comparison tbody, 
    .political-comparison th, 
    .political-comparison td, 
    .political-comparison tr {
    display: block;
    }
    
    .political-comparison thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
    }
    
    .political-comparison tr {
    margin-bottom: 15px;
    border: 1px solid var(--light-gray);
    }
    
    .political-comparison td {
    border: none;
    border-bottom: 1px solid #dddddd3a;
    position: relative;
    padding-left: 50%;
    white-space: normal;
    text-align: left;
    }
    
    .political-comparison td:before {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
    }
    
    /* Label the data for mobile view */
    .political-comparison td:nth-of-type(1):before { content: "Topic"; }
    .political-comparison td:nth-of-type(2):before { content: "Kirk's Position"; }
    .political-comparison td:nth-of-type(3):before { content: "Political Classification"; }
    
    /* Mobile Q&A adjustments */
    .qa-question, .qa-answer {
    flex-direction: column;
    }
    
    .qa-avatar {
    margin-bottom: 10px;
    }
    
    .qa-answer {
    margin-left: 0;
    }
}

/* Political Position Tags */
.position-tag {
    display: inline-block;
    padding: 5px 10px;
    margin: 3px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.tag-left {
    background-color: var(--left);
    color: var(--white);
}

.tag-center {
    background-color: var(--center);
    color: var(--gray);
}

.tag-right {
    background-color: var(--right);
    color: var(--white);
}

.section {
    margin-bottom: 25px;
}

section.section-understanding {
    margin-bottom: 50px;
}

section.section-understanding ul {
    margin-bottom: 15px;
    margin-left: 25px;
}

h1.political-spectrum {
    margin-top: 25px;
}
.intro {
    margin: 0 30px;
}

@media only screen and (max-width: 760px) {

    .blockquote {
    margin: 30px 0;
    padding: 20px 30px 20px 20px;
    background: #f7f7f7;
    border-left: 5px solid var(--republican-red);
    font-style: italic;
    font-size: 1.6em;
    color: var(--gray);
    }

}

/* ============================================
   PAGE: BOOKS OVERVIEW (books.php)
   ============================================ */


/* Page Header Styles */
.books-header {
    margin-top: 15px;
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(–white);
}

.books-description {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: var(–light-gray);
    line-height: 1.6;
}

/* Filter Section Styles */
.filter-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--light-navy);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-box {
    flex: 1;
    max-width: 500px;
    margin-right: 1rem;
}

.search-box form {
    display: flex;
}

.search-box input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-box .search-btn {
    background-color: var(--navy);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-box .search-btn:hover {
    background-color: var(--navy);
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-btn {
    background-color: #fff;
    color: #444;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: #aaa;
}

.filter-btn i {
    font-size: 0.9rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    min-width: 320px;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
}

/* .dropdown-content a.active {
    background-color: #e8f0fe;
    color: var(--navy);
    font-weight: 500;
} */

/* Books Grid Styles */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.book-card {
    /* background-color: var(--white); */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.book-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.book-thumbnail img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: transform 0.3s;
}

.book-card:hover .book-thumbnail img {
    transform: scale(1.05);
}

/* .book-details {
    position: absolute;
    bottom: 10px;
    left: 3px;
    color: var(--gray);
    font-size: 0.9rem;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 4px;
    display: flex;
    gap: 10px;
    align-items: center;
} */

.book-pages {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 3px;
    color: white;
}

.bestseller-badge {
    background: #ab0000;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* .book-info {
    padding: 1rem;
    background: var(--white);
    min-height: 240px;
} */

.book-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-name, 
.author-name a {
    font-size: 0.95rem;
    color: var(--light-gray);
    /* Limit to 1 lines */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.book-description {
    color: var(--light-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    /* Limit to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.book-title-link {
    text-decoration: none;
    color: inherit;
}

.book-title-link:hover h3 {
    color: var(--red);
}

/* Infinite Scroll Container */
.books-container {
    position: relative;
    min-height: 300px;
}

.amazon-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff9900;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.amazon-link:hover {
    color: #cc7a00;
}

.amazon-link i {
    font-size: 1.3rem;
}

/* No Books Found Styles */
.no-books {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--light-navy);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.no-books i {
    font-size: 3rem;
    color: var(–white);
    margin-bottom: 1rem;
}

.no-books h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(–white);
}

.no-books p {
    color: var(–white);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-books .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.no-books .btn:hover {
    background-color: #0d62cb;
}

/* Error Message Styles */
.error-message {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    }

.error-message h2 {
    color: #d32f2f;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.error-message p {
    color: #555;
    margin-bottom: 0;
}

/* Pagination Styles */
.pagination {
    margin: 2rem 0;
}

.pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.pagination li {
    margin: 0;
}

.pagination a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    min-width: 40px;
    text-align: center;
    transition: all 0.2s;
}

.pagination a:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.pagination a.active {
    background-color: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.pagination .pagination-arrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination .ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 38px;
    color: #777;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .filter-section {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    }

    .search-box {
        max-width: 100%;
        margin-right: 0;
    }

    .filter-controls {
        justify-content: space-between;
    }

    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .book-grid {
        grid-template-columns: 1fr;
    }

    .filter-controls {
        flex-direction: column;
        width: 100%;
    }

    .filter-dropdown {
        width: 100%;
    }

    .filter-btn {
        width: 100%;
        justify-content: space-between;
    }

    .dropdown-content {
        width: 100%;
    }

    .pagination a {
        padding: 0.4rem 0.8rem;
        min-width: 36px;
    }

}

.no-results-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.btn.primary-btn {
    background-color: #1a73e8;
    color: white;
    border: 1px solid #1a73e8;
}

.btn.primary-btn:hover {
    background-color: #0d62cb;
}

.btn.secondary-btn {
    background-color: #fff;
    color: #1a73e8;
    border: 1px solid #1a73e8;
}

.btn.secondary-btn:hover {
    background-color: #e8f0fe;
}

@media (min-width: 576px) {
    .no-results-options {
        flex-direction: row;
        justify-content: center;
    }
}

/* Loading Spinner / */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
    width: 100%;
    height: 80px; /* / Fixed height to prevent footer movement */
    margin-bottom: 20px;
}

.loading-spinner i {
    font-size: 40px;
    color: #fff;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Featured Book Styles */
.featured-book {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Changed from 1fr 1fr to make container 1/3 of row */
    gap: 20px;
    margin-bottom: 30px;
    background: var(--light-navy);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.featured-book-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    max-height: 570px;
    width: 100%;
    display: flex; /* Added to center the image */
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
}

.featured-book-container img {
    width: auto;
    height: 100%;
    object-fit: contain; /* Changed from fill to maintain aspect ratio */
    transition: transform 0.3s ease;
    display: block; /* Helps with centering */
    max-width: 100%; /* Ensures image doesn't overflow */
}

.featured-book-container:hover img {
    transform: scale(1.05);
}

.featured-book-info {
    padding: 20px;
    margin-right: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-book-info h3 {
    font-size: 30px;
    margin-bottom: 15px;
    color: var(--white);
}

.featured-book-info p.lead {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--light-gray);
}

.amazon-btn {
    background: #ff9900;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    align-self: flex-start;
    text-decoration: none;
    text-align: center;
}

.amazon-btn:hover {
    background: #cc7a00;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr;
    }

    .featured-book {
        grid-template-columns: 1fr;
    }

    .featured-book-container {
        height: auto;
        max-height: none;
    }

    .featured-book-container img {
        width: 100%;
        height: auto;
    }

    .featured-book-info h3 {
        font-size: 20px;
    }

    .amazon-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (max-width: 450px) {
    .featured-book-container {
        height: auto;
    }
    .featured-book-info {
        margin-right: 0;
    }
    .book-thumbnail img {
        height: 500px;
    }
}

/* ============================================
   PAGE: PRODUCT DETAIL (product.php)
   ============================================ */


.product-detail-page {
    background-color: var(--navy);
    padding-top: 30px;
    padding-bottom: 60px;
}

.breadcrumb .active {
    color: var(--light-gray);
}

/* Full-width title/author + Amazon CTA above the two-column section */
.product-detail-header {
    background: white;
    border-radius: 8px;
    padding: 28px 40px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.product-detail-header-text {
    flex: 1;
}

.product-detail-header-action {
    flex-shrink: 0;
}

.product-detail-header .book-title-single {
    margin-bottom: 8px;
}

.product-detail-header .book-author {
    margin-bottom: 0;
}

/* Main Product Detail Layout */
.product-detail {
    display: grid;
    grid-template-columns: 44% 1fr;
    gap: 40px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 40px;
}

.bestseller-badge.large {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
}

.book-title-single {
    font-size: 2.3rem;
    margin: 0 0 15px 0;
    line-height: 1.2;
    color: #333;
}

.book-author,
.book-author a {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    margin-bottom: 15px; /* Reduced to make room for short description */
}

/* Short description styling */
.product-short-description-single {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
}

/* Book Details Section */

.book-details {
    position: absolute;
  bottom: 10px;
  left: 0px;
  color: var(--gray);
  font-size: 0.9rem;
  background: rgba(0,0,0,0.6);
  padding: 5px 10px;
  border-radius: 4px;
  display: flex;
  gap: 10px;
  align-items: center;
    /* position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px; */
}

.book-details-single {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 1rem;
    color: #333;
}

/* Action Buttons - Updated to match /books/ styling */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.book-button {
    margin-top: auto;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    line-height: 1.7em;
    margin-top: 0px;
}

.book-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.book-button i {
    margin-right: 8px;
}

.amazon-button {
    background: #ff9900;
}

.amazon-button:hover {
    background: #e68a00;
}

.share-button {
    background-color: var(--light-navy);
    min-width: 192px;
    font-size: inherit;
    font-weight: 500;
}

.share-button:hover {
    background-color: var(--navy);
}

/* Other Titles by the same author — book detail page */
.author-other-books {
    margin-top: 0px;
    padding-top: 0px;
    border-top: 0px solid #ddd;
}

.author-other-books h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin: 0 0 10px;
}

.author-other-books-grid {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.other-book-thumb {
    position: relative;
    flex: 0 0 calc(25% - 8px);
    display: block;
    border-radius: 4px;
}

.other-book-thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    transition: opacity 0.2s;
}

/* Product page: force square thumbnails */
.product-thumbs-grid .other-book-thumb {
    aspect-ratio: 1 / 1;
    background: #fefefe;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-thumbs-grid .other-book-thumb img {
    height: 100%;
    object-fit: contain;
}

.other-book-thumb:hover img {
    opacity: 0.8;
}

.other-book-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 0.72rem;
    line-height: 1.35;
    padding: 6px 8px;
    border-radius: 4px;
    width: 120px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 20;
}

.other-book-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
}

.other-book-thumb:hover .other-book-tooltip {
    opacity: 1;
}

/* Inline sharing bar inside product-detail-info */
.product-inline-sharing {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.product-inline-sharing .share-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
    min-width: unset;
    border-radius: 20px;
}

.product-inline-sharing .share-btn i {
    font-size: 0.85rem;
    margin-right: 5px;
}

/* Product Content and Sidebar Layout */
.product-content-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.product-description-container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-height: 515px;
}

.product-description-container h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.product-description-single {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #444;
    -webkit-line-clamp: none;
}

.product-description-single p {
    margin-bottom: 20px;
}

/* Product Sidebar */
.product-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Ad placeholder with equal height to description */
.ad-placeholder {
    background-color: var(--light-navy);
    border-radius: 8px;
    flex-grow: 1;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.related-books {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.related-books h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.related-books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.related-book-card {
    transition: transform 0.2s ease;
}

.related-book-card:hover {
    transform: translateY(-5px);
}

.related-book-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.related-book-image {
    margin-bottom: 8px;
}

.related-book-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-book-title {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.share-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}


.share-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #333;
    text-align: center;
}

.sharing-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Back to Books Button */
.back-to-books {
    margin-top: 30px;
    margin-bottom: 10px;
    text-align: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f5f5f5;
    color: #333;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.back-button:hover {
    background-color: #e0e0e0;
}

/* Copy message */
.copy-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
}

.copy-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* Ad placeholder with equal height to description */
.ad-placeholder {
    background-color: var(--light-navy);
    border-radius: 8px;
    min-height: 300px; /* Base height */
    flex-grow: 1; /* Will grow to match description height */
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 30px;
}


/* Short description styling */
.book-short-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
    font-weight: normal;
}


.product-sidebar .cka-slot .cka-img {
    /* width: 378px;
    height: 515px; */
    margin-top: 35px;
    border-radius: 10px;
/* }

.book-thumbnail img { */
width: 100%;
height: 515px;
object-fit: cover;
transition: transform 0.3s;
}

/* .book-card:hover .book-thumbnail img */
.product-sidebar:hover .cka-slot img.cka-img  {
transform: scale(1.05);
}


/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .product-content-sidebar {
        grid-template-columns: 1fr;
    }

    .product-sidebar {
        order: 1;
    }

    .related-books-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .ad-placeholder {
        min-height: 480px;
        background-color: transparent;
    }
}

@media screen and (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-detail-image {
        margin-bottom: 20px;
        max-width: 750px;
        margin: 0 auto 30px auto;
    }

    .related-books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .book-title-single {
        font-size: 1.8rem;
    }
    
    .book-details-single {
        grid-template-columns: 1fr;
        margin-left: -25px;
    }
    
    .sharing-buttons {
        grid-template-columns: 1fr 1fr;
    }

    .ad-placeholder {
        min-height: 480px;
    }

}

/* ============================================
   PAGE: 404 ERROR (404.php)
   ============================================ */

/* 404 Page Specific Styles */
.error-container {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--navy);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.error-code {
    font-size: 8rem;
    font-weight: bold;
    color: var(--red);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.error-message {
    font-size: 1.8rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.error-description {
    color: var(--light-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestion {
    margin-bottom: 1rem;
    color: var(--light-gray);
}

.search-box {
    /* margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto; */
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.action-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--red);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-weight: bold;
}

.action-button:hover {
    background-color: #c0392b;
}

.action-button.secondary {
    background-color: var(--light-navy);
}

.action-button.secondary:hover {
    background-color: var(--navy);
}

.suggested-content {
    margin-top: 3rem;
}

/* .suggested-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--white);
} */

/* .suggested-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--red);
    margin: 0.5rem auto 0;
} */

/* Debug info styles */
.debug-info {
    background: #222;
    padding: 15px;
    border-radius: 5px;
    color: #ddd;
    margin-top: 20px;
    font-family: monospace;
    display: none;
}

/* Improved Video Card Styles */
.video-clickable {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.video-clickable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s;
}

.video-clickable:hover::after {
    opacity: 1;
}

/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.modal-video-container {
    position: relative;
    width: 100%;
    padding-top: 15%; /* 16:9 Aspect Ratio */
}

.modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    background: rgba(0,0,0,0.7);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-modal:hover {
    /* color: #333; */
    background: var(--light-navy);
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .error-code {
        font-size: 5rem;
    }
    
    .error-message {
        font-size: 1.4rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}

        /* Enhanced Categories & Tags Section Styling */
.categories-tags-section {
    background-color: var(--light-navy);
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.section-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.section-column {
    position: relative;
    background-color: var(--navy);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.section-column h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.section-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--red);
}

.tag-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--red) var(--navy);
}

.tag-list::-webkit-scrollbar {
    width: 6px;
}

.tag-list::-webkit-scrollbar-track {
    background: var(--navy);
}

.tag-list::-webkit-scrollbar-thumb {
    background-color: var(--red);
    border-radius: 3px;
}

.tag-list li {
    margin-bottom: 8px;
    position: relative;
}

.tag-list li a {
    color: var(--light-gray);
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

.tag-list li a:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 15px;
}

.tag-list li a::before {
    content: '•';
    color: var(--red);
    margin-right: 8px;
}

/* Column icons */
.category-column-icon, .tag-column-icon, .popular-column-icon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--red);
    border-radius: 50%;
    color: white;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .section-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-columns {
        grid-template-columns: 1fr;
    }
    
    .section-column {
        margin-bottom: 20px;
    }
}

/* ============================================
   PAGE: ADVERTISE (advertise.php)
   ============================================ */

.ad-showcase {
    background: #f7f7f7;
    color: #333;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.ad-locations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ad-location-item {
    background: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ad-location-item h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eeeeee3f;
    padding-bottom: 8px;
}

.ad-specs {
    display: flex;
    color: #333;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
}

.ad-spec-item {
    flex: 1;
    min-width: 250px;
    background: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ad-spec-item h4 {
    margin-top: 0;
    color: #333;
}

.contact-form {
    background: white;
    color: #333;
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.checkbox-group {
    margin: 15px 0;
}

.checkbox-group label {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 10px;
    cursor: pointer;
}

.checkbox-group input {
    margin-right: 8px;
    width: auto;
}

.submit-btn {
    background-color: #1a3d7c;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #2c5baa;
}

.form-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.faq-section {
    margin: 40px 0;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eeeeee3f;
    padding-bottom: 20px;
}

.faq-item h4 {
    color: #fff;
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ad-specs, .ad-locations {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PAGE: SUBMIT VIDEO (submit-video.php)
   ============================================ */


/* Page Header Styles */
.page-header {
    margin-top: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.page-description {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: var(--light-gray);
    line-height: 1.6;
}

/* Submission Container */
.submission-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Submission Steps */
.submission-step {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.submission-step.active {
    border-left: 4px solid #1a73e8;
}

.step-header {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.step-number {
    width: 32px;
    height: 32px;
    background-color: #1a73e8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.step-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.step-content {
    padding: 1.5rem;
}

.step-description {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.5;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: #1a73e8;
    outline: none;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #e53935;
    background-color: #fff8f8;
}

.form-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #777;
}

.form-error {
    margin-top: 0.5rem;
    color: #e53935;
    font-size: 0.9rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    margin-right: 0.75rem;
}

.checkbox-group label {
    font-weight: normal;
}

.checkbox-group.error {
    color: #e53935;
}

/* Input with Button */
.input-with-button {
    display: flex;
}

.input-with-button input {
    flex: 1;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.input-with-button button {
    border-radius: 0 4px 4px 0;
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    color: #1a73e8;
    margin: 1rem 0;
}

.loading-indicator i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}

.btn:hover {
    background-color: #0d62cb;
}

.btn.secondary-btn {
    background-color: #f1f3f4;
    color: #444;
    margin-right: 0.75rem;
}

.btn.secondary-btn:hover {
    background-color: #e3e6e8;
}

.btn.primary-btn {
    background-color: #1a73e8;
    color: white;
    font-weight: 500;
}

/* Video Preview */
.video-preview {
    margin-bottom: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.video-preview-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f5f5f5;
}

.video-preview-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-preview-info {
    padding: 1.25rem;
}

.video-preview-info h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    color: #333;
}

.video-meta-single {
    /* display: flex; */
    gap: 1.5rem;
    padding: 0 30px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    /* color: #666; */
}

.video-meta-single i {
    /* margin-right: 0.35rem; */
}

/* Video Description - Only for main video page description (div element) */
div.video-description-single {
    padding: 30px;
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    position: relative; /* Important for the pseudo-element positioning */
}

/* The expanded class is just a marker - we handle max-height via inline styles */
div.video-description-single.expanded {
    /* No specific max-height here - handled dynamically by JS */
}

/* Add fade effect at the bottom of collapsed description */
div.video-description-single::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Height of the fade effect */
    background: linear-gradient(to bottom, rgba(19, 28, 49, 0.01), var(--light-navy) 95%); /* Fade from transparent to background color */
    pointer-events: none; /* Makes sure the fade doesn't block clicks */
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Hide the fade effect when expanded */
div.video-description-single.expanded::after {
    opacity: 0;
}

div.video-description-single .lead {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.6;
}

@media (max-width: 576px) {
    div.video-description-single {
        padding: 15px;
        max-height: 300px;
        overflow: hidden;
        transition: max-height 0.5s ease;
        position: relative; /* Important for the pseudo-element positioning */
    }
}

.video-description-single {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    max-height: 300px;
    overflow: hidden;
    border-top: 1px solid rgba(4, 30, 67, 0.3);
    padding: 30px;
}

.video-description-single p {
    margin-bottom: 0.75rem;
}

.video-description-single p:last-child {
    margin-bottom: 0;
}

/* Select2 Custom Styling */
.select2-container--default .select2-selection--multiple {
    border-color: #ddd;
    padding: 0.25rem;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #1a73e8;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e8f0fe;
    border-color: #c6dafc;
    color: #1a73e8;
    padding: 0.25rem 0.5rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #1a73e8;
}

/* Submission Guidelines */
.submission-guidelines {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    align-self: start;
    position: sticky;
    top: 2rem;
}

.submission-guidelines h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: #333;
    font-size: 1.2rem;
}

.submission-guidelines ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.submission-guidelines li {
    display: flex;
    margin-bottom: 1.25rem;
}

.submission-guidelines li:last-child {
    margin-bottom: 0;
}

.submission-guidelines i {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    color: #1a73e8;
}

.submission-guidelines li:last-child i {
    color: #ff9800;
}

.submission-guidelines strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #444;
}

.submission-guidelines p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Success and Error Messages */
.success-message,
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.success-message {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.error-message {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
}

.success-message i,
.error-message i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.success-message i {
    color: #43a047;
}

.error-message i {
    color: #e53935;
}

.success-message h2,
.error-message h2 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.success-message h2 {
    color: #2e7d32;
}

.error-message h2 {
    color: #c62828;
}

.success-message p,
.error-message p {
    margin-bottom: 1.5rem;
    color: #555;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .submission-container {
        grid-template-columns: 1fr;
    }
    
    .submission-guidelines {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .step-content {
        padding: 1.25rem;
    }
    
    .video-meta-single {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .input-with-button {
        flex-direction: column;
    }
    
    .input-with-button input {
        border-right: 1px solid #ddd;
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }
    
    .input-with-button button {
        border-radius: 4px;
        width: 100%;
    }
    
    .btn.secondary-btn {
        margin-right: 0;
        margin-bottom: 0.75rem;
        width: 100%;
    }
    
    button[type="submit"] {
        width: 100%;
    }
}

/* Add to your submit-video.css file */

/* Error message container */
#video-error {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

/* Error text */
.error-text {
    color: #d32f2f;
    margin-bottom: 1rem;
}

/* Button container inside error message */
.error-button-container {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-start;
}

/* Ensure buttons in errors look right */
#video-error .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f1f3f4;
    color: #444;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

#video-error .btn:hover {
    background-color: #e3e6e8;
    border-color: #bbb;
}

#video-error .btn.secondary-btn {
    background-color: #e8f0fe;
    color: #1a73e8;
    border-color: #c6dafc;
}

#video-error .btn.secondary-btn:hover {
    background-color: #d2e3fc;
}

/* Common styles for both selectors */
.hierarchical-select-container,
.tag-select-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    height: 300px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    margin-bottom: 20px;
}

.select-search {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.search-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.tree-select-items,
.tag-groups {
    overflow-y: auto;
    flex: 1;
    padding: 10px;
}

.selected-count {
    padding: 10px;
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

/* Category tree styles */
.category-item {
    margin-bottom: 8px;
}

.category-header {
    display: flex;
    align-items: center;
}

.category-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: normal;
}

.category-label input {
    margin-right: 8px;
}

.expand-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 10px;
    padding: 0;
    margin-right: 5px;
    width: 20px;
    height: 20px;
    color: #666;
}

.category-children {
    margin-top: 5px;
    margin-left: 20px;
}

/* Tag selection styles */
.tag-group {
    margin-bottom: 15px;
}

.group-letter {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 3px;
}

.group-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    margin-bottom: 5px;
    color: var(--gray);
}

.tag-item:hover {
    background-color: #e0e0e0;
}

.tag-item.selected {
    background-color: #007bff;
    color: white;
}

.selected-tags {
    padding: 10px;
    border-top: 1px solid #eee;
    max-height: 100px;
    overflow-y: auto;
    display: none; /* Initially hidden until tags are selected */
}

.selected-tags-header {
    font-weight: 500;
    margin-bottom: 8px;
}

.selected-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.selected-tag-item {
    padding: 3px 8px;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.remove-tag {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    margin-left: 5px;
    cursor: pointer;
    padding: 0 3px;
}



/* ============================================
   PAGE: POLITICAL SPECTRUM (political-spectrum.php)
   ============================================ */

/* Root Extended CSS Variables */
:root {
  /* Extended Political Spectrum Colors */
  /* US Political Party Colors */
  --democrat-blue: #0044c9;
  --republican-red: #d81f29;

  --off-white: rgb(231, 231, 231);

  /* Political Spectrum Colors - Based on US party colors */

    --far-left: #0044c9;          /* Democrat blue */
    --far-left-mobile: #003399;   /* Darker blue */

    --left: #1a58d0;              /* Slightly lighter blue */
    --left-mobile: #0040b0;       /* Darker variant */

    --progressive: #346cd7;       /* Lighter blue */
    --progressive-mobile: #0052c2; /* Darker variant */

    --center-left: #4e80de;       /* Very light blue */
    --center-left-mobile: #2b5bc2; /* Darker variant */

    --center: #f8f7f7;            /* Neutral gray */
    --center-mobile: #e0e0e0;     /* Slightly darker gray for better contrast */

    --center-right: #e04c54;      /* Very light red */
    --center-right-mobile: #b82028; /* Much darker red */

    --conservative: #de353e;      /* Lighter red */
    --conservative-mobile: #b01c24; /* Darker variant */

    --right: #da2831;             /* Slightly lighter red */
    --right-mobile: #a8141c;      /* Darker variant */

    --far-right: #d81f29;         /* Republican red */
    --far-right-mobile: #a10f18;  /* Darker red */
}

/* Political Spectrum Classes */

.political-spectrum h3, 
.political-article h3 {
    margin: 10px 0px 15px;
}

.political-spectrum a, 
.political-article a {
    color: var(--white);
    text-decoration: none;
}
.political-spectrum a:hover, 
.political-article a:hover {
    text-decoration: underline;
}

.blockquote {
    margin: 30px 0;
    padding: 20px 40px 20px 20px;
    background: #f7f7f7;
    border-left: 5px solid var(--republican-red);
    font-style: italic;
    font-size: 1.8em;
    color: var(--gray);
}

/* Far Left/Radical Left */
.political-far-left {
    background-color: var(--far-left);
    color: var(--white);
    border-left: 5px solid #00309a;
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.political-far-left ul {
    margin-bottom: 15px;
    margin-left: 25px;
}

@media only screen and (max-width: 760px) {

    .political-far-left {
        background-color: var(--far-left-mobile);
        padding: 25px 25px 35px 25px;
    }

.political-left {
        background-color: var(--left-mobile);
        padding: 25px 25px 35px 25px;
    }

.political-progressive {
        background-color: var(--progressive-mobile);
        padding: 25px 25px 35px 25px;
    }

.political-center-left {
        background-color: var(--center-left-mobile);
        padding: 25px 25px 35px 25px;
    }

.political-center {
        background-color: var(--center-mobile);
        padding: 25px 25px 35px 25px;
    }

.political-center-right {
        background-color: var(--center-right-mobile);
        padding: 25px 25px 35px 25px;
    }

.political-conservative {
        background-color: var(--conservative-mobile);
        padding: 25px 25px 35px 25px;
    }

.political-right {
        background-color: var(--right-mobile);
        padding: 25px 25px 35px 25px;
    }

.political-far-right {
        background-color: var(--far-right-mobile);
        padding: 25px 25px 35px 25px;
    }

.compass-auth-left {
        background: linear-gradient(135deg, var(--far-left-mobile) 0%, var(--progressive-mobile) 100%);
        padding: 25px 25px 35px 25px;
    }

.compass-auth-right {
        background: linear-gradient(135deg, var(--conservative-mobile) 0%, var(--far-right-mobile) 100%);
        padding: 25px 25px 35px 25px;
    }

.compass-lib-left {
        background: linear-gradient(135deg, var(--center-left-mobile) 0%, var(--left-mobile) 100%);
        padding: 25px 25px 35px 25px;
    }

.compass-lib-right {
        background: linear-gradient(135deg, var(--center-right-mobile) 0%, var(--right-mobile) 100%);
        padding: 25px 25px 35px 25px;
    }

.political-comparison, 
    .political-comparison thead, 
    .political-comparison tbody, 
    .political-comparison th, 
    .political-comparison td, 
    .political-comparison tr {
    display: block;
    }
    
    .political-comparison thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
    }
    
    .political-comparison tr {
    margin-bottom: 15px;
    border: 1px solid var(--light-gray);
    }
    
    .political-comparison td {
    border: none;
    border-bottom: 1px solid #dddddd3a;
    position: relative;
    padding-left: 50%;
    white-space: normal;
    text-align: left;
    }
    
    .political-comparison td:before {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
    }
    
    /* Label the data for mobile view */
    .political-comparison td:nth-of-type(1):before { content: "Topic"; }
    .political-comparison td:nth-of-type(2):before { content: "Kirk's Position"; }
    .political-comparison td:nth-of-type(3):before { content: "Political Classification"; }
    
    /* Mobile Q&A adjustments */
    .qa-question, .qa-answer {
    flex-direction: column;
    }
    
    .qa-avatar {
    margin-bottom: 10px;
    }
    
    .qa-answer {
    margin-left: 0;
    }

.blockquote {
    margin: 30px 0;
    padding: 20px 30px 20px 20px;
    background: #f7f7f7;
    border-left: 5px solid var(--republican-red);
    font-style: italic;
    font-size: 1.6em;
    color: var(--gray);
    }

}

/* Left-wing */
.political-left {
    background-color: var(--left);
    color: var(--white);
    border-left: 5px solid #0044c9;
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.political-left ul {
    margin-bottom: 15px;
    margin-left: 25px;
}



/* Progressive */
.political-progressive {
    background-color: var(--progressive);
    color: var(--white);
    border-left: 5px solid #1a58d0;
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.political-progressive ul {
    margin-bottom: 15px;
    margin-left: 25px;
}



/* Center-left leaning */
.political-center-left {
    background-color: var(--center-left);
    color: var(--white);
    border-left: 5px solid #346cd7;
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.political-center-left ul {
    margin-bottom: 15px;
    margin-left: 25px;
}



/* Center/Centrist */
.political-center {
    background-color: var(--center);
    color: var(--gray);
    border-left: 5px solid #ACACAC;
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.political-center ul {
    margin-bottom: 15px;
    margin-left: 25px;
}



/* Center-right leaning */
.political-center-right {
    background-color: var(--center-right);
    color: var(--white);
    border-left: 5px solid #da2831;
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.political-center-right ul {
    margin-bottom: 15px;
    margin-left: 25px;
}



/* Conservative */
.political-conservative {
    background-color: var(--conservative);
    color: var(--white);
    border-left: 5px solid #de353e;
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.political-conservative ul {
    margin-bottom: 15px;
    margin-left: 25px;
}



/* Right-wing */
.political-right {
    background-color: var(--right);
    color: var(--white);
    border-left: 5px solid #d81f29;
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.political-right ul {
    margin-bottom: 15px;
    margin-left: 25px;
}



/* Far-right/Radical right */
.political-far-right {
    background-color: var(--far-right);
    color: var(--white);
    border-left: 5px solid #b01821;
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.political-far-right ul {
    margin-bottom: 15px;
    margin-left: 25px;
}



/* Political Compass Classes */
.compass-auth-left {
    background: linear-gradient(135deg, var(--far-left) 0%, var(--progressive) 100%);
    color: var(--white);
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.compass-auth-left ul {
    margin-bottom: 15px;
    margin-left: 25px;
}



.compass-auth-right {
    background: linear-gradient(135deg, var(--conservative) 0%, var(--far-right) 100%);
    color: var(--white);
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.compass-auth-right ul {
    margin-bottom: 15px;
    margin-left: 25px;
}



.compass-lib-left {
    background: linear-gradient(135deg, var(--center-left) 0%, var(--left) 100%);
    color: var(--white);
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.compass-lib-left ul {
    margin-bottom: 15px;
    margin-left: 25px;
}



.compass-lib-right {
    background: linear-gradient(135deg, var(--center-right) 0%, var(--right) 100%);
    color: var(--white);
    padding: 25px 25px 35px 45px;
    margin: 25px 0;
    border-radius: 5px;
}

.compass-lib-right ul {
    margin-bottom: 15px;
    margin-left: 25px;
}



/* Q&A Styling */
.qa-container {
    width: 100%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.qa-question {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.qa-answer {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    margin-left: 30px; /* Indentation for answers */
}

.qa-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.qa-content {
    background-color: var(--white);
    border-radius: 10px;
    padding: 15px 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-grow: 1;
}

.qa-content ul {
    margin-bottom: 15px;
    margin-left: 25px;
}

.qa-question .qa-content {
    background-color: var(--white);
    color: var(--gray);
    border-left: 4px solid var(--democrat-blue);
}

.qa-answer .qa-content {
    background-color: var(--white);
    color: var(--gray);
    border-left: 4px solid var(--republican-red);
}

/* Political Article Styling */
.political-article {
    width: 100%;
    margin: 0 auto;
    font-family: Georgia, serif;
    line-height: 1.6;
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dddddd3a;
}

.article-title {
    color: var(--white);
    font-size: 28px;
    margin-bottom: 10px;
}

.article-subtitle {
    color: #b9b9b9;
    font-size: 18px;
    font-style: italic;
}

.article-section {
    margin-bottom: 25px;
}

.section-heading {
    color: var(--white);
    font-size: 22px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #dddddd3a;
}

/* Political Comparison Table */
.political-comparison {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    color: var(--gray);
}

.political-comparison th {
    background-color: var(--navy);
    color: var(--white);
    padding: 12px;
    text-align: left;
}

.political-comparison td {
    padding: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.political-comparison tr:nth-child(even) {
    background-color: #f2f2f2;
}

.political-comparison tr:nth-child(odd) {
    background-color: #f2f2f2de;
}

.political-comparison tr td:first-child {
    font-weight: bold;
}

/* Mobile-friendly table styles */


/* Political Position Tags */
.position-tag {
    display: inline-block;
    padding: 5px 10px;
    margin: 3px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.tag-left {
    background-color: var(--left);
    color: var(--white);
}

.tag-center {
    background-color: var(--center);
    color: var(--gray);
}

.tag-right {
    background-color: var(--right);
    color: var(--white);
}

.section {
    margin-bottom: 25px;
}

section.section-understanding {
    margin-bottom: 50px;
}

section.section-understanding ul {
    margin-bottom: 15px;
    margin-left: 25px;
}

h1.political-spectrum {
    margin-top: 25px;
}
.intro {
    margin: 0 30px;
}



/* ============================================
   PAGE: BOOKS OVERVIEW (books.php)
   ============================================ */


/* Page Header Styles */
.books-header {
    margin-top: 15px;
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(–white);
}

.books-description {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: var(–light-gray);
    line-height: 1.6;
}

/* Filter Section Styles */
.filter-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--light-navy);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-box {
    flex: 1;
    max-width: 500px;
    margin-right: 1rem;
}

.search-box form {
    display: flex;
}

.search-box input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-box .search-btn {
    background-color: var(--navy);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-box .search-btn:hover {
    background-color: var(--navy);
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-dropdown {
    position: relative;
    display: inline-block;
}

.filter-btn {
    background-color: #fff;
    color: #444;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: #aaa;
}

.filter-btn i {
    font-size: 0.9rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    min-width: 320px;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
}

/* .dropdown-content a.active {
    background-color: #e8f0fe;
    color: var(--navy);
    font-weight: 500;
} */

/* Books Grid Styles */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.book-card {
    /* background-color: var(--white); */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.book-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.book-thumbnail img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: transform 0.3s;
}

.book-card:hover .book-thumbnail img {
    transform: scale(1.05);
}

/* .book-details {
    position: absolute;
    bottom: 10px;
    left: 0px;
    color: var(--gray);
    font-size: 0.9rem;
    background: rgba(0,0,0,0.6);
    padding: 5px 10px;
    border-radius: 4px;
    display: flex;
    gap: 10px;
    align-items: center;
} */

.book-pages {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 3px;
    color: white;
}

.bestseller-badge {
    background: #ab0000;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* .book-info {
    padding: 1rem;
    background: var(--white);
    min-height: 240px;
} */

.book-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-name, 
.author-name a {
    font-size: 0.95rem;
    color: var(--light-gray);
    /* Limit to 1 lines */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.book-description {
    color: var(--light-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    /* Limit to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.book-title-link {
    text-decoration: none;
    color: inherit;
}

/* .book-title-link:hover h3 {
    color: #e74c3c;
} */

/* Infinite Scroll Container */
.books-container {
    position: relative;
    min-height: 300px;
}

.amazon-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff9900;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.amazon-link:hover {
    color: #cc7a00;
}

.amazon-link i {
    font-size: 1.3rem;
}

/* No Books Found Styles */
.no-books {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--light-navy);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.no-books i {
    font-size: 3rem;
    color: var(–white);
    margin-bottom: 1rem;
}

.no-books h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(–white);
}

.no-books p {
    color: var(–white);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-books .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.no-books .btn:hover {
    background-color: #0d62cb;
}

/* Error Message Styles */
.error-message {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    }

.error-message h2 {
    color: #d32f2f;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.error-message p {
    color: #555;
    margin-bottom: 0;
}

/* Pagination Styles */
.pagination {
    margin: 2rem 0;
}

.pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.pagination li {
    margin: 0;
}

.pagination a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    min-width: 40px;
    text-align: center;
    transition: all 0.2s;
}

.pagination a:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.pagination a.active {
    background-color: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.pagination .pagination-arrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination .ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 38px;
    color: #777;
}

/* Responsive Adjustments */




.no-results-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.btn.primary-btn {
    background-color: #1a73e8;
    color: white;
    border: 1px solid #1a73e8;
}

.btn.primary-btn:hover {
    background-color: #0d62cb;
}

.btn.secondary-btn {
    background-color: #fff;
    color: #1a73e8;
    border: 1px solid #1a73e8;
}

.btn.secondary-btn:hover {
    background-color: #e8f0fe;
}



/* Loading Spinner / */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
    width: 100%;
    height: 80px; /* / Fixed height to prevent footer movement */
    margin-bottom: 20px;
}

.loading-spinner i {
    font-size: 40px;
    color: #fff;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   PAGE: BOOK DETAIL (book.php)
   ============================================ */


.book-detail-page {
    background-color: var(--navy);
    padding-top: 30px;
    padding-bottom: 60px;
}

.breadcrumb .active {
    color: var(--light-gray);
}


/* Full-width title/author + Amazon CTA above the two-column section */
.book-detail-header {
    background: white;
    border-radius: 8px;
    padding: 28px 40px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.book-detail-header-text {
    flex: 1;
}

.book-detail-header-action {
    flex-shrink: 0;
}

.book-detail-header .book-title-single {
    margin-bottom: 8px;
}

.book-detail-header .book-author {
    margin-bottom: 0;
}

/* Main Book Detail Layout */
.book-detail {
    display: grid;
    grid-template-columns: 39% 1fr;
    gap: 40px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 40px;
}

.book-detail-image {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.book-detail-image .amazon-button {
    width: 100%;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
    margin-bottom: 25px;
}

.book-detail-image img {
    max-width: 100%;
    height: auto;
    max-height: 750px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


.book-detail-info {
    display: flex;
    flex-direction: column;
}

.book-title {
    /* font-size: 2.2rem; */
    margin: 0 0 15px 0;
    line-height: 1.2;
    color: #333;
}

.book-author,
.book-author a {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

/* Short description styling */
.book-short-description-single {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
}

/* Inline sharing bar */
.book-inline-sharing {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.book-inline-sharing .share-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
    min-width: unset;
    border-radius: 20px;
}

.book-inline-sharing .share-btn i {
    font-size: 0.85rem;
    margin-right: 5px;
}

/* Book Details Section */
/* .book-details {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
} */

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 1rem;
    color: #333;
}

/* Action Buttons - Updated to match /books/ styling */


.book-button {
    margin-top: auto;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    line-height: 1.7em;
    margin-top: 0px;
}

.book-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.book-button i {
    margin-right: 8px;
}

.amazon-button {
    background: #ff9900;
}

.amazon-button:hover {
    background: #e68a00;
}

.share-button {
    background-color: var(--light-navy);
    min-width: 192px;
    font-size: inherit;
    font-weight: 500;
}

.share-button:hover {
    background-color: var(--navy);
}

/* Book Content and Sidebar Layout */
.book-content-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.book-description-container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-height: 515px;
}

.book-description-container h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.book-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    -webkit-line-clamp: none;
}

.book-description p {
    margin-bottom: 20px;
}

.book-description-single {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #444;
    -webkit-line-clamp: none;
}

.book-description-single p {
    margin-bottom: 20px;
}

/* Sidebar */
.book-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Ad placeholder with equal height to description */


.related-books {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.related-books h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.related-books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.related-book-card {
    transition: transform 0.2s ease;
}

.related-book-card:hover {
    transform: translateY(-5px);
}

.related-book-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.related-book-image {
    margin-bottom: 8px;
}

.related-book-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-book-title {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.share-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    position: relative;
}





.share-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #333;
    text-align: center;
}

.sharing-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Back to Books Button */
.back-to-books {
    margin-top: 30px;
    margin-bottom: 10px;
    text-align: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f5f5f5;
    color: #333;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.back-button:hover {
    background-color: #e0e0e0;
}

/* Copy message */
.copy-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
}

.copy-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* Ad placeholder with equal height to description */
.ad-placeholder {
    background-color: var(--light-navy);
    border-radius: 8px;
    min-height: 300px; /* Base height */
    flex-grow: 1; /* Will grow to match description height */
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 30px;
}


/* Short description styling */
.book-short-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
    font-weight: normal;
}


.book-sidebar .cka-slot .cka-img { 
    /* width: 378px;
    height: 515px; */
    margin-top: 35px;
    border-radius: 10px;
/* }

.book-thumbnail img { */
width: 100%;
height: 515px;
object-fit: cover;
transition: transform 0.3s;
}

/* .book-card:hover .book-thumbnail img */
.book-sidebar:hover .cka-slot img.cka-img  {
transform: scale(1.05);
}


/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .book-content-sidebar {
        grid-template-columns: 1fr;
    }
    
    .book-sidebar {
        order: 1;
    }
    
    .related-books-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .ad-placeholder {
        min-height: 480px;
        background-color: transparent;
    }
}

@media screen and (max-width: 768px) {
    .book-detail {
        grid-template-columns: 1fr;
    }
    
    .book-detail-image {
        margin-bottom: 20px;
        max-width: 750px;
        margin: 0 auto 30px auto;
    }
    
    .related-books-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .book-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .book-detail-header-action {
        width: 100%;
    }

    .book-detail-header-action .amazon-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .action-buttons {
        flex-direction: column;
    }

    .book-title {
        font-size: 1.8rem;
    }
    
    .book-details {
        grid-template-columns: 1fr;
        margin-left: 5px;
    }
    
    .sharing-buttons {
        grid-template-columns: 1fr 1fr;
    }

    .ad-placeholder {
        min-height: 480px;
    }

}

/* ============================================
   PAGE: 404 ERROR (404.php)
   ============================================ */

/* 404 Page Specific Styles */
.error-container {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--navy);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.error-code {
    font-size: 8rem;
    font-weight: bold;
    color: var(--red);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}



.error-description {
    color: var(--light-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestion {
    margin-bottom: 1rem;
    color: var(--light-gray);
}

.search-box {
    /* margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto; */

    /* background-color: var(--light-navy);
    padding: 30px;
    border-radius: inherit;
    text-align: center;
    margin: 0 auto; */
}
.search-box-404 {
    /* margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto; */
    background-color: var(--light-navy);
    padding: 30px;
    border-radius: inherit;
    text-align: center;
    margin: 0 auto;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.action-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--red);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-weight: bold;
}

.action-button:hover {
    background-color: #c0392b;
}

.action-button.secondary {
    background-color: var(--light-navy);
}

.action-button.secondary:hover {
    background-color: var(--navy);
}

.suggested-content {
    margin-top: 3rem;
}

.suggested-title {
    text-align: left;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--white);
}

.suggested-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--red);
    margin: 0.5rem 0;
}

/* Debug info styles */
.debug-info {
    background: #222;
    padding: 15px;
    border-radius: 5px;
    color: #ddd;
    margin-top: 20px;
    font-family: monospace;
    display: none;
}

/* Improved Video Card Styles */
.video-clickable {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.video-clickable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s;
}

.video-clickable:hover::after {
    opacity: 1;
}

/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.modal-video-container {
    position: relative;
    width: 100%;
    padding-top: 15%; /* 16:9 Aspect Ratio */
}

.modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    background: rgba(0,0,0,0.7);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

/* .close-modal:hover {
    background: rgba(255,0,0,0.8);
} */

/* Mobile optimizations */
@media (max-width: 767px) {
    .error-code {
        font-size: 5rem;
    }
    
    .error-message {
        font-size: 1.4rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}

        /* Enhanced Categories & Tags Section Styling */
.categories-tags-section {
    background-color: var(--light-navy);
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.section-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.section-column {
    position: relative;
    background-color: var(--navy);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.section-column h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.section-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--red);
}

.tag-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--red) var(--navy);
}

.tag-list::-webkit-scrollbar {
    width: 6px;
}

.tag-list::-webkit-scrollbar-track {
    background: var(--navy);
}

.tag-list::-webkit-scrollbar-thumb {
    background-color: var(--red);
    border-radius: 3px;
}

.tag-list li {
    margin-bottom: 8px;
    position: relative;
}

.tag-list li a {
    color: var(--light-gray);
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

.tag-list li a:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 15px;
}

.tag-list li a::before {
    content: '•';
    color: var(--red);
    margin-right: 8px;
}

/* Column icons */
.category-column-icon, .tag-column-icon, .popular-column-icon {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--red);
    border-radius: 50%;
    color: white;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .section-columns {
        grid-template-columns: repeat(2, 1fr);
    }


    .submission-container {
        grid-template-columns: 1fr;
    }
    
    .submission-guidelines {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .section-columns {
        grid-template-columns: 1fr;
    }
    
    .section-column {
        margin-bottom: 20px;
    }


    .ad-specs, .ad-locations {
        grid-template-columns: 1fr;
    }


    .page-title {
        font-size: 2rem;
    }
    
    .step-content {
        padding: 1.25rem;
    }
    
    .video-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ============================================
   PAGE: ADVERTISE (advertise.php)
   ============================================ */

.ad-showcase {
    background: #f7f7f7;
    color: #333;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.ad-locations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ad-location-item {
    background: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ad-location-item h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eeeeee3f;
    padding-bottom: 8px;
}

.ad-specs {
    display: flex;
    color: #333;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
}

.ad-spec-item {
    flex: 1;
    min-width: 250px;
    background: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ad-spec-item h4 {
    margin-top: 0;
    color: #333;
}

.contact-form {
    background: white;
    color: #333;
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}





.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}





.checkbox-group input {
    margin-right: 8px;
    width: auto;
}

.submit-btn {
    background-color: #1a3d7c;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #2c5baa;
}

.form-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.faq-section {
    margin: 40px 0;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eeeeee3f;
    padding-bottom: 20px;
}

.faq-item h4 {
    color: #fff;
    margin-bottom: 10px;
}

/* Responsive adjustments */


/* ============================================
   PAGE: SUBMIT VIDEO (submit-video.php)
   ============================================ */


/* Page Header Styles */
.page-header {
    margin-top: 10px;
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.page-description {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: var(--light-gray);
    line-height: 1.6;
}

/* Submission Container */
.submission-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Submission Steps */
.submission-step {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.submission-step.active {
    border-left: 4px solid #1a73e8;
}

.step-header {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.step-number {
    width: 32px;
    height: 32px;
    background-color: var(--light-navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.step-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.step-content {
    padding: 1.5rem;
}

.step-description {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.5;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: #1a73e8;
    outline: none;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #e53935;
    background-color: #fff8f8;
}

.form-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #777;
}

.form-error {
    margin-top: 0.5rem;
    color: #e53935;
    font-size: 0.9rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    margin-right: 0.75rem;
}

.checkbox-group label {
    font-weight: normal;
}

.checkbox-group.error {
    color: #e53935;
}

/* Input with Button */
.input-with-button {
    display: flex;
}

.input-with-button input {
    flex: 1;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.input-with-button button {
    border-radius: 0 4px 4px 0;
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    color: #1a73e8;
    margin: 1rem 0;
}

.loading-indicator i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--light-navy);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}

.btn:hover {
    background-color: #0d62cb;
}

.btn.secondary-btn {
    background-color: #f1f3f4;
    color: #444;
    margin-right: 0.75rem;
}

.btn.secondary-btn:hover {
    background-color: #e3e6e8;
}

.btn.primary-btn {
    background-color: #1a73e8;
    color: white;
    font-weight: 500;
}

/* Video Preview */
.video-preview {
    margin-bottom: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.video-preview-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f5f5f5;
}

.video-preview-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-preview-info {
    padding: 1.25rem;
}

.video-preview-info h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    color: #333;
}

.video-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.video-meta i {
    margin-right: 0.35rem;
}

.video-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
    /* border-top: 1px solid #eee; */
    padding-top: 1rem;
}

.video-description p {
    margin-bottom: 0.75rem;
}

.video-description p:last-child {
    margin-bottom: 0;
}

/* Select2 Custom Styling */
.select2-container--default .select2-selection--multiple {
    border-color: #ddd;
    padding: 0.25rem;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #1a73e8;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e8f0fe;
    border-color: #c6dafc;
    color: #1a73e8;
    padding: 0.25rem 0.5rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #1a73e8;
}

/* Submission Guidelines */
.submission-guidelines {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    align-self: start;
    position: sticky;
    top: 2rem;
}

.submission-guidelines h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: #333;
    font-size: 1.2rem;
}

.submission-guidelines ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.submission-guidelines li {
    display: flex;
    margin-bottom: 1.25rem;
}

.submission-guidelines li:last-child {
    margin-bottom: 0;
}

.submission-guidelines i {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    color: #1a73e8;
}

.submission-guidelines li:last-child i {
    color: #ff9800;
}

.submission-guidelines strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #444;
}

.submission-guidelines p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Success and Error Messages */
.success-message,
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.success-message {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.error-message {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
}

.success-message i,
.error-message i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.success-message i {
    color: #43a047;
}

.error-message i {
    color: #e53935;
}

.success-message h2,
.error-message h2 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.success-message h2 {
    color: #2e7d32;
}

.error-message h2 {
    color: #c62828;
}

.success-message p,
.error-message p {
    margin-bottom: 1.5rem;
    color: #555;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Adjustments */




@media (max-width: 576px) {
    .input-with-button {
        flex-direction: column;
    }
    
    .input-with-button input {
        border-right: 1px solid #ddd;
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }
    
    .input-with-button button {
        border-radius: 4px;
        width: 100%;
    }
    
    .btn.secondary-btn {
        margin-right: 0;
        margin-bottom: 0.75rem;
        width: 100%;
    }
    
    button[type="submit"] {
        width: 100%;
    }
}

/* Add to your submit-video.css file */

/* Error message container */
#video-error {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

/* Error text */
.error-text {
    color: #d32f2f;
    margin-bottom: 1rem;
}

/* Button container inside error message */
.error-button-container {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-start;
}

/* Ensure buttons in errors look right */
#video-error .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f1f3f4;
    color: #444;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

#video-error .btn:hover {
    background-color: #e3e6e8;
    border-color: #bbb;
}

#video-error .btn.secondary-btn {
    background-color: #e8f0fe;
    color: #1a73e8;
    border-color: #c6dafc;
}

#video-error .btn.secondary-btn:hover {
    background-color: #d2e3fc;
}

/* Common styles for both selectors */
.hierarchical-select-container,
.tag-select-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    height: 300px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    margin-bottom: 20px;
}

.select-search {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.search-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.tree-select-items,
.tag-groups {
    overflow-y: auto;
    flex: 1;
    padding: 10px;
}

.selected-count {
    padding: 10px;
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

/* Category tree styles */
.category-item {
    margin-bottom: 8px;
}

.category-header {
    display: flex;
    align-items: center;
}

.category-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: normal;
}

.category-label input {
    margin-right: 8px;
}

.expand-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 10px;
    padding: 0;
    margin-right: 5px;
    width: 20px;
    height: 20px;
    color: #666;
}

.category-children {
    margin-top: 5px;
    margin-left: 20px;
}

/* Tag selection styles */
.tag-group {
    margin-bottom: 15px;
}

.group-letter {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 3px;
}

.group-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    margin-bottom: 5px;
    color: var(--gray);
}

.tag-item:hover {
    background-color: #e0e0e0;
}

.tag-item.selected {
    background-color: #007bff;
    color: white;
}

.selected-tags {
    padding: 10px;
    border-top: 1px solid #eee;
    max-height: 100px;
    overflow-y: auto;
    display: none; /* Initially hidden until tags are selected */
}

.selected-tags-header {
    font-weight: 500;
    margin-bottom: 8px;
}

.selected-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.selected-tag-item {
    padding: 3px 8px;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.remove-tag {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    margin-left: 5px;
    cursor: pointer;
    padding: 0 3px;
}


/* ── Channel banner below video player ──────────────────────────────────── */
.channel-banner-wrap {
    width: 100%;
    max-width: 1175px;
    margin: 14px auto 8px;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a2e;
}
/* Row 1: Banner image — 1175×120px, centred, overflow clipped
   Can be <div> or <a> tag */
.channel-banner-img-row {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    line-height: 0;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}
.channel-banner-img-row:hover .channel-banner-img {
    opacity: 0.9;
    transform: scale(1.01);
    transition: opacity 0.25s, transform 0.25s;
}
.channel-banner-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.25s, transform 0.25s;
}
.channel-banner-img--fallback {
    height: 120px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3a6e 60%, #1a2a4e 100%);
}
/* Row 2: Avatar overlaps banner + channel details to the right */
.channel-banner-info {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 22px;
    padding: 0 24px 22px;
    background: var(--navy);
}
.channel-banner-avatar-wrap {
    flex-shrink: 0;
    margin-top: -33px;
    position: relative;
    z-index: 1;
}
.channel-banner-avatar-wrap a {
    display: block;
    border-radius: 50%;
}
.channel-banner-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--navy);
    display: block;
    transition: opacity 0.2s;
}
.channel-banner-avatar-wrap a:hover .channel-banner-avatar { opacity: 0.85; }
.channel-banner-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2d3a6e;
    color: rgba(255,255,255,0.45);
    font-size: 3em;
}
.channel-banner-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 16px;
    flex: 1;
    min-width: 0;
}
.channel-banner-extended {
    flex-basis: 100%;
    margin-top: -55px;
    padding-left: calc(160px + 22px);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
/* Clickable name wrapper */
.channel-banner-name-link {
    text-decoration: none;
    align-self: flex-start;
}
.channel-banner-name-link:hover .channel-banner-name {
    text-decoration: underline;
}
.channel-banner-name {
    color: #fff;
    font-size: 1.4em;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
}
/* Meta rows */
.channel-banner-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 20px;
    margin: 3px 0 0;
}
.channel-banner-meta--secondary {
    margin-top: 5px;
    gap: 4px 24px;
}
.channel-banner-handle {
    color: rgba(255,255,255,0.7);
    font-size: 0.95em;
    font-weight: 500;
    text-decoration: none;
}
a.channel-banner-handle:hover {
    text-decoration: underline;
    color: rgba(255,255,255,0.9);
}
.channel-banner-stat {
    color: rgba(255,255,255,0.55);
    font-size: 0.88em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.channel-banner-stat--subs {
    color: rgba(255,255,255,0.75);
    font-size: 0.95em;
    font-weight: 500;
}
.channel-banner-stat i {
    font-size: 0.88em;
    opacity: 0.7;
}
.channel-banner-desc {
    color: rgba(255,255,255,0.55);
    font-size: 1em;
    line-height: 1.55;
    margin: 4px 0 2px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Channel link pills */
.channel-banner-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 2px;
}
.channel-banner-link-btn {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 0.82em;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.channel-banner-link-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}
.channel-subscribe-btn {
    display: inline-block;
    margin-top: 8px;
    background-color: var(--red);
    color: #fff;
    text-decoration: none;
    padding: 8px 22px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.92em;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    align-self: flex-start;
}
.channel-subscribe-btn:hover {
    background-color: #a00b33;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}
@media (max-width: 768px) {
    .channel-banner-img-row,
    .channel-banner-img { height: 80px; }
    .channel-banner-img--fallback { height: 80px; }
    .channel-banner-avatar-wrap { margin-top: -40px; }
    .channel-banner-avatar { width: 100px; height: 100px; }
    .channel-banner-info { gap: 14px; padding: 0 14px 16px; }
    .channel-banner-name { font-size: 1.1em; }
    .channel-banner-meta { gap: 4px 10px; }
    .channel-banner-stat { font-size: 0.8em; }
    .channel-banner-extended { padding-left: 0; margin-top: 0px; }
}

/* ── Back to Top Button ─────────────────────────────────────── */
#back-to-top {
    display: none; /* hidden on desktop */
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--red);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#back-to-top.btt-visible {
    opacity: 1;
    pointer-events: auto;
}
@media (max-width: 768px) {
    #back-to-top {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ── Book description header: title + Buy Now button side by side ── */
.book-description-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.book-description-header h2 {
    margin: 0;
}

.book-desc-amazon-btn {
    flex-shrink: 0;
    white-space: nowrap;
}


.amazon-shop-btn {
  display: inline-block;
  background: #ff9900;
  color: #fff !important;
  font-weight: 700;
  font-size: .95rem;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.amazon-shop-btn-large {
  font-size: 1rem;
  padding: 12px 22px;
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}