body {
    font-family: "Inter", sans-serif;
    color: #222;
    background: #fafafa;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* NAVBAR */
.navbar {
    width: 100%;
    display: flex;
    box-sizing: border-box;
    justify-content: space-between;
    padding: 25px 500px;
    border-bottom: 1px solid #eee;
    background: rgb(240, 238, 238);
}

.site-title {
    font-size: 25px;
    font-weight: 600;
    color: #081a2b;
}

.nav-right {
    display: flex;
    gap: 16px;
}

.nav-link {
    font-size: 16px;
    color: #363535;
    transition: 0.2s;
}

.nav-link:hover {
    color: #67829d;
}

/* MAIN CONTENT AREA */
.content {
    width: 600px;
    max-width: 50%;
    margin: 10px auto;
}



/* HOME PAGE UCHUN STYLE /*

/* PAGE TITLE */
.page-title {
    font-size: 40px;
    text-align: center;
    font-weight: 300;
    margin-bottom: 15px;
}
.home-wrapper .post-title {
    margin-top: 15px;
    font-size: 1rem;  
    font-weight: 200;
    line-height: 1;
}
/* POSTS GRID */
.posts-grid {
    display: grid;
    gap: 5px;
    padding: 10px 0;  
}

/* POST CARD */
.post-card {
    background: rgb(246, 244, 244);
    border-radius: 15px;
    padding: 0.5px;
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}




/* POST DETAIL UCHUN STYLE /*   

/* POST PAGE */
.post-container {
    width: 800px;
    max-width: 100%;
    text-align: center;
    margin: 10 auto;
}

.post-cover {
    width: 100%;
    height: 350px;
    text-align: center;
    object-fit: cover;
    margin-bottom: 20px;
}

.post-title {
    font-size: 40px;
    text-align: center;
    font-weight: 400;
    margin-bottom: 1px;
}

.post-date {
    color: #777;
    text-align: justify;
    font-size: 15px;
    margin-bottom: 70px;
}

/* BODY */
.post-body {
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
    text-align: justify;
    color: #333;
    margin-bottom: 40px;
}

.post-body a {
    color: #0066cc;              /* Oddiy ko‘k rang */
    text-decoration: underline;  /* Tagiga chiziq */
}

.post-body a:hover {
    color: #004999;              /* Hover vaqtida biroz to‘q ko‘k */
}


.post-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.nav-btn {
    padding: 10px 18px;
    background: #f7f6f6;
    color: #3d7cbc;
    border-radius: 5px;
    font-size: 18px;
    transition: 0.2s;
    text-align: center;
}

.nav-btn:hover {
    background: #f0eeee;
    color: #4e7f92;
}

/* Previous yoki Next yo‘q bo‘lsa joyni saqlab turish uchun */
.invisible {
    visibility: hidden; 
}


/* FOOTER */


.footer {
  text-align: center;           
  padding: 20px 0;              
  color: #636262;               
  font-size: 14px;              
  width: 100%;                 
}


/* About Me section */
.aboutme-section {
    padding: 1px 20px;
    text-align: center;
    background-color: #f9f9f9;
    color: #333;
    font-family: 'Arial', sans-serif;
}



.profile-pic {
    width: 100%;
    height: 350px;
    text-align: center;
    object-fit: cover;
    margin-bottom: 20px;
}


.aboutme-text h1 {
    font-size: 25px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #121212;
    text-align: center;
}

.aboutme-text p {
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
    text-align: justify;
    color: #333;
    margin-bottom: 40px;
}



/* HOME PROFILE */

.home-profile {
    display: flex;           
    flex-direction: row;   
    align-items: center;     
    gap: 20px;              
}

.home-text h1 {
    font-size: 32px;
    margin: 0;
    color: #000000;
}

.home-text p {
    margin-top: 5px;
    font-size: 25px;
    color: #434242;
}
.profile-pict {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.social-icons {
    margin-top: 5px;
}

.social-icons a {
    margin: 0 1px;
    display: inline-block;
}

.social-icons img {
    width: 20px;
    height: 20px;
    transition: transform 0.5s;
}

.social-icons img:hover {
    transform: scale(1.2);
}

/* ================================
   MOBILE RESPONSIVE (max 768px)
================================ */
@media (max-width: 768px) {

    /* GLOBAL */
    body {
        padding: 0;
        margin: 0;
    }

    .content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* NAVBAR */
    .navbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .nav-right {
        gap: 12px;
    }

    .nav-link {
        font-size: 14px;
    }

    /* PAGE TITLES */
    .page-title {
        font-size: 28px;
        margin-top: 10px;
    }

    /* HOME PROFILE */
    .home-profile {
        flex-direction: column;
        text-align: center;
    }

    .home-text h1 {
        font-size: 26px;
    }

    .home-text p {
        font-size: 18px;
    }

    .profile-pict {
        width: 100px;
        height: 100px;
    }

    /* POSTS GRID */
    .posts-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .post-card {
        padding: 10px;
    }

    .post-title {
        font-size: 18px !important;
        line-height: 1.2;
    }

    /* POST DETAIL PAGE */
    .post-container {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .post-cover {
        height: 220px;
    }

    .post-title {
        font-size: 26px;
    }

    .post-date {
        font-size: 14px;
        margin-bottom: 40px;
    }

    .post-body {
        font-size: 15px;
    }

    /* NEXT / PREV BUTTONS */
    .post-nav {
        flex-direction: column;
        gap: 10px;
    }

    .nav-btn {
        width: 100%;
        font-size: 16px;
        padding: 10px;
    }

    /* ABOUT ME PAGE */
    .aboutme-section {
        padding: 10px;
    }

    .profile-pic {
        height: 220px;
    }

    .aboutme-text h1 {
        font-size: 22px;
    }

    .aboutme-text p {
        font-size: 15px;
    }

    /* FOOTER */
    .footer {
        padding: 15px 0;
        font-size: 13px;
    }
}
