/*
 * Theme Name: AP Singh NGO Theme
 * Theme URI: https://dntgroup.in/
 * Description: A professional, modern WordPress theme for NGO websites with Header Builder, Footer Builder, drag-drop customization, responsive design and advanced options.
 * Author: VS Dodiya and VS Panwar / D&T Group
 * Author URI: https://dntgroup.in/
 * Version: 1.0.0
 * License: GNU General Public License v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: swarnim-bharat-manch
 * Domain Path: /languages/
 * Requires at least: 5.0
 * Requires PHP: 7.4
 * Tags: responsive, bootstrap5, ngo, corporate, business, charity, donation, volunteer
 */

/* ==========================================================================
   Global Styles
   ========================================================================== */

:root {
  --primary-color: #1a47b3;
  --secondary-color: #ff6b35;
  --accent-color: #00d4ff;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --border-color: #e0e0e0;
  --background-light: #f8f9fa;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --transition: all 0.3s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #fff;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo img {
  max-height: 60px;
  width: auto;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.main-navigation {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  flex-wrap: nowrap;
}

.main-navigation a {
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--primary-color);
}

.cta-button {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white !important;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-block;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(26, 71, 179, 0.3);
  color: white;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}
/* When slider is active, base hero-section bg is overridden per carousel-item */
.sbm-hero-slider.hero-section {
  background: none;
  padding: 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: drift 6s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: drift-reverse 8s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  animation: slideInUp 0.8s ease;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.95;
  animation: slideInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  animation: slideInUp 0.8s ease 0.4s both;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}

.btn-primary {
  background: var(--sbm-btn-primary-bg, white);
  color: var(--sbm-btn-primary-text, var(--primary-color));
}

.btn-primary:hover {
  background: var(--sbm-btn-primary-hover-bg, var(--primary-color));
  color: var(--sbm-btn-primary-hover-text, white);
  transform: translateY(-2px);
  border-color: transparent;
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background: var(--sbm-btn-secondary-hover-bg, white);
  color: var(--sbm-btn-secondary-hover-text, var(--primary-color));
  border-color: var(--sbm-btn-secondary-hover-bg, white);
}

