/* Chapter Template Styles */
.maxWidthContainer {
    max-width: 1480px;
    width: 100%;
    margin: 0 auto;
    padding: 75px 15px;
}

.chapter-header {
    background-image: linear-gradient(1deg, #ffd83163, #ffffff);
    margin-bottom: 30px;
    border-bottom: 1px solid #162b384d;
}

.chapter-header h1 {
    font-size: 1.5em;
}

.chapter-meta {
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: bold;
}

.chapter-description {
    color: #777;
    font-size: 1.1em;
    margin: 0;
    line-height: 1.6;
}

.youtube-video {
    margin: 30px 0;
    text-align: center;
}

.youtube-video iframe {
    max-width: 800px;
    border-radius: 8px;
}

.chapter-content {
    padding: 75px 15px;
    margin: 0 auto;
    max-width: 1080px;
}

.chapter-content p {
    margin-bottom: 1.5em;
}

.completion-section {
    padding: 25px;
    margin: 40px auto;
    border-radius: 8px;
    max-width: 800px;
    border: 1px solid #CEDADF;
    background-color: #cedadf1f;
    box-shadow: 0px 2px 25px 5px #c4c4c45c;
}

.completion-section label {
    font-weight: bold;
    margin-left: 10px;
    cursor: pointer;
}

.completion-section input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

#completion-message {
    background-color: #1C2B38;
    display: none;
    margin-top: 10px;
    margin-top: 15px;
    padding: 10px;
}

.pdf-download-btn {
    background: #FFDA32;
    margin: 10px 0;
}

.chapter-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px auto;
    padding: 20px 15px;
    border-top: 1px solid #ddd;
}

.nav-btn {
    padding: 15px 35px;
    background: #1C2B38;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: #FFDA32;
}

.nav-btn:disabled {
    background: #bdc3c7;
    color: white;
    cursor: not-allowed;
}

.nav-btn-disabled {
    padding: 12px 25px;
    background: #bdc3c7;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: not-allowed;
    font-weight: bold;
}

.comments-section {
    margin: 0 auto;
    padding: 30px 15px;
}

.comments-section .ast-comment-list li {
    background-color: #f5f5f5 !important;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #e5e5e5;
    margin-bottom: 10px;
}

.comments-section .ast-comment {
    border: none;
    padding: 0 !important;
}

.comments-section .ast-comment-cite-wrap a {
    color: #162b38;
    font-family: 'Volkhov';
    text-transform: capitalize;
}

.comments-section .ast-comment-edit-reply-wrap a {
    color: #162b38;
    font-weight: 700;
}

.comments-section .comment-form {
    background-color: #162b38;
    padding: 25px;
    border-radius: 25px;
}

.comments-section .comment-form-comment textarea {
    background-color: transparent;
    border-radius: 15px !important;
}

.comments-section .logged-in-as a {
    text-decoration: underline;
}

.comments-section .submit {
    background-color: #ffda32 !important;
    color: #000000 !important;
    padding: 17px 35px !important;
}

