@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff2') format('woff2'),
         url('../fonts/Roboto-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Medium.woff2') format('woff2'),
         url('../fonts/Roboto-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Bold.woff2') format('woff2'),
         url('../fonts/Roboto-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #2d2d2d;
    --secondary-color: #0066cc;
    --background-color: #ffffff;
    --text-color: #333333;
    --font-family-base: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    --navbar-bg: #1c456d;
    --teal: #00c2a3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 80px; 
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-header {
    background: var(--background-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
}
main{
background-color: #f3f3f3;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 2rem;
    font-family: var(--font-family-base);
}

.btn-login, .btn-register {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: var(--font-family-base);
}

.btn-login {
    color: var(--secondary-color);
}

.btn-register {
    background: var(--secondary-color);
    color: white;
}

.mr-banner{
    --margin-top: 1rem;
    height: 3rem;
    background-color: #43bdd4 !important;
}
.mr-banner-text{
    font-size: 1rem;
}
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: #c3edf4;
    background-size: cover;
    color: #1c456d;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
}

@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-container input {
    width: 70%;
    padding: 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1.2rem;
    font-weight: 500;
}

.search-container button {
    width: 20%;
    padding: 1rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

footer {
    background:#1c456d;
    color: white;
    padding: 2rem;
    --margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
}

/* Navbar Ana Stiller */
.mr-navbar {
    background-color: #1c456d;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 5rem;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
}

.mr-navbar .container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 24px;
    max-width: 1280px;
    margin: 0 auto;
}

/* Logo */
.mr-navbar-brand {
    display: flex;
    align-items: center;
}

.mr-navbar-brand img {
    --height: 24px;
    width: auto;
}

/* Ana Menü */
.mr-navbar-menu {
    margin-left: auto;
}

.mr-nav-list {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 64px;
}

.mr-nav-item {
    margin: 0;
    height: 64px;
    display: flex;
    align-items: center;
    position: relative;
}

.mr-nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0 16px;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 500;
    height: 64px;
    transition: background-color 0.15s ease;
}

.mr-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mr-nav-arrow {
    margin-left: 6px;
    font-size: 10px;
    opacity: 0.8;
}

/* Buton Stilleri */
.mr-btn-outline {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin: 0 8px;
    transition: all 0.15s ease;
}

.mr-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.mr-btn-teal {
    background-color: #00c2a3;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.mr-btn-teal:hover {
    background-color: #00b094;
}

/* Dropdown Menü - Büyük Ekran */
.mr-dropdown {
    display: none;
    position: absolute;
    top: 115%;
    left: 80%;
    transform: translateX(-50%);
    background: #fff;
    min-width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius:0 0 4px 4px;
    padding: 8px 0;
    z-index: 1000;
    width: 320px;
}

.mr-nav-link.has-dropdown.active + .mr-dropdown {
    display: block;
}