/* ==========================================================================
   Sections & General Content
   ========================================================================== */

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-section {
  background-color: var(--background-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Cards & Content Boxes
   ========================================================================== */

.card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

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

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

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 25px;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.card-text {
  color: var(--text-light);
  margin-bottom: 15px;
}

.card-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   Stats Counter
   ========================================================================== */

.stats-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 60px 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */

.gallery-section {
  background-color: var(--background-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 71, 179, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  font-size: 2.5rem;
  color: white;
}

/* ==========================================================================
   Blog Section
   ========================================================================== */

.blog-section {
  background-color: white;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.post-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.post-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.post-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-meta {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--secondary-color);
  color: white;
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.post-content {
  padding: 25px;
}

.post-date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.post-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.post-excerpt {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.6;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.read-more:hover {
  gap: 10px;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 30px;
  transition: var(--transition);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.testimonial-text {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}

.author-info .author-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.author-info .author-title {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* BUG FIX: Avatar initials — moved from inline PHP style to proper CSS class.
   Previously inline styles conflicted with the existing .author-avatar rule. */
.author-avatar.sbm-avatar-initials {
  background: linear-gradient(135deg, #1a47b3, #ff6b35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.6);
  line-height: 1;
}

/* Photo avatar */
.author-avatar.sbm-avatar-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

/* Star ratings (were completely missing) */
.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
}
.testimonial-stars .fa-star {
  color: #FFD700;
  font-size: 0.9rem;
}
.testimonial-stars .sbm-star-empty {
  color: rgba(255, 255, 255, 0.3);
}

/* Testimonials empty state */
.sbm-testi-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: rgba(255, 255, 255, 0.45);
}
.sbm-testi-empty .fa-quote-left {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: block;
}
.sbm-testi-empty p {
  margin: 0;
  font-size: 1rem;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */

.projects-section {
  background-color: var(--background-light);
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-status {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--success-color);
  color: white;
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.project-details {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.project-description {
  color: var(--text-light);
  margin-bottom: 15px;
  flex-grow: 1;
}

.project-progress {
  margin-bottom: 15px;
}

.progress-bar {
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
}

/* ==========================================================================
   Forms & Input
   ========================================================================== */

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 71, 179, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */

.submit-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 12px 35px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(26, 71, 179, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 60px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-widget {
  display: flex;
  flex-direction: column;
}

.footer-widget h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-widget.about p {
  line-height: 1.8;
  color: #999;
  margin-bottom: 15px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-icon {
  width: 30px;
  height: 30px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-text {
  color: #999;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-menu {
  display: flex;
  list-style: none;
  gap: 25px;
}

.footer-menu a {
  color: #999;
  transition: var(--transition);
}

.footer-menu a:hover {
  color: white;
}

.copyright {
  color: #666;
  font-size: 0.95rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-20px, -20px);
  }
}

@keyframes drift-reverse {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, 20px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes countUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet Landscape (1024px) */
@media (max-width: 1024px) {
  .container {
    max-width: 960px;
    padding: 0 20px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .hero-section {
    padding: 80px 0;
    min-height: 450px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .section-title h2 {
    font-size: 2.25rem;
  }

  section {
    padding: 60px 0;
  }

  .about-content {
    gap: 40px;
  }

  .about-image img {
    max-height: 350px;
    object-fit: cover;
  }

  .blog-grid,
  .gallery-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number {
    font-size: 2.5rem;
  }

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

  .header-inner {
    padding: 12px 0;
  }

  .site-logo img {
    max-height: 50px;
  }

  .main-navigation {
    gap: 1.5rem;
  }

  .cta-button {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .hero-section {
    padding: 50px 0;
    min-height: 350px;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  section {
    padding: 50px 0;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    max-height: 300px;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    display: none;
    width: 100%;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .main-navigation.active {
    display: flex;
  }

  .main-navigation a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
  }

  .main-navigation a:last-child {
    border-bottom: none;
  }

  .header-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .testimonials-grid,
  .gallery-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-menu {
    flex-direction: column;
    gap: 10px;
  }

  .card-image {
    height: 200px;
  }

  .post-image {
    height: 180px;
  }

  .gallery-item {
    aspect-ratio: 1;
  }

  .stat-item {
    margin-bottom: 30px;
  }

  .stat-item:last-child {
    margin-bottom: 0;
  }
}

/* Large Mobile (576px) */
@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  p {
    font-size: 0.95rem;
  }

  .hero-section {
    padding: 40px 0;
    min-height: 300px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  section {
    padding: 40px 0;
  }

  .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .card-body {
    padding: 20px;
  }

  .card-title {
    font-size: 1.15rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  .post-content {
    padding: 20px;
  }

  .post-date {
    font-size: 0.85rem;
  }

  .footer-content {
    padding: 40px 0 20px;
  }

  .footer-widget h4 {
    font-size: 1.2rem;
  }

  .footer-widget ul li a {
    font-size: 0.9rem;
  }

  .site-logo img {
    max-height: 40px;
  }

  .site-title {
    font-size: 1.25rem;
  }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-section {
    min-height: 280px;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 12px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .card-image {
    height: 180px;
  }

  .post-image {
    height: 150px;
  }

  .gallery-item {
    min-height: 200px;
  }

  .footer-bottom {
    padding: 20px 0;
    font-size: 0.85rem;
  }
}

/* Extra Small Mobile (360px) */
@media (max-width: 360px) {
  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .hero-title {
    font-size: 1.35rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .section-title h2 {
    font-size: 1.35rem;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }
}

  .card {
    margin-bottom: 20px;
  }

  .post-card,
  .project-card,
  .testimonial-card {
    margin-bottom: 20px;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-light);
}

.mt-5 {
  margin-top: 50px;
}

.mb-5 {
  margin-bottom: 50px;
}

.mt-3 {
  margin-top: 30px;
}

.mb-3 {
  margin-bottom: 30px;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* ==========================================================================
   WordPress Default Classes
   ========================================================================== */

.wp-caption {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 20px;
}

.alignleft {
  float: left;
  margin-right: 20px;
  margin-bottom: 20px;
}

.alignright {
  float: right;
  margin-left: 20px;
  margin-bottom: 20px;
}

.aligncenter {
  text-align: center;
  margin: 20px 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

/* ==========================================================================
   Loading & Transitions
   ========================================================================== */

.spinner {
  display: inline-block;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.row {
  margin-left: 0;
  margin-right: 0;
}


/* ══════════════════════════════════════════════════════════
   Hero Slider — all styles (added v2.5)
   ══════════════════════════════════════════════════════════ */

/* Base slider wrapper */
.sbm-hero-slider {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.sbm-hero-slider .carousel,
.sbm-hero-slider .carousel-inner {
  width: 100%;
  min-height: inherit;
}
.sbm-hero-slider .carousel-item {
  min-height: inherit;
}

/* ── Hide Gradient Background ── */
.sbm-hero-no-gradient.sbm-hero-style-gradient .carousel-item {
  background: #1a1a2e;
}
.sbm-hero-no-gradient .hero-section,
.sbm-hero-no-gradient.hero-section {
  background: none !important;
}
.sbm-hero-no-gradient .carousel-item::before {
  display: none;
}

/* ── Image Crop Shapes (clip-path on image col) ── */

/* Diagonal cut — screenshot jaisa */
.sbm-img-shape-diagonal .sbm-slide-img-col {
  clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.sbm-img-side-left .sbm-img-shape-diagonal .sbm-slide-img-col {
  clip-path: polygon(0% 0%, 100% 0%, 92% 100%, 0% 100%);
}

/* Wave cut */
.sbm-img-shape-wave .sbm-slide-img-col {
  -webkit-clip-path: polygon(6% 0%,100% 0%,100% 100%,2% 100%,0% 75%,4% 50%,0% 25%);
  clip-path:         polygon(6% 0%,100% 0%,100% 100%,2% 100%,0% 75%,4% 50%,0% 25%);
}

/* Arch / Rounded */
.sbm-img-shape-arch .sbm-slide-img-col {
  border-radius: 40% 0 0 40% / 50% 0 0 50%;
  overflow: hidden;
}

/* Zigzag */
.sbm-img-shape-zigzag .sbm-slide-img-col {
  -webkit-clip-path: polygon(8% 0%,100% 0%,100% 100%,0% 100%,4% 87%,8% 75%,0% 62%,4% 50%,8% 37%,0% 25%,4% 12%);
  clip-path:         polygon(8% 0%,100% 0%,100% 100%,0% 100%,4% 87%,8% 75%,0% 62%,4% 50%,8% 37%,0% 25%,4% 12%);
}

/* ── Torn Paper Effect ── */
/*
  Dono sides se torn/ragged cut dikhta hai — left aur right edges par.
  Image responsive rehti hai — sirf edges par torn look aata hai.
  SVG filter approach: image ke upar pseudo-elements se torn border overlay.
*/
.sbm-img-shape-torn .sbm-slide-img-col {
  position: relative;
  overflow: visible !important; /* allow pseudo to overflow */
}
.sbm-img-shape-torn .sbm-slide-img-col .sbm-slide-crop-img {
  -webkit-clip-path: polygon(
    /* Left torn edge — inward jagged points */
    0%   0%,
    3%   3%,  1%   6%,  4%   9%,  1%  12%,
    3%  15%,  0%  18%,  2%  21%,  4%  24%,
    1%  27%,  3%  30%,  0%  33%,  2%  36%,
    4%  39%,  1%  42%,  3%  45%,  0%  48%,
    2%  51%,  4%  54%,  1%  57%,  3%  60%,
    0%  63%,  2%  66%,  4%  69%,  1%  72%,
    3%  75%,  0%  78%,  2%  81%,  4%  84%,
    1%  87%,  3%  90%,  0%  93%,  2%  96%,
    0% 100%,
    /* Right torn edge */
   100% 100%,
    97%  97%,  99%  94%,  96%  91%,  99%  88%,
    97%  85%, 100%  82%,  98%  79%,  96%  76%,
    99%  73%,  97%  70%, 100%  67%,  98%  64%,
    96%  61%,  99%  58%,  97%  55%, 100%  52%,
    98%  49%,  96%  46%,  99%  43%,  97%  40%,
   100%  37%,  98%  34%,  96%  31%,  99%  28%,
    97%  25%, 100%  22%,  98%  19%,  96%  16%,
    99%  13%,  97%  10%, 100%   7%,  98%   4%,
   100%   0%
  );
  clip-path: polygon(
    0%   0%,
    3%   3%,  1%   6%,  4%   9%,  1%  12%,
    3%  15%,  0%  18%,  2%  21%,  4%  24%,
    1%  27%,  3%  30%,  0%  33%,  2%  36%,
    4%  39%,  1%  42%,  3%  45%,  0%  48%,
    2%  51%,  4%  54%,  1%  57%,  3%  60%,
    0%  63%,  2%  66%,  4%  69%,  1%  72%,
    3%  75%,  0%  78%,  2%  81%,  4%  84%,
    1%  87%,  3%  90%,  0%  93%,  2%  96%,
    0% 100%,
   100% 100%,
    97%  97%,  99%  94%,  96%  91%,  99%  88%,
    97%  85%, 100%  82%,  98%  79%,  96%  76%,
    99%  73%,  97%  70%, 100%  67%,  98%  64%,
    96%  61%,  99%  58%,  97%  55%, 100%  52%,
    98%  49%,  96%  46%,  99%  43%,  97%  40%,
   100%  37%,  98%  34%,  96%  31%,  99%  28%,
    97%  25%, 100%  22%,  98%  19%,  96%  16%,
    99%  13%,  97%  10%, 100%   7%,  98%   4%,
   100%   0%
  );
  /* Subtle shadow to enhance torn depth */
  filter: drop-shadow(-4px 0 6px rgba(0,0,0,0.30)) drop-shadow(4px 0 6px rgba(0,0,0,0.25));
}

/* Mobile: torn effect sirf vertical nahi, image full width pe gracefully degrade */
@media (max-width: 767px) {
  .sbm-img-shape-torn .sbm-slide-img-col .sbm-slide-crop-img {
    -webkit-clip-path: polygon(
      0% 0%, 2% 5%, 0% 10%, 2% 15%, 0% 20%,
      2% 25%, 0% 30%, 2% 35%, 0% 40%, 2% 45%,
      0% 50%, 2% 55%, 0% 60%, 2% 65%, 0% 70%,
      2% 75%, 0% 80%, 2% 85%, 0% 90%, 2% 95%,
      0% 100%, 100% 100%,
      98% 95%, 100% 90%, 98% 85%, 100% 80%,
      98% 75%, 100% 70%, 98% 65%, 100% 60%,
      98% 55%, 100% 50%, 98% 45%, 100% 40%,
      98% 35%, 100% 30%, 98% 25%, 100% 20%,
      98% 15%, 100% 10%, 98%  5%, 100%  0%
    );
    clip-path: polygon(
      0% 0%, 2% 5%, 0% 10%, 2% 15%, 0% 20%,
      2% 25%, 0% 30%, 2% 35%, 0% 40%, 2% 45%,
      0% 50%, 2% 55%, 0% 60%, 2% 65%, 0% 70%,
      2% 75%, 0% 80%, 2% 85%, 0% 90%, 2% 95%,
      0% 100%, 100% 100%,
      98% 95%, 100% 90%, 98% 85%, 100% 80%,
      98% 75%, 100% 70%, 98% 65%, 100% 60%,
      98% 55%, 100% 50%, 98% 45%, 100% 40%,
      98% 35%, 100% 30%, 98% 25%, 100% 20%,
      98% 15%, 100% 10%, 98%  5%, 100%  0%
    );
    filter: drop-shadow(0 -4px 6px rgba(0,0,0,0.25)) drop-shadow(0 4px 6px rgba(0,0,0,0.20));
  }
}

/* ── Title Styles ── */

/* Highlighted — colored bg behind text, screenshot jaisa blue block */
.sbm-title-style-highlight .hero-title {
  display: inline;
  background: var(--primary-color, #1a47b3);
  color: #fff !important;
  padding: 4px 14px 6px;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  line-height: 1.5;
  text-shadow: none;
}

/* Outline / stroke */
.sbm-title-style-outline .hero-title {
  color: transparent !important;
  -webkit-text-stroke: 2px #fff;
  text-stroke: 2px #fff;
  text-shadow: none;
}

/* Deep shadow */
.sbm-title-style-shadow .hero-title {
  text-shadow: 3px 3px 0 rgba(0,0,0,0.5), 6px 6px 20px rgba(0,0,0,0.4);
}

/* Gradient fill text */
.sbm-title-style-gradient-text .hero-title {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* Badge — pill background */
.sbm-title-style-badge .hero-title {
  display: inline-block;
  background: var(--secondary-color, #ff6b35);
  color: #fff !important;
  padding: 8px 28px;
  border-radius: 50px;
  text-shadow: none;
}

/* ── Subtitle Styles ── */

/* Italic */
.sbm-sub-style-italic .hero-subtitle {
  font-style: italic;
}

/* Left border accent */
.sbm-sub-style-bordered .hero-subtitle {
  border-left: 4px solid var(--secondary-color, #ff6b35);
  padding-left: 14px;
  font-style: normal;
}

/* Capsule tag */
.sbm-sub-style-capsule .hero-subtitle {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 5px 18px;
  border-radius: 50px;
  font-size: 1rem;
}

/* ── Button Styles ── */

/* Square / sharp */
.sbm-btn-style-square .hero-buttons .btn {
  border-radius: 4px !important;
}

/* Outline / ghost */
.sbm-btn-style-outline .hero-buttons .btn {
  background: transparent !important;
  border: 2px solid #fff !important;
  color: #fff !important;
}
.sbm-btn-style-outline .hero-buttons .btn:hover {
  background: rgba(255,255,255,0.15) !important;
}

/* Solid with shadow */
.sbm-btn-style-shadow .hero-buttons .btn {
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transform: translateY(0);
  transition: transform 0.2s, box-shadow 0.2s;
}
.sbm-btn-style-shadow .hero-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}

/* Underline only */
.sbm-btn-style-underline .hero-buttons .btn {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid #fff !important;
  border-radius: 0 !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
  color: #fff !important;
}

/* ── Style: Gradient (default) ── */
.sbm-hero-style-gradient .carousel-item {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* ── Style: Full Image Cover ── */
.sbm-hero-style-image-cover .carousel-item {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* ── Style: Image with Dark Overlay ── */
.sbm-hero-style-overlay .carousel-item {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.sbm-hero-style-overlay .carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 0;
}
.sbm-hero-style-overlay .hero-content {
  position: relative;
  z-index: 1;
}

/* ── Style: Image with Light Overlay ── */
.sbm-hero-style-overlay-light .carousel-item {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.sbm-hero-style-overlay-light .carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  z-index: 0;
}
.sbm-hero-style-overlay-light .hero-content {
  position: relative;
  z-index: 1;
  color: #1a1a1a;
}
.sbm-hero-style-overlay-light .hero-title  { color: #111; text-shadow: none; }
.sbm-hero-style-overlay-light .hero-subtitle { color: #444; }

/* ── Style: Image + Text Side by Side (crop style) ── */
.sbm-hero-style-image-crop .carousel-item {
  background: var(--primary-color);
}

/* ── Style: Split Color — colored text panel + image ── */
.sbm-hero-style-split-color .carousel-item {
  background: transparent;
}
.sbm-hero-style-split-color .sbm-slide-text-col {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
.sbm-hero-style-split-color .sbm-slide-img-col {
  background: #f0f0f0;
}
.sbm-slide-crop-wrap {
  display: flex;
  width: 100%;
  min-height: inherit;
  align-items: stretch;
}
.sbm-slide-img-col {
  flex: 0 0 50%;
  max-width: 50%;
  overflow: hidden;
  position: relative;
}
.sbm-slide-crop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.sbm-slide-text-col {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3.5rem;
  color: #fff;
}

/* ── Content Alignment ── */
.sbm-hero-align-left  .hero-content,
.sbm-hero-align-left  .sbm-slide-text-col { text-align: left;   align-items: flex-start; }
.sbm-hero-align-center .hero-content,
.sbm-hero-align-center .sbm-slide-text-col { text-align: center; align-items: center; }
.sbm-hero-align-right  .hero-content,
.sbm-hero-align-right  .sbm-slide-text-col { text-align: right;  align-items: flex-end; }

.sbm-hero-align-center .hero-buttons,
.sbm-hero-align-right  .hero-buttons { justify-content: center; }
.sbm-hero-align-right  .hero-buttons { justify-content: flex-end; }

/* ── Carousel indicators custom style ── */
.sbm-hero-slider .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  background: transparent;
  opacity: 1;
  transition: background 0.3s;
}
.sbm-hero-slider .carousel-indicators .active {
  background: #fff;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .sbm-slide-crop-wrap { flex-direction: column; }
  .sbm-slide-img-col,
  .sbm-slide-text-col  { flex: 0 0 100%; max-width: 100%; }
  .sbm-slide-img-col   { max-height: 220px; }
  .sbm-slide-text-col  { padding: 2rem 1.5rem; }
  .sbm-hero-align-center .hero-buttons,
  .sbm-hero-align-right  .hero-buttons { justify-content: flex-start; }
}
