/* --- Promo Banner & Vertical Ad Styles (for survey ad in single.php) --- */
.promo-banner-section {
  width: 100%;
  max-width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(90deg, #e6f7ed 0%, #f5f8ff 100%);
  padding: 2.5rem 4vw 2rem 4vw;
  margin: 0 auto;
  direction: rtl;
  z-index: 10;
}
.promo-banner-flex {
  display: flex;
  flex-direction: row-reverse;
  gap: 3.5rem;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
}
.vertical-ad-card {
  background: #fff;
  border: 2px solid #c00;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 2.2rem 4.5rem 0.3rem 4.5rem;
  width: 100%;
  text-align: center;
  font-family: 'Rubik', sans-serif;
  min-width: 320px;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Ad credit note styling */
.vertical-ad-note {
  font-size: 0.95rem;
  color: #888;
  margin-top: 1.2em;
  margin-bottom: 0.2em;
  text-align: center;
  direction: rtl;
}
.vertical-ad-header {
  color: #b00;
  font-weight: 700;
  margin-bottom: 0.7em;
  font-size: 1.1rem;
}
.vertical-ad-title {
  color: #25924b;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5em;
}
.vertical-ad-sub {
  color: #b00;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.2em;
}
.vertical-ad-desc {
  color: #444;
  font-size: 1rem;
  margin-bottom: 1em;
}
.vertical-ad-coupon-box {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 0.7em 1.2em;
  margin-bottom: 1.2em;
  display: flex;
  flex-direction: row;
  gap: 0.5em;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  justify-content: center;
}
.ad-coupon-label {
  color: #b00;
}
.ad-coupon-amount {
  color: #b00;
  font-size: 1.5rem;
  margin: 0 0.2em;
}
.ad-coupon-gift {
  color: #25924b;
  font-size: 1.1rem;
  margin-right: 0.5em;
}
.vertical-ad-btn {
  background: #b00;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8em 1.2em;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5em;
  transition: background 0.2s;
}
.vertical-ad-btn:hover {
  background: #a00;
}
@media (max-width: 1200px) {
    .hero-content .button-wrapper {
        margin-top: 3.5rem !important;
    }
    .hero-content {
        margin-top: 2.5rem !important;
    }
    .hero-content h2 {
        white-space: nowrap !important;
    }
    .hero-content h2 .desktop-hide-br {
        display: none !important;
    }
    .blog-header h1 {
        margin-top: 3.5rem !important;
    }
  .promo-banner-card,
  .vertical-ad-card {
    min-width: 0 !important;
    min-height: unset !important;
    max-width: 100vw !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box;
    padding-bottom: 1.5rem !important;
  }
}
/* Footer Social Icons Fix */
.footer-social {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin: 32px 0 24px 0;
    z-index: 10;
}
.footer-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #25924b;
    font-size: 2.2rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.footer-social .social-icon:hover {
    background: #25924b;
    color: #fff;
    transform: scale(1.1);
}
.footer-social .social-icon.facebook {
    color: #1877f3;
}
.footer-social .social-icon.facebook:hover {
    background: #1877f3;
    color: #fff;
}
.footer-social .social-icon.whatsapp {
    color: #25d366;
}
.footer-social .social-icon.whatsapp:hover {
    background: #25d366;
    color: #fff;
}
/* Footer Social Icons - Improved Alignment */
.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin: 32px 0 24px 0;
    position: static;
}
.footer-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #25924b;
    font-size: 2rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.footer-social .social-icon:hover {
    background: #25924b;
    color: #fff;
    transform: scale(1.1);
}
.footer-social .social-icon.facebook {
    color: #1877f3;
}
.footer-social .social-icon.facebook:hover {
    background: #1877f3;
    color: #fff;
}
.footer-social .social-icon.whatsapp {
    color: #25d366;
}
.footer-social .social-icon.whatsapp:hover {
    background: #25d366;
    color: #fff;
}
/*
Theme Name: Pharmacy - Version 1
Theme URI: 
Author: Your Name
Author URI: 
Description: Custom theme for Teva Ishai Pharmacy
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pharmacytheme
*/

:root {
    --primary: #25924b;    /* Green from logo */
    --secondary: #25924b;  /* Same green for consistency */
    --accent: #8CC8FF;     /* Light blue */
    --text: #2d3748;
    --light: #F5F8FF;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Add smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    text-align: right;
    color: var(--text);
    background-color: #fff;
    line-height: 1.6;
    font-family: 'Rubik', sans-serif;
}

/* Hero Section Styles */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-image: url('');  /* Will be set inline in PHP */
    background-attachment: fixed;
    background-position: center 20%;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.35);
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    transform: translateY(0);
    padding: 0 40px 25vh 40% !important;
    max-width: 1200px;
    text-align: right !important;
    z-index: 2;
    overflow-wrap: break-word;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: 100%;
}

