/* ============================================
   Custom Pages Stylesheet
   For: About, Practice Area, Team, Blog, Legal News, Contact
   Matches existing theme colors:
   --e-global-color-rishi1: rgba(0,0,0,0.9)  (dark text)
   --e-global-color-rishi2: #01233f          (navy)
   --e-global-color-rishi3: #bf9004          (gold)
   --e-global-color-rishi4: #023e74          (blue)
   --e-global-color-rishi5: #FFFFFF          (white)
   --e-global-color-rishi6: #f8f4e5          (cream)
   --e-global-color-rishi7: #f2f4f5          (light gray)
   ============================================ */

/* ---- Page Banner ---- */
.page-banner {
    position: relative;
    background: linear-gradient(120deg, #01233f 0%, #023e74 100%);
    padding: 90px 0 70px;
    overflow: hidden;
}

.page-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 85% 20%, rgba(191, 144, 4, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(191, 144, 4, 0.10) 0%, transparent 40%);
    pointer-events: none;
}

.page-banner-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    color: #FFFFFF;
    font-size: 44px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.25em;
}

.page-banner .breadcrumb {
    color: #d6c8a3;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.page-banner .breadcrumb a {
    color: #bf9004;
    text-decoration: none;
}

.page-banner .breadcrumb a:hover {
    text-decoration: underline;
}

/* ---- Generic Section ---- */
.cp-section {
    padding: 80px 0;
}

.cp-section.cp-bg-light {
    background-color: #f2f4f5;
}

.cp-section.cp-bg-dark {
    background-color: #01233f;
    color: #FFFFFF;
}

.cp-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.cp-section-header {
    text-align: center;
    max-width: 740px;
    margin: 0 auto 50px;
}

.cp-section-header .cp-eyebrow {
    color: #bf9004;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.cp-section-header h2 {
    color: #01233f;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.3em;
}

.cp-bg-dark .cp-section-header h2 {
    color: #FFFFFF;
}

.cp-section-header p {
    color: rgba(0,0,0,0.65);
    font-size: 17px;
    line-height: 1.7em;
}

.cp-bg-dark .cp-section-header p {
    color: rgba(255,255,255,0.75);
}

/* ---- Cards Grid ---- */
.cp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.cp-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cp-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cp-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 991px) {
    .cp-grid.cols-3, .cp-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .cp-grid.cols-2, .cp-grid.cols-3, .cp-grid.cols-4 { grid-template-columns: 1fr; }
}

/* ---- Card ---- */
.cp-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 36px 30px;
    box-shadow: 0 4px 24px rgba(1, 35, 63, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #eef1f3;
}

.cp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(1, 35, 63, 0.12);
}

.cp-card .cp-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f8f4e5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.cp-card .cp-icon svg {
    width: 28px;
    height: 28px;
    stroke: #bf9004;
    fill: none;
    stroke-width: 1.8;
}

.cp-card h3 {
    color: #01233f;
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4em;
}

.cp-card p {
    color: rgba(0,0,0,0.65);
    font-size: 15px;
    line-height: 1.7em;
    margin: 0;
}

.cp-card a.cp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: #bf9004;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.cp-card a.cp-link:hover {
    color: #01233f;
}

/* ---- Team Member Card ---- */
.cp-team-card {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(1, 35, 63, 0.06);
    transition: transform 0.25s ease;
}

.cp-team-card:hover {
    transform: translateY(-6px);
}

.cp-team-card .cp-team-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.cp-team-card .cp-team-photo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cp-team-card .cp-team-body {
    padding: 24px;
    text-align: center;
}

.cp-team-card h3 {
    color: #01233f;
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.cp-team-card .cp-role {
    color: #bf9004;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.cp-team-card p {
    color: rgba(0,0,0,0.6);
    font-size: 14px;
    line-height: 1.6em;
    margin: 0;
}

/* ---- Buttons ---- */
.cp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background-color: #bf9004;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.25s ease;
    border: none;
    cursor: pointer;
}

.cp-btn:hover {
    background-color: #01233f;
    color: #FFFFFF;
}

.cp-btn.cp-btn-outline {
    background-color: transparent;
    color: #bf9004;
    border: 1px solid #bf9004;
}

.cp-btn.cp-btn-outline:hover {
    background-color: #bf9004;
    color: #FFFFFF;
}

/* ---- Two Column Layout ---- */
.cp-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .cp-two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.cp-two-col h2 {
    color: #01233f;
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.3em;
}

