/*
 * ProjectPro eBooks – Front-End Styles
 * Scoped under .pp-* classes so nothing bleeds into the theme.
 *
 * Color tokens (match header/footer):
 *   Teal       #00bfa5
 *   Dark navy  #04121b / #2d3142
 *   White      #ffffff
 *   Gradient 1 linear-gradient(90deg, #00bfa5 0%, #3e51b5 100%)
 *   Gradient 2 linear-gradient(135deg, #e8f8f5 0%, #dff0f8 40%, #e0eef8 100%)
 *   Radial 1   radial-gradient(50% 50% at 50% 50%, rgba(3,186,158,.5) 0%, rgba(3,186,158,0) 100%)
 *   Radial 2   radial-gradient(50% 50% at 50% 50%, rgba(80,95,170,.4) 0%, rgba(56,81,163,0) 100%)
 */

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.pp-container {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.pp-container--block {
    display: block;
}

/* ============================================================
   PAGE HERO  (shared by archive + single)
   ============================================================ */
.pp-page-hero {
    position: relative;
    background-image: linear-gradient(90deg, rgb(0, 191, 165) 0%, rgb(62, 81, 181) 100%);
    padding: 60px 0 52px;
    overflow: hidden;
}

.pp-page-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 420px; height: 420px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(3,186,158,.45) 0%, rgba(3,186,158,0) 100%);
    pointer-events: none;
}

.pp-page-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 360px; height: 360px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(80,95,170,.35) 0%, rgba(56,81,163,0) 100%);
    pointer-events: none;
}

.pp-page-hero .pp-container {
    display: flex;
    flex-direction: column;
    align-items: anchor-center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.pp-page-hero h1 {
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.pp-page-hero h1 span {
   background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pp-hero-accent-line {
    width: 60px; height: 4px;
   background: #ffffff;
    border-radius: 2px;
    margin-top: 6px;
}

/* Breadcrumb */
.pp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #aac4d0;
    flex-wrap: wrap;
}

.pp-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: color .2s;
}

.pp-breadcrumb a:hover { color: #00bfa5; }

.pp-breadcrumb i {
    font-size: 11px;
    color: #ffffff;
}

.pp-breadcrumb .pp-current {
    color: #ffffff;
    font-weight: 600;
}

/* ============================================================
   ARCHIVE — SECTION WRAPPER
   ============================================================ */
.pp-ebooks-section {
    background: linear-gradient(135deg, #e8f8f5 0%, #dff0f8 40%, #e0eef8 100%);
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}

.pp-ebooks-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(3,186,158,.12) 0%, rgba(3,186,158,0) 100%);
    pointer-events: none;
}

.pp-ebooks-section::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(80,95,170,.1) 0%, rgba(56,81,163,0) 100%);
    pointer-events: none;
}

.pp-ebooks-section .pp-container {
    display: block;
    position: relative;
    z-index: 2;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.pp-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.pp-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00bfa5;
    margin-bottom: 14px;
}

.pp-section-label::before,
.pp-section-label::after {
    content: '';
    display: block;
    width: 28px; height: 2px;
    background: linear-gradient(90deg, #00bfa5, #3e51b5);
    border-radius: 1px;
}

.pp-section-header h2 {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 800;
    color: #2d3142;
    line-height: 1.2;
    margin-bottom: 14px;
}

.pp-section-header h2 span {
    background: linear-gradient(90deg, #00bfa5 0%, #3e51b5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pp-section-header p {
    font-size: 17px;
    color: #5a6a7e;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   CARDS GRID
   ============================================================ */
.pp-ebooks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* ============================================================
   SINGLE CARD
   ============================================================ */
.pp-ebook-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(45,49,66,.08);
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
}

.pp-ebook-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00bfa5 0%, #3e51b5 100%);
    opacity: 0;
    transition: opacity .3s ease;
}

.pp-ebook-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(45,49,66,.14);
}

.pp-ebook-card:hover::before { opacity: 1; }

/* Image */
.pp-ebook-card__image {
    position: relative;
    width: 100%;
   
    overflow: hidden;
}

.pp-ebook-card__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.pp-ebook-card:hover .pp-ebook-card__image img { transform: scale(1.05); }

/* Badge */
.pp-ebook-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: linear-gradient(90deg, #00bfa5 0%, #3e51b5 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
}

/* Body */
.pp-ebook-card__body {
    padding: 28px 28px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pp-ebook-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3142;
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color .2s;
}

