/* ===== Base Styling ===== */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    /* padding-top: 56px;  To prevent overlap with navbar */
}

html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
overflow-x: hidden;
}

main {
    flex: 1;
}

/* ===== Navbar ===== */
.navbar {
    background-color: #1f1f1f;
  
    left: 0;
    width: 100%;
   
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
    color: #f8f9fa !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: #ffc107 !important;
}

.navbar-brand img {
    max-height: 50px;
}
/* Ads Styling Start */

.top-bar {
    font-weight: 400;
    text-transform: none;
    font-size: 13px
}

.top-bar .inside-top-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap
}

.top-bar .inside-top-bar .widget {
    padding: 0;
    display: inline-block;
    margin-bottom: 0
}

.top-bar .inside-top-bar .textwidget p:last-child {
    margin: 0
}

.top-bar-align-right .widget {
    margin-right: 0;
}

.top-bar-align-right .widget:first-child {
    margin-left: auto
}
.inside-top-bar {
    padding: 10px 40px;
}

/* Ads Styling End */

/* ===== Card Layout ===== */
.card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    transition: transform 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

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

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.card-body {
    padding: 1rem;
}

/* ===== Grid Container ===== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* ===== Image Post Style ===== */
.latest-post-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

/* ===== Footer ===== */
footer {
    background-color: #212529;
    color: #ddd;
    padding: 20px 0;
}

footer h5,
footer p,
footer a,
.category-count {
    color: #ddd !important;
}

footer .category-item a:hover {
    color: #ffc107;
}

/* Quick Links */
.quick-links {
    text-align: right;
}

.quick-links a {
    text-decoration: none;
    color: #ddd;
    margin-left: 15px;
    transition: color 0.3s ease-in-out;
    font-size: 15px;
}

.quick-links a:hover {
    color: #ffc107;
}

/* Social Media Icons */
.social-icons a {
    color: #ddd;
    font-size: 20px;
    margin: 0 8px;
    transition: color 0.3s ease-in-out;
}

.social-icons a:hover {
    color: #ffc107;
}

/* Subscription Form */
.subscribe-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subscribe-form input {
    width: 100%;
    max-width: 250px;
    padding: 8px;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
}

.subscribe-form button {
    width: 120px;
    background-color: #ffc107;
    color: #212529;
    border: none;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
}

.subscribe-form button:hover {
    background-color: #e0a800;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
}

/* ===== Media Queries ===== */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
     .navbar-collapse {
        border-top: 1px solid #444;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }
    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.5);
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,0.9%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }

    .card {
        margin-bottom: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .quick-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 15px;
    }

    .quick-links a {
        flex: 0 0 45%;
        min-width: 140px;
        margin: 5px 0;
        text-align: center;
          text-decoration: none;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .col-md-4 {
        text-align: center !important;
        margin-bottom: 15px;
    }

    .d-flex input {
        width: 100%;
        margin-bottom: 5px;
    }

    .latest-post {
        flex-direction: row !important;
        align-items: center;
    }

    .latest-post img {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .latest-post-text {
        margin-left: 10px;
        text-align: left;
    }
}
