@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Great+Vibes&display=swap');

.psp-profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', sans-serif;
    color: #333;
}

/* Header Section */
.psp-header-section {
    position: relative;
    margin-bottom: 130px; /* Space for the overlapping profile picture */
}

.psp-cover-image {
    width: 100%;
    height: 300px;
    background-color: #d1d1d1;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.psp-profile-picture-wrapper {
    position: absolute;
    bottom: -110px; /* Half of the image height */
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-color: #1a1a1a;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.psp-profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Bar */
.psp-info-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 10px;
    font-size: 14px;
    color: #555;
}

.psp-constituency {
    text-align: left;
}

.psp-member-id {
    text-align: right;
}

/* Profile Details */
.psp-profile-details {
    text-align: center;
    margin-top: 10px;
}

.psp-special-honor {
    font-family: 'Great Vibes', cursive;
    font-size: 28px;
    margin-bottom: 5px;
    color: #333;
}

.psp-name {
    font-size: 42px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    letter-spacing: 1px;
    color: #000;
}

.psp-profession {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #000;
}

.psp-designation {
    display: inline-block;
    background-color: #d1d1d1;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: #333;
}

.psp-description {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Sections */
.psp-section {
    margin-bottom: 40px;
}

.psp-gallery-section {
    padding: 0 60px;
}

.psp-section-title {
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #000;
    margin-bottom: 25px;
}

.psp-section-title::before,
.psp-section-title::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ccc;
}

.psp-section-title:not(:empty)::before {
    margin-right: 15px;
}

.psp-section-title:not(:empty)::after {
    margin-left: 15px;
}

/* Gallery Grid */
.psp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.psp-gallery-item {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #d1d1d1;
    border-radius: 12px;
    overflow: hidden;
}

.psp-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.psp-gallery-item:hover .psp-gallery-img {
    transform: scale(1.05);
}

/* Footer Info */
.psp-other-info {
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Contact Buttons */
.psp-contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.psp-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #bf8e33;
    color: #fff;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}

.psp-contact-btn:hover {
    background-color: #442600;
    color: #fff;
}

.psp-contact-btn .dashicons {
    margin-right: 8px;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.psp-contact-btn .dashicons-phone {
    transform: scaleX(-1);
}

/* Shortcode Grid */
.psp-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.psp-grid-item {
    text-align: center;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.psp-grid-item:hover {
    transform: translateY(-5px);
}

.psp-grid-item a {
    text-decoration: none;
    color: inherit;
}

.psp-grid-img, .psp-grid-img-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
}

.psp-grid-img-placeholder {
    background: #d1d1d1;
}

.psp-grid-name {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 5px;
    text-transform: uppercase;
}

.psp-grid-profession {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .psp-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .psp-name {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .psp-gallery-section {
        padding: 0 10px;
    }
    
    .psp-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .psp-contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .psp-contact-btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Lightbox Styles */
.psp-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.psp-lightbox-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.psp-lightbox-content img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border: 5px solid #fff;
}

.psp-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

/* Frontend Form */
.psp-frontend-form {
    max-width: 800px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.psp-form-group {
    margin-bottom: 20px;
}

.psp-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.psp-form-group input[type="text"],
.psp-form-group input[type="email"],
.psp-form-group input[type="url"],
.psp-form-group input[type="tel"],
.psp-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 15px;
}

.psp-form-group input[type="file"] {
    background: #fff;
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 5px;
    width: 100%;
}

.psp-submit-btn {
    background-color: #bf8e33;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.psp-submit-btn:hover {
    background-color: #442600;
}

.psp-form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.psp-form-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* =============================================
   LAYOUT 2 — Left-Aligned Modern
   ============================================= */
.psp-layout-2 {
    max-width: 960px;
}

.psp2-cover-wrap {
    position: relative;
    margin-bottom: 20px;
}

.psp2-cover-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    background-color: #d1d1d1;
}

.psp2-cover-placeholder {
    background: linear-gradient(135deg, #442600 0%, #bf8e33 100%);
}

.psp2-cover-meta {
    position: absolute;
    bottom: 12px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* Identity Row — avatar left, info right */
.psp2-identity-row {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
}

.psp2-avatar-wrap {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    margin-top: -60px;
    position: relative;
    z-index: 2;
    background-color: #1a1a1a;
}

.psp2-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.psp2-identity-info {
    flex: 1;
    padding-top: 5px;
}

.psp2-special-honor {
    font-family: 'Great Vibes', cursive;
    font-size: 24px;
    color: #bf8e33;
    margin-bottom: 2px;
}

.psp2-name {
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    margin: 0 0 4px 0;
}

.psp2-profession {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.psp2-designation-badge {
    display: inline-block;
    background: linear-gradient(135deg, #bf8e33, #442600);
    color: #fff;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.psp2-contact-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.psp2-description {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 35px;
    padding: 0 10px;
}

/* Layout 2 responsive */
@media (max-width: 640px) {
    .psp2-identity-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .psp2-avatar-wrap {
        margin-top: -50px;
    }
    .psp2-contact-row {
        justify-content: center;
    }
    .psp2-name {
        font-size: 28px;
    }
}

/* =============================================
   LAYOUT 3 — Two-Column Split
   ============================================= */
.psp-layout-3 {
    max-width: 1100px;
    padding: 0;
}

.psp3-wrapper {
    display: flex;
    min-height: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Sidebar */
.psp3-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: relative;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
}

.psp3-sidebar-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(68,38,0,0.85) 0%, rgba(0,0,0,0.92) 100%);
}

.psp3-sidebar-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 25px;
    color: #fff;
}

.psp3-avatar-wrap {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(191,142,51,0.7);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    margin-bottom: 20px;
    background-color: #333;
}

.psp3-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.psp3-special-honor {
    font-family: 'Great Vibes', cursive;
    font-size: 22px;
    color: #bf8e33;
    margin-bottom: 4px;
}

.psp3-name {
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 6px 0;
    color: #fff;
}

.psp3-profession {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin-bottom: 10px;
}

.psp3-designation {
    display: inline-block;
    background: rgba(191,142,51,0.3);
    border: 1px solid rgba(191,142,51,0.5);
    color: #bf8e33;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.psp3-meta {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    margin-bottom: 18px;
}

.psp3-meta-item {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
}

/* Sidebar Contact Buttons */
.psp3-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

.psp3-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(191,142,51,0.2);
    border: 1px solid rgba(191,142,51,0.4);
    color: #fff;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.psp3-contact-btn:hover {
    background: rgba(191,142,51,0.5);
    color: #fff;
}

.psp3-contact-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.psp3-contact-btn .dashicons-phone {
    transform: scaleX(-1);
}

/* Main Content */
.psp3-main {
    flex: 1;
    padding: 40px 35px;
    background: #fff;
    overflow-y: auto;
}

.psp3-description-wrap {
    margin-bottom: 35px;
}

.psp3-description {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

/* Layout 3 responsive */
@media (max-width: 768px) {
    .psp3-wrapper {
        flex-direction: column;
    }
    .psp3-sidebar {
        width: 100%;
    }
    .psp3-main {
        padding: 25px 15px;
    }
    .psp-layout-3 .psp-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .psp-layout-3 .psp-gallery-grid {
        grid-template-columns: 1fr;
    }
}