.pp-ebook-card:hover .pp-ebook-card__title { color: #00bfa5; }

.pp-ebook-card__excerpt {
    font-size: 14.5px;
    line-height: 1.75;
    color: #6b7a90;
    flex: 1;
    margin: 0;
}

/* Footer */
.pp-ebook-card__footer {
    padding: 0 28px 28px;
    margin-top: 20px;
}

/* Download button (card) */
.pp-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #00bfa5;
    text-decoration: none;
    border: 2px solid #00bfa5;
    padding: 10px 22px;
    border-radius: 50px;
    transition: background .25s, color .25s, transform .2s;
    letter-spacing: .3px;
}

.pp-btn-download i { font-size: 13px; transition: transform .25s; }

.pp-btn-download:hover {
    background: linear-gradient(90deg, #00bfa5 0%, #3e51b5 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
}

.pp-btn-download:hover i { transform: translateY(2px); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pp-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
    flex-wrap: wrap;
}

.pp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #2d3142;
    text-decoration: none;
    border: 1.5px solid #dde5ef;
    background: #fff;
    transition: background .2s, color .2s, border-color .2s;
}

.pp-pagination .page-numbers.current,
.pp-pagination .page-numbers:hover {
    background: linear-gradient(90deg, #00bfa5 0%, #3e51b5 100%);
    color: #fff;
    border-color: transparent;
}

/* ============================================================
   NO EBOOKS
   ============================================================ */
.pp-no-ebooks {
    text-align: center;
    font-size: 17px;
    color: #6b7a90;
    padding: 40px 0;
}

/* ============================================================
   SINGLE — DOWNLOAD SECTION WRAPPER
   ============================================================ */
.pp-ebook-detail-section {
    background: linear-gradient(135deg, #e8f8f5 0%, #dff0f8 40%, #e0eef8 100%);
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
}

.pp-ebook-detail-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -80px;
    width: 480px; height: 480px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(3,186,158,.13) 0%, rgba(3,186,158,0) 100%);
    pointer-events: none;
}

.pp-ebook-detail-section::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -60px;
    width: 380px; height: 380px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(80,95,170,.1) 0%, rgba(56,81,163,0) 100%);
    pointer-events: none;
}

/* ============================================================
   DOWNLOAD LAYOUT (two columns)
   ============================================================ */
.pp-ebook-download {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    position: relative;
    z-index: 2;
}

/* --- Left column --- */
.pp-ebook-download__content { flex: 1 1 0; min-width: 0; }

.pp-ebook-download__inner {
    background: #ffffff;
    border-radius: 20px;
    padding: 42px 40px 48px;
    position: relative;
    overflow: hidden;
}

.pp-ebook-download__inner::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 280px; height: 280px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(3,186,158,.18) 0%, rgba(3,186,158,0) 100%);
    pointer-events: none;
}

.pp-ebook-download__inner::after {
    content: '';
    position: absolute;
    bottom: -50px; left: -50px;
    width: 240px; height: 240px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(80,95,170,.2) 0%, rgba(56,81,163,0) 100%);
    pointer-events: none;
}

.pp-ebook-download__title {
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 800;
    color: #00bfa5;
    line-height: 1.3;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.pp-ebook-download__image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
    box-shadow: 0 12px 36px rgba(0,0,0,.35);
}

.pp-ebook-download__image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.pp-ebook-download__description {
    position: relative;
    z-index: 1;
}

.pp-ebook-download__description p {
    font-size: 18px;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 16px;
}
ul.case-study-list li{
    margin-bottom: 9px;
    font-size: 18px;
}
.pp-ebook-download__description h2{
	color: #000000;
    margin-bottom: 23px;
    font-size: 24px;
    font-weight: 800;
}
ul.case-study-list li {
    color: #000000;
}

ul.case-study-list {
    margin-left: 20px;
}
ul.case-study-list li {
    color: #000000;
}
ul.case-study-list li {
    margin-bottom: 9px;
}

ul.case-study-list {
    margin-left: 20px;
}
/* Covers list */
.pp-ebook-download__covers {
    margin-top: 28px;
    position: relative;
    z-index: 1;
}

.pp-covers-title {
    font-size: 16px;
    font-weight: 700;
    color: #00bfa5;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pp-covers-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,191,165,.4), transparent);
}

.pp-covers-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pp-covers-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    color: #d6eaf2;
    font-weight: 500;
}

