/* --- KURUMSAL RENK PALETİ --- */
:root {
    --tbmm-red: #9e2a3b;       /* Bordo */
    --tbmm-red-dark: #7d1c2a;  /* Koyu Bordo */
    --tbmm-gold: #c5a065;      /* Altın/Bej */
    --tbmm-gold-light: #e0cda6;
    --tbmm-blue: #2c3e50;      /* Koyu Lacivert */
    --bg-gray: #f8f9fa;
    
    /* --- FONT AYARLARI (RESMİ) --- */
    --font-serif: "Times New Roman", Times, serif; /* Başlık için */
    --font-sans: Arial, Helvetica, sans-serif;     /* İçerik için */
}

/* Modern scroll behavior */
* {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans); /* Genel yazı tipi Arial */
    background-color: var(--bg-gray);
    color: #333;
    font-size: 14px; /* Resmi siteler genelde biraz daha kompakt olur */
    line-height: 1.6;
}

/* Modern animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* --- HEADER (KIRMIZI ALAN) --- */
.top-header {
    background: linear-gradient(135deg, var(--tbmm-red-dark) 0%, var(--tbmm-red) 100%);
    color: white;
    padding: 25px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--tbmm-gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Header Arka Plan Resmi */
.top-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60%;
    background: url('../resimler/tpb_header.png') no-repeat right top;
    background-size: auto 100%;
    opacity: 0.25;
    pointer-events: none;
}

