/* ==========================================================================
   BEYPAZARI ALAN BAŞKANLIĞI - DUYURULAR STİL DOSYASI (duyurular.css)
   ========================================================================== */

:root {
    --ann-navy: #0b3039;
    --ann-deep: #09272f;
    --ann-gold: #d8aa72;
    --ann-gold-hover: #c4955b;
    --ann-cream: #f5f2ec;
    --ann-cream-alt: #ece9e0;
    --ann-ink: #15343b;
    --ann-muted: #647472;
    --ann-light-muted: #8d9c9a;
    --ann-border: #dedfd9;
    --ann-border-subtle: #eaece4;
    --ann-serif: 'Playfair Display', Georgia, serif;
    --ann-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ann-condensed: 'Oswald', Arial, sans-serif;
}

/* Base Body Modifications for Announcements */
.announcements-body {
    background-color: var(--ann-cream);
    color: var(--ann-ink);
    font-family: var(--ann-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

.announcements-body .site-header {
    position: relative;
    background: var(--ann-navy);
}

.announcements-body .header-inner {
    min-height: 100px;
    border: 0;
}

.announcements-body nav {
    top: 100px;
}

/* ==========================================================================
   Breadcrumb & Section Heading
   ========================================================================== */
.announcement-crumb {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 32px 0 28px;
    font-size: 14px;
    color: var(--ann-muted);
}

.announcement-crumb a {
    color: var(--ann-muted);
    transition: color 0.2s ease;
}

.announcement-crumb a:hover {
    color: var(--ann-gold-hover);
}

.announcement-crumb span.sep {
    color: #b5c0bd;
    font-size: 12px;
}

.announcement-crumb span.current {
    color: var(--ann-ink);
    font-weight: 500;
}

/* Hero Header on Listing Page with Beypazarı background */
.announcements-hero-banner {
    position: relative;
    border-radius: 4px 90px 4px 4px;
    overflow: hidden;
    margin-bottom: 40px;
    min-height: 240px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(216, 170, 114, 0.25);
    box-shadow: 0 16px 40px rgba(11, 48, 57, 0.12);
    background: var(--ann-navy);
}

.announcements-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 38%;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.announcements-hero-banner:hover .announcements-hero-bg {
    transform: scale(1.03);
}

.announcements-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(9, 39, 47, 0.94) 0%, rgba(11, 48, 57, 0.86) 55%, rgba(9, 39, 47, 0.65) 100%);
}

.announcements-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    padding: 50px 60px;
    width: 100%;
}

.announcements-hero-title {
    flex: 1;
}

.announcements-hero-title h1 {
    font: 500 clamp(34px, 4vw, 54px)/1.2 var(--ann-sans);
    letter-spacing: -2px;
    margin: 8px 0 0;
    color: #ffffff;
}

.announcements-hero-title h1 em {
    display: inline-block;
    font: italic 400 1em/1.2 var(--ann-serif);
    color: var(--ann-gold);
}

.announcements-hero-desc {
    max-width: 460px;
    font-size: 15px;
    line-height: 1.8;
    color: #d2dedc;
    margin: 0;
}

/* ==========================================================================
   Filter Bar
   ========================================================================== */
.announcements-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.announcement-filter-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.announcement-pill {
    padding: 8px 20px;
    border-radius: 30px;
    background: #e9e8de;
    color: #4a5a58;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
    border: 1px solid #d4d8ca;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.announcement-pill:hover,
.announcement-pill.active {
    background: var(--ann-navy);
    color: #ffffff;
    border-color: var(--ann-navy);
    box-shadow: 0 4px 12px rgba(11, 48, 57, 0.15);
}

.announcements-counter {
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--ann-light-muted);
    text-transform: uppercase;
    font-weight: 500;
}

.announcements-counter b {
    color: var(--ann-navy);
    font-weight: 700;
}

/* ==========================================================================
   Announcements Grid & Cards
   ========================================================================== */
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.announcement-card {
    background: #ffffff;
    border: 1px solid var(--ann-border);
    border-radius: 4px 50px 4px 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 30px 26px;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), 
                box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), 
                border-color 0.35s ease;
    text-decoration: none;
    color: inherit;
}

.announcement-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(11, 48, 57, 0.1);
    border-color: var(--ann-gold);
}

.announcement-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}

/* Date Box */
.ann-date-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f2efe9;
    border: 1px solid #e1e3da;
    border-radius: 8px;
    min-width: 58px;
    padding: 8px 10px;
    line-height: 1;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.announcement-card:hover .ann-date-box {
    background: var(--ann-navy);
    border-color: var(--ann-navy);
}

.ann-date-box strong {
    font-family: var(--ann-condensed);
    font-size: 24px;
    font-weight: 700;
    color: var(--ann-navy);
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.ann-date-box small {
    font-size: 10px;
    font-weight: 700;
    color: #8f7253;
    letter-spacing: 1px;
    margin-top: 4px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.announcement-card:hover .ann-date-box strong {
    color: #ffffff;
}

.announcement-card:hover .ann-date-box small {
    color: var(--ann-gold);
}

/* Category Badge */
.ann-category-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #aa7544;
    background: #fbf7f0;
    border: 1px solid #f0e2cf;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ann-category-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #aa7544;
}

.ann-mobile-cat {
    display: none;
}

/* Card Content */
.announcement-card-content {
    margin-bottom: 24px;
    flex: 1;
}

.announcement-card-content h3 {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ann-navy);
    margin: 0 0 12px;
    letter-spacing: -0.4px;
    transition: color 0.25s ease;
}

