/* =====================================================
   El Maestro Teaching Solutions - Frontend Stylesheet
   Pixel-perfect clone of elmaestro.in
   ===================================================== */

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  background-color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
html {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #f0437e;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
}

/* === WELCOME BAR === */
.welcome-bar {
  background-color: #f0437e;
  padding: 8px 0;
  text-align: center;
}

.welcome-bar marquee,
.welcome-bar a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

/* === HEADER === */
.site-header {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  position: sticky;
  top: 0;
  z-index: 9999;
  padding: 10px 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.site-branding {
  padding: 5px 0;
}

.custom-logo {
  width: 220px;
  height: auto;
}

/* === NAVIGATION === */
.main-navigation ul#primary-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.main-navigation li {
  position: relative;
  font-size: 15px;
  font-weight: 500;
}

.main-navigation li a {
  display: block;
  padding: 10px 12px;
  color: #191919;
  white-space: nowrap;
  transition: color 0.2s;
}

.main-navigation li a:hover,
.main-navigation li.current-menu-item > a {
  color: #f0437e;
}

/* Dropdown */
.main-navigation li.menu-item-has-children > a::after {
  content: " ▾";
  font-size: 11px;
}

.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 260px;
  border: 1px solid #ebebeb;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  z-index: 9999;
  border-radius: 4px;
}

.main-navigation li:hover > .sub-menu {
  display: block;
}

.main-navigation .sub-menu li a {
  padding: 10px 18px;
  font-size: 14px;
  color: #1c1c1c;
  border-bottom: 1px solid #f5f5f5;
  white-space: normal;
}

.main-navigation .sub-menu li a:hover {
  background: #f7f7f7;
  color: #f0437e;
}

/* Mobile toggle */
.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle_lines,
.mobile-menu-toggle_lines::before,
.mobile-menu-toggle_lines::after {
  display: block;
  width: 25px;
  height: 2px;
  background: #212121;
  position: relative;
  transition: all 0.3s;
}

.mobile-menu-toggle_lines::before,
.mobile-menu-toggle_lines::after {
  content: '';
  position: absolute;
}

.mobile-menu-toggle_lines::before { top: -8px; }
.mobile-menu-toggle_lines::after  { top: 8px; }

@media (max-width: 991px) {
  /* Break out of bootstrap col relative positioning for the dropdown */
  .site-header .row { position: relative; }
  .site-header .col-md-9, .site-header .col-3, .site-header .col-sm-6 { position: static; }
  
  .header-mobile-menu {
    display: flex;
    justify-content: flex-end;
  }

  .main-navigation ul#primary-menu {
    display: none;
    flex-direction: column;
    background: #ffffff;
    border-top: 1px solid #ebebeb;
    padding: 0;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 10000;
  }
  .main-navigation ul#primary-menu.open {
    display: flex;
  }
  .main-navigation ul#primary-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .main-navigation ul#primary-menu li:last-child {
    border-bottom: none;
  }
  .main-navigation .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: #fdfdfd;
    display: none;
    padding-left: 15px;
  }
  .main-navigation .sub-menu.open {
    display: block;
  }
  .main-navigation li.menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  /* Mobile nav row: link on left, chevron button on right */
  .mobile-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
  }
  .mobile-nav-row > a {
    flex: 1;
    padding: 12px 20px;
    color: #191919;
    font-weight: 600;
    text-decoration: none;
    display: block;
  }
  .mobile-nav-row > a:hover { color: var(--pink); }

  /* Chevron toggle button */
  .mobile-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(37,99,235,0.07);
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    border: none;
    outline: none;
    margin-right: 10px;
    transition: background 0.2s ease;
  }
  .mobile-dropdown-toggle:hover {
    background: rgba(240,67,126,0.12);
  }
  .mobile-dropdown-toggle i {
    font-size: 0.75rem;
    color: var(--blue);
    transition: transform 0.3s ease;
  }
}