.brand-text h1 {
    font-family: var(--font-serif); /* Times New Roman */
    font-weight: 700; /* Bold */
    font-size: 28px;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.brand-text p {
    font-family: var(--font-sans);
    font-size: 12px;
    margin: 5px 0 0 0;
    opacity: 0.9;
    letter-spacing: 2px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.header-brand-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.header-brand-link:hover {
    color: inherit;
    transform: translateX(5px);
}

.header-brand-link:hover .header-logo {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.header-logo {
    width: 75px;
    height: 75px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--tbmm-gold);
    color: var(--tbmm-red);
    font-size: 2.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.header-tools {
    position: relative;
    z-index: 1;
}

.header-tools a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    font-family: var(--font-sans);
    font-weight: 600;
}
.header-tools a:hover { color: var(--tbmm-gold); opacity: 0.8; }

.header-tools .lang-link {
    font-size: 13px;
    letter-spacing: 1px;
}

.header-tools .search-icon {
    font-size: 18px;
}

/* --- NAVİGASYON (BEJ ALAN) --- */
.navbar-custom {
    background: linear-gradient(to bottom, #c5a065, #b89555);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    padding: 0;
    backdrop-filter: blur(10px);
}

.navbar-custom .nav-link {
    color: white !important;
    font-family: var(--font-sans);
    font-weight: 700;
    padding: 14px 22px !important;
    text-transform: uppercase;
    font-size: 13px;
    border-right: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.navbar-custom .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.navbar-custom .nav-link:hover::before {
    left: 100%;
}

.navbar-custom .nav-link:hover {
    background-color: var(--tbmm-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* --- SLIDER & SIDEBAR --- */
.carousel-item {
    height: 420px;
    position: relative;
}
.carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}
.carousel-item:hover img {
    filter: brightness(1);
}
.carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 30px;
    text-align: left;
    backdrop-filter: blur(5px);
}
.carousel-caption h5 {
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 18px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    animation: slideInFromLeft 0.6s ease-out;
}

.sidebar-box {
    background: white;
    height: 420px;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.sidebar-tabs {
    display: flex;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-bottom: 2px solid #dee2e6;
}
.sidebar-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    color: #555;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 13px;
    position: relative;
}

.sidebar-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--tbmm-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.sidebar-tab.active {
    background: white;
    color: var(--tbmm-red);
}

.sidebar-tab.active::after {
    width: 100%;
}

.sidebar-tab:hover:not(.active) {
    background: rgba(197, 160, 101, 0.1);
    color: var(--tbmm-gold);
}

.date-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
}
.date-day { font-family: var(--font-serif); font-size: 4rem; font-weight: 400; color: var(--tbmm-gold); line-height: 1; }
.date-text { font-family: var(--font-sans); font-size: 1rem; color: #555; text-align: center; line-height: 1.4; }

.agenda-list {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
}
.agenda-item {
    border-left: 3px solid var(--tbmm-red);
    padding-left: 10px;
    margin-bottom: 12px;
}
.agenda-time { font-size: 11px; color: #888; font-weight: bold; }
.agenda-title { font-weight: 700; font-size: 13px; color: #333; }

/* --- HABERLER --- */
.section-title {
    color: #333;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
}

.news-tabs .nav-link {
    color: #666;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    border-radius: 0;
    padding: 8px 16px;
}
.news-tabs .nav-link.active {
    color: #333;
    border-bottom: 3px solid var(--tbmm-gold);
    background: #e9ecef;
}

.news-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--tbmm-gold), var(--tbmm-red));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.news-img-wrapper {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.news-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-img-wrapper::after {
    opacity: 1;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-card:hover img { 
    transform: scale(1.1) rotate(1deg); 
}
.news-date { 
    font-size: 11px; 
    color: var(--tbmm-gold); 
    margin-bottom: 8px; 
    font-weight: bold;
    display: inline-block;
    padding: 3px 8px;
    background: rgba(197, 160, 101, 0.1);
    border-radius: 4px;
}
.news-title { 
    font-size: 14px; 
    font-weight: 700; 
    color: #222; 
    margin-bottom: 10px; 
    font-family: var(--font-sans); 
    line-height: 1.4;
    transition: color 0.3s ease;
}
.news-card:hover .news-title {
    color: var(--tbmm-red);
}
.news-excerpt { 
    font-size: 13px; 
    color: #666; 
    line-height: 1.6;
}

/* --- ALT BİLGİ BLOKLARI --- */
.info-header {
    border-bottom: 1px solid var(--tbmm-gold);
    padding-bottom: 8px;
    margin-bottom: 12px;
    color: var(--tbmm-gold);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

.list-duyuru li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}
.list-duyuru li a { text-decoration: none; color: #444; transition: 0.2s; font-weight: 500;}
.list-duyuru li a:hover { color: var(--tbmm-red); }

.image-box {
    position: relative;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.image-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(158, 42, 59, 0.7), rgba(197, 160, 101, 0.7));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.image-box:hover::before {
    opacity: 1;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.image-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.image-box:hover img { 
    transform: scale(1.15);
}
.image-box span {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    font-size: 14px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.image-box:hover span {
    transform: translateY(-5px);
    letter-spacing: 2px;
}

/* --- FOOTER --- */
.footer-top {
    background: linear-gradient(to bottom, white, #f8f9fa);
    border-top: 1px solid #e0e0e0;
    padding: 30px 0;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
}

.main-footer {
    background: linear-gradient(135deg, #1a232e 0%, #222d3b 100%);
    color: #ccc;
    padding-top: 50px;
    font-size: 13px;
    font-family: var(--font-sans);
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tbmm-red), var(--tbmm-gold), var(--tbmm-red));
}

.footer-logo-area {
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.footer-logo-area i {
    transition: transform 0.3s ease;
}

.footer-logo-area:hover i {
    transform: scale(1.1) rotateY(180deg);
}

.footer-title { 
    color: var(--tbmm-gold); 
    margin-bottom: 20px; 
    font-weight: 700; 
    font-size: 14px; 
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--tbmm-gold);
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { 
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}
.footer-links li:hover {
    transform: translateX(5px);
}
.footer-links a { 
    text-decoration: none; 
    color: #aaa; 
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}
.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--tbmm-gold);
    transition: width 0.3s ease;
}
.footer-links a:hover::before {
    width: 100%;
}
.footer-links a:hover { color: white; }

.footer-bottom {
    background: linear-gradient(to right, #0f1419, #1a232e);
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom .social-icons a {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-bottom .social-icons a:hover {
    transform: translateY(-3px) scale(1.2);
    color: var(--tbmm-gold) !important;
}
