/* ========================================
   RESPONSIVE CSS FOR SMARTBUYLABS
   ======================================== */

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

:root {
    --primary-blue: #1e3a5f;
    --secondary-blue: #005ba3;
    --light-blue: #4a7ba7;
    --dark-gray: #666;
    --light-gray: #f5f5f5;
    --bg-gray: #e0e0e0;
    --border-gray: #ddd;
    --text-dark: #333;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

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

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

.nav-menu {
    flex-grow: 1;
    margin-left: 60px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 35px;
    gap:1rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 13px;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.nav-menu a:hover {
    color: var(--secondary-blue);
}

.header-icons {
    display: none;
    margin-left: auto;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background-color: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

/* ========================================
   HERO SECTION
   ======================================== */

 /* .hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden; */
}  */

.hero-bg {
    position: absolute;
    top: 0;
    right: -100px;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, #d5d5d5 0%, #a8a8a8 100%);
    z-index: 1;
    border-radius: 50% 0 0 50%;
}

.hero-bg img {
    width: 100%;
}

.hero-content {
    max-width: 40%; 
    position: absolute;
    left: calc((100vw - 1500px) / 2);
    top: 50%;
    transform: translateY(-50%);    
    z-index: 3;
}
section#home {
    position: relative;
}

.hero-title {
    font-size: 52px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 26px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 400;
    line-height: 1.2;
}

.hero-text {
    color: #fff;
    margin-bottom: 8px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.hero-phone {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 28px;
    letter-spacing: 0.3px;
}

.hero-social {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 3;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-blue);
    text-decoration: none;
    transition: var(--transition);
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    background-color: var(--secondary-blue);
    color: var(--white);
    transform: scale(1.15);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    padding: 11px 28px;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 91, 163, 0.35);
}

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

.btn-secondary:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 91, 163, 0.35);
}

/* ========================================
   GALLERY SECTION 1
   ======================================== */

img {
    width: 100%;
}

.gallery-section {
    margin-top: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    padding: 0;
}