/* Global Mobile Hero Fixes */
@media (max-width: 576px) {
  .service-single-hero h1, 
  .static-cinematic-hero h1, 
  .gallery-cinematic-hero h1,
  .editorial-page-hero h1 {
    font-size: clamp(1.8rem, 8vw, 3rem) !important;
    word-break: break-word;
    line-height: 1.2 !important;
  }
  .service-single-hero, 
  .static-cinematic-hero, 
  .gallery-cinematic-hero {
    padding-right: 60px !important;
    padding-left: 15px !important;
  }
  .static-breadcrumb {
    padding: 6px 15px !important;
    font-size: 0.75rem !important;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* === HERO SECTION === */
.hero-section {
  padding: 60px 0 40px;
  background-color: #fef4e8;
}

.hero-section .hero-tagline {
  font-size: 2rem;
  font-weight: 600;
  color: #191919;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-section .hero-img {
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.hero-subscribe-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-subscribe-form input[type="email"] {
  border: 2px solid #f0437e;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 15px;
  font-family: 'Work Sans', sans-serif;
  flex: 1;
  min-width: 200px;
}

.hero-subscribe-form button {
  background: #f0437e;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-subscribe-form button:hover {
  background: #c73065;
}

/* === MARQUEE SECTION === */
.events-marquee-section {
  padding: 20px 0;
  background: #fff;
  border-bottom: 2px solid #f0437e;
}

.events-marquee-section .section-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: #191919;
  margin-bottom: 0;
}

.events-marquee-section marquee {
  font-size: 1.2rem;
  font-weight: 700;
  color: #191919;
}

/* === SECTIONS COMMON === */
.section-block {
  padding: 50px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: #191919;
  text-align: center;
  margin-bottom: 30px;
}

.section-title-light {
  color: #fff;
}

/* === IMAGE CAROUSEL (Swiper) === */
.carousel-section {
  padding: 40px 0;
  background: #fff;
}

.carousel-section.gradient-bg {
  background: linear-gradient(135deg, #f0437e 0%, #ff9a3c 100%);
}

.carousel-section.gradient-bg2 {
  background: linear-gradient(135deg, #1a6dd8 0%, #0d3f8f 100%);
}

.em-swiper {
  width: 100%;
  padding: 10px 0 40px;
}

.em-swiper .swiper-slide img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  height: 280px;
}

.em-swiper .swiper-button-next,
.em-swiper .swiper-button-prev {
  color: #f0437e;
}

.em-swiper .swiper-pagination-bullet-active {
  background: #f0437e;
}

.btn-more {
  display: inline-block;
  background: #f0437e;
  color: #fff !important;
  padding: 10px 28px;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 20px;
  transition: background 0.2s;
}

.btn-more:hover {
  background: #c73065;
}

.btn-more-outline {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff !important;
  padding: 10px 28px;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 20px;
  transition: all 0.2s;
}

.btn-more-outline:hover {
  background: #fff;
  color: #f0437e !important;
}

/* === OUR SERVICES === */
.services-section {
  padding: 60px 0;
  background: #fff;
}

.service-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  box-shadow: 0 8px 30px rgba(240,67,126,0.15);
  transform: translateY(-4px);
  border-color: #f0437e;
}

.service-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #191919;
  margin: 0;
}

.service-card h3 a {
  color: #191919;
}

.service-card h3 a:hover {
  color: #f0437e;
}

/* === STATS === */
.stats-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #f0437e, #ff9a3c);
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
}

.stat-card .stat-icon {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 10px;
}

.stat-card .stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  display: block;
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin-top: 8px;
  font-weight: 500;
}

/* === TESTIMONIALS === */
.testimonials-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #1a6dd8, #0d3f8f);
}

.testimonial-item {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
}

.testimonial-item img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f0437e;
  margin-bottom: 16px;
}

.testimonial-item p {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.testimonial-item .designation {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.testimonial-stars i {
  color: #ffb900;
  font-size: 14px;
}

/* === JOBS SECTION === */
.jobs-section {
  padding: 60px 0;
  background: #f9f9f9;
}

.job-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s;
  height: 100%;
}

.job-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  border-color: #f0437e;
}

.job-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #191919;
  margin-bottom: 10px;
}

.job-card .job-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 14px;
}

.job-card .job-meta span {
  display: inline-block;
  margin-right: 12px;
}

.job-card .job-meta i {
  color: #f0437e;
  margin-right: 4px;
}

