/* =========================================================
   NDP BRAND STYLESHEET
   Single source of truth — used across all pages
   ========================================================= */

/* =========================================
   1. VARIABLES
   ========================================= */
:root {
    --brand-green: #3b8c2a;
    --brand-green-dark: #2d6b20;
    --brand-green-light: #eef7eb;
    --brand-beige: #f2ebd9;
    --brand-beige-dark: #e8dfc8;
    --text-dark: #222;
    --text-body: #555;
    --text-muted: #6b7280;
    --border-light: #e5e5e5;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 28px rgba(0,0,0,0.12);
}

/* =========================================
   2. GLOBAL / UTILITIES
   ========================================= */
.page-link { float: right; }

.logo-width { margin: 10px 0 !important; }
.sub_category { text-decoration: underline; }
.cover-page-none { display: none; }
.visibility-1 { display: none; }
.mt-3 { margin-top: 1rem; }
.mb-8 { margin-bottom: 2rem; }

figure.image-box h4 {
    font-size: 12px !important;
    font-weight: 500;
    word-spacing: 5px;
    text-align: justify;
    line-height: 20px;
}
.contact-info i { margin-right: 8px; }

@media (min-width: 320px) and (max-width: 400px) {
    .header-center.p-l-n { margin-top: 0; }
}

/* =========================================
   3. MAIN WRAPPER
   ========================================= */
.main {
    background: #fff;
    padding: 35px 0 50px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

/* =========================================
   4. BANNER
   ========================================= */
.banner.banner-cat {
    min-height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.banner.banner-cat::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%);
}

/* =========================================
   5. PAGE HEADER (hero)
   ========================================= */
.page-header.page-header-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 90px 0;
    min-height: 480px;
    display: flex;
    align-items: center;
}
.page-header.page-header-bg::after {
    content: '';
    position: absolute;
    inset: 0;
   
}
.page-header.page-header-bg .container {
    position: relative;
    z-index: 1;
    text-align: center;
}
.page-header.page-header-bg h1 {
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* =========================================
   6. BREADCRUMB
   ========================================= */
.breadcrumb-nav {
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: #fafafa;
    padding: 10px 0;
}
.breadcrumb-nav .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
    font-size: 14px;
}
.breadcrumb-nav .breadcrumb-item a {
    color: var(--text-body);
    text-decoration: none;
}
.breadcrumb-nav .breadcrumb-item a:hover { color: var(--brand-green); }
.breadcrumb-nav .breadcrumb-item.active {
    color: var(--brand-green);
    font-weight: 600;
}

/* =========================================
   7. ALERTS
   ========================================= */
.main .alert {
    border-radius: 6px;
    border: none;
    padding: 14px 18px;
    font-size: 14px;
    margin-bottom: 20px;
}
.main .alert-danger {
    background: #fef2f2;
    color: #b91c1c;
    border-left: 4px solid #dc2626;
}
.main .alert-success {
    background: var(--brand-green-light);
    color: var(--brand-green-dark);
    border-left: 4px solid var(--brand-green);
}

/* =========================================
   8. TITLES
   ========================================= */
.main h2.alignset {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-green);
}
.subtitle {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-green);
    display: inline-block;
    text-transform: capitalize;
}
.subtitle:not(:first-of-type) { margin-top: 40px; }

/* =========================================
   9. BOOK CARDS (product-default)
   ========================================= */
.product-default {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}
.product-default:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    border-color: var(--brand-green);
}
.product-default .image5 {
    background: #f7f7f7;
    padding: 18px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}
.product-default .image5 figure {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
}
.product-default .image5 img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.product-default:hover .image5 img { transform: scale(1.04); }

.product-default .product-details {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-default .product-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
    min-height: 42px;
}
.product-default .product-title a {
    color: var(--text-dark);
    text-decoration: none;
}
.product-default .product-title a:hover { color: var(--brand-green); }

