/* 
   Members Specific Styles
   District Officials Directory, Verification, Cards, and Related UI
*/

/* --- ROYAL EXECUTIVE LEADERSHIP SECTION (TOP) --- */
.core-leadership-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    color: white;
}

.core-leadership-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/dark-matter.png');
    opacity: 0.2;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.leadership-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 60px auto 0;
    position: relative;
    z-index: 2;
}

.leadership-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    display: flex;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.leadership-card:hover {
    transform: scale(1.02);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.leadership-photo-side {
    width: 30%;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.leadership-photo-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid var(--accent);
    padding: 5px;
    overflow: hidden;
    background: #fff;
}

.leadership-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.leadership-info-side {
    width: 70%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.leadership-desig-tag {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: fit-content;
    margin-bottom: 15px;
}

.leadership-name {
    font-size: 36px;
    font-weight: 900;
    color: white;
    margin: 0 0 10px;
}

.leadership-meta-box {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.l-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.l-meta-item i {
    color: var(--accent);
    font-size: 18px;
}

.l-meta-text {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

.btn-leadership-call {
    background: var(--accent);
    color: var(--primary) !important;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    transition: all 0.3s;
}

.btn-leadership-call:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .leadership-card {
        flex-direction: column;
    }

    .leadership-photo-side,
    .leadership-info-side {
        width: 100%;
        text-align: center;
    }

    .leadership-info-side {
        padding: 30px 20px;
        align-items: center;
    }

    .leadership-name {
        font-size: 26px;
    }

    .leadership-meta-box {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

/* --- PRESTIGE OFFICIAL MEMBER CARDS --- */
.district-officials-section {
    background: #fff;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

/* Decorative background elements */
.district-officials-section::before {
    content: "";
    position: absolute;
    top: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 33, 71, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.district-officials-section::after {
    content: "";
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.member-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.member-card {
    background: white;
    width: 340px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 33, 71, 0.08);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 33, 71, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}

.member-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    z-index: 1;
}

.member-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 33, 71, 0.15);
    border-color: var(--accent);
}

.member-photo {
    width: 180px;
    height: 180px;
    margin: 30px auto 0;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    z-index: 2;
    background: #f1f5f9;
}

.member-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.member-info {
    padding: 25px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.member-designation {
    font-size: 11px;
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: block;
}

.member-info h3 {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    margin: 0 0 10px;
    line-height: 1.2;
}

.member-id-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(0, 33, 71, 0.05);
    padding: 4px 15px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 25px;
}

.member-meta-area {
    background: #f8fafc;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-icon {
    font-size: 14px;
    color: var(--accent);
}

.meta-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 800;
}

.meta-value {
    font-size: 13px;
    color: var(--primary);
    font-weight: 800;
}

/* Authorized Badge */
.card-stamp {
    position: absolute;
    top: 135px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: rgba(255, 152, 0, 0.15);
    border: 2px dashed var(--accent);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transform: rotate(15deg);
    z-index: 3;
    animation: stampPulse 2s infinite;
}

@keyframes stampPulse {
    0% {
        transform: rotate(15deg) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: rotate(15deg) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: rotate(15deg) scale(1);
        opacity: 0.8;
    }
}

.member-address {
    font-size: 12px;
    color: #64748b;
    padding: 12px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    gap: 10px;
    text-align: left;
}

.btn-call-member {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #1e293b 100%);
    color: white !important;
    text-decoration: none;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 900;
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.btn-call-member:hover {
    background: var(--accent);
    color: var(--primary) !important;
}

@media (max-width: 768px) {
    .district-officials-section {
        padding: 70px 0;
    }

    .member-grid {
        gap: 30px;
        padding: 0 15px;
        margin-top: 40px;
    }

    .member-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .member-photo {
        width: 150px;
        height: 150px;
        border-width: 4px;
    }

    .member-card::before {
        height: 100px;
    }

    .card-stamp {
        top: 110px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .member-info h3 {
        font-size: 20px;
    }
}

/* --- PROFESSIONAL VERIFICATION CARD --- */
.prof-verify-container {
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.prof-verify-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid var(--accent);
}

.prof-verify-body {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 30px;
}

.prof-verify-photo-box {
    width: 250px;
    height: 300px;
    background: #f8fafc;
    border: 3px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prof-verify-photo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.prof-verify-details-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.prof-verify-details-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    width: 150px;
}

.prof-verify-details-table td {
    color: var(--primary);
    font-weight: 800;
    font-size: 16px;
    border: none !important;
}

.prof-verify-footer {
    background: #f8fafc;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
}

.stamped-verified {
    background: #dcfce7;
    color: #166534;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 900;
    border: 2px solid #bbf7d0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .prof-verify-body {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px;
    }

    .prof-verify-photo-box {
        margin: 0 auto;
        width: 100%;
        max-width: 200px;
        height: 240px;
    }
}

/* --- DOCUMENT PAGES --- */
.document-paper {
    background: white;
    padding: 60px;
    max-width: 900px;
    margin: 40px auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    border-radius: 4px;
}

.doc-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.doc-title-text h3 {
    margin: 0;
    font-size: 20px;
    color: var(--primary);
    font-weight: 900;
    text-transform: uppercase;
}

.doc-title-text p {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
}

.doc-body {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.doc-body h3 {
    color: var(--primary);
    font-size: 18px;
    margin-top: 30px;
    border-left: 4px solid var(--accent);
    padding-left: 15px;
}

.doc-body ul,
.doc-body ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.doc-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 11px;
    color: #999;
    text-align: center;
}

@media (max-width: 480px) {
    .document-paper {
        padding: 20px !important;
        margin: 20px auto !important;
    }
}

.directory-card {
    background: var(--primary-dark) !important;
    border-color: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

.directory-card::before {
    display: none;
}

.directory-card .member-photo {
    width: 100% !important;
    height: 250px !important;
    margin: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    border: none !important;
    border-bottom: 3px solid var(--accent) !important;
    background: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

.directory-card .member-photo img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.directory-card .member-info h3 {
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.directory-card .member-designation {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.directory-card .member-info {
    padding-bottom: 30px;
}

.directory-card .member-info h3 {
    color: white;
}

.directory-card .member-designation {
    color: var(--accent);
    /* Golden accent for contrast */
}

.directory-card .member-id-tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.directory-card .member-meta-area {
    background: rgba(255, 255, 255, 0.05);
}

.directory-card .meta-value {
    color: #e2e8f0;
}

.directory-card .meta-label {
    color: #94a3b8;
}

.directory-card .member-address {
    background: transparent !important;
    /* Unified look */
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.directory-card .member-address span {
    color: #cbd5e1 !important;
}

/* --- PREMIUM DIRECTORY SEARCH & PAGINATION --- */
.block-directory-filter {
    background: white;
    padding: 10px;
    border-radius: 60px;
    box-shadow: 0 10px 30px rgba(0, 33, 71, 0.08);
    margin-bottom: 50px;
    border: 1px solid rgba(0, 33, 71, 0.05);
}

.filter-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 25px;
    color: var(--primary);
}

.filter-input-group i {
    font-size: 18px;
    color: var(--accent);
}

.filter-input-group select {
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    background: transparent;
    cursor: pointer;
    padding: 15px 0;
}

.btn-directory-search {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-directory-search:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 60px;
    padding: 30px 0;
}

.page-btn {
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.page-btn:hover:not(.disabled) {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 15px rgba(0, 33, 71, 0.2);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
}

@media (max-width: 768px) {
    .block-directory-filter {
        border-radius: 20px;
        padding: 20px;
    }

    .filter-flex {
        flex-direction: column;
    }

    .filter-input-group {
        padding-left: 0;
        width: 100%;
        border-bottom: 1px solid #eee;
        margin-bottom: 10px;
    }

    .btn-directory-search {
        width: 100%;
        justify-content: center;
    }
}