/*
 * ProjectPro Case Studies – Front-End Styles
 * Fully scoped under .pp-cs-* — zero bleed into theme.
 *
 * Color tokens (match ProjectPro brand):
 *   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%, transparent 100%)
 *   Radial 2   radial-gradient(50% 50% at 50% 50%, rgba(80,95,170,.4) 0%, transparent 100%)
 */

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

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

/* ============================================================
   PAGE HERO  (shared by archive + single)
   ============================================================ */
.pp-cs-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-cs-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-cs-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-cs-page-hero .pp-cs-container {
    display: flex;
    flex-direction: column;
    align-items: anchor-center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

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

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

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

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

.pp-cs-breadcrumb a { color: #aac4d0; text-decoration: none; transition: color .2s; }
.pp-cs-breadcrumb a:hover { color: #00bfa5; }
.pp-cs-breadcrumb i { font-size: 11px; color: #00bfa5; }
.pp-cs-breadcrumb .pp-cs-current { color: #00bfa5; font-weight: 600; }

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

.pp-cs-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-cs-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-cs-section .pp-cs-container {
    display: block;
    position: relative;
    z-index: 2;
}

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

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

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

.pp-cs-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-cs-section-header p {
    font-size: 17px;
    color: #5a6a7e;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

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

/* ============================================================
   SINGLE CARD
   ============================================================ */
.pp-cs-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-cs-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-cs-card:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(45,49,66,.14); }
.pp-cs-card:hover::before { opacity: 1; }

.pp-cs-card__image {
    position: relative;
    width: 100%; 
    overflow: hidden;
}

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

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

.pp-cs-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;
}

.pp-cs-card__body {
    padding: 28px 28px 20px;
    flex: 1; display: flex; flex-direction: column;
}

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

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

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

.pp-cs-card__footer {
    padding: 0 28px 28px;
    margin-top: 20px;
}

.pp-cs-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-cs-btn-download i { font-size: 13px; transition: transform .25s; }

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

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

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

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

.pp-no-cs {
    text-align: center; font-size: 17px;
    color: #6b7a90; padding: 40px 0;
}

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

.pp-cs-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-cs-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-cs-download {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    position: relative; z-index: 2;
}

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

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

.pp-cs-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-cs-download__description h2{
	color: #000000;
    margin-bottom: 23px;
    font-size: 24px;
    font-weight: 800;
	margin-top: 23px;
}
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;
}

.pp-cs-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-cs-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-cs-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-cs-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-cs-download__image img {
    width: 100%; height: 260px;
    object-fit: cover; display: block; border-radius: 12px;
}

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



/* Highlights list */
.pp-cs-download__highlights {
    margin-top: 28px;
    position: relative; z-index: 1;
}

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

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

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

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

.pp-cs-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-cs-check-box i { font-size: 10px; color: #00bfa5; }

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

.pp-cs-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 */
}

.pp-cs-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;
}

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

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

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

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

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

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

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

/* Fields */
.pp-cs-form { display: flex; flex-direction: column; gap: 14px; }
.pp-cs-form-group { position: relative; }

.pp-cs-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-cs-form-group input::placeholder { color: #9aabbc; }

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

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

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

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

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

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

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

.pp-cs-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-cs-rc-icon i { color: #fff; font-size: 14px; }

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

/* Submit */
.pp-cs-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-cs-btn-submit:hover {
    opacity: .92; transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,191,165,.38);
}

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

.pp-cs-form-privacy { font-size: 12px; color: #9aabbc; text-align: center; margin-top: 14px; line-height: 1.6; }
.pp-cs-form-privacy a { color: #00bfa5; text-decoration: none; }
.pp-cs-form-privacy a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .pp-cs-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .pp-cs-download { flex-direction: column; gap: 36px; }
    .pp-cs-download__form-col { flex: 0 0 100%; width: 100%; }
    .pp-cs-form-card { position: static; }
}

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

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