/* Custom Tech Theme main CSS (Light) */
html, body {
  font-family: "Merriweather", serif;
}
body {
  background-color: #ffffff;
  color: #212529;
}

/* Header Weather Widget */
.ctt-weather-widget {
  min-width: 120px;
}

.ctt-weather-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.ctt-weather-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.ctt-weather-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.ctt-weather-temp {
  font-size: 1.1rem;
  line-height: 1.2;
  color: #2c3e50;
  font-weight: 600;
}

.ctt-weather-desc {
  font-size: 0.7rem;
  text-transform: capitalize;
  line-height: 1;
  color: #6c757d;
  font-weight: 500;
}

/* Header Date Section */
.ctt-date-section {
  min-width: 140px;
  padding-left: 15px;
}

.ctt-date-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 1px solid #5a67d8;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  color: white;
  text-align: center;
}

.ctt-date-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

.ctt-current-date {
  font-size: 1rem;
  line-height: 1.2;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.ctt-current-day {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #e2e8f0;
  font-weight: 500;
}

/* Logo centering adjustments */
.navbar-brand img,
.ctt-theme-logo {
  max-height: 50px;
  width: auto;
}

/* Subscription Form CSS for Contact Form 7 */

/* Main form wrapper */
.sp-form-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Email field container */
.sp-email-field {
    margin: 0 0 15px 0;
    padding: 0;
}

/* Submit field container */
.sp-submit-field {
    margin: 0;
    padding: 0;
}

/* Email input styling */
.sp-form-wrapper .sp-email {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Merriweather', serif;
    background: #ffffff;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
}

/* Email input focus state */
.sp-form-wrapper .sp-email:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    background: #fafbfc;
}

/* Email input placeholder */
.sp-form-wrapper .sp-email::placeholder {
    color: #999;
    font-style: italic;
}

/* Submit button styling */
.sp-form-wrapper .sp-submit {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Merriweather', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

/* Submit button hover state */
.sp-form-wrapper .sp-submit:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* Submit button active state */
.sp-form-wrapper .sp-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.2);
}

/* Contact Form 7 validation errors */
.sp-form-wrapper .wpcf7-not-valid {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1) !important;
}

/* Contact Form 7 validation error messages */
.sp-form-wrapper .wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

/* Contact Form 7 response messages */
.sp-form-wrapper .wpcf7-response-output {
    margin: 15px 0 0 0;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* Success message */
.sp-form-wrapper .wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    animation: sp-success-bounce 0.6s ease-out;
}