.product-default ul.list-none-1 {
    list-style: none;
    padding: 10px 0 0;
    margin: 0;
    max-height: 170px;
    overflow-y: auto;
    border-top: 1px dashed #eee;
}
.product-default ul.list-none-1::-webkit-scrollbar { width: 4px; }
.product-default ul.list-none-1::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.product-default ul.list-none-1 a {
    text-decoration: none;
    color: var(--text-body);
    display: block;
}
.product-default ul.list-none-1 li {
    padding: 7px 4px;
    font-size: 13.5px;
    line-height: 1.5;
    border-bottom: 1px dashed #f2f2f2;
    transition: all 0.2s ease;
}
.product-default ul.list-none-1 a:last-child li { border-bottom: none; }
.product-default ul.list-none-1 li b {
    color: var(--brand-green);
    font-weight: 700;
    margin-right: 4px;
}
.product-default ul.list-none-1 a:hover li {
    color: var(--brand-green);
    padding-left: 8px;
    background: #f5fbf3;
    border-radius: 3px;
}

/* =========================================
   10. SUBJECT GRID + CARDS
   ========================================= */
.subject-page-wrapper {
    background-color: #fff;
    padding: 60px 0 80px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    position: relative;
}
.subject-page-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 300px;
    background: linear-gradient(180deg, #fafcf9 0%, #fff 100%);
    z-index: 0;
}
.subject-page-wrapper .container { position: relative; z-index: 1; }

.subject-header { text-align: center; margin-bottom: 40px; }
.subject-page-wrapper h1.subtitle {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    text-transform: none;
    border-bottom: none;
    padding-bottom: 0;
}
.subject-page-wrapper h1.subtitle::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--brand-green);
    border-radius: 2px;
    margin: 14px auto 0;
}
.subject-header p.subtitle-text {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

/* Toggle buttons */
.book-jour {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 45px;
    background: #f3f4f6;
    padding: 6px;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
.btn.jrnal-btn {
    background-color: transparent;
    color: var(--text-body);
    border: none;
    padding: 12px 45px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    position: relative;
}
.btn.jrnal-btn:hover { color: var(--brand-green); }
.btn.jrnal-btn.active {
    background-color: var(--brand-green);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 140, 42, 0.35);
}

/* Grid */
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Subject card */
.subject-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}
.subject-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--brand-green);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s ease;
}
.subject-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.subject-card:hover::before { transform: scaleY(1); }

.card-header-custom {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dark) 100%);
    color: #fff;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.3px;
}
.card-header-custom::after {
    content: '\f107';
    font-family: 'FontAwesome', sans-serif;
    font-size: 14px;
    transition: transform 0.3s ease;
    opacity: 0.85;
}
.card-header-custom[aria-expanded="true"]::after { transform: rotate(180deg); }

.card-body-custom {
    padding: 8px 24px 16px;
    flex-grow: 1;
}
.card-body-custom ul { list-style: none; padding: 0; margin: 0; }
.card-body-custom li { border-bottom: 1px dashed #eef0f2; }
.card-body-custom li:last-child { border-bottom: none; }
.card-body-custom a {
    display: flex;
    align-items: center;
    padding: 12px 0 12px 18px;
    color: var(--text-body);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
}
.card-body-custom a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.25s ease;
}
.card-body-custom a:hover {
    color: var(--brand-green);
    padding-left: 24px;
}
.card-body-custom a:hover::before {
    background: var(--brand-green);
    transform: translateY(-50%) scale(1.4);
}

/* Journal card */
.journal-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    position: relative;
    overflow: hidden;
}
.journal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-green-dark));
    transform: scaleX(0);
    transition: transform 0.35s ease;
}
.journal-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-green-light);
}
.journal-card:hover::before { transform: scaleX(1); }
.journal-card a.ndp-live {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    transition: color 0.25s;
}
.journal-card:hover a.ndp-live { color: var(--brand-green); }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 15px;
    background: #fafbfc;
    border-radius: 12px;
    border: 2px dashed var(--border-light);
}

/* =========================================
   11. ABOUT / POLICY CONTENT
   ========================================= */
