/* =========================================================
   Mayor Profile (Başkan Profil) - Modern Design System
   ========================================================= */

.baskan-profil-container {
    padding: 25px 0 50px;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #334155;
}

/* ---------------------------------------------------------
   Sidebar / Mayor Card
   --------------------------------------------------------- */
.mayor-card-wrap {
    position: sticky;
    top: 90px;
    margin-bottom: 25px;
}

.mayor-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef2f6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portrait-container {
    position: relative;
    width: 100%;
    background: #f1f5f9;
    overflow: hidden;
}

.mayor-portrait {
    width: 100%;
    height: auto;
    aspect-ratio: 0.82 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.mayor-card:hover .mayor-portrait {
    transform: scale(1.02);
}

.mayor-info-box {
    padding: 20px 20px 10px;
    text-align: center;
    background: #ffffff;
}

.mayor-name-main {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.mayor-rank-main {
    font-size: 13px;
    font-weight: 600;
    color: #b95c1e;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-block;
}

.mayor-social-bar {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    padding: 14px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.mayor-social-bar a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    text-decoration: none;
}

.mayor-social-bar a:hover {
    background: linear-gradient(135deg, #b95c1e, #d97736);
    color: #ffffff;
    border-color: #b95c1e;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(185, 92, 30, 0.25);
}

.mayor-social-bar a svg {
    fill: currentColor;
}

/* ---------------------------------------------------------
   Navigation Tabs
   --------------------------------------------------------- */
.profil-tabs-nav {
    margin-bottom: 22px;
}

.profil-tabs-nav .nav-pills {
    border: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    margin: 0;
}

.profil-tabs-nav .nav-link {
    border: 1.5px solid #e2e8f0 !important;
    color: #475569 !important;
    font-weight: 700 !important;
    padding: 12px 22px !important;
    margin: 0 !important;
    border-radius: 14px !important;
    background-color: #ffffff !important;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    text-transform: none !important;
    font-size: 14.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) !important;
    cursor: pointer;
    line-height: 1.2;
}

.profil-tabs-nav .nav-link i {
    font-size: 16px;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.profil-tabs-nav .nav-link:hover {
    background-color: #fffaf5 !important;
    color: #b95c1e !important;
    border-color: #fbd5be !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(185, 92, 30, 0.12) !important;
}

.profil-tabs-nav .nav-link:hover i {
    transform: scale(1.1);
}

.profil-tabs-nav .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #b95c1e 0%, #d97736 100%) !important;
    border-color: #b95c1e !important;
    box-shadow: 0 6px 18px rgba(185, 92, 30, 0.28) !important;
}

.profil-tabs-nav .nav-link.active i {
    color: #ffffff !important;
    opacity: 1;
}

/* ---------------------------------------------------------
   Content Card (Main Container for Panes)
   --------------------------------------------------------- */
.content-card {
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.section-title-wrapper {
    margin-bottom: 24px;
    position: relative;
}

.bio-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    padding-bottom: 12px;
    position: relative;
    border-bottom: 2px solid #f1f5f9;
}

.bio-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: #b95c1e;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ---------------------------------------------------------
   Bio & Message Content
   --------------------------------------------------------- */
.bio-content {
    font-size: 15.5px;
    line-height: 1.85;
    color: #334155;
    word-break: break-word;
}

.bio-content p {
    margin-bottom: 1.2rem;
}

.bio-content p:last-child {
    margin-bottom: 0;
}

.bio-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 15px 0;
}

/* ---------------------------------------------------------
   Contact Form Styling
   --------------------------------------------------------- */
.contact-form-wrap {
    margin-top: 10px;
}

.form-group-custom {
    display: flex;
    flex-direction: column;
}

.form-group-custom .form-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    letter-spacing: 0.1px;
}

.form-group-custom .input-group {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background-color: #f8fafc;
    transition: all 0.25s ease;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.form-group-custom .input-group:focus-within {
    border-color: #b95c1e !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(185, 92, 30, 0.12) !important;
}

.form-group-custom .input-group-text {
    background: transparent !important;
    border: none !important;
    color: #94a3b8;
    font-size: 15px;
    padding-left: 16px;
    padding-right: 12px;
    transition: color 0.25s ease;
}

.form-group-custom .input-group:focus-within .input-group-text {
    color: #b95c1e;
}

.form-group-custom .form-control {
    border: none !important;
    background: transparent !important;
    font-size: 14.5px;
    color: #0f172a;
    padding: 13px 16px 13px 4px;
    box-shadow: none !important;
    font-family: inherit;
    font-weight: 500;
}

.form-group-custom .form-control::placeholder {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 400;
}

.form-group-custom .input-group-textarea {
    align-items: flex-start;
}

.form-group-custom textarea.form-control {
    min-height: 130px;
    resize: vertical;
    padding-top: 14px;
    padding-bottom: 14px;
    line-height: 1.6;
}

/* Submit Area */
.captcha-box {
    display: flex;
    align-items: center;
}

.btn-baskan-submit {
    background: linear-gradient(135deg, #b95c1e 0%, #d97736 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 34px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(185, 92, 30, 0.28) !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    cursor: pointer;
    min-width: 200px;
}

.btn-baskan-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(185, 92, 30, 0.38) !important;
    filter: brightness(1.05);
    color: #ffffff !important;
}

.btn-baskan-submit:active {
    transform: translateY(0);
}

/* ---------------------------------------------------------
   Gallery Section
   --------------------------------------------------------- */
.gallery-container {
    margin-top: 45px;
    padding: 35px 40px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.gallery-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.gallery-title-divider {
    width: 48px;
    height: 3px;
    background: #b95c1e;
    border-radius: 2px;
    margin: 0 auto 28px;
}

.gallery-item-link {
    display: block;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
}

.gallery-item-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(185, 92, 30, 0.45);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #ffffff;
    font-size: 20px;
}

.gallery-item-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(185, 92, 30, 0.2);
}

.gallery-item-link:hover img {
    transform: scale(1.08);
}

.gallery-item-link:hover .gallery-hover-overlay {
    opacity: 1;
}

/* Custom Owl Navigation */
.baskan-gallery-owl {
    position: relative;
}

.baskan-gallery-owl .owl-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.baskan-gallery-owl .owl-nav button {
    width: 42px !important;
    height: 42px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50% !important;
    color: #475569 !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.baskan-gallery-owl .owl-nav button:hover {
    background: #b95c1e !important;
    border-color: #b95c1e !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(185, 92, 30, 0.3) !important;
}

/* ---------------------------------------------------------
   Responsive Design
   --------------------------------------------------------- */
@media (max-width: 991.98px) {
    .baskan-profil-container {
        padding: 15px 0 35px;
    }
    .mayor-card-wrap {
        position: static;
        margin-bottom: 20px;
    }
    .content-card {
        padding: 24px 20px;
        border-radius: 16px;
    }
    .bio-title {
        font-size: 19px;
    }
    .profil-tabs-nav .nav-link {
        padding: 10px 16px !important;
        font-size: 13.5px !important;
        border-radius: 10px !important;
    }
    .gallery-container {
        padding: 25px 20px;
        margin-top: 30px;
        border-radius: 16px;
    }
    .btn-baskan-submit {
        width: 100%;
    }
}
