body{
    margin: 0;
    padding: 0; 
   background: white;
}

.my-navbar {
    background: #2c2c2c;
    height: 130px;
    color: white;
    display: flex;
	padding: 0 1rem;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.navbar-title{
    font-size: 1.5rem;
    font-weight: 500 ;
    font-family: 'Montserrat', sans-serif;
    gap: 1.125rem;
    padding: 0 2rem 0 7rem
}

.navbar-title span {
  font-size: 1rem;
  font-weight: 400;
  color: #b0b0b0;
  margin-left: 6px;
}

.navbar-title a {
    color: white;
    text-decoration: none;
}

.navbar-title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.nav-links {
    display: flex;
    gap: 2.45rem;
    margin-left:auto;
    list-style: none;
    padding-left: 0;
}

.nav-links li a {
    color: #dcdcdc;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
}

.nav-links li a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.nav-links .divider {
    width: 1px;
    height: 1.68rem;
    background-color: rgba(126, 139, 152, 0.24);
    margin: 0 1rem;
}

.search-container {
    position: relative;
    display: inline-block;
}

.search-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 14px;
    padding-right: 30px;
}

.search-button img {
    width: 2.45rem;
    height: 2.45rem;
}

.search-button span {
    text-decoration: none;
}

.search-button:hover span {
    text-decoration: underline;
}

.search-text {
    margin-top: 4px;
    font-size: 12px;
    color: rgb(126, 139, 152);
    font-family: 'Montserrat', sans-serif;
}

.search-box {
    position: absolute;
    top: 100%;
    left: 100%;
    transform: translateX(-100%);
    background: #1f1f1f;
    border: 1px solid #1f1f1f;
    margin-top: 0.5rem;
    padding: 8px;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    min-width: 400px;
    height: 50px;
}

.search-box input {
    background: #1f1f1f;
    width: 100%;
    box-sizing: border-box;
    padding: 6px;
    border: none;
    outline: none;
    height: 50px;
    color: white;
    font-size: 18px;
}

.search-box input::placeholder {
    color: white;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
}

.search-box .close-btn {
    position: absolute; 
    top: 21px; 
    right: 21px; 
    background: transparent; 
    border: none; 
    font-size: 18px; 
    cursor: pointer;
    color: white; 

}

.search-box .close-btn:hover {
    color: #D80B15;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

.main-content {
    background-color: white;
    width: 60%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.post {
  width: 100%;
  text-align: start;
  border-bottom: 1px solid #555;
  margin: 0 auto;
  padding-bottom: 10px;
  font-family: 'Merriweather', serif;
  font-size: clamp(0.9rem, 2.7vw, 1.1rem);
  font-weight: 500;
  color: #333;
  line-height: 1.8;
  display: block;

}

.post h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.2rem, 5vw, 3.8rem);
  margin: 0;
  color: #1f2233;
  text-align: center;
  line-height: 1.2;
  
}

.post h1 a {
    color: #1f2233;
    text-decoration: none;
}

.post h1 a:hover {
    text-decoration: underline;
    text-decoration-thickness: 0.3rem;
}

.post-content img {
  width: 100% !important;         
  max-width: 80% !important;    
  height: auto !important;
  display: block; 
  margin: 1rem auto;
}

.post-content p {
  font-size: clamp(0.9rem, 2.7vw, 1.1rem);
  font-weight: 500;
  color: #333;
  margin: 0 auto 1.5rem; 
  max-width: 80%;
}

.post small {
  color: #999;
  display: block;
  font-size: clamp(0.6rem, 1.8rem, 1rem);
  align-items: center;
  text-align: center;
}

.post h3,
.post h3 a {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.9rem, 2.7vw, 1.1rem);
  margin: 0;
  text-align: center;
  color: #D80B15;
  display: block;
  margin-bottom:0;
  margin-top: 1.7rem;
}

.post h3 a:hover {
    text-decoration: none;
}

.category{
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.7rem, 2.6vw, 2.3rem);
  margin: 0;
  color: #D80B15;
  text-align: center;
  padding-top: 1rem;
  gap: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  
}

.category-name{
    color: black;
}

/* for post_form.html */

.post-form-title {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    text-align: center;
}

.post-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60%;
    padding: 1rem;
    margin: 0 auto;
}

.post-form form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}
.submit-btn {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.post-content .btn{
    background-color: black;
    color: white;
    border: none;
    padding: 7px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 5px;
    position: relative;
    float: right;
    text-decoration: none;
    margin-right: 3rem;
}

.post-content .btn:hover {
    background-color: #333;
}

.next-before-posts {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 2rem;
    font-size: 24px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    
}

.next-before-posts a {
    color: rgb(184, 19, 19);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
}

.next-before-posts a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.nav-links .dropdown {
    position: relative; 
}

.nav-links .dropdown .dropdown-menu {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2c2c2c;
    list-style: none;
    padding: 0;
    min-width: 150px;
    z-index: 100;
    transform: translateY(0); 
}

.nav-links .dropdown li a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
}

.nav-links .dropdown-menu li a:hover {
    background-color: #444;
}


/* pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    gap: 1rem;
    font-family: 'Montserrat', sans-serif;
    color: rgb(226, 55, 55);
    font-weight: bold;
}

.pagination a,
.pagination span {
    display: inline-block;
    text-decoration: none;
    color: #000;
    padding: 0.5rem 1rem;
    color: rgb(226, 55, 55);
    font-weight: bold;
    line-height: 1.5rem;
    position: relative;
    user-select: none;
    top: 0;
}

.pagination .current-page {
    display: inline-block;
    text-decoration: none;
    color: black;
    font-weight: bold;
    line-height: 1.5rem;
    position: relative;
    user-select: none;
    top: 0;
}

.pagination a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    bottom: 6px;              
    background: transparent;
}

.pagination a:hover::after {
    content: "";
    text-decoration: none;
    background: rgb(226, 55, 55);
}

/* hakkımda ve iletişim sayfası */
.about-list {
    list-style: none;
    text-align: center;
    padding: 10px;
}

.about-h1 {
    color: brown !important;
    margin-bottom: 0.7rem !important;
    margin-top: 0.7rem !important;
}

.contact-list {
    list-style: none; 
    padding: 20px;
    max-width: 400px;
    margin: 2rem auto;
    background-color: #8B4513; 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
    text-align: center;
}

.contact-list li {
    margin: 10px 0;
    font-size: 1.1rem;
    color: #fff; 
    font-family: 'Montserrat', sans-serif;
}

.contact-list li a {
    color: #FFDAB9; 
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-list li a:hover {
    color: #fff;
    text-decoration: underline;
}

.about-strong{
    color: brown !important;
}

@media screen and (max-width: 768px) {

        .nav-links, .nav-links * {
        -webkit-tap-highlight-color: transparent !important;
        -moz-tap-highlight-color: transparent !important;
        -ms-tap-highlight-color: transparent !important;
        -webkit-focus-ring-color: transparent !important;
        outline: none !important;
    }
    
    .menu-toggle {
        display: block; 
        order: 3;
        margin-left: auto;
        background-color: transparent;
        color: white;
        border: none;
        cursor: pointer;
        max-width: 200px;
    }

        .my-navbar {
        height: 100px;

    }

    .nav-links {
        z-index: 1000;
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background-color: #222;
        flex-direction: column;
        width: 200px;
        padding: 10px;
        border-radius: 5px; 
    }

    .navbar-title {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: center; /* ortala */
        align-items: center;
        margin: 0; /* kenar boşluklarını kaldır */
        padding: 0 !important;
    }

    .navbar-title span {
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        
        text-align: center;
    }

    .nav-link-about {
        margin-top: -20px;
    }

    .divider{
        display: none;
    }

    .search-button {
        order: 1;
        margin: 0 auto;
        padding-right: 0;

    }

    .main-content {
        width: 90%;
        padding-right: 1rem;
        padding-left: 1rem;
        padding-top: 1rem;
    }

    .post-content .img-left,
    .post-content .img-right {
        float: none;
        display: block;
        margin: 15px auto;
        max-width: 100%;
    }

    .search-container {
        position: relative;
        display: inline-block;
    }

    .search-box {
        top: 100%;
        left: 0;         
        transform: none; 
        transform: translateX(-3%);
    }

    .post-content img {
    width: auto;         /* editörde verdiğin width geçerli */
    max-width: 100% !important;     /* responsive kalsın */
    height: auto;
    display: block;      /* kendi satırında kalsın */
    margin: 1rem auto;
}


.post-content p {
  max-width: 100%;  
}

.post-content .btn{
    margin-right: 0;
}

.next-before-posts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;   /* mobilde sığmazsa alt satıra geçer */
    margin-top: 20px;
    margin-bottom: 2rem;
    gap: 10px;         /* öğeler arasında boşluk */
}
.next-before-posts a {
    text-decoration: none;
    color: rgb(184, 19, 19);
    font-weight: bold;
    font-size: 1rem;
}

.next-before-posts a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.post h3 a{
    font-size: clamp(1.2rem, 2.7vw, 2.2rem);
    margin-top: 0.5rem;
}

.category, .category-name{
    font-size: clamp(1.6rem, 2.7vw, 2.7rem);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.post p{
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.post li{
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.nav-links .dropdown {
    position: relative;
    cursor: pointer;
    display: block; 
    width: 100%;
}  
/* Link stilini ayarla */
.nav-links .dropdown > a {
    pointer-events: none;
    display: block;
    width: 100%;
    padding: 10px 0;
    text-decoration: none;
    color: white;
    position: relative;
    box-sizing: border-box;
    background-color: transparent !important;
}
.nav-link-about{
    background-color: transparent !important;
}

.nav-links li a{
    display: block;
    background-color: #333;
    padding: 10px 0;
    text-align: center;
}


/* Dropdown menü stilleri */
.nav-links .dropdown .dropdown-menu {
        display: block !important; /* Mobilde her zaman göster */
        position: static;
        width: 100%;
        background-color: transparent !important;
        box-shadow: none !important;
        margin-top: 5px;
        border-radius: 5px;
        overflow: hidden;
        text-align: center;       
    }
.nav-links .dropdown-toggle {
    text-align: center;
    background-color: #333;
}
    
   
    /* Dropdown menü item'ları */
    .nav-links .dropdown .dropdown-menu li {
        margin: 0;
    }
    
    .nav-links .dropdown .dropdown-menu li a {
        display: block;
        background-color: #333;
        border-bottom: 1px solid #444;
        color: white;
        text-decoration: none;
        transition: background-color 0.2s ease;
    }
    
    .nav-links .dropdown .dropdown-menu li a:hover {
        background-color: #444;
    }
    
    .nav-links .dropdown .dropdown-menu li:last-child a {
        border-bottom: none;
    }

}