.job-card .btn-apply {
  display: inline-block;
  background: #f0437e;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}

.job-card .btn-apply:hover {
  background: #c73065;
}

/* === CONTACT SECTION === */
.contact-section {
  padding: 60px 0;
  background: #fef4e8;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #f0437e;
  outline: none;
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

.contact-form button[type="submit"] {
  background: #f0437e;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: table;
  margin: 0 auto;
}

.contact-form button[type="submit"]:hover {
  background: #c73065;
}

/* === FOOTER === */
.site-footer {
  background: #13151d;
  color: #ccc;
  font-size: 14px;
}

.footer-top {
  padding: 60px 0 30px;
}

.footer-col {
  margin-bottom: 30px;
}

.footer-logo img {
  width: 200px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-about {
  color: #aaa;
  line-height: 1.7;
  font-size: 14px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: #f0437e;
  color: #fff;
}

.footer-widget-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #f0437e;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #aaa;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #f0437e;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: #aaa;
}

.footer-contact-item i {
  color: #f0437e;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-newsletter h5 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 20px 0 10px;
}

.footer-newsletter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-newsletter-form input {
  flex: 1;
  min-width: 160px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-radius: 4px;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
}

.footer-newsletter-form input::placeholder {
  color: rgba(255,255,255,0.4);
}

.footer-newsletter-form button {
  background: #f0437e;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.footer-newsletter-form button:hover {
  background: #c73065;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  color: #666;
  font-size: 13px;
  margin: 0;
}

/* === WHATSAPP FLOAT === */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 9999;
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #69bce4;
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  transition: all 0.3s;
  z-index: 9998;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  color: #000;
  background: #4fa8d5;
}

/* === INNER PAGE HERO === */
.page-hero {
  background: linear-gradient(135deg, #f0437e, #ff9a3c);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
}

/* === BLOG CARD === */
.blog-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  height: 100%;
}

.blog-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 20px;
}

.blog-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-card-body h3 a {
  color: #191919;
}

.blog-card-body h3 a:hover {
  color: #f0437e;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 12px;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* === FAQ === */
.faq-section {
  padding: 60px 0;
}

.faq-item {
  border: 1px solid #ebebeb;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  background: #f7f7f7;
  cursor: pointer;
  font-weight: 600;
  color: #191919;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: #f0437e;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 16px 20px;
}

/* === ALERT MESSAGES === */
.alert {
  padding: 12px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* === PAGINATION === */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin: 40px 0 20px;
  gap: 6px;
}

.pagination-wrapper a,
.pagination-wrapper span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  transition: all 0.2s;
}

.pagination-wrapper a:hover,
.pagination-wrapper .current {
  background: #f0437e;
  color: #fff;
  border-color: #f0437e;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-section .hero-tagline {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .stat-card .stat-number {
    font-size: 2rem;
  }

  .footer-logo img {
    width: 150px;
  }

  .custom-logo {
    width: 160px;
  }
}

/* === GLASSMORPHISM UTILITIES === */
.glass-header {
  background: rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05) !important;
}

.glass-panel-dark {
  background: rgba(15, 23, 42, 0.7) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

.editorial-title {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

/* Gallery Masonry & Overlays */
.gallery-masonry {
  column-count: 1;
  column-gap: 1.5rem;
}
@media (min-width: 576px) { .gallery-masonry { column-count: 2; } }
@media (min-width: 992px) { .gallery-masonry { column-count: 3; } }
@media (min-width: 1200px) { .gallery-masonry { column-count: 4; } }

.gallery-masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-masonry-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.gallery-masonry-img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-masonry-item:hover .gallery-masonry-img {
  transform: scale(1.05);
}

.gallery-hover-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  border-top: 1px solid rgba(255,255,255,0.4);
}
.gallery-masonry-item:hover .gallery-hover-overlay {
  transform: translateY(0);
}
.gallery-hover-overlay h5 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--dark);
  font-size: 1.1rem;
  text-align: center;
}

/* Lightbox Modal */
.gallery-lightbox {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.9);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.gallery-lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.gallery-lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.gallery-lightbox.active .gallery-lightbox-img {
  transform: scale(1);
}
.gallery-lightbox-close {
  position: absolute;
  top: 30px; right: 40px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease;
}
.gallery-lightbox-close:hover {
  transform: scale(1.2);
}

