* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family:"Poppins", sans-serif;
    min-height: 100vh;
    background: #fff;
    background-attachment: fixed;
    width: 100%;
    color: #ffffff;
    position: relative;
}

/* ===== FOOTER ===== 
.footer-contact {
    background-image: url("assets/img/Golden hour .png");
    background-size: cover;
    background-position: center;
}
.footer-overlay {
    width: 100%;
    height: 100%;
    background: #002244;
    text-align: center;
    padding-top: 20px;
}
.footer-overlay h2 {
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 30px;
}
.footer-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.footer-form input {
    width: 260px;
    height: 42px;
    border: none;
    border-radius: 8px;
    padding-left: 15px;
   
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    outline: none;
}
.phone-field {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding-left: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
.phone-field input {
    border: none;
    width: 230px;
    outline: none;
}
.phone-field i {
    margin-right: 8px;
    color: #333;
}
.request-btn {
    background: #0057A2;
    border: none;
    color: white;
    width: 220px;
    height: 44px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.footer-bottom {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 140, 255, 0.5);
    border-radius: 6px;
    padding: 10px 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-links {
    color: white;
    font-size: 14px;
}
.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 8px;
}
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social i {
    width: 26px;
    height: 26px;
    background: white;
    color: #2c3e50;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}*/

/* ===== BLOG CONTAINER ===== */
.blog-container {
   /* background: linear-gradient(
        180deg,
        #e3f2fd 0%,
        #bbdefb 10%,
        #e8f5e9 40%,
        #fff 80%
    );*/
background:#fff;
    padding: 50px 20px 60px;
}

/* SEARCH */
.search-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}
.search-box {
    background: #fff;
    border-radius: 40px;
    display: flex;
    align-items: center;
    padding: 12px 30px;
    width: 100%;
    max-width: 650px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
}
.search-box i {
    color: #888;
    font-size: 18px;
    margin-right: 15px;
}
.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    color: #333;
}

/* TWO-COLUMN LAYOUT */
.blog-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* BLOG CARDS */
.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 45px rgba(0, 0, 0, 0.12);
}

.blog-img-box {
    flex: 0 0 240px;
    position: relative;
    overflow: hidden;
    background: #f0f4f8;
}
.blog-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}
.blog-card:hover .blog-img-box img {
    transform: scale(1.04);
}

.category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    border-radius: 30px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 0.3px;
}
.badge-blue {
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
}
.badge-orange {
    background: linear-gradient(135deg, #ff9800, #e65100);
}
.badge-green {
    background: linear-gradient(135deg, #43a047, #1b5e20);
}

.blog-content {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.blog-date {
    color: #000;
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.blog-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a2b4c;
    margin-bottom: 12px;
    line-height: 1.35;
    transition: color 0.2s;
}
.blog-card:hover .blog-title {
    color: #1e88e5;
}
.blog-excerpt {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}
.blog-footer {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 14px;
    gap: 16px;
    margin-top: auto;
}
.blog-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2c3e66;
    font-size: 13px;
    font-weight: 500;
}
.blog-stat i {
    color: #ff6b6b;
    font-size: 14px;
}
.read-more {
    margin-left: auto;
    background: linear-gradient(90deg, #f57c00, #ff9800);
    padding: 7px 18px;
    border-radius: 40px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.25s;
}
.read-more:hover {
    background: linear-gradient(90deg, #e06e00, #f57c00);
    transform: translateX(4px);
    color: #fff;
}

.load-more-wrapper {
    text-align: center;
    margin: 40px 0 0;
}
.btn-load {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}
.btn-load:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(76, 175, 80, 0.4);
    color: #fff;
}

/* SIDEBAR */
.sidebar {
    position: sticky;
    top: 90px;
}
.sidebar-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a2b4c;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #1e88e5;
    display: inline-block;
}

.popular-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    margin-bottom: 16px;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
    display: flex;
    flex-direction: row;
}
.popular-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}
.popular-img {
    width: 90px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}
.popular-info {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.popular-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a2b4c;
    line-height: 1.4;
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }
}
@media (max-width: 768px) {
    .blog-card {
        flex-direction: column;
    }
    .blog-img-box {
        flex: 0 0 auto;
        height: 200px;
    }
  /*  .footer-form {
        flex-direction: column;
        align-items: center;
    }
    .footer-form input,
    .phone-field {
        width: 90%;
        max-width: 280px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }*/
}
@media (max-width: 575px) {
   /* .navbar-nav .nav-link {
        color: white !important;
        text-align: center;
    }*/
}
@media (max-width: 991px) {
    /* .navbar-collapse {
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        padding: 15px;
        margin-top: 10px;
    }
    .navbar-nav {
        gap: 12px !important;
    }*/
}
.styled-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin-top: 40px;
    padding: 0;
}

.styled-pagination li {
    display: inline-block;
}

.styled-pagination li a,
.styled-pagination li span {
    padding: 10px 14px;
    border-radius: 0px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    transition: 0.3s;
}

.styled-pagination li.active a {
    background: #184485;
    color: #fff;
    border-color: transparent;
}

.styled-pagination li a:hover {
    background: #f1f1f1;
}

.styled-pagination li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}
/* ===== MOBILE RESPONSIVE CODE ===== */

/* Tablet Devices (768px - 991px) */
@media (max-width: 991px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .sidebar {
        position: static;
        margin-top: 20px;
    }
    
   /* .navbar-collapse {
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        padding: 15px;
        margin-top: 10px;
    }
    
    .navbar-nav {
        gap: 12px !important;
    }*/
    
  /*  .footer-form {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }*/
}