/* Error messages */
.sp-form-wrapper .wpcf7-validation-errors,
.sp-form-wrapper .wpcf7-mail-sent-ng {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading state for submit button */
.sp-form-wrapper .wpcf7-form.submitting .sp-submit {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
    color: transparent;
}

.sp-form-wrapper .wpcf7-form.submitting .sp-submit:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: sp-spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes sp-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes sp-success-bounce {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Remove default Contact Form 7 styles that might conflict */
.sp-form-wrapper .wpcf7-form p {
    margin-top: 0;
    margin-bottom: 0;
}

.sp-form-wrapper .wpcf7-form {
    margin: 0;
    padding: 0;
}

/* Responsive adjustments for subscription form */
@media (max-width: 767px) {
  .sp-form-wrapper .sp-email,
  .sp-form-wrapper .sp-submit {
    padding: 14px 18px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .sp-email-field {
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .sp-form-wrapper .sp-email,
  .sp-form-wrapper .sp-submit {
    padding: 12px 15px;
    border-radius: 8px;
  }
  
  .sp-form-wrapper .sp-submit {
    font-size: 15px;
    letter-spacing: 0.3px;
  }
  
  .sp-email-field {
    margin-bottom: 10px;
  }
}

/* Responsive adjustments for header */
@media (max-width: 767px) {
  .ctt-weather-widget {
    min-width: auto;
    margin-bottom: 10px;
  }
  
  .ctt-weather-card {
    padding: 6px 10px;
    border-radius: 8px;
  }
  
  .ctt-weather-icon {
    font-size: 1.2rem;
  }
  
  .ctt-weather-temp {
    font-size: 1rem;
  }
  
  .ctt-weather-desc {
    font-size: 0.65rem;
  }
  
  .ctt-date-section {
    min-width: auto;
    padding-left: 0;
    margin-top: 10px;
  }
  
  .ctt-date-card {
    padding: 10px 14px;
    border-radius: 8px;
  }
  
  .ctt-current-date {
    font-size: 0.9rem;
    margin-bottom: 3px;
  }
  
  .ctt-current-day {
    font-size: 0.7rem;
    letter-spacing: 0.6px;
  }
  
  .navbar-brand img,
  .ctt-theme-logo {
    max-height: 40px;
  }
  
  .navbar-brand .fs-3 {
    font-size: 1.5rem !important;
  }
}

a { color: #242424; }
a:hover { color: #1c2027; }

.leftbox a,.rightbox a{
  font-weight: bold;
  font-size: 1.2rem;
  text-align: left;
  display: block;
}
p{
  color:#35373a;
}
.leftbox p, .rightbox p {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  text-align: justify;
  margin-top: 10px;
  margin-bottom: 10px !important;
  color:#35373a;
}
.leftbox .img-fluid {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
}
.featurebox h2{
 text-align:center;
}
.featurebox p{
 text-align:justify;
}
/* Primary nav underline active style */
.ctt-primary-nav .nav-link {
  position: relative;
  padding: .75rem 1rem;
  color: #212529;
}
.ctt-primary-nav .nav-link:hover,
.ctt-primary-nav .nav-link:focus {
  color: #e42447;
}
.ctt-primary-nav .nav-link.active {
  color: #e42447;
}
.ctt-primary-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background-color: #e42447;
}
.homepage-featured-post .small{
  color: #e42447 !important;
}

.card, .widget, .entry-content, .entry-excerpt {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  padding: 1rem;
}

footer a { color: #495057; }
footer a:hover { color: #0d6efd; }

/* Footer - Clean modern layout */
.site-footer { 
  background-color: #f8f9fa !important;
  border-top: 1px solid #dee2e6;
  padding: 1.5rem 0;
}

.site-footer .footer-brand img { 
  max-height: 32px; 
  width: auto; 
}

.site-footer .footer-nav-links {
  margin: 0;
  padding: 0;
}
.site-footer .footer-nav-links li {
  margin-bottom: 0;
}
.site-footer .footer-nav-links a {
  color: #212529;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.site-footer .footer-nav-links a:hover {
  color: #0d6efd;
  text-decoration: underline;
}

.site-footer .footer-social-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-footer .footer-social-section a { 
  color: #6c757d; 
  font-size: 1.1rem;
  transition: color 0.2s ease;
}
.site-footer .footer-social-section a:hover { 
  color: #212529; 
}

/* Footer Edition and Language Dropdowns */
.footer-edition-language {
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  padding: 15px 0;
  margin: 20px 0;
}

.footer-dropdown .btn {
  border-color: #6c757d;
  font-size: 14px;
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-dropdown .btn:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #ffffff;
}

.footer-dropdown .btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

.footer-dropdown .dropdown-menu {
  border: 1px solid #e9ecef;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
  padding: 0.5rem 0;
  min-width: 150px;
}

.footer-dropdown .dropdown-item {
  padding: 8px 16px;
  font-size: 14px;
  color: #495057;
  transition: all 0.2s ease;
}

.footer-dropdown .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #212529;
}

.footer-dropdown .dropdown-item.active {
  background-color: #0d6efd;
  color: #ffffff;
  font-weight: 600;
}

.footer-dropdown .dropdown-item.active:hover {
  background-color: #0b5ed7;
  color: #ffffff;
}

.footer-dropdown .dropdown-item i {
  color: #6c757d;
  width: 16px;
}

.footer-dropdown .dropdown-item.active i {
  color: #ffffff;
}

/* Responsive footer dropdowns */
@media (max-width: 576px) {
  .footer-edition-language .d-flex {
    flex-direction: column;
    gap: 10px !important;
  }
  
  .footer-dropdown .btn {
    width: 100%;
    justify-content: center;
  }
}

.site-footer .footer-legal-nav a {
  color: #6c757d;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}
.site-footer .footer-legal-nav a:hover {
  color: #212529;
  text-decoration: underline;
}

.site-footer .footer-copyright {
  border-top: 1px solid #dee2e6;
  padding-top: 1rem;
  margin-top: 1rem;
}
.site-footer .footer-copyright a {
  color: #6c757d;
}
.site-footer .footer-copyright a:hover {
  color: #212529;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .site-footer .footer-nav-links {
    gap: 1rem !important;
  }
  .site-footer .footer-nav-links a {
    font-size: 0.9rem;
  }
  .site-footer .footer-social-section {
    justify-content: flex-start;
    margin-top: 0.5rem;
  }
  .site-footer .footer-legal-nav ul {
    gap: 1rem !important;
  }
}

.homepage-ad .ad-box {
  width: 100%;
  max-width: 970px;
  height: 250px;
  border: 1px solid #ddd;
  border-radius: .25rem;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #6c757d;
  background: #fff;
  border-left: 0 !important;
  border-right: 0 !important;
}

.ad-slot {
  border-left: 0 ;
  border-right: 0;
  border-top: 1px solid #363434;
  border-bottom: 1px solid #363434;
}
.homepage-latest-slider h3{
  font-size: 1rem;
  text-align: center;
  line-height: 1.5rem;
}
.categoryname{
  font-size: 0.8rem;
}

.custom-border{
  border-top: 1px solid #363434;
  border-bottom: 1px solid #363434;
}

/* Two-up feature sections (Business and Category) */
.homepage-business .section-head,
.homepage-category-two .section-head {
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: uppercase;
    color:#e42447;
}
.homepage-business .chevron,
.homepage-category-two .chevron { font-weight: 700; }

@media (max-width: 576px) {
  .homepage-latest-slider h3 { text-align: left; }
}

.homepage-category-two h3{
  text-align:center;
}
.homepage-category-two  p {
  font-size: 14px;
  line-height: 25px;
  text-align: justify;
}

/* Posts and Ads Section */
.homepage-posts-ads .section-head {
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: uppercase;
     color:#e42447;
}
.homepage-posts-ads .chevron { 
  font-weight: 700; 
}

.posts-card h3 a {
  color: #242424;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  display: block;
}
.posts-card h3 a:hover {
  color: #1c2027;
}
.posts-card p {
  font-size: 14px;
  line-height: 20px;
  text-align: justify;
}

/* Ads Sidebar */
.ads-sidebar .ad-block {
  position: relative;
}
.ads-sidebar .ad-placeholder {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #6c757d;
}
.ad-block:last-child .ad-placeholder {
  min-height: 400px;
}

@media (max-width: 991px) {
  .ads-sidebar {
    margin-top: 2rem;
  }
  .ads-sidebar .ad-block {
    margin-bottom: 1rem !important;
  }
  .ad-block:last-child .ad-placeholder {
    min-height: 200px;
  }
}
.navbar{
  padding:0;
}

/* Sticky header styling - simplified to prevent flickering */
.site-header.sticky-top {
  z-index: 1030;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  /* Remove all transitions to prevent flickering */
  transition: none;
  /* Ensure stable positioning */
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Enhanced sticky header with scroll effect */
.site-header.sticky-top.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hide navbar when scrolled */
.site-header.sticky-top.scrolled .navbar {
  display: none !important;
}

/* Remove padding from border-bottom when scrolled - prevent flickering */
.site-header.sticky-top.scrolled .border-bottom:first-child {
  border-bottom: 1px solid #e9ecef !important;
  padding: 0 !important;
}

/* Compact header styling when scrolled - prevent flickering */
.site-header.sticky-top.scrolled .container {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Remove transitions from utility bar to prevent flickering */
.site-header .border-bottom:first-child {
  transition: none;
}

.site-header .container {
  transition: none;
}

/* Only transition shadow for smooth effect */
.site-header.sticky-top {
  transition: box-shadow 0.3s ease;
}

/* Smooth transition for navbar hiding */
.navbar {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  opacity: 1;
}

.site-header.sticky-top.scrolled .navbar {
  transform: translateY(-100%);
  opacity: 0;
  display: none !important;
}

/* Ensure mobile menu button is still visible when navbar is hidden */
.site-header.sticky-top.scrolled .btn-mobile-menu {
  display: block !important;
}

/* Hide mobile menu button on desktop when navbar is hidden */
@media (min-width: 992px) {
  .site-header.sticky-top.scrolled .btn-mobile-menu {
    display: none !important;
  }
}

/* Center navbar menu items */
.navbar .navbar-nav {
  margin: 0 auto;
  justify-content: center;
  flex: 1;
}

.navbar .navbar-collapse {
  justify-content: center;
  flex: 1;
}

.navbar .ctt-primary-nav {
  justify-content: center;
  width: 100%;
}

.navbar .ctt-primary-nav .nav-item {
  margin: 0 0.75rem;
}

.navbar .ctt-primary-nav .nav-link {
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  color: #212529;
  position: relative;
  padding: 0.75rem 0;
}

.navbar .ctt-primary-nav .nav-link:hover {
  color: #e42447;
}

.navbar .ctt-primary-nav .nav-link.active {
  color: #e42447;
  font-weight: 700;
}

.navbar .ctt-primary-nav .nav-link.active::after {
  width: 100%;
}

/* Mobile menu button */
.btn-mobile-menu {
  background: none;
  border: none;
  color: #6c757d;
  padding: 0.5rem;
  font-size: 1.2rem;
  transition: color 0.2s ease;
  border-radius: 0.375rem;
}

.btn-mobile-menu:hover {
  color: #e42447;
  background-color: #f8f9fa;
}

.btn-mobile-menu:focus {
  box-shadow: 0 0 0 0.2rem rgba(228, 36, 71, 0.25);
  color: #e42447;
}

/* Offcanvas styling */
.offcanvas {
  width: 300px !important;
  height: 100vh !important;
  border-right: 1px solid #e9ecef;
}

.offcanvas-header {
  border-bottom: 1px solid #e9ecef;
  padding: 1.5rem 1rem 1rem;
}

.offcanvas-title {
  margin: 0;
  font-size: 1.25rem;
}

.offcanvas-body {
  padding: 1rem;
  height: calc(100vh - 80px); /* Subtract header height */
  overflow-y: auto;
}

/* Mobile navigation */
.mobile-nav-list {
  margin: 0;
  padding: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid #f8f9fa;
}

.mobile-nav-item:last-child {
  border-bottom: none;
}

.mobile-nav-link {
  color: #212529;
  font-weight: 500;
  padding: 0.75rem 0;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: #e42447;
}

.mobile-nav-link.active {
  color: #e42447;
  font-weight: 600;
}

.mobile-submenu-icon {
  font-size: 0.875rem;
  transition: transform 0.2s ease;
}

.mobile-nav-link[aria-expanded="true"] .mobile-submenu-icon {
  transform: rotate(180deg);
}

.mobile-submenu {
  background-color: #f8f9fa;
  border-radius: 0.375rem;
  margin: 0.5rem 0;
  padding: 0.5rem 0 !important;
}

.mobile-submenu .mobile-nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 400;
}

/* Mobile search */
.mobile-search-form .form-control {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem 0 0 0.375rem;
  font-size: 0.9rem;
}

.mobile-search-form .form-control:focus {
  border-color: #e42447;
  box-shadow: 0 0 0 0.2rem rgba(228, 36, 71, 0.25);
}

.btn-mobile-search {
  background-color: #e42447;
  border: 1px solid #e42447;
  color: #fff;
  border-radius: 0 0.375rem 0.375rem 0;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
}

.btn-mobile-search:hover {
  background-color: #c91e3a;
  border-color: #c91e3a;
  color: #fff;
}

/* Mobile social links */
.mobile-social-link {
  color: #6c757d;
  font-size: 1.2rem;
  transition: color 0.2s ease;
  text-decoration: none;
}

.mobile-social-link:hover {
  color: #e42447;
}

/* Offcanvas backdrop */
.offcanvas-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
  .offcanvas {
    width: 280px !important;
    height: 100vh !important;
  }
  
  .offcanvas-header {
    padding: 1rem 0.75rem 0.75rem;
  }
  
  .offcanvas-body {
    padding: 0.75rem;
    height: calc(100vh - 70px); /* Adjust for smaller header on mobile */
    overflow-y: auto;
  }
  
  .mobile-nav-link {
    padding: 0.5rem 0;
    font-size: 0.9rem;
  }
}

/* Search button styling */
.btn-search {
  background: none;
  border: none;
  color: #6c757d;
  padding: 0.5rem;
  font-size: 1.1rem;
  transition: color 0.2s ease;
  border-radius: 0.375rem;
}

.btn-search:hover {
  color: #e42447;
  background-color: #f8f9fa;
}

.btn-search:focus {
  box-shadow: 0 0 0 0.2rem rgba(228, 36, 71, 0.25);
  color: #e42447;
}

/* Search form styling */
.search-form {
  margin: 0;
}

.search-form .form-control {
  border: 2px solid #dee2e6;
  border-radius: 0.375rem 0 0 0.375rem;
  font-size: 1rem;
  padding: 0.75rem 1rem;
}

.search-form .form-control:focus {
  border-color: #e42447;
  box-shadow: 0 0 0 0.2rem rgba(228, 36, 71, 0.25);
}

.btn-search-submit {
  background-color: #e42447;
  border: 2px solid #e42447;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0.375rem 0.375rem 0;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-search-submit:hover {
  background-color: #c91e3a;
  border-color: #c91e3a;
  color: #fff;
}

.btn-search-submit:focus {
  box-shadow: 0 0 0 0.2rem rgba(228, 36, 71, 0.25);
}

/* Search form collapse animation */
#searchForm.collapsing {
  transition: height 0.3s ease;
}

#searchForm.show {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subscribe button styling */
.btn-subscribe {
  background-color: #e42447;
  color: #fff;
  border: none;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease;
}
.btn-subscribe:hover {
  background-color: #c91e3a;
  color: #fff;
  text-decoration: none;
}


/* GTranslate Integration Styling */
.gtranslate-wrapper {
  display: inline-block;
}

/* Style GTranslate dropdown to match theme */
.gtranslate-wrapper select,
.gtranslate-wrapper .gt_selector {
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: #495057;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
  font-family: inherit;
}

.gtranslate-wrapper select:hover,
.gtranslate-wrapper .gt_selector:hover {
  border-color: #e42447;
  box-shadow: 0 0 0 0.2rem rgba(228, 36, 71, 0.25);
}

.gtranslate-wrapper select:focus,
.gtranslate-wrapper .gt_selector:focus {
  border-color: #e42447;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(228, 36, 71, 0.25);
}

/* Hide GTranslate branding in free version */
.gtranslate-wrapper .powered_by {
  display: none !important;
}

/* Style GTranslate flags */
.gtranslate-wrapper img {
  max-height: 16px;
  margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .gtranslate-wrapper {
    margin-top: 0.5rem;
    order: 3;
  }
  
  .gtranslate-wrapper select,
  .gtranslate-wrapper .gt_selector {
    min-width: 100px;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Page Content Styling */
.page-content {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin-top: 2rem;
}

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

.page-title {
  color: #212529;
  margin-bottom: 0;
}

.page-content .entry-content {
  font-size: 1rem;
  line-height: 1.7;
  color: #495057;
}

.page-content .entry-content h1,
.page-content .entry-content h2,
.page-content .entry-content h3,
.page-content .entry-content h4,
.page-content .entry-content h5,
.page-content .entry-content h6 {
  color: #212529;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.page-content .entry-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.page-content .entry-content ul,
.page-content .entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.page-content .entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.page-content .entry-content strong {
  font-weight: 600;
  color: #212529;
}

/* Contact Form 7 Styling */
.contact-form-wrapper {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  margin: 2rem 0;
  border: 1px solid #e9ecef;
}

.contact-form-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f8f9fa;
}

.contact-form-header h2 {
  color: #212529;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-form-header p {
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Contact Form 7 Form Fields */
.wpcf7-form {
  margin: 0;
}

.wpcf7-form p {
  margin-bottom: 1.5rem;
}

.wpcf7-form label {
  display: block;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: 'Merriweather', serif;
  background-color: #fff;
  color: #495057;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  border-color: #e42447;
  box-shadow: 0 0 0 0.2rem rgba(228, 36, 71, 0.15);
  outline: none;
  background-color: #fefefe;
}

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

/* Submit Button */
.wpcf7-form input[type="submit"] {
  background: linear-gradient(135deg, #e42447 0%, #c91e3a 100%);
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Merriweather', serif;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(228, 36, 71, 0.3);
  width: auto;
  margin: 0 auto;
  display: block;
}

.wpcf7-form input[type="submit"]:hover {
  background: linear-gradient(135deg, #c91e3a 0%, #a01729 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(228, 36, 71, 0.4);
}

.wpcf7-form input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(228, 36, 71, 0.3);
}

/* Form Validation */
.wpcf7-form .wpcf7-not-valid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15) !important;
  background-color: #fff5f5 !important;
}

.wpcf7-form .wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
  font-weight: 500;
}

/* Response Messages */
.wpcf7-form .wpcf7-response-output {
  margin: 1.5rem 0 0 0;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border: none;
}

.wpcf7-form .wpcf7-mail-sent-ok {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 1px solid #c3e6cb;
  animation: successPulse 0.6s ease-out;
}

.wpcf7-form .wpcf7-validation-errors,
.wpcf7-form .wpcf7-mail-sent-ng {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.wpcf7-form .wpcf7-spam-blocked {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* Loading State */
.wpcf7-form.submitting input[type="submit"] {
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
  color: transparent;
}

.wpcf7-form.submitting input[type="submit"]:after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes successPulse {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Form Grid Layout */
.contact-form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-form-col {
  flex: 1;
}

.contact-form-col p {
  margin-bottom: 0;
}

/* Contact Info Section */
.contact-info-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 0.75rem;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid #dee2e6;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-info-item {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.contact-info-item:hover {
  transform: translateY(-2px);
}

.contact-info-item .icon {
  font-size: 2.5rem;
  color: #e42447;
  margin-bottom: 1rem;
}

.contact-info-item h4 {
  color: #212529;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-info-item p {
  color: #6c757d;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Contact Page Header */
.contact-page-header {
  padding: 3rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 1rem;
  margin-bottom: 3rem;
  border: 1px solid #dee2e6;
}

/* Additional Contact Options */
.contact-additional-options {
  margin: 3rem 0;
}

.contact-option-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-option-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #e42447;
}

.contact-option-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #e42447 0%, #c91e3a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
}

.contact-option-card h5 {
  color: #212529;
  font-weight: 600;
}

.contact-option-card p {
  color: #6c757d;
  line-height: 1.6;
}

/* Social Media Section */
.contact-social-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 1rem;
  padding: 3rem 2rem;
  margin: 3rem 0;
  border: 1px solid #dee2e6;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #fff;
  color: #6c757d;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.social-link:hover {
  color: #fff;
  background: linear-gradient(135deg, #e42447 0%, #c91e3a 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(228, 36, 71, 0.3);
  border-color: #e42447;
}

/* Contact Info Grid - 4 columns for contact template */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

/* Enhanced contact info items */
.contact-info-item a {
  color: #e42447;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-item a:hover {
  color: #c91e3a;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-page-header {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
  }
  
  .contact-page-header .display-4 {
    font-size: 2.5rem !important;
  }
  
  .contact-form-wrapper {
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
  }
  
  .contact-form-header h2 {
    font-size: 1.75rem;
  }
  
  .contact-form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 1rem;
  }
  
  .contact-info-section {
    padding: 1.5rem;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-info-item {
    padding: 1.25rem;
  }
  
  .contact-option-card {
    padding: 1.5rem;
  }
  
  .contact-social-section {
    padding: 2rem 1rem;
  }
  
  .social-links {
    gap: 0.75rem;
  }
  
  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

/* Responsive page styling */
@media (max-width: 768px) {
  .page-content {
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 0.25rem;
  }
  
  .page-title {
    font-size: 2rem !important;
  }
  
  .page-content .entry-content {
    font-size: 0.95rem;
  }
  
  .page-content .entry-content ul,
  .page-content .entry-content ol {
    padding-left: 1.5rem;
  }
}

/* Post Details Page Styling - Simplified */
.post-single {
  font-size: 1.1rem;
  line-height: 1.7;
}
.post-title {
  color: #212529;
  line-height: 1.2;
}
.post-header {
  text-align: center;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 2rem;
}
.post-featured-image {
  text-align: center;
}
.post-featured-image img {
  max-height: 400px;
  object-fit: cover;
}
.post-content {
  color: #35373a;
}
.post-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}
.post-content h2, .post-content h3, .post-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #212529;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}
.post-content blockquote {
  border-left: 4px solid #0d6efd;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6c757d;
}

.social-share .btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.post-tags .badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
}

.author-bio {
  border: 1px solid #dee2e6;
}
.author-avatar img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}
.author-social a {
  font-size: 1.2rem;
  transition: color 0.2s ease;
}
.author-social a:hover {
  color: #0d6efd !important;
}

.related-posts-section .section-title {
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: 2px solid #e42447;
  padding-bottom: 0.5rem;
  color: #212529;
}

.related-post-card {
  padding: 1rem;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  transition: box-shadow 0.2s ease;
  height: 100%;
}
.related-post-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.related-post-card h6 a {
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 600;
}
.related-post-card h6 a:hover {
  color: #0d6efd !important;
}

@media (max-width: 768px) {
  .post-featured-image img {
    max-height: 250px;
  }
  .post-meta {
    font-size: 0.8rem;
  }
  .social-share .btn {
    width: 35px;
    height: 35px;
  }
  .author-bio {
    padding: 1rem !important;
  }
  .author-avatar img {
    width: 60px;
    height: 60px;
  }
}
.singlepage{
  font-size: 2.5rem;
}

/* Category/Archive Page Styles */
.category-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
}

.category-title {
  color: #212529;
  font-weight: 700;
  line-height: 1.2;
}

.category-description {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.category-meta {
  font-size: 0.9rem;
  margin-top: 1rem;
}

.category-posts {
  margin-bottom: 3rem;
}

.category-post-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.category-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-color: #dee2e6;
}

.category-post-card .post-thumbnail {
  overflow: hidden;
}

.category-post-card .post-thumbnail img {
  transition: transform 0.3s ease;
}

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

.category-post-card .post-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.category-post-card .post-title a {
  color: #242424;
  transition: color 0.3s ease;
  text-align: center;
  display: block;
}

.category-post-card .post-title a:hover {
  color: #1c2027;
}

.category-post-card .post-excerpt {
  flex-grow: 1;
  line-height: 1.6;
}

.category-post-card .post-category .badge {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-post-card .post-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f8f9fa;
}

.category-post-card .read-more-link {
  color: #6c757d;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.category-post-card .read-more-link:hover {
  color: #242424;
}

.category-post-card .read-more-link i {
  transition: transform 0.3s ease;
}

.category-post-card:hover .read-more-link i {
  transform: translateX(3px);
}

/* Pagination Styles */
.category-pagination .page-numbers {
  background: #fff;
  border: 1px solid #dee2e6;
  color: #6c757d;
  padding: 0.5rem 0.75rem;
  margin: 0 0.25rem;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.category-pagination .page-numbers:hover,
.category-pagination .page-numbers.current {
  background: #242424;
  border-color: #242424;
  color: #fff;
}

.category-pagination .page-numbers.dots {
  background: transparent;
  border: none;
  color: #6c757d;
}

/* No Posts Found Styles */
.no-posts-found {
  background: #f8f9fa;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.no-posts-found i {
  opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 767.98px) {
  .category-header {
    padding: 2rem 0 !important;
  }
  
  .category-title {
    font-size: 2rem !important;
  }
  
  .category-post-card .post-content {
    padding: 1rem;
  }
  
  .category-post-card .post-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start !important;
  }
  
  .category-post-card .read-more-link {
    align-self: flex-end;
  }
}

@media (max-width: 575.98px) {
  .category-posts .row > div {
    margin-bottom: 1.5rem;
  }
  
  .category-pagination .page-numbers {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
  }
}
.homepage-latest-slider h2, .homepage-more-stories h2{
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: uppercase;
  color:#e42447;
}
.categoryname, .homepage-top-news div.small{
     color:#e42447 !important;
}

/* More Stories Section Styling */
.homepage-posts-ads {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.homepage-posts-ads .section-head {
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #e42447;
}

.posts-card { 
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.posts-card .ratio {
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
}

.posts-card .ratio img {
  transition: transform 0.3s ease;
}

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

.posts-card h3 a {
  color: #242424;
  transition: color 0.3s ease;
  font-weight: 600;
  line-height: 1.3;
}

.posts-card h3 a:hover {
  color: #e42447;
}

.posts-card .categoryname {
  color: #e42447 !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem !important;
}
.homepage-left-column .small, .homepage-list-item span{
  color: #e42447 !important; 
}

/* Homepage post title hover effects - Text underline */
body.home h1 a,
body.home h2 a,
body.home h3 a,
body.home h4 a,
body.home h5 a,
body.home h6 a,
body.page-template-template-homepage h1 a,
body.page-template-template-homepage h2 a,
body.page-template-template-homepage h3 a,
body.page-template-template-homepage h4 a,
body.page-template-template-homepage h5 a,
body.page-template-template-homepage h6 a {
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

body.home h1 a:hover,
body.home h2 a:hover,
body.home h3 a:hover,
body.home h4 a:hover,
body.home h5 a:hover,
body.home h6 a:hover,
body.page-template-template-homepage h1 a:hover,
body.page-template-template-homepage h2 a:hover,
body.page-template-template-homepage h3 a:hover,
body.page-template-template-homepage h4 a:hover,
body.page-template-template-homepage h5 a:hover,
body.page-template-template-homepage h6 a:hover {
  text-decoration: underline !important;
  text-decoration-color: #000000 !important;
  text-underline-offset: 3px !important;
}

/* Universal homepage title hover effects - Fallback */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  text-decoration: none;
  transition: all 0.3s ease;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
  text-decoration: underline;
  text-decoration-color: #000000;
  text-underline-offset: 3px;
}

/* Category page post title hover effects */
body.category h1 a,
body.category h2 a,
body.category h3 a,
body.category h4 a,
body.category h5 a,
body.category h6 a {
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

body.category h1 a:hover,
body.category h2 a:hover,
body.category h3 a:hover,
body.category h4 a:hover,
body.category h5 a:hover,
body.category h6 a:hover {
  text-decoration: underline !important;
  text-decoration-color: #000000 !important;
  text-underline-offset: 3px !important;
}

/* Search page post title hover effects */
body.search h1 a,
body.search h2 a,
body.search h3 a,
body.search h4 a,
body.search h5 a,
body.search h6 a {
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

body.search h1 a:hover,
body.search h2 a:hover,
body.search h3 a:hover,
body.search h4 a:hover,
body.search h5 a:hover,
body.search h6 a:hover {
  text-decoration: underline !important;
  text-decoration-color: #000000 !important;
  text-underline-offset: 3px !important;
}

.posts-card p {
  flex-grow: 1;
  line-height: 1.5;
  color: #6c757d;
}

.posts-card .small {
  color: #adb5bd;
  font-weight: 500;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f3f4;
}

/* Enhanced grid layout for More Stories */
.homepage-posts-ads .row.g-3 {
  margin: 0 -0.75rem;
}

.homepage-posts-ads .col-12.col-md-4 {
  padding: 0 0.75rem;
  margin-bottom: 1.5rem;
}

.homepage-posts-ads .posts-card {
  padding: 0;
  border: 1px solid #e9ecef;
}

.homepage-posts-ads .posts-card > * {
  padding: 0 1.25rem;
}

.homepage-posts-ads .posts-card .ratio {
  padding: 0 !important;
  margin-bottom: 1rem;
}

.homepage-posts-ads .posts-card .categoryname {
  padding-top: 1.25rem;
  margin-bottom: 0.5rem !important;
}

.homepage-posts-ads .posts-card .small {
  padding-bottom: 0;
}

/* Responsive adjustments for More Stories */
@media (max-width: 991.98px) {
  .homepage-posts-ads .col-12.col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 767.98px) {
  .homepage-posts-ads .col-12.col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .posts-card {
    margin-bottom: 1rem !important;
  }
  
  .homepage-posts-ads .section-head {
    font-size: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .homepage-posts-ads {
    padding: 2rem 0 !important;
  }
  
  .homepage-posts-ads .posts-card > * {
    padding: 0 1rem;
  }
  
  .homepage-posts-ads .posts-card .categoryname {
    padding-top: 1rem;
  }
  
  .homepage-posts-ads .posts-card .small {
    padding-bottom: 1rem;
  }
}

/* Loading state for More Stories */
.posts-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.posts-card.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Enhanced typography for More Stories */
.homepage-posts-ads h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.homepage-posts-ads p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.section-head{
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #e42447;
}
/* Hover effects for category names */
.posts-card .categoryname:hover {
  color: #c91e3a !important;
  cursor: pointer;
}

/* Health Featured Section Styling */
.homepage-health-featured {
  background: #fff;
  border-bottom: 1px solid #363434;
  border-top: 1px solid #363434;
}

.health-featured-img {
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.health-featured-img:hover {
  transform: scale(1.02);
}

.health-featured-content {
  padding: 1rem 0;
}

.health-featured-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  color: #212529;
}

.health-featured-title a {
  transition: color 0.3s ease;
}

.health-featured-title a:hover {
  color: #e42447;
}

.health-featured-excerpt {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #6c757d;
}

.health-see-more-btn {
  padding:0.3rem 1rem;
  font-weight: 500;
  border: 2px solid #e42447;
  color: #fff;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  display: inline-block;
  background-color: #e42447;
}

.health-see-more-btn:hover {
  background-color: #212529;
  color: #fff;
  text-decoration: none;
}

/* Responsive adjustments for Health Featured */
@media (max-width: 991.98px) {
  .health-featured-img {
    height: 300px;
    margin-bottom: 2rem;
  }
  
  .health-featured-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .health-featured-img {
    height: 250px;
  }
  
  .health-featured-title {
    font-size: 1.3rem;
  }
  
  .health-featured-excerpt {
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .health-featured-img {
    height: 200px;
  }
  
  .health-see-more-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Category Grid Section Styling */
.homepage-category-grid {
  background: #fff;
  border-top: 1px solid #e9ecef;
}

.category-column {
  height: 100%;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 10px;
  border-bottom: 2px solid #e42447;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #212529;
}

.category-header .chevron {
  color: #e42447;
  font-weight: 700;
  font-size: 1.2rem;
}

.category-post-item:last-child {
  margin-bottom: 0;
  padding: 0 !important;
}

.category-post-item.featured-post {
  border-bottom: 1px solid #dddddd;
}

.category-post-item.list-post {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f8f9fa;
}

.category-post-item.list-post:last-child {
  border-bottom: none;
}

.category-featured-img {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-post-item.featured-post:hover .category-featured-img {
  transform: scale(1.02);
}

.category-post-item h4 a {
  color: #212529;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.category-post-item h4 a:hover {
  color: #e42447;
}

.category-post-item.featured-post h4 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.category-post-item.list-post h4 {
  font-weight: 500;
  margin-bottom: 0;
  border-bottom: 1px solid #dddddd;
  padding-bottom: 0.8rem;
}
.category-post-item.list-post:last-of-type h4 {
  border-bottom: none;
}
.category-post-item.featured-post p {
  color: #6c757d;
  line-height: 1.5;
  margin-bottom: 0;
  font-size: 14px;
}

/* Responsive adjustments for category grid */
@media (max-width: 991.98px) {
  .homepage-category-grid .col-12.col-md-6.col-lg-3 {
    margin-bottom: 2rem;
  }
  
  .category-header {
    margin-bottom: 1rem;
  }
  
  .category-title {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .homepage-category-grid {
    padding: 2rem 0 !important;
  }
  
  .category-featured-img {
    height: 180px;
  }
  
  .category-post-item.featured-post {
    padding-bottom: 1rem;
  }
  
  .category-post-item.list-post {
    padding: 0.5rem 0;
  }
}

@media (max-width: 575.98px) {
  .category-featured-img {
    height: 160px;
  }
  
  .category-title {
    font-size: 0.9rem;
  }
  
  .category-header .chevron {
    font-size: 1rem;
  }
}

/* Category Header Section Styling */
.category-header-section {
  border-bottom: 1px solid #dee2e6;
}

.category-page-title {
  font-size: 2rem;
  font-weight: 800;
  color: #e42447;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.category-page-description {
  font-size: 1.1rem;
  font-weight: 400;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* More Category Stories Section Styling */
.more-category-stories {
  background-color: #fff;
}

.more-category-stories .container {
  max-width: 800px;
}

.more-stories-list {
  background-color: #fff;
}

.more-story-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e9ecef;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.more-story-item:last-child {
  border-bottom: none;
}

.more-story-item:hover {
  background-color: #f8f9fa;
  margin: 0 -1.5rem;
  padding: 1.5rem;
  border-radius: 8px;
}

.more-story-item .story-content {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.more-story-item .story-date {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
  width: 100px;
}

.more-story-item .story-text {
  flex: 1;
  margin-left: 0;
}

.more-story-item h3 {
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.more-story-item h3 a {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  transition: color 0.3s ease;
  color: #212529;
  text-decoration: none;
}

.more-story-item h3 a:hover {
  color: #dc3545 !important;
}

.more-story-item p {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.more-story-item .story-image {
  flex: 0 0 120px;
  height: 80px;
}

.more-story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.more-story-item:hover .more-story-img {
  transform: scale(1.05);
}

.more-story-placeholder {
  height: 100%;
  width: 100%;
  border-radius: 6px;
}

/* Pagination Styling */
.pagination-wrapper {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.pagination-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #f8f9fa;
  color: #6c757d;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.pagination-btn:hover:not(.disabled) {
  background: #dc3545;
  color: #fff;
  border-color: #dc3545;
  transform: translateY(-1px);
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f8f9fa;
  color: #6c757d;
  text-decoration: none;
  border-radius: 50%;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.pagination-number:hover {
  background: #dc3545;
  color: #fff;
  border-color: #dc3545;
  transform: translateY(-1px);
}

.pagination-number.current {
  background: #dc3545;
  color: #fff;
  border-color: #dc3545;
  font-weight: 600;
}

.pagination-dots {
  color: #6c757d;
  font-weight: 500;
  padding: 0 0.5rem;
}

/* Responsive adjustments for category header */
@media (max-width: 768px) {
  .category-page-title {
    font-size: 2rem;
    letter-spacing: 1px;
  }
  
  .category-page-description {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

/* Responsive adjustments for more stories */
@media (max-width: 768px) {
  .more-story-item {
    flex-direction: column;
    gap: 1rem;
  }
  
  .more-story-item .story-date {
    width: auto;
    margin-bottom: 0.5rem;
  }
  
  .more-story-item .story-image {
    flex: none;
    height: 200px;
    order: -1;
  }
  
  .more-story-img {
    height: 200px;
  }
  
  .more-story-placeholder {
    height: 200px;
  }
  
  .pagination-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .pagination-numbers {
    order: -1;
  }
  
  .pagination-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .pagination-number {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

.category p{
  font-size: 14px;
  line-height: 20px;
  text-align: justify;
}
.h3{
  font-size: 1.5rem !important;
}

/* Search Page Styling */
.search-header-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
}

.search-page-title {
  font-size: 2rem;
  font-weight: 800;
  color: #e42447;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.search-results-count {
  font-size: 1.1rem;
  font-weight: 500;
  color: #6c757d;
}

.search-results-section {
  background-color: #fff;
}

.search-results-list {
  max-width: 900px;
  margin: 0 auto;
}

.search-result-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: #f8f9fa;
  margin: 0 -1.5rem;
  padding: 1.5rem;
  border-radius: 8px;
}

.search-result-image {
  height: 120px;
  overflow: hidden;
  border-radius: 8px;
}

.search-result-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.search-result-item:hover .search-result-img {
  transform: scale(1.05);
}

.search-result-placeholder {
  height: 100%;
  width: 100%;
  border-radius: 8px;
}

.search-result-content {
  padding: 0;
}

.search-result-category {
  font-size: 0.875rem;
  color: #e42447 !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-result-title {
  margin-bottom: 0.75rem;
}

.search-result-title a {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  transition: color 0.3s ease;
  color: #212529;
}

.search-result-title a:hover {
  color: #e42447 !important;
}

.search-result-excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.search-result-meta {
  font-size: 0.875rem;
  color: #6c757d;
}

/* Search Pagination */
.search-pagination-wrapper {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.search-pagination-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f8f9fa;
  color: #6c757d;
  text-decoration: none;
  border-radius: 50%;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.pagination-number:hover {
  background: #e42447;
  color: #fff;
  border-color: #e42447;
  transform: translateY(-1px);
}

.pagination-number.current {
  background: #e42447;
  color: #fff;
  border-color: #e42447;
  font-weight: 600;
}

/* No Results Styling */
.no-results-found {
  padding: 4rem 2rem;
}

.no-results-icon {
  opacity: 0.5;
}

.no-results-title {
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 1rem;
}

.no-results-message {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.no-results-actions .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.no-results-actions .btn:hover {
  transform: translateY(-2px);
}

/* Responsive adjustments for search page */
@media (max-width: 768px) {
  .search-page-title {
    font-size: 1.8rem;
    letter-spacing: 0.5px;
  }
  
  .search-result-item .row {
    flex-direction: column;
  }
  
  .search-result-item .col-3,
  .search-result-item .col-9 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  .search-result-image {
    height: 200px;
    margin-bottom: 1rem;
  }
  
  .search-pagination-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .pagination-number {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

.custom-logo-link img{
width: 100%;
height: 50px;
}