/* Blog Page Styles */
.blog-featured-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  margin-bottom: 50px;
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
@media(min-width: 992px) {
  .blog-featured-card {
    flex-direction: row;
    height: 450px;
  }
  .blog-featured-img-wrap {
    width: 60%;
    height: 100%;
  }
  .blog-featured-content {
    width: 40%;
    padding: 60px 50px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
.blog-featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.blog-featured-img-wrap {
  position: relative;
  overflow: hidden;
}
.blog-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 250px;
  transition: transform 0.6s ease;
}
.blog-featured-card:hover .blog-featured-img {
  transform: scale(1.05);
}
.blog-featured-content {
  padding: 40px 30px;
  background: var(--light-pink);
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.blog-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 240px;
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img {
  transform: scale(1.06);
}
.blog-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  color: var(--pink);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}
.blog-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
  line-height: 1.4;
  transition: color 0.3s ease;
}
.blog-card:hover .blog-title, .blog-featured-card:hover .blog-title {
  color: var(--pink);
}
.blog-excerpt {
  color: var(--sub);
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
}
.blog-readmore {
  color: var(--pink);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.blog-readmore i {
  transition: transform 0.3s ease;
}
.blog-card:hover .blog-readmore i, .blog-featured-card:hover .blog-readmore i {
  transform: translateX(5px);
}

/* Responsive Mobile Enhancements */
@media (max-width: 991px) {
  .hp-section, .hp-section-alt, .contact-section, .jobs-section, .services-section, .carousel-section, .section-block, .hero-editorial {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  .hero-h1 {
    font-size: clamp(2.2rem, 8vw, 3.2rem) !important;
  }
  .hero-h1 .sans-accent {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
  }
  .symmetric-grid {
    grid-template-columns: 1fr !important;
  }
  .integrated-form-section {
    padding: 60px 0 !important;
  }
  .form-side-content h2 {
    font-size: clamp(2rem, 6vw, 2.8rem) !important;
  }
  .footer-top {
    padding: 40px 0 20px !important;
  }
  .glass-card {
    padding: 20px !important;
  }
  .testi-editorial-card {
    padding: 20px !important;
  }
  .contact-cards-wrapper .row {
    flex-direction: column;
  }
  .global-mesh-bg::before, .global-mesh-bg::after {
    width: 150vw !important;
    height: 150vw !important;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    padding-top: 20px !important;
  }
}

@media (max-width: 575px) {
  .hero-img-main {
    max-width: 100% !important;
  }
  .stat-item {
    padding: 20px 10px !important;
  }
  .stat-num {
    font-size: 2.5rem !important;
  }
  .btn-editorial {
    padding: 12px 24px !important;
    font-size: 0.85rem !important;
  }
  .shining-input {
    font-size: 1rem !important;
  }
}

/* === LEGAL & STRUCTURAL PAGES === */
.legal-page-header {
  background: linear-gradient(135deg, rgba(240,67,126,0.1) 0%, rgba(147,51,234,0.1) 100%);
  padding: 100px 0 80px;
  text-align: center;
  margin-bottom: -50px;
  position: relative;
  overflow: hidden;
}
.legal-page-header::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
  animation: rotate-gradient 20s linear infinite;
  pointer-events: none;
}
@keyframes rotate-gradient {
  100% { transform: rotate(360deg); }
}
.legal-page-header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  letter-spacing: -1px;
}
.legal-page-header h1::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border-radius: 5px;
}
.legal-page-header p {
  font-size: 1.15rem;
  color: var(--sub);
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.legal-glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.04), inset 0 2px 0 rgba(255,255,255,1);
  padding: 60px;
  position: relative;
  z-index: 2;
  margin-bottom: 80px;
}

.legal-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 40px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal-content h2 i {
  color: var(--pink);
  font-size: 1.4rem;
}
.legal-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 24px;
}
.legal-content ul {
  margin-bottom: 24px;
  padding-left: 0;
  list-style: none;
}
.legal-content li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 12px;
  position: relative;
  padding-left: 28px;
}
.legal-content li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--pink);
  font-size: 0.9rem;
}

.trust-badge-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: -40px;
  margin-bottom: 60px;
  position: relative;
  z-index: 3;
}
.trust-badge {
  background: #fff;
  border-radius: 50px;
  padding: 12px 25px;
  box-shadow: 0 6px 20px rgba(147,51,234,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid rgba(147,51,234,0.05);
  transition: transform 0.3s;
}
.trust-badge:hover {
  transform: translateY(-5px);
}
.trust-badge i {
  color: var(--pink);
  font-size: 1.2rem;
}

/* Sitemap Styles */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.sitemap-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.3s;
}
.sitemap-card:hover {
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-color: rgba(240,67,126,0.15);
}
.sitemap-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(0,0,0,0.05);
  padding-bottom: 10px;
}
.sitemap-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sitemap-card li {
  margin-bottom: 12px;
}
.sitemap-card a {
  color: #4a5568;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sitemap-card a i {
  font-size: 0.8rem;
  color: var(--pink);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s;
}
.sitemap-card a:hover {
  color: var(--pink);
}
.sitemap-card a:hover i {
  opacity: 1;
  transform: translateX(0);
}