/* Mobile Devices (576px - 767px) */
@media (max-width: 767px) {
    /* Blog Section */
    .blog-container {
        padding: 30px 15px 40px;
    }
    
    .blog-card {
        flex-direction: column;
        border-radius: 20px;
    }
    
    .blog-img-box {
        flex: 0 0 auto;
        height: 200px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .blog-excerpt {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .blog-footer {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .read-more {
        margin-left: 0;
        padding: 6px 16px;
        font-size: 11px;
    }
    
    .search-box {
        padding: 10px 20px;
        max-width: 100%;
    }
    
    .search-box input {
        font-size: 14px;
    }
    
    /* Sidebar */
    .sidebar-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .popular-card {
        margin-bottom: 12px;
    }
    
    .popular-img {
        width: 80px;
        height: 70px;
    }
    
    .popular-title {
        font-size: 12px;
    }
    
    /* Footer */
    .footer-overlay {
        padding-top: 30px;
    }
    
    .footer-overlay h2 {
        font-size: 24px;
        padding: 0 15px;
    }
    
  /*  .footer-form {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .footer-form input,
    .phone-field {
        width: 90%;
        max-width: 300px;
    }
    
    .phone-field {
        width: 90%;
        max-width: 300px;
    }
    
    .phone-field input {
        width: 100%;
    }
    
    .request-btn {
        width: 90%;
        max-width: 300px;
        height: 42px;
        font-size: 14px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 15px;
        margin-top: 20px;
    }
    
    .footer-links {
        font-size: 12px;
    }
    
    .footer-links a {
        margin: 0 6px;
    }
    
    .footer-social i {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }*/
    
    /* Pagination */
    .styled-pagination {
        gap: 5px;
        margin-top: 30px;
        flex-wrap: wrap;
    }
    
    .styled-pagination li a,
    .styled-pagination li span {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Small Mobile Devices (under 576px) */
@media (max-width: 575px) {
    /* Blog Section */
    .blog-container {
        padding: 20px 12px 30px;
    }
    
    .search-wrapper {
        margin-bottom: 30px;
    }
    
    .search-box {
        padding: 8px 16px;
    }
    
    .search-box i {
        font-size: 14px;
        margin-right: 10px;
    }
    
    .search-box input {
        font-size: 13px;
    }
    
    .blog-grid {
        gap: 20px;
    }
    
    .blog-card {
        border-radius: 16px;
    }
    
    .blog-img-box {
        height: 180px;
    }
    
    .category-badge {
        top: 10px;
        left: 10px;
        padding: 4px 10px;
        font-size: 10px;
    }
    
    .blog-content {
        padding: 16px;
    }
    
    .blog-date {
        font-size: 10px;
        margin-bottom: 6px;
    }
    
    .blog-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .blog-excerpt {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .blog-stat {
        font-size: 11px;
        gap: 4px;
    }
    
    .blog-stat i {
        font-size: 12px;
    }
    
    .read-more {
        padding: 5px 14px;
        font-size: 10px;
    }
    
    .btn-load {
        padding: 10px 30px;
        font-size: 13px;
    }
    
    /* Sidebar */
    .sidebar {
        margin-top: 10px;
    }
    
    .sidebar-title {
        font-size: 15px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .popular-card {
        border-radius: 12px;
    }
    
    .popular-img {
        width: 70px;
        height: 60px;
    }
    
    .popular-info {
        padding: 8px 12px;
    }
    
    .popular-title {
        font-size: 11px;
        line-height: 1.3;
    }
    
    /* Footer */
    .footer-overlay h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
  /*  .footer-form input,
    .phone-field,
    .request-btn {
        max-width: 280px;
    }
    
    .footer-form input {
        height: 38px;
        font-size: 13px;
    }
    
    .phone-field i {
        font-size: 12px;
    }
    
    .request-btn {
        height: 38px;
        font-size: 13px;
    }
    
    .footer-links {
        font-size: 10px;
    }
    
    .footer-links a {
        margin: 0 4px;
    }
    
    .footer-social i {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }*/
    
    /* Pagination */
    .styled-pagination {
        gap: 4px;
    }
    
    .styled-pagination li a,
    .styled-pagination li span {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Extra Small Devices (under 380px) */
@media (max-width: 380px) {
    .blog-img-box {
        height: 160px;
    }
    
    .blog-title {
        font-size: 15px;
    }
    
    .blog-excerpt {
        font-size: 11px;
    }
    
    .blog-stat {
        font-size: 10px;
    }
    
    .blog-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .popular-img {
        width: 60px;
        height: 55px;
    }
    
    .popular-title {
        font-size: 10px;
    }
    
    .footer-overlay h2 {
        font-size: 18px;
    }
    
   /* .footer-form input,
    .phone-field,
    .request-btn {
        max-width: 260px;
    }*/
    
    .styled-pagination li a,
    .styled-pagination li span {
        padding: 3px 6px;
        font-size: 10px;
    }
}

/* Fix for navbar on mobile */
@media (max-width: 991px) {
   /* .navbar-nav .nav-link {
        color: white !important;
        text-align: center;
        padding: 8px 15px;
    }*/
}

/* Landscape mode for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .blog-img-box {
        height: 160px;
    }
    
   /* .footer-form {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .footer-form input,
    .phone-field {
        width: auto;
        min-width: 200px;
    }*/
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    button,
    .read-more,
    .btn-load,
    .request-btn,
    .footer-social i {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    
    button:active,
    .read-more:active,
    .btn-load:active,
    .request-btn:active {
        transform: scale(0.98);
    }
    
    input,
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on focus in iOS */
    }
}