.about-section.uniqer1 {
    padding: 60px 0;
    background: #fff;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}
.about-section p {
    font-size: 15.5px;
    line-height: 1.9;
    color: var(--text-body);
    margin-bottom: 16px;
    text-align: justify;
}

/* =========================================
   12. FEATURES / WHY CHOOSE US
   ========================================= */
.features-section {
    padding: 60px 0;
    background: #fafbfa;
    border-top: 1px solid var(--border-light);
    font-family: 'Segoe UI', Tahoma, sans-serif;
}
.features-section .subtitle.custom-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 45px;
    position: relative;
    padding-bottom: 14px;
    border-bottom: none;
    display: block;
    text-transform: uppercase;
}
.features-section .subtitle.custom-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 3px;
    background: var(--brand-green);
    border-radius: 2px;
}

.feature-box {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 35px 25px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    margin-bottom: 24px;
}
.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
    border-color: var(--brand-green);
}
.feature-box i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--brand-green-light);
    color: var(--brand-green);
    font-size: 28px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.feature-box:hover i {
    background: var(--brand-green);
    color: #fff;
    transform: scale(1.08);
}
.feature-box-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px;
    letter-spacing: 0.2px;
}
.feature-box-content p {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-body);
    margin: 0;
    text-align: center;
}

/* =========================================
   13. PUBLISH FORM
   ========================================= */
textarea.form-control {
    max-width: 100%;
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}
.ndpublishr {
    padding: 40px 0 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}
.ndpublishr h2.subtitle {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-green);
    display: inline-block;
}
.ndpublishr p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 10px;
}
form#user_form {
    background: #fafbfa;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 32px 28px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}
.form-group.required-field label::after {
    content: ' *';
    color: #d32f2f;
    font-weight: 700;
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 14.5px;
    color: var(--text-dark);
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(59, 140, 42, 0.12);
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3e%3cpath fill='%23666' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px;
    padding-right: 36px;
}
.form-group input[type="file"] {
    padding: 10px 14px;
    background: #fff;
    border: 1px dashed var(--brand-green);
    cursor: pointer;
    transition: background 0.2s;
    font-size: 13.5px;
    border-radius: 6px;
    width: 100%;
}
.form-group input[type="file"]:hover { background: var(--brand-green-light); }

.form-footer {
    margin-top: 15px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}
.form-footer .btn.btn-primary {
    background: var(--brand-green);
    border: 2px solid var(--brand-green);
    color: #fff;
    padding: 12px 50px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.form-footer .btn.btn-primary:hover {
    background: var(--brand-green-dark);
    border-color: var(--brand-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(59,140,42,0.25);
}

/* =========================================
   14. GET IN TOUCH (beige ribbon)
   ========================================= */
.get-in-touch-wrapper {
    background-color: var(--brand-beige);
    padding: 40px 0;
    margin-top: 30px;
    border-top: 1px solid var(--brand-beige-dark);
}
.btn-get-in-touch {
    background-color: var(--brand-green);
    color: #fff;
    padding: 13px 34px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}
.btn-get-in-touch::after {
    content: '';
    position: absolute;
    top: 0;
    right: -15px;
    width: 0;
    height: 0;
    border-top: 25px solid var(--brand-green);
    border-right: 15px solid transparent;
    transition: border-top-color 0.3s;
}
.btn-get-in-touch:hover {
    background-color: var(--brand-green-dark);
    color: #fff;
    transform: translateX(3px);
}
.btn-get-in-touch:hover::after { border-top-color: var(--brand-green-dark); }

/* =========================================
   15. ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}
.subject-card, .journal-card {
    animation: fadeInUp 0.5s ease forwards;
}

/* =========================================
   16. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .page-header.page-header-bg {
        padding: 60px 0;
        min-height: 200px;
    }
    .about-section .subtitle,
    .features-section .subtitle.custom-title { font-size: 22px; }
    .subject-page-wrapper h1.subtitle { font-size: 24px; }
    form#user_form { padding: 22px 18px; }
    .ndpublishr h2.subtitle { font-size: 22px; }
    .form-footer .btn.btn-primary {
        width: 100%;
        padding: 12px 20px;
    }
    .btn.jrnal-btn {
        padding: 10px 28px;
        font-size: 13px;
    }
    	.col-lg-3.col-md-6 {
    margin-bottom: 20px;
}
}