.announcement-card:hover .announcement-card-content h3 {
    color: #93673e;
}

.announcement-card-content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ann-muted);
    margin: 0;
}

/* Card Footer Action */
.announcement-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid #f0f1ec;
    font-size: 13px;
    font-weight: 600;
    color: var(--ann-navy);
    letter-spacing: 0.5px;
}

.ann-action-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f2efe9;
    color: var(--ann-navy);
    display: grid;
    place-items: center;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.announcement-card:hover .ann-action-arrow {
    background: var(--ann-gold);
    color: var(--ann-navy);
    transform: rotate(45deg);
}

/* Empty State */
.announcements-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: #eae9df;
    border-radius: 4px;
    border: 1px dashed #cfd3c7;
}

.announcements-empty p {
    font-size: 18px;
    color: var(--ann-muted);
    margin: 0 0 16px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.announcements-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 80px;
}

.announcements-pagination .pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.announcements-pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid var(--ann-border);
    color: var(--ann-navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.announcements-pagination .page-item.active .page-link,
.announcements-pagination .page-item .page-link:hover {
    background: var(--ann-navy);
    color: #ffffff;
    border-color: var(--ann-navy);
}

/* ==========================================================================
   ANNOUNCEMENT DETAIL PAGE
   ========================================================================== */
.announcement-detail-page {
    padding-bottom: 90px;
}

/* Detail Heading Section */
.ann-detail-header {
    background: var(--ann-navy);
    border: 1px solid rgba(216, 170, 114, 0.25);
    border-radius: 4px 80px 4px 4px;
    padding: 50px 60px 45px;
    margin-bottom: 45px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(11, 48, 57, 0.1);
}

.ann-detail-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 45%;
    opacity: 0.25;
}

.ann-detail-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 48, 57, 0.95) 0%, rgba(9, 39, 47, 0.88) 100%);
}

.ann-detail-header-content {
    position: relative;
    z-index: 2;
}

.ann-detail-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ann-detail-meta-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ann-detail-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #c4d4d1;
}

.ann-detail-date svg {
    color: var(--ann-gold);
}

.ann-detail-header h1 {
    font: 500 clamp(28px, 3.6vw, 46px)/1.25 var(--ann-sans);
    letter-spacing: -1.5px;
    color: #ffffff;
    margin: 0 0 20px;
}

.ann-detail-summary-bar {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #a7bbb8;
    letter-spacing: 0.5px;
}

.ann-detail-summary-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ann-detail-summary-bar b {
    color: var(--ann-gold);
}

/* Detail 2-Column Layout */
.ann-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 45px;
    align-items: flex-start;
}

/* Article Body */
.ann-detail-article {
    background: #ffffff;
    border: 1px solid var(--ann-border);
    border-radius: 4px;
    padding: 50px;
    box-shadow: 0 8px 24px rgba(11, 48, 57, 0.03);
}

.ann-article-content {
    font-size: 16px;
    line-height: 1.85;
    color: #34484c;
}

.ann-article-content p {
    margin-bottom: 24px;
}

.ann-article-content h2,
.ann-article-content h3,
.ann-article-content h4 {
    color: var(--ann-navy);
    margin: 36px 0 16px;
    letter-spacing: -0.5px;
}

.ann-article-content h2 {
    font-size: 26px;
}

.ann-article-content h3 {
    font-size: 22px;
}

.ann-article-content ul,
.ann-article-content ol {
    margin: 0 0 26px 20px;
    padding-left: 10px;
}

.ann-article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.ann-article-content blockquote {
    border-left: 4px solid var(--ann-gold);
    background: #fbf9f4;
    padding: 20px 26px;
    margin: 30px 0;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: var(--ann-navy);
    font-size: 17px;
}

/* Attached Link / Document Banner */
.ann-attached-box {
    margin-top: 40px;
    padding: 28px 32px;
    background: #f4f6f0;
    border: 1px solid #dce2d4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.ann-attached-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ann-attached-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--ann-navy);
    color: var(--ann-gold);
    display: grid;
    place-items: center;
    font-size: 22px;
    flex-shrink: 0;
}

.ann-attached-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ann-navy);
    margin: 0 0 4px;
}

.ann-attached-text p {
    font-size: 13px;
    color: var(--ann-muted);
    margin: 0;
}

.ann-attached-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ann-navy);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.ann-attached-btn:hover {
    background: #194b54;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 48, 57, 0.2);
    color: #ffffff;
}

/* Article Footer & Social Share */
.ann-article-footer {
    margin-top: 45px;
    padding-top: 30px;
    border-top: 1px solid #eceee6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.ann-share-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ann-share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ann-navy);
    letter-spacing: 0.5px;
}

