@media (max-width: 768px) {
    /* Make all elements include padding/border in width */
    *, *::before, *::after {
        box-sizing: border-box;
    }
    
    .social-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 20px !important;
    width: 100%;
}

   footer {
        padding: 20px 15px !important;
        background-color: #f8fafc;
    }

    /* Force Contact and Quick Links into a 50/50 split */
    footer .columns {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        align-items: flex-start !important;
    }

    /* Fix the long email address from your screenshot */
    footer .col p {
        font-size: 12px !important;
        line-height: 1.4;
        margin-bottom: 8px;
        word-wrap: break-word;      /* Forces email to wrap */
        overflow-wrap: break-word;
        word-break: break-all;      /* Nuclear option to prevent column pushing */
    }

    /* Horizontal Social Icons Fix */
    @media (max-width: 768px) {
    /* 1. Force the container to be a Flex Row */
    footer .follow {
        grid-column: span 2; 
        display: flex !important;
        flex-direction: column !important; /* Stack Title over Icons */
        align-items: center !important;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }

    /* 2. This is the container for the icons themselves */
    /* If you don't have a div wrapper, this targets the links directly */
    footer .follow a {
        display: inline-block !important; /* Forces them to sit side-by-side */
        width: auto !important;           /* Prevents them from taking full width */
        margin: 0 15px !important;        /* Adds horizontal gaps */
        padding: 5px !important;
    }

    /* 3. Make sure the Icons stay inline */
    footer .follow i {
        display: inline-block !important;
        font-size: 24px !important;
        color: #4ab2a8;
    }

    /* Professional Font Sizing */
    footer h4 {
        font-size: 14px !important;
        margin-bottom: 10px !important;
        color: #1d71b8; /* AdsCentre Blue */
    }

    footer .copyright {
        text-align: center;
        font-size: 10px;
        margin-top: 15px;
        padding-top: 10px;
        border-top: 1px solid #e2e8f0;
    }

    body {
        font-size: 14px;
    }
    

    #header {
        padding: 10px 20px; 
        flex-direction: row;
        justify-content: space-between;
    }
    
    #header a img {
        width: 200px; 
        height: auto;
    }
    
    #header-bus {
        padding: 10px 20px !important; 
        flex-direction: row;
        justify-content: space-between !important;
    }
    
    #header-bus a img {
        width: 200px !important; 
        height: auto !important;
    }
    
    #navbar {
    display: none;              /* hidden initially */
    flex-direction: column;     /* vertical stacking */
    width: 100%;  
    background-color: #f4f9fd;
    position: absolute;         /* float below header */
    top: 100%;
    left: 0;
    margin: 0;
    padding: 15px 0;            /* larger tap area */
    border-top: 1px solid #333; /* subtle separation */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s ease-in-out;
  }

  #navbar.active {
    display: flex; /* show menu when active */
  }

  #navbar li a {
    font-size: 12px;
    padding: 14px 20px;
    text-align: center;
    color: #4ab2a8;
    width: 100%;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
  }

  #navbar li a:hover,
  #navbar li a.active {
    color: #1d71b8;
    background-color: rgba(255, 255, 255, 0.05);
  }

  /* ===== Mobile Menu Toggle ===== */
  #mobile {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
  }

  #bar {
    font-size: 0.9rem;
    color: #000;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
  }

  #close {
    font-size: 0.9rem;
    color: #000;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;

    position: absolute; /* or fixed if you want it relative to viewport */
    top: 10px;          /* distance from the top */
    right: 10px;        /* distance from the right */
    z-index: 9999;      /* bring it on top of other elements */
}

  #bar:hover,
  #close:hover {
    color: #1d71b8;
    transform: scale(1.1); /* subtle feedback on hover */
  }

  #close {
    display: none; /* hidden initially */
  }

    .intro-section {
        padding: 30px 15px;
    }

    .intro-content {
        max-width: 100%;
        padding: 0 10px;
    }

    .intro-section::before{
      opacity: 0.3; /* Adjust to your liking */
    }

    .intro-content h1 {
        font-size: 2rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .btn-primary-intro {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .btn-primary {
        padding: 8px !important;
        font-size: 0.95rem;
    }

    .ad-toggle-buttons {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin: 20px 0 20px;
        flex-wrap: wrap;
    }

    .ad-toggle-buttons button {
        padding: 12px 24px;
        border: 2px solid #007bff;
        background-color: #fff;
        color: #007bff;
        font-weight: 500;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
        margin: 0;
        flex-shrink: 0;
    }

    .ad-toggle-buttons button.active-toggle {
        background-color: #007bff;
        color: #fff;
    }

    .container,
    .main-content,
    .product-grid {
        width: 100%;
        max-width: 100vw;
        padding: 10px;
        margin-left: 0 ; 
        margin-right: 0;
        overflow-x: hidden;
        flex-direction: column;
        gap: 20px;
    }

    .sidebar,
    #businessSidebar {
        width: 100%;
        margin-right: 0;
        padding: 20px 15px;
    }

    .sidebar h2 {
        font-size: 1.4rem;
    }

    .main-content {
        box-shadow: none;
        padding: 15px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .product-item {
        max-width: 100%;
        height: 230px; /* fixed uniform height */
        padding: 8px;
        margin: 10px 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    .product-item img,
    .icon-wrapper {
        height: 120px;
        width: 100%;
        object-fit: contain;      /* Show full image */
        background-color: #fff;   /* Adds padding background */
    }

    .slider img {
        height: 120px !important;
        width: 100%;
        object-fit: contain;      /* Show full image */
        background-color: #fff;
    }

    .slider-nav {
        bottom: 0.75rem;
        column-gap: 0.5rem;
    }

    .slider-nav span {
        width: 0.4rem;
        height: 0.4rem;
    }

    .sold-tag {
        font-size: 20px;
        padding: 8px 12px;
    }

    .product-details {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 4px;
        font-size: 0.75rem;
    }

    .product-details h3 {
        font-size: 0.8rem !important;
        margin: 0 !important;
    }

    .product-price {
        font-size: 0.8rem !important;
        margin: 0 !important;
    }

    .product-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin: 0 !important;
        padding: 2px 0;
    }

    .product-tags .tag {
        font-size: 0.7rem;
        padding: 2px 5px;
    }

    .contact-info,
    .seller-contact {
        font-size: 0.9rem;
    }
}

@media (max-width: 375px) {
    .main-content,
    .product-grid {
        padding: 0 !important;
    }
}

@media (max-width: 320px) {
    .product-grid {
        grid-template-columns: 1fr !important;
    }

    .main-content,
    .product-grid {
        padding: 10px !important;
    }

    .product-item {
        height: 230px;
    }

    .product-item img,
    .icon-wrapper,
    .slider img {
        height: 110px;
        object-fit: contain;
    }

    .product-details h3 {
        font-size: 0.75rem;
    }

    .product-price {
        font-size: 0.75rem;
    }
}

@media (max-width: 430px) {
    .product-item {
        max-width: 95%;
        margin: 12px auto;
        height: 235px;
    }

    .product-details {
        padding: 4px;
    }

    .intro-content h1 {
        font-size: 1.5rem;
    }

    .intro-text {
        font-size: 0.85rem;
    }

    .product-details h3 {
        font-size: 0.75rem !important;
        margin: 0 !important;
    }

    .product-price {
        font-size: 0.7rem !important;
        margin: 0 !important;
    }

    .product-tags .tag {
        font-size: 0.7rem;
        padding: 2px 5px;
    }

    .icon-wrapper {
        padding-top: 6px;
        margin-bottom: 6px;
        text-align: center;
    }

    .icon-wrapper i {
        font-size: 56px;
    }

    .slider-nav {
        bottom: 0.8rem;
        column-gap: 0.5rem;
    }

    .slider-nav span {
        width: 0.4rem;
        height: 0.4rem;
    }

    .sold-tag {
        font-size: 16px;
        padding: 6px 10px;
        border-radius: 6px;
    }
}

/*Individual*/
/* Phones: up to 600px */
@media (max-width: 600px) {
    .main-content{
        padding-top: 0 !important;
    }

    #product-container{
        padding: 20px;
    }

    .product-detail-container {
        flex-direction: column;
        gap: 16px;
        margin: 16px 8px;
        padding: 8px;
    }

    .slider-wrapper {
        max-width: 100%;
        padding: 15px;
    }

    .slider img {
        height: 250px; /* smaller image for phones */
    }

    .product-details {
        flex: none;
        width: 100%;
        padding-top: 0;
    }

    .product-details h3 {
        font-size: 1.4rem;
        margin: 8px 0;
    }

    .product-price {
        font-size: 1rem;
        margin: 6px 0;
    }

    .product-info-section,
    .basic-info,
    .product-description-list,
    .contact-info {
        font-size: 0.9rem;
        margin: 6px 0;
    }

    .product-info-section h4 {
        font-size: 1rem;
        margin: 4px 0;
        padding-bottom: 2px;
    }

    .btn-primary,
    .whatsapp-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Tablets: 601px to 768px */
@media (min-width: 601px) and (max-width: 768px) {
    .main-content{
        padding-top: 0 !important;
    }

    #product-container{
        padding: 20px;
    }

    .product-detail-container {
        flex-direction: column;
        gap: 20px;
        margin: 24px 12px;
        padding: 12px;
    }

    .slider-wrapper {
        max-width: 100%;
        padding: 15px;
    }

    .slider img {
        height: 300px !important; /* bigger image for tablets */
    }

    .product-details {
        flex: none;
        width: 100%;
    }

    .product-details h3 {
        font-size: 1.6rem;
        margin: 10px 0;
    }

    .product-price {
        font-size: 1.2rem;
        margin: 8px 0;
    }

    .product-info-section,
    .basic-info,
    .product-description-list,
    .contact-info {
        font-size: 1rem;
        margin: 8px 0;
    }

    .product-info-section h4 {
        font-size: 1.1rem;
        margin: 6px 0;
        padding-bottom: 3px;
    }

    .btn-primary,
    .whatsapp-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/*Gft*/
@media (max-width: 600px) {
  .main-layout {
    flex-direction: column;
    margin: 10px;
  }

  .section-wrapper {
    padding: 20px 10px;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .tagline {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 15px;
  }

  #our-products,
  #contact-gft {
    padding: 20px 10px;
  }

  #our-products h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .contact-heading {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .call-text {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .contact-list,
  .social-section {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .phone-number {
    font-size: 0.85rem;
    margin-bottom: 5px;
  }

  .social-section p {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .social-section a {
    font-size: 0.9rem;
  }

  .contact-list i {
    margin-right: 6px;
  }

  .gft-left,
  .gft-right {
    width: 100%;
    padding: 10px;
    margin: 0 0 20px 0;
    box-shadow: none;
  }

  .logo img {
    width: 120px;
    height: 120px;
  }

  .product-container {
    gap: 1rem;
  }

  .product-item-1 {
    max-width: 100%;
    margin: 10px 0;
    padding: 8px;
    height: 200px;
  }

  .product-item-1 img {
    height: 120px;
    padding-top: 5px;
    margin-bottom: 5px;
  }

  .main-content {
    padding: 20px 10px;
  }

  .whatsapp-button {
    padding: 10px 18px;
    font-size: 14px;
  }
  .product-details-ind h3 {
    font-size: 1.5rem !important;
    margin: 6px 0 10px 0;
    line-height: 1.3;
  }
  .product-price-ind {
      font-size: 1.0rem !important;
      margin-left: 0;
  }

  .btn-primary {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 5px;
    margin: 0;
  }
}

@media (max-width: 768px) and (min-width: 601px) {
  .main-layout {
    flex-direction: column;
    margin: 10px;
  }

  .gft-left {
    width: 100%;
    padding: 10px 0;
    margin-bottom: 20px;
    box-shadow: none;
    text-align: center;
  }

  .gft-left .logo img {
    width: 120px;
    height: auto;
    margin: 0 auto 10px;
  }

  .section-title {
    font-size: 1.8rem;
    margin: 10px 0 15px;
  }

  .tagline {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .contact-gft {
    padding: 0;
  }

  .contact-heading {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .contact-list {
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
  }

  .phone-number,
  .social-section {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .main-content {
    width: 100%;
    padding: 10px 0;
  }

  .main-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
  }

  .product-item-1 {
    max-width: 100%;
    margin: 0 auto;
    padding: 8px;
  }

  .slider-wrapper {
    max-width: 100%;
  }

  .slider img {
    height: 150px;
  }

  .product-details-ind h3 {
    font-size: 1.5rem !important;
    margin: 8px 0;
  }

  .btn-primary {
    padding: 10px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
  }

  .contact-gft {
    text-align: center;
    margin: 0 auto;
    max-width: 300px; /* optional */
  }

  .contact-list {
    display: inline-block;
    text-align: left;
    padding: 0;
    margin: 0 auto;
  }

  .contact-list li {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .social-section p {
    margin-bottom: 8px;
  }
  
  .social-section a {
    display: block;  /* Makes the link go to a new line */
    margin-top: 4px;
    text-align: center;
    font-weight: 500;
    text-decoration: none;
  }
  
  .social-section i {
    margin-right: 6px;
  }
}

@media (max-width: 430px) {
  .popup-corner {
    bottom: 15px;
    left: 15px; /* keep close to edge */
  }

  .popup-box {
    max-width: 320px; /* keep it narrow */
    padding: 10px;     /* slightly reduced padding */
    border-radius: 8px;
  }

  .popup-box h4 {
    font-size: 1rem; /* slightly smaller */
  }

  .popup-box p {
    font-size: 0.85rem;
  }

  .popup-btn {
    font-size: 0.9rem;
    padding: 8px 14px; /* slightly tighter */
  }
}

@media (max-width: 768px) {
  .adcontainer-1 {
    padding: 16px;
    margin: 20px auto;
    border-radius: 12px;
  }

  .btn-primary-intro,
  .price-contact {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 12px;
  }

  .package-comparison th,
  .package-comparison td {
    padding: 8px;
    font-size: 14px;
  }

  .package-comparison {
    font-size: 14px;
    overflow-x: auto;
    display: block;
  }

  .intro-buttons {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .adcontainer-1 h1 {
    font-size: 22px;
  }

  .adcontainer-1 h2 {
    font-size: 18px;
  }

  .adcontainer-1 p,
  .adcontainer-1 ul li {
    font-size: 14px;
  }

  .btn-primary-intro,
  .price-contact {
    font-size: 15px;
    padding: 10px;
  }

  .package-comparison {
    font-size: 13px;
  }
}

    .sell-box {
  background: #f8f9fa;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 18px;
  margin-top: 15px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.sell-box h3 {
  font-size: 1.1rem;  /* smaller and balanced */
  color: #222;
  margin-bottom: 8px;
  font-weight: 500;
}

.sell-box p {
  font-size: 0.95rem; /* slightly smaller text */
  color: #555;
  margin-bottom: 16px;
  line-height: 1.4;
}

.sell-box .post-ad-btn {
  display: inline-block;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  padding: 10px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.sell-box .post-ad-btn:hover {
  background: linear-gradient(135deg, #0056b3, #004095);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}