.cp-two-col p {
    color: rgba(0,0,0,0.65);
    font-size: 16px;
    line-height: 1.8em;
    margin-bottom: 16px;
}

.cp-graphic {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(1, 35, 63, 0.12);
}

.cp-graphic svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- Stats Row ---- */
.cp-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

@media (max-width: 768px) {
    .cp-stats-row { grid-template-columns: repeat(2, 1fr); }
}

.cp-stats-row .cp-stat-num {
    font-family: "Playfair Display", serif;
    color: #bf9004;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2em;
    margin-bottom: 6px;
}

.cp-stats-row .cp-stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
}

/* ---- Blog / News List ---- */
.cp-post-card {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(1, 35, 63, 0.06);
    transition: transform 0.25s ease;
}

.cp-post-card:hover {
    transform: translateY(-4px);
}

.cp-post-card .cp-post-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.cp-post-card .cp-post-img svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cp-post-card .cp-post-body {
    padding: 24px;
}

.cp-post-card .cp-post-meta {
    color: #bf9004;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.cp-post-card h3 {
    color: #01233f;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4em;
    margin: 0 0 12px 0;
}

.cp-post-card p {
    color: rgba(0,0,0,0.6);
    font-size: 14px;
    line-height: 1.7em;
    margin: 0 0 14px 0;
}

.cp-post-date {
    color: rgba(0,0,0,0.45);
    font-size: 13px;
    margin-bottom: 10px;
    display: block;
}

/* ---- Contact Page ---- */
.cp-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

@media (max-width: 900px) {
    .cp-contact-grid { grid-template-columns: 1fr; }
}

.cp-contact-info {
    background: #01233f;
    border-radius: 8px;
    padding: 40px;
    color: #FFFFFF;
}

.cp-contact-info h3 {
    color: #FFFFFF;
    font-size: 24px;
    margin: 0 0 24px 0;
}

.cp-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.cp-contact-item .cp-contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(191, 144, 4, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cp-contact-item .cp-contact-icon svg {
    width: 20px;
    height: 20px;
    stroke: #bf9004;
    fill: none;
    stroke-width: 1.8;
}

.cp-contact-item .cp-contact-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cp-contact-item .cp-contact-value {
    font-size: 16px;
    color: #FFFFFF;
    font-weight: 500;
}

.cp-contact-form-wrap {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(1, 35, 63, 0.06);
}

.cp-contact-form-wrap h3 {
    color: #01233f;
    font-size: 24px;
    margin: 0 0 8px 0;
}

.cp-contact-form-wrap p.cp-form-sub {
    color: rgba(0,0,0,0.55);
    font-size: 15px;
    margin-bottom: 24px;
}

.cp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .cp-form-row { grid-template-columns: 1fr; }
}

.cp-contact-form-wrap input,
.cp-contact-form-wrap textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    font-family: inherit;
    box-sizing: border-box;
}

.cp-contact-form-wrap textarea {
    margin-bottom: 20px;
    resize: vertical;
}

.cp-contact-form-wrap input:focus,
.cp-contact-form-wrap textarea:focus {
    outline: none;
    border-color: #bf9004;
}

.cp-map-wrap {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(1, 35, 63, 0.06);
}

.cp-map-wrap iframe {
    width: 100%;
    height: 380px;
    border: 0;
    display: block;
}

/* ---- Filters (Blog/Legal News) ---- */
.cp-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cp-filter-btn {
    padding: 10px 22px;
    border: 1px solid #d8dde0;
    border-radius: 30px;
    background: #FFFFFF;
    color: #01233f;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cp-filter-btn:hover,
.cp-filter-btn.active {
    background: #bf9004;
    color: #FFFFFF;
    border-color: #bf9004;
}

/* ---- Pagination ---- */
.cp-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.cp-pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8dde0;
    border-radius: 4px;
    color: #01233f;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cp-pagination a:hover,
.cp-pagination a.active {
    background: #01233f;
    color: #FFFFFF;
    border-color: #01233f;
}

/* ---- Founder/Bio block ---- */
.cp-founder-quote {
    background: #f8f4e5;
    border-left: 4px solid #bf9004;
    padding: 24px 30px;
    border-radius: 0 8px 8px 0;
    margin-top: 24px;
}

.cp-founder-quote p {
    margin: 0;
    color: #01233f;
    font-style: italic;
    font-size: 16px;
    line-height: 1.7em;
}