.pp-check-box {
    width: 20px; height: 20px;
    border: 2px solid #00bfa5;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,191,165,.1);
}

.pp-check-box i { font-size: 10px; color: #00bfa5; }

/* --- Right column (form) --- */
.pp-ebook-download__form-col {
    flex: 0 0 420px;
    min-width: 0;
}

.pp-ebook-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 36px 44px;
    box-shadow: 0 8px 40px rgba(45,49,66,.12);
    position: sticky;
    top: 24px;
    position: relative; /* fallback */
}

/* Top accent bar */
.pp-ebook-form-card::before {
    content: '';
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00bfa5 0%, #3e51b5 100%);
    border-radius: 20px 20px 0 0;
}

/* Form header */
.pp-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.pp-form-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #2d3142;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.pp-form-subtitle {
    font-size: 14px;
    color: #7a8fa8;
    margin-top: 6px;
}

.pp-form-divider {
    width: 50px; height: 3px;
    background: linear-gradient(90deg, #00bfa5 0%, #3e51b5 100%);
    border-radius: 2px;
    margin: 12px auto 0;
}

/* Form message */
.pp-form-message {
    display: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.pp-form-message.pp-success {
    display: block;
    background: #e6faf7;
    color: #007a67;
    border: 1px solid #b2ece4;
}

.pp-form-message.pp-error {
    display: block;
    background: #fff0f0;
    color: #c0392b;
    border: 1px solid #fbc0bb;
}

/* Form fields */
.pp-ebook-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pp-form-group { position: relative; }

.pp-form-group input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14.5px;
    color: #2d3142;
    background: #f8fafc;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.pp-form-group input::placeholder { color: #9aabbc; }

.pp-form-group input:focus {
    border-color: #00bfa5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,191,165,.12);
}

.pp-field-icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: #b0c4d4;
    font-size: 14px;
    pointer-events: none;
    transition: color .2s;
}

.pp-form-group:focus-within .pp-field-icon { color: #00bfa5; }

/* reCAPTCHA placeholder */
.pp-recaptcha-box {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.pp-captcha-check {
    width: 24px; height: 24px;
    border: 2px solid #bfcad6;
    border-radius: 4px;
    flex-shrink: 0;
    background: #fff;
}

.pp-captcha-label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
    flex: 1;
}

.pp-captcha-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.pp-rc-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, #4285f4, #34a853, #fbbc04, #ea4335);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-rc-icon i { color: #fff; font-size: 14px; }

.pp-captcha-logo span {
    font-size: 9px;
    color: #9aabbc;
    letter-spacing: .3px;
    text-align: center;
    line-height: 1.3;
}

/* Submit button */
.pp-btn-submit {
    display: block;
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(90deg, #00bfa5 0%, #3e51b5 100%);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: opacity .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 6px 20px rgba(0,191,165,.3);
    margin-top: 4px;
}

.pp-btn-submit:hover {
    opacity: .92;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,191,165,.38);
}

.pp-btn-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

.pp-form-privacy {
    font-size: 12px;
    color: #9aabbc;
    text-align: center;
    margin-top: 14px;
    line-height: 1.6;
}

.pp-form-privacy a { color: #00bfa5; text-decoration: none; }
.pp-form-privacy a:hover { text-decoration: underline; }

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

/* 2-col grid on tablet */
@media (max-width: 1024px) {
    .pp-ebooks-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

    .pp-ebook-download {
        flex-direction: column;
        gap: 36px;
    }

    .pp-ebook-download__form-col {
        flex: 0 0 100%;
        width: 100%;
    }

    .pp-ebook-form-card { position: static; }
}

/* 1-col on mobile */
@media (max-width: 640px) {
    .pp-ebooks-section { padding: 56px 0 64px; }
    .pp-ebooks-grid { grid-template-columns: 1fr; gap: 24px; }
    .pp-section-header { margin-bottom: 36px; }
    .pp-ebook-card__image { height: 200px; }
    .pp-page-hero { padding: 48px 0 42px; }
    .pp-ebook-detail-section { padding: 48px 0 56px; }
    .pp-ebook-download__inner { padding: 28px 24px 34px; }
    .pp-ebook-form-card { padding: 28px 22px 34px; }
    .pp-ebook-download__image img { height: 200px; }
}

@media (max-width: 480px) {
    .pp-container { padding: 0 15px; }
    .pp-page-hero { padding: 40px 0 36px; }
    .pp-ebook-detail-section { padding: 40px 0 48px; }
}