.gallery-item {
    background-color: #bbb;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    min-height: 140px;
    transition: var(--transition);
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.item-1 {
    grid-column: span 2;
    grid-row: span 2;
    height: auto;
}

.item-2 {
    grid-column: span 2;
    height: 200px;
}

.item-3 {
    grid-column: span 1;
    height: 200px;
}

.item-4 {
    grid-column: span 1;
    grid-row: span 2;
    height: auto;
}

.item-5 {
    grid-column: span 2;
    height: 140px;
}

.item-6 {
    grid-column: span 1;
    height: 140px;
}

/* ========================================
   CTA SECTION
   ======================================== */

   .cta-section {
    margin-top: 60px;
} 

   .longImg-sec{
    position: relative;
   }

   .cta-content {
    max-width: 40%;
    position: absolute;
    left: calc((100vw - 1500px) / 2);
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

 .article-content, .inner_container {
    max-width: 900px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
    counter-reset: fff;
    letter-spacing: -0.5px;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

.cta-content p {
    font-size: 15px;
    margin-bottom: 35px;
    opacity: 0.95;
    color: #fff;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ========================================
   GALLERY SECTION 2
   ======================================== */

.gallery-section-2 {
    margin-top: 60px;
    padding: 0 40px;
}

.gallery-section-2 h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-dark);
    font-weight: 400;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 10px;
}

.gallery-grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.gallery-item-2 {
    background-color: #bbb;
    border-radius: 4px;
    transition: var(--transition);
    min-height: 200px;
}

.gallery-item-2:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.item-large {
    grid-column: 1;
    grid-row: 1 / 3;
    height: auto;
}

.item-medium {
    grid-column: 2;
    grid-row: 1;
    height: 220px;
}

.item-small {
    grid-column: 2;
    grid-row: 2;
    height: 280px;
}

/* ========================================
   SLIDER SECTION
   ======================================== */

.slider-section {
    margin-top: 60px;
}

.swiper-container {
    width: 100%;
    padding: 20px 0;
    position: relative;
}

.slider-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-radius: 4px;
    min-height: 320px;
}

.slider-image {
    background-color: #999;
    height: 280px;
    border-radius: 4px;
}

.slider-text {
    background: linear-gradient(135deg, #3a5f8f 0%, #1e3a5f 100%);
    color: white;
    /* padding: 50px; */
    border-radius: 4px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
}

.swiper-button-next {
    background-color: var(--secondary-blue);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.swiper-button-prev {
    background-color: var(--secondary-blue);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--primary-blue);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: 700;
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-pagination {
    text-align: center;
    padding-top: 25px !important;
    bottom: 0 !important;
}

.swiper-pagination-bullet {
    background-color: var(--secondary-blue);
    opacity: 0.4;
    margin: 0 8px !important;
    width: 12px !important;
    height: 12px !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--secondary-blue);
    opacity: 1;
}

.swiper-button-next svg {
        height: 50%;
        object-fit: contain;
        transform-origin: center;
        width: 50%;
        fill: currentColor;
        pointer-events: none;
    }

   .swiper-button-prev svg {
        height: 50%;
        object-fit: contain;
        transform-origin: center;
        width: 50%;
        fill: currentColor;
        pointer-events: none;
    }

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    padding: 0px 0 70px;
	background-color: #fafbfc;
}

article.post-item {
    background-color: #ffffff;
    padding: 20px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.contact-content {
    background: linear-gradient(135deg, #5a8fbf 0%, #2d4a6f 100%);
    color: white;
    padding: 50px;
    border-radius: 4px;
    flex-direction: column;
    justify-content: center;
}

.contact-content h2 {
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 400;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

.contact-info {
    font-size: 14px;
    line-height: 1.8;
}

.contact-info p {
    opacity: 0.95;
    margin-bottom: 8px;
}

.contact-content h3 {
    font-size: 15px;
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.phone {
    font-size: 16px;
    margin-bottom: 0 !important;
}

.map-placeholder {
    background-color: #999;
    height: 100%;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    gap: 8px;
    min-height: 320px;
}

.map-placeholder p {
    margin: 0;
    opacity: 0.9;
}
h1.site-title img {
    height: 100px;
}
/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: #cfdee5;
    color: #000;
    padding: 30px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h4 {
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.footer-column p {
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.7;
}

.footer-logo-col {
    display: flex;
    align-items: flex-start;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: auto;
    margin-bottom: 8px;
}

.footer-logo p {
    font-size: 12px;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    opacity: 0.7;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {

    .article-content, .inner_container{
        padding: 0 20px;
    }
    .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
}
    .header-icons {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: 0;
        top: 70px;
        background-color: var(--white);
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-left: 0;
        z-index: 999;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .nav-menu a {
        padding: 12px 0;
        display: block;
        border-bottom: 1px solid #eee;
    }

    .hero {
        min-height: auto;
        position: relative;
    }

    .hero-bg {
        right: -150px;
        width: 70%;
    }

    .hero-content {
        max-width: 100%;
        padding: 40px 0;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .hero-social {
        display: flex;
        flex-direction: row;
        position: static;
        transform: none;
        gap: 15px;
        margin-top: 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .item-1,
    .item-4 {
        grid-column: span 2;
        grid-row: span 1;
        height: 120px;
    }

    .item-2,
    .item-3,
    .item-5,
    .item-6 {
        grid-column: span 2;
    }

    .gallery-grid-2 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .item-large {
        grid-column: 1 / 3;
        grid-row: 1;
        height: 220px;
    }

    .item-medium,
    .item-small {
        grid-column: span 1;
        height: 200px;
    }

    .slider-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px;
    }

    .slider-image {
        height: 220px;
    }

    .slider-text {
        min-height: 150px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .map-placeholder {
        min-height: 280px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .cta-content h2,
    .gallery-section-2 h2,
    .contact-content h2 {
        font-size: 28px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .hero {       
        padding: 0px 0;
    }

    .hero-bg {
        right: -200px;
        width: 100%;
        border-radius: 0;
    }

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

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-phone {
        font-size: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .item-1,
    .item-2,
    .item-3,
    .item-4,
    .item-5,
    .item-6 {
        grid-column: span 1;
        grid-row: span 1;
        height: 100px;
    }

    .gallery-grid-2 {
        grid-template-columns: 1fr;
    }

    .item-large {
        grid-column: 1;
        grid-row: 1;
        height: 180px;
    }

    .item-medium,
    .item-small {
        height: 150px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-content,
    .slider-item {
        padding: 20px;
    }

    .slider-image {
        height: 180px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .btn {
        padding: 9px 20px;
        font-size: 11px;
    }

    .cta-section,
    .gallery-section,
    .gallery-section-2,
    .slider-section,
    .contact-section {
        padding: 50px 0;
    }

    .cta-content h2,
    .gallery-section-2 h2,
    .contact-content h2 {
        font-size: 24px;
    }
}

.posts-grid{
        grid-template-columns: repeat(auto-fill, minmax(calc(33% - 20px), 1fr));
}
article.post-item h3 {
    font-size: 20px;
    margin: 0;
}

.post-thumb img {
    aspect-ratio: 16 / 15;
    object-fit: cover;
}
.contact-content * {
    color: #fff;
}
article.post-item .post-thumb {
    margin: 30px 0;
}
article.post-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.category-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #222;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.category-list li a:hover {
    background: #fff;
    color: #000;
}

.category-list li a:hover i {
    color: #000;
}

.main-categories-with-icons .category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
    margin:0;
}

.main-categories-with-icons .category-list li {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 12px;
    padding: 16px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
}

.category-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    text-decoration: none;
    color: #222;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.main-categories-with-icons .category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
}

.main-categories-with-icons .category-list li {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 12px;
    padding: 16px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
}

.category-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    text-decoration: none;
    color: #222;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.25s ease;
}
section.main-categories-with-icons {
    margin-bottom: 30px;
}

@media (max-width: 768px) {

    .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
}
.main-categories-with-icons .category-list li {
        flex: 0 0 calc(50% - 12px);
        padding: 0;
    }
    .category-list li a {
    flex-direction: column;
}
.category-list li a i{
    font-size: 45px;
}
.main-categories-with-icons .category-list li {
    box-shadow: 0 0 5px #ccc;
    background: #f8f9fb;
}

.cta-section, .gallery-section, .gallery-section-2, .slider-section, .contact-section {
        padding: 0;
    }
ul.footer-links {
    list-style: none;
}

ul.footer-links li a {
    color: #024994;
}

.footer-logo img {
    max-height: 120px;
    text-align: center;
}

.footer-column.footer-logo-col {
    align-items: center;
            justify-content: center;
}
h3 {
    font-size: 1rem;
}
.footer-column {
    text-align: center;
}
.post-thumb {
    margin: 0 -15px;
}

}