/* =======================================================
   COMPREHENSIVE RESPONSIVE SYSTEM — ALL DEVICES
   320px (small phone) → 480px → 576px → 768px → 991px → 1200px+
   ======================================================= */

/* ---- LARGE DESKTOP (1200px+) ---- */
@media (min-width: 1200px) {
  .container { max-width: 1200px; }
}

/* ---- TABLET LANDSCAPE / SMALL DESKTOP (992px - 1199px) ---- */
@media (max-width: 1199px) {
  .nl-grid { grid-template-columns: repeat(2, 1fr); }
  .custom-logo { width: 190px; }
  .legal-glass-card { padding: 40px; }
  .legal-page-header h1 { font-size: 2.8rem; }
}

/* ---- TABLET PORTRAIT (768px - 991px) ---- */
@media (max-width: 991px) {
  /* Logo */
  .custom-logo { width: 170px; }

  /* Newsletter viewer */
  .nl-pro-header h1 { font-size: 2rem; }
  .nl-pro-toolbar { flex-direction: column; gap: 15px; align-items: flex-start; }
  .nl-pro-iframe-wrapper { height: 65vh; min-height: 450px; }

  /* Newsletter cards */
  .nl-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .nl-card { padding: 35px 20px 30px; }
  .nl-icon { width: 85px; height: 85px; font-size: 2rem; }
  .nl-title { font-size: 1.3rem; }

  /* Legal pages */
  .legal-page-header { padding: 80px 20px 60px; }
  .legal-page-header h1 { font-size: 2.4rem; }
  .legal-glass-card { padding: 30px; }
  .trust-badge-container { gap: 12px; margin-bottom: 40px; }
  .trust-badge { padding: 10px 18px; font-size: 0.9rem; }

  /* Sitemap */
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Section paddings */
  .hp-section, .hp-section-alt { padding: 60px 0 !important; }

  /* Footer action bar */
  .nl-action-bar { flex-direction: column; text-align: center; gap: 20px; }
}

/* ---- MOBILE LANDSCAPE / LARGE PHONES (576px - 767px) ---- */
@media (max-width: 767px) {
  /* Logo */
  .custom-logo { width: 150px; }

  /* Hero sections */
  .nl-page-hero { padding: 120px 15px 70px; }
  .nl-page-hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
  .nl-page-hero p { font-size: 1rem; }

  /* Newsletter viewer page */
  .nl-pro-header { padding: 40px 15px 30px; }
  .nl-pro-header h1 { font-size: 1.6rem; }
  .nl-pro-header p { font-size: 0.95rem; }
  .nl-pro-viewer-section { padding: 20px 0 50px; }
  .nl-pro-container { padding: 12px; border-radius: 8px; }
  .nl-pro-iframe-wrapper { height: 60vh; min-height: 400px; }
  .nl-pro-toolbar { padding: 15px 5px 0; flex-direction: column; gap: 12px; }
  .nl-pro-meta { flex-direction: column; gap: 8px; font-size: 0.85rem; }
  .nl-btn { padding: 10px 16px; font-size: 0.85rem; width: 100%; justify-content: center; }
  .nl-pro-actions { width: 100%; flex-direction: column; }

  /* Newsletter cards grid */
  .nl-grid { grid-template-columns: 1fr; gap: 20px; }
  .nl-filters { gap: 8px; }
  .filter-btn { padding: 8px 18px; font-size: 0.85rem; }

  /* Legal pages */
  .legal-page-header { padding: 70px 15px 50px; margin-bottom: -30px; }
  .legal-page-header h1 { font-size: 2rem; letter-spacing: -0.5px; }
  .legal-page-header p { font-size: 1rem; }
  .legal-glass-card { padding: 25px 20px; border-radius: 16px; }
  .legal-content h2 { font-size: 1.3rem; }
  .legal-content p, .legal-content li { font-size: 0.97rem; }
  .trust-badge-container { gap: 10px; margin-top: -20px; }
  .trust-badge { padding: 9px 15px; font-size: 0.85rem; }

  /* Sitemap */
  .sitemap-grid { grid-template-columns: 1fr; gap: 16px; }
  .sitemap-card { padding: 20px; }
  .sitemap-card h3 { font-size: 1.2rem; }

  /* General section paddings */
  .section-block, .hp-section, .hp-section-alt { padding: 50px 0 !important; }
  .section-title { font-size: 1.6rem !important; }

  /* Stats */
  .stat-card { padding: 20px 12px; }
  .stat-card .stat-number { font-size: 2.2rem; }

  /* Blog */
  .blog-card-img-wrap { height: 180px; }
  .blog-card-content { padding: 20px; }
  .blog-title { font-size: 1.1rem; }

  /* Contact */
  .contact-section .row { gap: 20px; }

  /* Gallery */
  .gallery-masonry { column-count: 2; column-gap: 1rem; }
}