.ann-share-links {
    display: flex;
    gap: 8px;
}

.ann-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f2efe9;
    border: 1px solid #e2e4dc;
    display: grid;
    place-items: center;
    color: var(--ann-navy);
    font-size: 14px;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}

.ann-share-btn:hover {
    background: var(--ann-navy);
    color: var(--ann-gold);
    border-color: var(--ann-navy);
    transform: translateY(-2px);
}

/* ==========================================================================
   Sidebar Styles
   ========================================================================== */
.ann-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ann-sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--ann-border);
    border-radius: 4px 40px 4px 4px;
    padding: 34px 30px;
    box-shadow: 0 6px 20px rgba(11, 48, 57, 0.02);
}

.ann-sidebar-widget h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--ann-navy);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef0eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ann-sidebar-widget h3 small {
    font-size: 12px;
    color: var(--ann-gold-hover);
    font-weight: 600;
}

/* Other Announcements List */
.ann-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ann-sidebar-item {
    display: flex;
    gap: 14px;
    text-decoration: none;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f5ef;
    transition: all 0.2s ease;
}

.ann-sidebar-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ann-sidebar-item:hover h4 {
    color: #93673e;
}

.ann-sidebar-item-date {
    background: #f2efe9;
    border-radius: 6px;
    min-width: 44px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    border: 1px solid #e4e6dd;
}

.ann-sidebar-item-date b {
    font-family: var(--ann-condensed);
    font-size: 16px;
    color: var(--ann-navy);
}

.ann-sidebar-item-date small {
    font-size: 9px;
    color: #93673e;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2px;
}

.ann-sidebar-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ann-navy);
    margin: 0 0 4px;
    transition: color 0.2s ease;
}

.ann-sidebar-item-info span {
    font-size: 11px;
    color: var(--ann-light-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* Quick Notice Card */
.ann-sidebar-notice {
    background: #e9e8de;
    border: 1px solid #d5d8cb;
    border-radius: 4px 40px 4px 4px;
    padding: 32px 28px;
}

.ann-sidebar-notice h4 {
    font-size: 20px;
    color: var(--ann-navy);
    margin: 0 0 10px;
}

.ann-sidebar-notice h4 em {
    font-family: var(--ann-serif);
    font-style: italic;
    color: #93673e;
}

.ann-sidebar-notice p {
    font-size: 14px;
    color: #5c6c6a;
    line-height: 1.7;
    margin: 0 0 20px;
}

.ann-sidebar-notice a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ann-navy);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.25s ease;
}

.ann-sidebar-notice a:hover {
    background: #18464f;
    color: #ffffff;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
    .announcements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .ann-detail-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .announcements-hero-banner {
        border-radius: 4px 45px 4px 4px;
        min-height: auto;
        margin-bottom: 25px;
    }

    .announcements-hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 30px 20px;
    }

    .announcements-hero-title h1 {
        font-size: clamp(24px, 6.5vw, 32px) !important;
        line-height: 1.25 !important;
    }

    .announcements-hero-desc {
        max-width: 100%;
        font-size: 13.5px;
        line-height: 1.65;
    }

    .announcements-filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 25px;
    }

    .announcement-filter-pills {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        gap: 8px;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .announcement-filter-pills::-webkit-scrollbar {
        display: none;
    }

    .announcement-pill {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 12.5px;
    }

    .announcements-counter {
        font-size: 12.5px;
    }

    .announcements-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 40px;
    }

    .announcement-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-radius: 4px 22px 4px 4px;
        gap: 12px;
        position: relative;
    }

    .announcement-card > div {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex: 1;
        min-width: 0;
    }

    .announcement-card-top {
        margin-bottom: 0;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .announcement-card-top .ann-category-tag {
        display: none;
    }

    .ann-date-box {
        min-width: 48px;
        padding: 6px 8px;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .ann-date-box strong {
        font-size: 20px;
    }

    .ann-date-box small {
        font-size: 9px;
    }

    .announcement-card-content {
        margin-bottom: 0;
        flex: 1;
        min-width: 0;
    }

    .ann-mobile-cat {
        display: block;
        font-size: 9.5px;
        font-weight: 700;
        color: #aa7544;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        margin-bottom: 3px;
    }

    .announcement-card-content h3 {
        font-size: 14.5px;
        line-height: 1.35;
        margin: 0;
        font-weight: 600;
        color: var(--ann-navy);
        word-break: normal;
    }

    .announcement-card-content p {
        display: none !important;
    }

    .announcement-card-footer {
        border-top: none;
        padding-top: 0;
        margin: 0;
        flex-shrink: 0;
    }

    .announcement-card-footer span:first-child {
        display: none;
    }

    .ann-action-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .announcement-card-footer::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 2;
    }

    .ann-detail-header {
        padding: 35px 24px;
        border-radius: 4px 40px 4px 4px;
    }

    .ann-detail-article {
        padding: 30px 22px;
    }

    .ann-detail-summary-bar {
        gap: 16px;
    }

    .ann-attached-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .ann-article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
