/* Modern Theme Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #F59E0B;
    --dark-bg: #1F2937;
    --light-bg: #F9FAFB;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Navbar Modernization (legacy Bootstrap navbar – kept for compatibility) */
.navbar:not(.masthead-nav) {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #dc3545 !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: #4b5563 !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0043a8 100%);
    border: none;
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(13, 110, 253, 0.3);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    color: var(--dark-bg);
}

/* Footer */
footer {
    background: var(--dark-bg) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Utilities */
.text-gradient {
    background: linear-gradient(to right, #0d6efd, #00c6ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation Dropdown Hover */
@media all and (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: none;
    }



    .navbar .nav-item:hover .dropdown-menu {
        display: block;
    }

    .navbar .nav-item .dropdown-menu {
        margin-top: 0;
    }
}

/* Summernote & Bootstrap 5 Fixes */
.note-editor .dropdown-toggle::after {
    display: none;
    /* Hide duplicate dropdown arrows */
}

/* Ensure Summernote dialogs are on top */
.note-modal {
    z-index: 1055 !important;
}

.note-modal-backdrop {
    z-index: 1054 !important;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black */
}

/* Fix for modal input focus if needed */
.note-group-image-url {
    margin-bottom: 10px;
}

/* =============================================
   NEWSPAPER MASTHEAD STYLES
   ============================================= */

.site-header {
    background: #fff;
    border-bottom: none;
}

/* --- Top Masthead (Logo + Title) --- */
.masthead-top {
    padding: 1.2rem 0 0.8rem;
    text-align: center;
    background: #fff;
}

.masthead-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.masthead-brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none !important;
    color: inherit !important;
}

/* on small screens stack logo above the text */
@media (max-width: 767px) {
    .masthead-brand {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

.masthead-logo {
    height: 150px;
    width: auto;
    object-fit: contain;
}
/* larger logo adjusted */

.masthead-title-block {
    display: flex;
    flex-direction: column;
    align-items: center; /* center titles */
    text-align: center; /* ensure inner text is centered */
    line-height: 1;
}

.masthead-title {
    font-family: 'Georgia', 'Palatino Linotype', serif;
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: #111;
  //  text-transform: uppercase;
}

.masthead-accent {
    color: #2e7d32;
    /* koyu yeşil – globe rengiyle uyumlu */
}

.masthead-net {
    font-size: 1.6rem;
    color: #dc3545;
    font-weight: 400;
    font-style: italic;
}
.masthead-netIcin {
    font-size: 1.6rem;
    color: #dc3545;
    font-weight: 150;
    font-style: italic;
}

.masthead-tagline {
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    color: #555;
    margin-top: 0.25rem;
    letter-spacing: 0.5px;
}

/* --- Date Bar --- */
.masthead-datebar {
    background: #fff;
}

.masthead-date {
    font-size: 0.82rem;
    color: #333;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

/* --- Dividers --- */
.masthead-divider {
    height: 1px;
    background: #111;
    margin: 0;
}

/* --- Main Navigation --- */
.masthead-nav {
    background: #fff;
    padding: 0;
}

/* keep the navigation bar fixed at the top so it's always visible */
.masthead-nav.fixed-top,
.masthead-nav.fixed-top .navbar {
    z-index: 1020; /* keep above other content */
}

/* ensure content is pushed below fixed nav */
body {
    padding-top: 70px;
}

@media (max-width: 767px) {
    body {
        padding-top: 120px;
    }
}

.masthead-nav-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.masthead-nav-list li {
    position: relative;
}

.masthead-nav-list li>a,
.masthead-nav-list li>.nav-link {
    display: inline-block;
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #111 !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: color 0.2s ease;
    position: relative;
}

.masthead-nav-list li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: #dc3545;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.masthead-nav-list li>a:hover {
    color: #dc3545 !important;
}

.masthead-nav-list li>a:hover::after {
    transform: scaleX(1);
}

/* Dropdown inside masthead nav */
.masthead-nav-list li.nav-item.dropdown .dropdown-toggle {
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #111 !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.masthead-nav-list li.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    border-radius: 0 0 8px 8px;
    border-top: 2px solid #dc3545;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile */
@media (max-width: 767px) {
    .masthead-title {
        font-size: 1.6rem;
    }

    .masthead-logo {
        height: 100px;
    }

    .masthead-brand {
        gap: 0.6rem;
    }

    .masthead-nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0;
    }

    .masthead-nav-list li>a::after {
        display: none;
    }
}