/* ---- SMALL MOBILE (max-width: 575px) ---- */
@media (max-width: 575px) {
  /* General */
  body { font-size: 15px; }
  .container { padding-left: 16px; padding-right: 16px; }

  /* Logo */
  .custom-logo { width: 130px; }

  /* Newsletter viewer */
  .nl-pro-header h1 { font-size: 1.4rem; }
  .nl-pro-iframe-wrapper { height: 55vh; min-height: 350px; }

  /* Legal page header */
  .legal-page-header { padding: 60px 12px 45px; }
  .legal-page-header h1 { font-size: 1.8rem; }
  .legal-glass-card { padding: 20px 15px; }
  .trust-badge-container { flex-direction: column; align-items: center; }
  .trust-badge { width: 100%; max-width: 280px; justify-content: center; }

  /* Newsletter cards */
  .nl-icon { width: 75px; height: 75px; }
  .nl-title { font-size: 1.2rem; }
  .nl-action-btn { padding: 12px 25px; font-size: 0.9rem; }

  /* Newsletter single hero */
  .nl-single-hero { padding: 120px 15px 60px; }

  /* Hero section */
  .hero-section { padding: 40px 0 30px; }
  .hero-section .hero-tagline { font-size: 1.4rem; }
  .hero-subscribe-form { flex-direction: column; }
  .hero-subscribe-form input[type="email"] { min-width: unset; }

  /* Stats */
  .stat-card .stat-number { font-size: 2rem; }
  .stat-card .stat-icon { font-size: 2rem; }

  /* Testimonials */
  .testimonial-item { padding: 20px 15px; }
  .testimonial-item img { width: 60px; height: 60px; }

  /* Job cards */
  .job-card { padding: 18px; }

  /* Gallery */
  .gallery-masonry { column-count: 1; }
  .gallery-lightbox-close { top: 15px; right: 20px; font-size: 2rem; }

  /* Blog */
  .blog-featured-content { padding: 25px 20px !important; }
  .blog-card-img-wrap { height: 160px; }

  /* Sitemap */
  .sitemap-card a { font-size: 0.97rem; }

  /* General sections */
  .section-title { font-size: 1.4rem !important; }
  .hp-section, .hp-section-alt { padding: 40px 0 !important; }
}

/* ---- VERY SMALL PHONES (max-width: 380px) ---- */
@media (max-width: 380px) {
  .custom-logo { width: 110px; }
  .legal-page-header h1 { font-size: 1.5rem; }
  .nl-pro-header h1 { font-size: 1.25rem; }
  .nl-pro-iframe-wrapper { height: 50vh; min-height: 300px; }
  .filter-btn { padding: 7px 14px; font-size: 0.82rem; }
  .nl-action-btn { padding: 11px 20px; }
}

/* ---- FLIP BOOK iframe on mobile ---- */
@media (max-width: 767px) {
  iframe[title="Newsletter Viewer"] {
    min-height: 400px;
  }
}

/* ---- FIX: Prevent horizontal overflow on all pages ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe, embed { max-width: 100%; }
table { max-width: 100%; overflow-x: auto; display: block; }

/* ---- FIX: Admin panel responsive improvements ---- */
@media (max-width: 767px) {
  .admin-sidebar { width: 100% !important; }
  .admin-content { margin-left: 0 !important; }
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .btn-group { flex-wrap: wrap; gap: 4px; }
}