.hero-overlay h1,
.hero-overlay h2 {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: right;
    color: white;
    text-shadow: 3px 3px 12px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.2);
}

.hero-overlay h1 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

.hero-overlay h2 {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content {
    position: relative;
    width: 100%;
    background: none;
    padding: 0;
    z-index: 3;
    margin-top: 0;
    text-align: right !important;
    display: block;
}

.hero-content .text-wrapper {
    width: 100%;
    text-align: right !important;
    display: block;
    word-break: normal;
    white-space: normal;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.content-wrapper p {
    font-size: 1.2rem;
    color: var(--text);
    line-height: 1.8;
}

.button-wrapper {
    margin-top: 2rem;
    text-align: right;
    padding-right: 0 !important;
    display: block;
}

.cta-button {
    white-space: nowrap;
}

/* Navigation Bar */
.nav-bar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: #fff !important;
    padding: 0.5rem 5%;
    height: 80px; /* Set explicit height */
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-bar.scrolled {
    padding: 0.3rem 5%;
    height: 60px; /* Reduced height when scrolled */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Blog Archive Specific Navigation Adjustments */
body.archive .nav-bar {
    background: rgba(255, 255, 255, 0.98);
}

.logo-container {
    flex: 0 0 auto;
}

.custom-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav-bar.scrolled .custom-logo {
    height: 50px !important;
    max-height: 50px !important;
}

.nav-bar.scrolled .logo-container {
    margin-top: 2px;
    margin-bottom: 2px;
    max-width: 120px;
    overflow: hidden;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-menu a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.nav-bar.scrolled .nav-menu a {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
}

/* Active state for menu items */
.nav-menu a.active {
    color: var(--primary);
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

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

/* WordPress Admin Bar Fix */
.admin-bar .nav-bar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .nav-bar {
        top: 46px;
    }
    
    body.archive .blog-archive {
        padding-top: 100px;
    }
}

/* About Section */
.about-section {
    padding: 1rem 1%;
    background: white;
    position: relative;
}

.about-content {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 3.2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding: 0 10vw !important;
    box-sizing: border-box;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.about-content > p {
    font-size: 1.4rem;
    max-width: 70%;
    margin: 0 auto 4rem;
    line-height: 1.8;
    color: var(--text);
    box-sizing: content-box !important;
    padding: 0 2vw !important;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.service-item {
    padding: 2rem;
    background: var(--light);
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-item h3 {
    font-size: 3.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-item p {
    font-size: 1.4rem;
    color: var(--text);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0.5rem 5% 2rem 5%;
    margin-top: 0.5rem;
    position: relative;
}

.contact-info {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    text-align: center;
}

.info-box {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(37, 146, 75, 0.18), 0 2px 8px rgba(37, 146, 75, 0.10);
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-box i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.info-box h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.info-box p, .info-box a {
    font-size: 1.3rem;
}

.info-box a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-box a:hover {
    color: var(--primary);
}

/* Social info-box in contact section */
.info-box .fab.fa-facebook-f {
    color: #1877f3;
    font-size: 2rem;
    margin-left: 0.5em;
    vertical-align: middle;
}
.info-box .fab.fa-instagram {
    color: #e4405f;
    font-size: 2rem;
    vertical-align: middle;
}
.info-box h3 {
    margin-top: 0.5em;
}
.info-box a[href*="facebook"] {
    color: #1877f3;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.info-box a[href*="facebook"]:hover {
    color: #145db2;
}
.info-box a[href*="instagram"] {
    color: #e4405f;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.info-box a[href*="instagram"]:hover {
    color: #b92d53;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content h2 {
        font-size: 2.2rem;
        padding: 0 2vw !important;
        box-sizing: border-box;
    }

    .about-content > p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .services-grid {
        gap: 2rem;
    }

    .service-item {
        padding: 1.5rem;
    }

    .service-item h3 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .about-content h2 {
        font-size: 1.8rem;
    }

    .service-item {
        padding: 1.2rem;
    }

    .service-item h3 {
        font-size: 1.8rem;
    }

    .info-box {
        padding: 1.5rem;
    }
}

/* Features Grid Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 5%;
    background-color: white;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.feature-item h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.feature-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature-item:hover img {
    transform: scale(1.02);
}

.feature-item.center-image {
    display: flex;
    flex-direction: column;
}

.feature-item.center-image img {
    order: -1;
    margin-bottom: 1.5rem;
}

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive Design for Features Grid */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 3rem 4%;
    }
    
    .feature-item img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        padding: 2rem 3%;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-item img {
        height: 200px;
    }
    
    .feature-item h3 {
        font-size: 1.5rem;
    }
}

/* Archive Page Specific Styles */
body.archive {
    padding-top: 0;
    margin-top: 0;
}

body.archive #main {
    margin-top: 0;
    padding-top: 0;
}

.blog-archive {
    padding-top: 140px;
    padding-bottom: 2rem;
    padding-left: 5%;
    padding-right: 5%;
    background: #f5f5f5;
    min-height: 100vh;
    margin-top: 0;
}

.admin-bar .blog-archive {
    padding-top: 132px;
}

@media screen and (max-width: 782px) {
    .admin-bar .blog-archive {
        padding-top: 146px;
    }
    .blog-archive {
        padding-top: 80px;
    }
}

.blog-header {
    text-align: center;
    margin: 0;
    padding: 0;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0;
    padding: 0;
    position: relative;
    display: inline-block;
    line-height: 1.2;
}

.blog-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0.5rem auto 1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 1rem auto 0;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.08);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.blog-card-image {
    width: 100%;
    max-height: 250px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.post-excerpt {
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card h2 {
    font-size: 1.4rem;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.blog-card h2 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h2 a:hover {
    color: var(--primary);
}

.blog-card .post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    direction: ltr;
}

.blog-card .post-meta span {
    display: flex;
    align-items: center;
    direction: rtl;
}

.blog-card .post-meta i {
    margin-left: 0.3rem;
}

/* Remove the override that was causing issues */
.blog-archive .post-meta {
    justify-content: flex-end;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-top: auto;
    display: inline-block;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--secondary);
}

.read-more i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(-5px);
}

.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary);
    color: white;
}

/* Single Post Styles */
.single-post {
    max-width: 800px;
    margin: 4rem auto 6rem;
    padding: 2rem 5%;
    background: white;
    box-shadow: 0 -8px 30px -10px rgba(0, 0, 0, 0.15),
                0 8px 30px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    border-top: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.post-header {
    margin-bottom: 3rem;
    text-align: center;
}

.post-thumbnail {
    margin: -2rem -5% 2rem;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-title {
    font-size: 2.5rem;
    color: var(--text);
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

.post-meta {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.post-meta i {
    color: var(--primary);
    margin-left: 0.5rem;
}

.post-meta a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-meta a:hover {
    color: var(--secondary);
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    padding: 0 1rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.post-content p {
    margin-bottom: 1.8rem;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--primary);
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1.2rem;
    color: var(--text);
}

.post-content ul, 
.post-content ol {
    margin: 1.5rem 0;
    padding-right: 1.5rem;
}

.post-content li {
    margin-bottom: 0.8rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-right: 4px solid var(--primary);
    background: #f8f8f8;
    border-radius: 5px;
    font-style: italic;
}

.post-navigation {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.prev-post,
.next-post {
    flex: 0 0 45%;
}

.prev-post a,
.next-post a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prev-post a:hover,
.next-post a:hover {
    color: var(--secondary);
}

.post-comments {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* Responsive Design for Single Posts */
@media (max-width: 768px) {
    .single-post {
        margin: 3rem auto 4rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-content {
        font-size: 1rem;
        padding: 0;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .single-post {
        margin: 2rem auto 3rem;
    }

    .post-title {
        font-size: 1.8rem;
    }

    .post-navigation {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .prev-post,
    .next-post {
        flex: 0 0 100%;
    }

    .prev-post a,
    .next-post a {
        justify-content: center;
    }
}


.products-container {
    text-align: center;
    margin-top: 170px;
}

.products-container .page-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0 auto 0 auto;
    padding: 0;
    position: relative;
    display: inline-block;
    line-height: 1.2;
    text-align: center;
}

.products-container .page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0.5rem auto 2.5rem;
}

.product-card {
    background: white;
    border: none;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(37, 146, 75, 0.18), 0 2px 8px rgba(37, 146, 75, 0.10);
    aspect-ratio: 4 / 5;
    height: auto;
    min-width: 220px;
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s cubic-bezier(0.4,0,0.2,1), background 0.3s, transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px 0 rgba(37, 146, 75, 0.25), 0 2px 8px 0 rgba(37, 146, 75, 0.15);
}

.product-image {
    width: 100%;
    height: 40%; /* Reduced from 55% to 40% */
    aspect-ratio: unset;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-content {
    flex: 1 1 0;
    padding: 20px;
    text-align: center;
}

.product-title {
    margin-bottom: 0.5em;
}

.product-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
    line-height: 1.5em;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.product-price {
    flex-shrink: 0;
    font-size: 1.5em;
    color: #25924b;
    font-weight: bold;
    margin-top: 0.5em;
}

.product-card,
.product-card * {
    text-decoration: none !important;
}

.single-product-container,
.single-product-container * {
    box-shadow: none !important;
    border-radius: 0 !important;
}

.single-product-container {
    margin-top: 120px !important;
}

.product-wrapper {
    display: flex;
    flex-direction: row-reverse; /* Image on the right for RTL */
    align-items: flex-start;
    width: 100%;
    gap: 0;
    min-height: 400px;
}

.product-image-container {
    width: 50vw;
    max-width: 700px;
    /* aspect-ratio: 1 / 1; */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    background: white;
    box-shadow: none !important;
}

.product-image-container img {
    max-height: 50vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.product-details {
    width: 50%;
    padding: 0 40px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: right;
    min-width: 0;
}

.product-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: bold;
}

.product-description {
    color: #666;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.product-price {
    font-size: 1.7rem;
    color: #25924b;
    font-weight: bold;
    margin-top: 2rem;
    text-align: right;
}

@media (max-width: 900px) {
    .product-wrapper {
        flex-direction: column;
        align-items: center;
        min-height: unset;
    }
    .product-image-container,
    .product-details {
        width: 100%;
        min-width: 0;
        padding: 0;
    }
    .product-details {
        padding: 20px 0 0 0;
        text-align: center;
        align-items: center;
    }
}

.single-product-container .product-excerpt {
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-height: none !important;
    white-space: normal !important;
}

@media (max-width: 900px) {
    .hero-overlay {
        max-width: 100vw;
        padding-right: 8vw;
        padding-left: 8vw;
    }
    .hero-overlay h1 {
        font-size: 2.2rem;
    }
    .hero-overlay h2 {
        font-size: 1.2rem;
    }
}

footer {
    margin: 0;
    padding: 0;
    min-height: 0;
    background: none;
    border: none;
}

.footer-divider {
    display: none;
}

/* Desktop Styles */
@media screen and (min-width: 901px) {
    .hero .hero-overlay h1 {
        font-size: 5.5rem !important;
        font-weight: 700;
    }
    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 0 10vw;
        max-width: 1200px;
        text-align: center !important;
        z-index: 2;
        overflow-wrap: break-word;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
        margin: 10vh auto 0 auto !important;
        transform: none;
    }
    .hero-overlay h2 {
        font-size: 3.5rem;
    }
    .button-wrapper {
        text-align: right !important;
        align-self: unset !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    .post-navigation {
        padding-left: 2.5vw;
        padding-right: 2.5vw;
    }
    .prev-post {
        text-align: left;
    }
    .next-post {
        text-align: right;
    }
}

@media (min-width: 1200px) {
    .hero .hero-overlay h1 {
        font-size: 6rem !important;
    }
    .hero-overlay h2 {
        font-size: 3.5rem !important;
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .hero .hero-overlay h1 {
        font-size: 5.5rem !important;
    }
    .hero-overlay h2 {
        font-size: 3rem !important;
    }
}

@media (min-width: 1600px) {
    .hero .hero-overlay h1 {
        font-size: 6.5rem !important;
    }
    .hero-overlay h2 {
        font-size: 3.5rem !important;
    }
}

@media (max-width: 900px) {
    .hero-overlay {
        max-width: 100vw;
        padding-right: 8vw;
        padding-left: 8vw;
    }
    .hero-overlay h1 {
        font-size: 2.2rem !important;
    }
    .hero-overlay h2 {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 600px) {
    .hero {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: calc(100vh - 80px);
        height: auto;
        background-attachment: scroll !important;
    }
    .hero-content,
    .hero-content .text-wrapper,
    .button-wrapper {
        text-align: center !important;
    }
    .hero-overlay {
        padding-top: 2vh !important;
    }
    .hero-content {
        margin-top: 0 !important;
    }
    .hero-content .text-wrapper {
        width: 100%;
        text-align: center !important;
        display: block !important;
        word-break: normal !important;
        white-space: normal !important;
    }
    .hero-overlay h1,
    .hero-overlay h2 {
        word-break: normal !important;
        overflow-wrap: normal !important;
        white-space: normal !important;
        text-align: center !important;
    }
    .nav-bar {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    body.admin-bar .nav-bar {
        top: 46px !important;
    }
}

.mobile-services-title {
    display: none !important;
    text-align: center;
    color: var(--primary);
    font-size: 2rem;
    margin: 2rem 0 1rem 0;
    font-weight: 700;
}
@media (max-width: 600px) {
    .mobile-services-title {
        display: block !important;
        margin-top: 0.5rem !important;
    }
}

.products-preview, .products-preview * {
    font-family: 'Rubik', sans-serif !important;
}

.products-preview, .products-preview p, .products-preview h3, .products-preview .card-content, .products-preview .read-more {
    font-family: 'Rubik', sans-serif;
}

.products-preview .product-excerpt {
    font-size: 1.3rem !important;
}

.comment-form-comment textarea {
    width: 100% !important;
    min-height: 120px;
    font-size: 1.1rem;
}

@media (min-width: 1200px) {
    .features-grid,
    .products-preview {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .nav-menu a {
        font-size: 1.35rem !important;
    }
    .hero-overlay h1 {
        font-size: 11rem !important;
    }
    .hero-overlay h2 {
        font-size: 4.5rem !important;
    }
    .cta-button {
        font-size: 2rem !important;
        padding: 1.3rem 3rem !important;
    }
    .cta-button i {
        font-size: 2.2rem !important;
        margin-left: 0.7em !important;
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .hero-overlay h1 {
        font-size: 9.5rem !important;
    }
    .hero-overlay h2 {
        font-size: 3.5rem !important;
    }
    .cta-button {
        font-size: 1.3rem !important;
        padding: 1rem 2.2rem !important;
    }
    .cta-button i {
        font-size: 1.5rem !important;
        margin-left: 0.5em !important;
    }
}
@media (min-width: 1600px) {
    .hero-overlay h1 {
        font-size: 11rem !important;
    }
    .hero-overlay h2 {
        font-size: 4.5rem !important;
    }
    .cta-button {
        font-size: 2rem !important;
        padding: 1.3rem 3rem !important;
    }
    .cta-button i {
        font-size: 2.2rem !important;
        margin-left: 0.7em !important;
    }
}

.top-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2001;
}
@media (min-width: 900px) {
    .top-bar {
        display: block;
        width: 100%;
        background: var(--primary, #25924b) !important;
        color: #fff !important;
        font-family: 'Rubik', sans-serif;
        font-size: 1rem;
        border-bottom: none;
        padding: 0.3rem 0;
        z-index: 2001;
        transition: opacity 0.3s;
        opacity: 1;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
    .nav-bar {
        margin-top: 0 !important;
        top: 40px !important;
        position: fixed;
        z-index: 2000;
        transition: top 0.3s, margin-top 0.3s;
    }
    .nav-bar.scrolled {
        top: 40px !important;
    }
    .top-bar-content {
        max-width: 1400px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 3vw;
    }
    .top-bar-contact {
        display: flex;
        align-items: center;
        gap: 1.2rem;
    }
    .top-bar-link {
        color: #fff !important;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 0.4em;
    }
    .top-bar-link:hover {
        color: #8CC8FF !important;
    }
    .top-bar-sep {
        color: #b2e5c2;
        margin: 0 0.7em;
    }
    .top-bar-social {
        display: flex;
        gap: 1.1rem;
    }
    .top-bar-social a {
        color: #fff !important;
        font-size: 1.25rem;
        opacity: 0.85;
        transition: color 0.2s, opacity 0.2s;
    }
    .top-bar-social a:hover {
        color: #8CC8FF !important;
        opacity: 1;
    }
    .logo-container .custom-logo {
        height: 60px !important;
        max-height: 60px !important;
    }
    .top-bar-link {
        color: #fff !important;
    }
    .top-bar-link:hover {
        color: #8CC8FF !important;
    }
    .top-bar-social a {
        color: #fff !important;
    }
    .top-bar-social a:hover {
        color: #8CC8FF !important;
    }
}

body.admin-bar .top-bar {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .top-bar {
        top: 46px;
    }
}
body.admin-bar .nav-bar {
    top: 72px !important; /* 32px (admin bar) + 40px (top bar) */
}
@media screen and (max-width: 782px) {
    body.admin-bar .nav-bar {
        top: 86px !important; /* 46px (admin bar) + 40px (top bar) */
    }
}

/* Survey Modal Styles */
.survey-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}
.survey-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 40px 20px 30px 20px !important;
  border: 1px solid #888;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  position: relative;
  text-align: right;
}
.survey-modal-close {
  color: #b00 !important;
  position: absolute;
  top: 10px;
  left: 16px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.survey-modal-close:hover,
.survey-modal-close:focus {
  color: #000 !important;
  text-decoration: none;
  cursor: pointer;
}

/* --- Survey Modal Theme Styling --- */
.survey-modal-content h2 {
  color: #25924b;
  text-align: center;
  margin-top: -10px !important;
  margin-bottom: 1.2em;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.survey-q {
  margin-top: -10px !important;
}
.survey-q label {
  color: #25924b;
  font-weight: 500;
  margin-bottom: 0.3em;
  display: block;
}
.survey-q textarea,
.survey-q input[type="text"],
.survey-q select {
  width: 100%;
  min-height: 2.5em;
  padding: 0.5em 0.7em;
  margin-bottom: 1em;
  border: 1.5px solid #25924b;
  border-radius: 6px;
  font-size: 1.1em;
  resize: vertical;
  box-sizing: border-box;
}
.survey-q textarea {
  min-height: 4em;
  max-height: 10em;
}
.survey-submit-btn {
  background: #25924b;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.7em 2.2em;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  margin: 0 auto;
  display: block;
  transition: background 0.2s;
}
.survey-submit-btn:hover {
  background: #b00;
}

.survey-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

#survey-thankyou {
  color: #25924b !important;
  font-weight: bold;
  font-size: 1.2em;
  border-top: none !important;
  text-align: center;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  white-space: pre-line;
}

/* Survey form validation styling */
.survey-q textarea:invalid,
.survey-q input[type="text"]:invalid,
.survey-q select:invalid {
  border-color: #ff6b6b;
}

.survey-q textarea:focus,
.survey-q input[type="text"]:focus,
.survey-q select:focus {
  outline: none;
  border-color: #b00;
  box-shadow: 0 0 5px rgba(176, 0, 0, 0.3);
}

/* Survey modal responsive improvements */
@media (max-width: 600px) {
  .survey-modal-content {
    margin: 5% auto;
    padding: 30px 15px 30px 15px !important;
    width: 95%;
  }
  
  .survey-modal-content h2 {
    margin-top: -5px !important;
  }
  
  .survey-q {
    margin-top: -5px !important;
  }
  
  .survey-q textarea,
  .survey-q input[type="text"],
  .survey-q select {
    font-size: 1em;
  }
  
  .survey-submit-btn {
    padding: 0.6em 1.8em;
    font-size: 1em;
  }
}

@media (max-width: 700px) {
  .vertical-ad-card {
    word-break: break-word !important;
    white-space: normal !important;
  }
  .vertical-ad-note {
    font-size: 0.88rem !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    word-break: break-word !important;
    padding-left: 2px;
    padding-right: 2px;
    margin-top: 1.2em;
    margin-bottom: 1.2em !important;
    text-align: center;
    direction: rtl;
    display: block;
    box-sizing: border-box;
    max-width: 100%;
  }
  .promo-banner-flex {
    flex-direction: column !important;
    gap: 1.5rem !important;
    align-items: stretch !important;
  }

  @media (max-width: 400px) {
    .vertical-ad-note {
      font-size: 0.8rem !important;
    }
  }
  .promo-banner-card,
  .vertical-ad-card,
  .promo-banner-card {
    min-width: 0 !important;
    max-width: 95vw !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box;
    padding: 2.2rem 0.7rem 3.2rem 0.7rem !important; /* Increased bottom padding */
    border-radius: 18px !important;
    box-shadow: 0 8px 32px rgba(37, 146, 75, 0.10), 0 2px 8px rgba(37, 146, 75, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .vertical-ad-card {
    min-height: unset !important;
    height: auto !important;
    aspect-ratio: 1/1 !important;
    justify-content: center !important;
  }
  .vertical-ad-header {
    font-size: 1rem !important;
    margin-bottom: 0.5em !important;
  }
  .vertical-ad-title {
    font-size: 1.5rem !important;
    margin-bottom: 0.3em !important;
  }
  .vertical-ad-sub {
    font-size: 1.1rem !important;
    margin-bottom: 0.1em !important;
  }
  .vertical-ad-desc {
    font-size: 0.95rem !important;
    margin-bottom: 0.7em !important;
  }
  .vertical-ad-coupon-box {
    font-size: 1.1rem !important;
    padding: 0.5em 0.7em !important;
    margin-bottom: 0.7em !important;
    flex-wrap: wrap !important;
  }
  .vertical-ad-btn {
    font-size: 1rem !important;
    padding: 0.7em 1em !important;
    margin-top: 0.7em !important;
    border-radius: 8px !important;
  }
}

.promo-banner-card,
.vertical-ad-card {
  min-width: unset !important;
  min-height: unset !important;
  max-width: 100vw !important;
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box;
  padding-bottom: 1.5rem !important;
}