.comments-section h3 {
    color: #162b38;
    margin-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

/* Reading Progress Styles */
.reading-progress {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #0c1b23;
    box-shadow: 0px 2px 25px 5px #c4c4c45c;
    width: 50%;
    margin-top: 10px;
}

.reading-progress p {
    font-size: 16px;
}

.reading-progress h4 {
    font-weight: 500;
    font-size: 16px;
}

.progress-bar {
    background: #ecf0f1;
    border-radius: 10px;
    height: 10px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #1C2B38, #101a22);
    border-radius: 10px;
    height: 100%;
    transition: width 0.5s ease;
}

/* Responsive Design */
@media (max-width: 980px) {
    .reading-progress {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .flexContainer {
        flex-wrap: wrap;
    }

    .bookImg,
    .bookInfo,
    .reading-progress {
        width: 100% !important;
    }

    .chapter-header h1 {
        font-size: 1.5em;
    }

    .chapter-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .nav-btn,
    .nav-btn-disabled {
        text-align: center;
        width: 100%;
    }

    .youtube-video iframe {
        height: 300px;
    }

    .chapter-content {
        padding: 40px 15px;
    }
}



/* Amazon Banner */
.amazon-banner {
    margin: 20px 0;
    text-align: center;
}

.pdf-download-btn,
.amazon-banner a {
    text-decoration: none;
    font-size: 14px;
    padding: 10px 20px;
    color: #000000 !important;
    text-decoration: none;
    border-radius: 10px;
}

.amazon-banner a {
    border: 1px solid #0d1d26;
    transition: background 0.3s ease;
    padding: 14px 20px !important;
    background-color: #1C2B38;
    color: #ffffff !important;
}

.bookImg {
    background-color: #ffffff26;
    text-align: center;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0px 5px 20px 2px #0000001c;
    border: 1px solid #e5e5e5;
}



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

.bookImg {
    width: 30%;
}

.bookInfo {
    width: 70%;
}

.chapter-header h1,
.chapter-meta,
.nav-btn:hover,
.reading-progress h4,
.pdf-download-btn,
.amazon-banner a {
    color: #1C2B38;
}

.comments-section .comment-form-comment,
.logged-in-as,
.comments-section .comment-form-comment textarea,
.comments-section .comment-form-comment label,
.comments-section .logged-in-as a,
#completion-message {
    color: #ffffff;
}

.completionBox {
    max-width: 500px;
    margin: auto;
    text-align: center;
    background-color: #ffd831;
    align-content: center;
    padding: 8vw 4vw;
    border-radius: 15px;
    border: 2px solid transparent;
    box-shadow: 0px 5px 25px #00000029;
    transition: 0.5s;
}

.completionBox:hover
 {
    background-color: #ffffff;
    border-color: #162b38;
    box-shadow: 0px 5px 30px #00000066;
    transform: scale(1.02);
}
.completionPara {
    color: #162b38;
    font-family: 'Volkhov';
    font-size: 1.30rem;
}
.completionPara a{
    color: #ffffff;
    text-decoration: underline;
}
.completionBox:hover .completionPara a{
   color: #ffd831;
}

@media (max-width: 600px) {
    .amazon-banner {
        margin-top: 0 !important;
    }
    .completionPara{
    font-size: 1rem;
    }
}

/* Popup CSS Start */
 .completion-popup {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 999999;
        display: flex;
        align-items: center;
        justify-content: center;
        
    }
    
    .popup-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(3px);
    }
    
    .popup-content {
        position: relative;
        width: 90%;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        overflow: hidden;
        animation: popupIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        background-image: url(https://yahuahdabar.com/wp-content/uploads/2025/12/popup-Bg.jpg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    	padding: 75px 15px;
    }
    
    @keyframes popupIn {
        from { transform: scale(0.8); opacity: 0; }
        to { transform: scale(1); opacity: 1; }
    }
    
    .popup-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: white !important;
        border: none;
        font-size: 28px !important;
        color: #344054 !important;
        cursor: pointer;
        line-height: 1;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        z-index: 10;
    }
    
    .popup-close:hover {
        background: #f5f5f5;
        color: #333;
    }
    
    .popup-header {
        text-align: center;
    }
    
    .celebration-icon {
        font-size: 60px;
        margin-bottom: 15px;
    }
    
    .popup-header h2 {
        margin: 0 0 10px 0;
        font-size: 28px;
    }
    
    .popup-header p {
        margin: 0;
        opacity: 0.9;
    }
    
    .popup-body {
        padding: 30px;
        padding-bottom: 15px;
        text-align: center;
    }
    
    .popup-body p {
        color: #555;
        line-height: 1.5;
    }
    .calendly-link{
    	margin-top: 20px;
    }
    .schedule-btn {
        display: inline-block;
        background-color: #FFDA32;
        color: #000000 !important;
        padding: 15px 30px;
        text-decoration: none;
        font-weight: bold;
        transition: all 0.3s;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
    
    .schedule-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
        color: white;
    }
    
    .small-note {
        margin-top: 15px !important;
        font-size: 14px !important;
        color: #888 !important;
    }
    
    .popup-footer {
        padding: 20px 30px;
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .btn-close, .btn-remind {
        padding: 10px 25px;
        border-radius: 50px;
        border: none;
        cursor: pointer;
        font-size: 15px;
        font-weight: 500;
        transition: all 0.2s;
        border: 1px solid #ffd831;
        background-color: #ffffff !important;
    }
    
    
    .btn-remind:hover, .btn-close:hover {
        background: #ffd831 !important;
    }
    
    /* Admin chapter access styling */
.chapter-item.unlocked.admin-access {
    position: relative;
    border-left: 4px solid #0073aa;
    background-color: #f8f9fa;
}

.chapter-item.unlocked.admin-access a {
    color: #0073aa !important;
    font-weight: 600;
}

/* Admin badge styling */
.admin-badge {
    display: inline-block;
    background: #0073aa;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}