/* ---- UTILITIES ---- */
@media (max-width: 575px) {
  .d-xs-none { display: none !important; }
  .text-xs-center { text-align: center !important; }
}
@media (max-width: 767px) {
}

/* ---- TABLET PORTRAIT (768px - 991px) ---- */
@media (max-width: 991px) {
  /* Logo */
  .custom-logo { width: 170px; }

  /* Newsletter viewer */
  .nl-pro-header h1 { font-size: 2rem; }
  .nl-pro-toolbar { flex-direction: column; gap: 15px; align-items: flex-start; }
  .nl-pro-iframe-wrapper { height: 65vh; min-height: 450px; }

  /* Newsletter cards */
  .nl-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .nl-card { padding: 35px 20px 30px; }
  .nl-icon { width: 85px; height: 85px; font-size: 2rem; }
  .nl-title { font-size: 1.3rem; }

  /* Legal pages */
  .legal-page-header { padding: 80px 20px 60px; }
  .legal-page-header h1 { font-size: 2.4rem; }
  .legal-glass-card { padding: 30px; }
  .trust-badge-container { gap: 12px; margin-bottom: 40px; }
  .trust-badge { padding: 10px 18px; font-size: 0.9rem; }

  /* Sitemap */
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Section paddings */
  .hp-section, .hp-section-alt { padding: 60px 0 !important; }

  /* Footer action bar */
  .nl-action-bar { flex-direction: column; text-align: center; gap: 20px; }
}

/* ---- MOBILE LANDSCAPE / LARGE PHONES (576px - 767px) ---- */
@media (max-width: 767px) {
  /* Logo */
  .custom-logo { width: 150px; }

  /* Hero sections */
  .nl-page-hero { padding: 120px 15px 70px; }
  .nl-page-hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
  .nl-page-hero p { font-size: 1rem; }

  /* Newsletter viewer page */
  .nl-pro-header { padding: 40px 15px 30px; }
  .nl-pro-header h1 { font-size: 1.6rem; }
  .nl-pro-header p { font-size: 0.95rem; }
  .nl-pro-viewer-section { padding: 20px 0 50px; }
  .nl-pro-container { padding: 12px; border-radius: 8px; }
  .nl-pro-iframe-wrapper { height: 60vh; min-height: 400px; }
  .nl-pro-toolbar { padding: 15px 5px 0; flex-direction: column; gap: 12px; }
  .nl-pro-meta { flex-direction: column; gap: 8px; font-size: 0.85rem; }
  .nl-btn { padding: 10px 16px; font-size: 0.85rem; width: 100%; justify-content: center; }
  .nl-pro-actions { width: 100%; flex-direction: column; }

  /* Newsletter cards grid */
  .nl-grid { grid-template-columns: 1fr; gap: 20px; }
  .nl-filters { gap: 8px; }
  .filter-btn { padding: 8px 18px; font-size: 0.85rem; }

  /* Legal pages */
  .legal-page-header { padding: 70px 15px 50px; margin-bottom: -30px; }
  .legal-page-header h1 { font-size: 2rem; letter-spacing: -0.5px; }
  .legal-page-header p { font-size: 1rem; }
  .legal-glass-card { padding: 25px 20px; border-radius: 16px; }
  .legal-content h2 { font-size: 1.3rem; }
  .legal-content p, .legal-content li { font-size: 0.97rem; }
  .trust-badge-container { gap: 10px; margin-top: -20px; }
  .trust-badge { padding: 9px 15px; font-size: 0.85rem; }

  /* Sitemap */
  .sitemap-grid { grid-template-columns: 1fr; gap: 16px; }
  .sitemap-card { padding: 20px; }
  .sitemap-card h3 { font-size: 1.2rem; }

  /* General section paddings */
  .section-block, .hp-section, .hp-section-alt { padding: 50px 0 !important; }
  .section-title { font-size: 1.6rem !important; }

  /* Stats */
  .stat-card { padding: 20px 12px; }
  .stat-card .stat-number { font-size: 2.2rem; }

  /* Blog */
  .blog-card-img-wrap { height: 180px; }
  .blog-card-content { padding: 20px; }
  .blog-title { font-size: 1.1rem; }

  /* Contact */
  .contact-section .row { gap: 20px; }

  /* Gallery */
  .gallery-masonry { column-count: 2; column-gap: 1rem; }
}

