.new-mayor-section {
    padding: 80px 0;
    position: relative;
}

.mayor-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    position: relative;
    z-index: 1;
    align-items: start;
}

/* Left Side: Premium Portrait Card */
.mayor-portrait-card {
    background: #eef2f6;
    border-radius: 30px;
    overflow: visible;
    box-shadow: 0 25px 50px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}

.mayor-avatar-frame {
    width: 100%;
    height: 440px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.mayor-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Name Overlay */
.mayor-name-overlay {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    z-index: 5;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    width: 100%;
}

.mayor-name-overlay h2 {
    font-weight: 800;
    font-size: 1.6rem;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mayor-name-overlay span {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Social Buttons - The Orange Row */
.mayor-social-orange-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: -28px;
    position: relative;
    z-index: 10;
    padding: 0 15px;
}

.orange-social-btn {
    width: 48px;
    height: 48px;
    background: #1c6bb5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(243, 112, 33, 0.25);
}

.orange-social-btn:hover {
    transform: translateY(-5px);
    background: #b62829;
    box-shadow: 0 12px 20px rgba(243, 112, 33, 0.35);
}

/* Bottom Action Buttons */
.mayor-action-buttons {
    padding: 25px 15px 15px;
    display: flex;
    gap: 8px;
}

.action-link {
    flex: 1;
    background: rgba(220, 227, 235, 0.6);
    padding: 12px 5px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.action-link:hover {
    background: #b62829;
}

.action-link:hover .top-text, .action-link:hover .sub-text {
    color: #fff;
}

.action-link .top-text {
    font-size: 0.7rem;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.action-link .sub-text {
    font-size: 0.8rem;
    color: #4a5568;
    font-weight: 500;
}

/* Right Side Layout */
.mayor-details-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Message Box */
.premium-message-card {
    background: #fff;
    padding: 35px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    position: relative;
}

.premium-message-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: #f1f5f9;
    font-family: serif;
    line-height: 1;
}

.premium-message-card h3 {
    font-weight: 800;
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.premium-message-card p {
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 1;
    font-style: italic;
}

/* Gallery Section */
.compact-gallery-box h4 {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.compact-gallery-box h4::before {
    content: '';
    width: 5px;
    height: 20px;
    background: #b62829;
    border-radius: 10px;
}

.compact-gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.compact-gallery-card {
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1/1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    background: #fff;
    border: 2px solid #fff;
}

.compact-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-gallery-card:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    z-index: 5;
    border-color: #0089d8;
}

.all-photos-btn {
    margin-top: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: #1c6bb5;
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.all-photos-btn:hover {
    background: #b62829;
    transform: translateX(10px);
    color: #fff;
}

@media (max-width: 1200px) {
    .mayor-layout { grid-template-columns: 1fr; }
    .compact-gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .compact-gallery-grid { 
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .compact-gallery-card:nth-child(n+7) {
        display: none;
    }
    .new-mayor-section {
        padding: 0px 0;
        position: relative;
    }

    .mayor-details-column {
        padding-bottom: 30px;
    }
}

.img-fluid-mayor {
    width: 12rem !important;
}