.mr-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mr-dropdown ul li a {
    padding: 8px 16px;
    display: block;
    color: #1c456d;
    font-size: 1.15rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.mr-dropdown ul li a:hover {
    background-color: #c3edf4;
}

/* Mobil Menü */
@media (max-width: 991px) {
    .mr-navbar-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 24px;
        height: 24px;
        margin-left: auto;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .toggle-line {
        width: 24px;
        height: 2px;
        background-color: #fff;
        margin: 2px 0;
        transition: 0.3s;
    }

    .mr-navbar-menu {
        position: fixed;
        top: 64px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 64px);
        background: #fff;
        transition: 0.3s;
        overflow-y: auto;
    }

    .mr-navbar-menu.active {
        left: 0;
    }

    .mr-nav-list {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 16px;
    }

    .mr-nav-item {
        height: auto;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .mr-nav-link {
        color: #1c456d;
        padding: 16px;
        height: auto;
        justify-content: space-between;
    }

    .mr-dropdown {
        position: static;
        left: auto;
        transform: none;
        display: none;
        width: 100%;
        background: #f8f9fa;
        box-shadow: none;
        margin: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .mr-dropdown.active {
        display: block;
        max-height: 1000px;
    }

    .mr-dropdown ul {
        list-style: none;
        padding: 0;
        margin: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .mr-dropdown ul li {
        margin: 0;
    }

    .mr-dropdown ul li a {
        padding: 12px 24px;
        color: #1c456d;
        font-size: 1rem;
        font-weight: 500;
        display: block;
        background: #f8f9fa;
    }

    .mr-nav-item {
        height: auto;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: stretch;
    }

    .mr-nav-link {
        padding: 16px;
        height: auto;
        color: #1c456d;
    }

    /* Ok işareti dönüşü */
    .has-dropdown .mr-nav-arrow {
        transition: transform 0.3s ease;
    }

    .has-dropdown.active .mr-nav-arrow {
        transform: rotate(180deg);
    }

    /* Mobil Buton Stilleri */
    .mr-btn-outline,
    .mr-btn-teal {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        margin: 8px 16px;
        min-width: 120px;
    }

    /* Butonları içeren nav-item için */
    .mr-nav-item:last-child,
    .mr-nav-item:nth-last-child(2) {
        border-bottom: none;
        display: inline-block;
    }

    /* Hamburger ikon animasyonu */
    .mr-navbar-toggle .toggle-line {
        width: 24px;
        height: 2px;
        background-color: #fff;
        margin: 2px 0;
        transition: all 0.3s ease;
    }

    .mr-navbar-toggle.active .toggle-line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .mr-navbar-toggle.active .toggle-line:nth-child(2) {
        opacity: 0;
    }

    .mr-navbar-toggle.active .toggle-line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

/* Tablet ve daha büyük ekranlar için düzenlemeler */
@media (min-width: 992px) {
    .mr-navbar-menu {
        display: flex !important;
        transform: none !important;
    }
}

.hero {
    background-image: url('../images/banbg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px; /* İhtiyaca göre ayarlayın */
   
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .hero-section {
        min-height: 300px;
        background-position: 60% center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 200px;
        background-position: 70% center;
    }
}

/* Footer genel stilleri */
.mr-footer {
    background-color: #1c456d;
    color: #fff;
    padding: 3rem 0;
}

.mr-footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Footer sütunları */
.mr-footer-column {
    margin-bottom: 1.5rem;
}

.mr-footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.mr-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mr-footer-column ul li {
    margin-bottom: 0.75rem;
}

.mr-footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.mr-footer-column ul li a:hover {
    color: #00c2a3;
}

/* Sosyal medya bağlantıları */
.mr-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.mr-social-links a {
    color: #fff;
    font-size: 20px;
    transition: color 0.2s;
}

.mr-social-links a:hover {
    color: #00c2a3;
}

/* Site bilgileri sütunu */
.mr-footer-info {
    max-width: 300px;
}

.mr-footer-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.mr-footer-info .mr-logo {
    width: 150px;
    margin-bottom: 1rem;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .mr-footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .mr-footer-container {
        grid-template-columns: 1fr;
    }
}

/* Editörün Seçtikleri Bölümü */
.editors-picks {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1c456d;
    margin-bottom: 48px;
    text-align: center;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #00c2a3;
}

.picks-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
}

/* Ana Makale Stili */
.featured-article {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.featured-article:hover {
    transform: translateY(-5px);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-image {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.article-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-link:hover .article-image img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #00c2a3;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.article-content {
    padding: 24px;
}

.article-title {
    font-size: 24px;
    font-weight: 700;
    color: #1c456d;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-excerpt {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 14px;
    font-weight: 500;
    color: #1c456d;
}

.article-date {
    font-size: 14px;
    color: #666;
}

/* Yan Makaleler Stili */
.side-articles {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.side-article {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.side-article:hover {
    transform: translateY(-5px);
}

.side-article .article-image {
    padding-top: 50%;
}

.side-article .article-title {
    font-size: 18px;
    margin-bottom: 12px;
}

/* Responsive Düzenlemeler */
@media (max-width: 991px) {
    .picks-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }
}

@media (max-width: 576px) {
    .editors-picks {
        padding: 40px 0;
    }

    .article-content {
        padding: 16px;
    }

    .article-title {
        font-size: 20px;
    }

    .side-article .article-title {
        font-size: 16px;
    }
}

/* Makale Sayfası */
.article-page {
    padding: 40px 0;
    --margin-top: 76px;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    --gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0px;
}

/* Ana İçerik */
.article-header {
    margin-bottom: 24px;
}

.article-title {
    font-size: 40px;
    font-weight: 700;
    color: #1c456d;
    line-height: 1.2;
    margin: 16px 0;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: #1c456d;
}

.author-title {
    font-size: 14px;
    color: #666;
}

.article-date {
    font-size: 14px;
    color: #666;
}

.featured-image {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1c456d;
    margin: 32px 0 16px;
}

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

/* Yan Sütun */
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #1c456d;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-post {
    display: flex;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.recent-post:hover {
    transform: translateX(5px);
}

.post-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.post-category {
    font-size: 12px;
    color: #00c2a3;
    font-weight: 500;
}

.post-title {
    font-size: 14px;
    font-weight: 600;
    color: #1c456d;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Düzenlemeler */
@media (max-width: 991px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 32px;
    }

    .article-content {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .article-page {
        padding: 20px 0;
    }

    .article-title {
        font-size: 28px;
    }

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

.search-container {
    position: relative;
}

.search-results-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.result-title {
    font-weight: bold;
    font-size: 1rem;
    color: #0d6efd;
    margin-bottom: 5px;
}

.result-snippet {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.result-snippet mark {
    background-color: #ffeb3b;
    padding: 0;
    font-weight: bold;
    color: #333;
}

.search-loading, .search-no-results, .search-error {
    padding: 15px;
    text-align: center;
    color: #777;
}

/* Ana arama konteyneri - KONUMLANDIRMA REFERANSI */
.search-container {
    position: relative;
    max-width: 700px; /* Arama kutusunun çok genişlemesini engellemek için */
    margin: 0 auto;   /* Ortalamak için */
}

/* Sonuçların gösterileceği ana kutu - REFERANSA GÖRE KONUMLANDIRILACAK */
.search-results-container {
    position: absolute;     /* En önemli kural */
    top: 100%;              /* Referansın tam altında başla (arama kutusunun) */
    left: 0;                /* Referansın sol kenarına hizalan */
    right: 0;               /* Referansın sağ kenarına hizalan (genişliği %100 yapar) */
    
    /* Geri kalan stil kodları */
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: none; /* Arama kutusu ile arasında çift çizgi olmasın */
    border-radius: 0 0 8px 8px; /* Sadece alt köşeleri yuvarlat */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
}

/* ... .search-result-item, .result-title vb. diğer stiller aynı kalabilir ... */