/* ---- SMALL MOBILE (max-width: 575px) ---- */
@media (max-width: 575px) {
  /* General */
  body { font-size: 15px; }
  .container { padding-left: 16px; padding-right: 16px; }

  /* Logo */
  .custom-logo { width: 130px; }

  /* Newsletter viewer */
  .nl-pro-header h1 { font-size: 1.4rem; }
  .nl-pro-iframe-wrapper { height: 55vh; min-height: 350px; }

  /* Legal page header */
  .legal-page-header { padding: 60px 12px 45px; }
  .legal-page-header h1 { font-size: 1.8rem; }
  .legal-glass-card { padding: 20px 15px; }
  .trust-badge-container { flex-direction: column; align-items: center; }
  .trust-badge { width: 100%; max-width: 280px; justify-content: center; }

  /* Newsletter cards */
  .nl-icon { width: 75px; height: 75px; }
  .nl-title { font-size: 1.2rem; }
  .nl-action-btn { padding: 12px 25px; font-size: 0.9rem; }

  /* Newsletter single hero */
  .nl-single-hero { padding: 120px 15px 60px; }

  /* Hero section */
  .hero-section { padding: 40px 0 30px; }
  .hero-section .hero-tagline { font-size: 1.4rem; }
  .hero-subscribe-form { flex-direction: column; }
  .hero-subscribe-form input[type="email"] { min-width: unset; }

  /* Stats */
  .stat-card .stat-number { font-size: 2rem; }
  .stat-card .stat-icon { font-size: 2rem; }

  /* Testimonials */
  .testimonial-item { padding: 20px 15px; }
  .testimonial-item img { width: 60px; height: 60px; }

  /* Job cards */
  .job-card { padding: 18px; }

  /* Gallery */
  .gallery-masonry { column-count: 1; }
  .gallery-lightbox-close { top: 15px; right: 20px; font-size: 2rem; }

  /* Blog */
  .blog-featured-content { padding: 25px 20px !important; }
  .blog-card-img-wrap { height: 160px; }

  /* Sitemap */
  .sitemap-card a { font-size: 0.97rem; }

  /* General sections */
  .section-title { font-size: 1.4rem !important; }
  .hp-section, .hp-section-alt { padding: 40px 0 !important; }
}

/* ---- VERY SMALL PHONES (max-width: 380px) ---- */
@media (max-width: 380px) {
  .custom-logo { width: 110px; }
  .legal-page-header h1 { font-size: 1.5rem; }
  .nl-pro-header h1 { font-size: 1.25rem; }
  .nl-pro-iframe-wrapper { height: 50vh; min-height: 300px; }
  .filter-btn { padding: 7px 14px; font-size: 0.82rem; }
  .nl-action-btn { padding: 11px 20px; }
}

/* ---- FLIP BOOK iframe on mobile ---- */
@media (max-width: 767px) {
  iframe[title="Newsletter Viewer"] {
    min-height: 400px;
  }
}

/* ---- FIX: Prevent horizontal overflow on all pages ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe, embed { max-width: 100%; }
table { max-width: 100%; overflow-x: auto; display: block; }

/* ---- FIX: Admin panel responsive improvements ---- */
@media (max-width: 767px) {
  .admin-sidebar { width: 100% !important; }
  .admin-content { margin-left: 0 !important; }
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .btn-group { flex-wrap: wrap; gap: 4px; }
}

/* ---- UTILITIES ---- */
@media (max-width: 575px) {
  .d-xs-none { display: none !important; }
  .text-xs-center { text-align: center !important; }
}
@media (max-width: 767px) {
  .d-sm-none { display: none !important; }
}


/* === HERO STATS IN ONE LINE === */
/* === FAQ === styles now fully scoped inside faqs/index.php === */
.hero-stats-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 15px;
  margin-top: 10px;
  padding: 25px 30px;
  border-radius: 20px;
  width: 100%;
}

.hero-stat-item {
  flex: 1;
  text-align: left;
}

.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--pink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .hero-stats-container {
    flex-wrap: wrap;
    gap: 20px;
  }
  .hero-stat-item {
    min-width: calc(50% - 15px);
  }
}
@media (max-width: 576px) {
  .hero-stats-container {
    padding: 20px;
  }
  .hero-stat-item {
    min-width: 100%;
    text-align: center;
  }
}
