/*
Theme Name: Autonaba Theme
Theme URI: https://example.com/autonaba-theme
Author: Autonaba Team
Author URI: https://example.com
Description: A modern real estate theme designed to work with the Autonaba plugin.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: autonaba-theme
Tags: real-estate, property, listing, responsive, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* Import Bootstrap */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');

/* Theme Variables */
:root {
  --primary-color: #ff6b00;
  --primary-hover: #e55e00;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --light-color: #f8fafc;
  --dark-color: #0f172a;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --font-family: 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --border-radius: 4px;
  --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
body {
  font-family: var(--font-family);
  color: #334155;
  line-height: 1.6;
  background-color: #f1f5f9;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: none;
}


/* Header */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Autonaba Header Design */
.autonaba-header {
  background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
  padding: 0.5rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.autonaba-header .container {
  max-width: 1200px;
}

/* Header Left Section */
.header-left {
  gap: 1rem;
}

.menu-toggle-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-account-icon {
  color: white;
  font-size: 1.2rem;
  padding: 0.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  transition: background-color 0.2s ease;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.mobile-account-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .autonaba-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .autonaba-search-container {
    flex: 1;
    margin: 0 0.5rem;
    max-width: none;
  }

  /* Ensure the header sections don't overlap */
  .header-left {
    flex-shrink: 0;
  }

  .header-right {
    flex-shrink: 0;
  }
}

@media (max-width: 576px) {
  .autonaba-search-container {
    display: none;
  }

  .header-left {
    gap: 0.5rem;
  }

  .autonaba-header .site-title {
    font-size: 1.25rem;
  }

  .autonaba-header {
    padding: 0.4rem 0;
  }
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 20px;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: white;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.menu-toggle-btn:hover .hamburger-icon span {
  background-color: #f0f0f0;
}

/* Logo Styling */
.autonaba-header .site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
  color: white;
}

.autonaba-header .site-title a {
  color: white;
  text-decoration: none;
  font-family: 'Arial', sans-serif;
}

.autonaba-header .site-title a:hover {
  color: #f0f0f0;
  text-decoration: none;
}

/* Search Container */
.autonaba-header .autonaba-search-container {
  flex: 1;
  max-width: 400px;
  margin: 0 1.5rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.autonaba-header .autonaba-search-form .form-control {
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.75rem 3rem 0.75rem 1rem;
  font-size: 0.875rem;
  width: 100%;
  box-shadow: none;
}

.autonaba-header .autonaba-search-form .form-control:focus {
  border-color: #1e40af;
  box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.2);
  outline: none;
}

.search-icons {
  position: absolute;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-bookmark {
  color: #1e40af;
  font-size: 0.875rem;
  cursor: pointer;
}

.search-icon {
  color: #666;
  font-size: 0.875rem;
  cursor: pointer;
}

.search-icon:hover {
  color: #1e40af;
}

/* Header Right Section */
.header-right {
  gap: 1rem;
  display: flex;
  align-items: center;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-link {
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
  padding: 0.5rem;
  border-radius: 4px;
}

.auth-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Notification Bell */
.notification-bell {
  position: relative;
  margin-right: 1rem;
}

.notification-link {
  color: white;
  font-size: 1.25rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-count,
.ai-notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #ff6b00;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 2;
}

.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 350px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  flex-direction: column;
  max-height: 400px;
}

.btn-close-notification {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #666;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 1001;
}

.btn-close-notification:hover {
  background-color: #f0f0f0;
  color: #333;
}

.notification-dropdown.show {
  display: flex;
}

/* Mobile Notification Dropdown */
@media (max-width: 768px) {
  .notification-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
  }

  .btn-close-notification {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
  }


  .btn-close-notification:hover {
    background: rgba(0, 0, 0, 0.5);
    color: white;
  }

  .notification-dropdown.show {
    display: flex;
  }

  .notification-dropdown::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  .notification-dropdown>div {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
  }

  .notification-list {
    max-height: calc(80vh - 120px);
  }
}

@media (max-width: 576px) {
  .notification-dropdown>div {
    width: 95%;
    margin: 10px;
  }

  .notification-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .notification-header h4 {
    font-size: 1.1rem;
  }

  #mark-all-read {
    font-size: 0.8rem;
  }

  .notification-item .notification-content h4 {
    font-size: 0.85rem;
  }

  .notification-item .notification-content p {
    font-size: 0.8rem;
  }

  .notification-item .notification-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .notification-item .notification-time,
  .notification-item .notification-link {
    font-size: 0.7rem;
  }
}

.notification-header {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

#mark-all-read {
  font-size: 0.875rem;
  color: #3b82f6;
  text-decoration: none;
}

.notification-list {
  flex: 1;
  overflow-y: auto;
  max-height: 300px;
}

.notification-item {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background-color 0.2s;
}

.notification-item:hover {
  background-color: #f8fafc;
}

.notification-item.unread {
  background-color: #f0f9ff;
}

.notification-item.unread:hover {
  background-color: #e0f2fe;
}

.notification-item.read {
  opacity: 0.7;
}

.notification-item .notification-content h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: #1e293b;
}

.notification-item .notification-content p {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.notification-item .notification-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-item .notification-time {
  font-size: 0.75rem;
  color: #94a3b8;
}

.notification-item .notification-link {
  font-size: 0.75rem;
  color: #3b82f6;
  text-decoration: none;
}

.notification-item .notification-link:hover {
  text-decoration: underline;
}

.no-notifications {
  padding: 2rem;
  text-align: center;
  color: #94a3b8;
  font-style: italic;
}

.notification-footer {
  padding: 0.75rem 1rem;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

.notification-footer a {
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.875rem;
}

.auth-link {
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: #f0f0f0;
  text-decoration: none;
}

.auth-separator {
  color: white;
  font-size: 0.875rem;
}

.sell-btn {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: none;
  /* Hide the button */
}

.sell-btn:hover {
  background: linear-gradient(135deg, #ea580c, #dc2626);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: none;
  /* Hide the button */
}

/* Mobile Menu Offcanvas */
.offcanvas {
  background-color: white;
}

.offcanvas-header {
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 1.5rem;
}

.offcanvas-title {
  font-weight: 600;
  color: #333;
  margin: 0;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #666;
  cursor: pointer;
  opacity: 1;
  /* Ensure visibility */
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
}

.btn-close:before,
.btn-close:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 2px;
  background-color: #666;
  transform: translate(-50%, -50%) rotate(45deg);
}

.btn-close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Mobile Menu Close Button Fix */
.offcanvas-header .btn-close {
  display: block !important;
  opacity: 1 !important;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0;
  border-radius: 0.375rem;
  width: 1em;
  height: 1em;
  padding: 0.25em 0.25em;
  margin: -0.25em -0.25em -0.25em auto;
}

@media (max-width: 768px) {
  .offcanvas-header .btn-close {
    display: block !important;
    opacity: 1 !important;
    z-index: 1001;
  }
}

/* Mobile Menu Styles */
.offcanvas {
  z-index: 1000;
}

.offcanvas-backdrop {
  z-index: 999;
}

/* Prevent body scrolling when offcanvas is open */
body.offcanvas-open {
  overflow: hidden;
}

/* Overlay for offcanvas on mobile */
@media (max-width: 768px) {
  .offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  body.offcanvas-open .offcanvas-backdrop {
    display: block;
  }
}

/* Ensure mobile menu is visible on small screens */
@media (max-width: 768px) {
  .offcanvas-start {
    width: 280px;
  }

  .offcanvas-header {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
  }

  .offcanvas-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
  }

  .offcanvas-body {
    padding: 1rem;
  }
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.mobile-menu-item:hover {
  background-color: #f8f9fa;
  color: #1e40af;
  text-decoration: none;
  padding-left: 2rem;
}

.mobile-menu-item:first-child {
  background-color: #f8f9fa;
  color: #1e40af;
  font-weight: 600;
}

/* Mobile Account Section */
.mobile-account-section {
  margin-top: 1rem;
  padding: 0 1rem;
}

.mobile-account-section .btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mobile-account-section .btn-primary {
  background-color: #ff6b00;
  border-color: #ff6b00;
  color: white;
}

.mobile-account-section .btn-primary:hover {
  background-color: #e55e00;
  border-color: #e55e00;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-account-section .btn-secondary {
  background-color: #3498db;
  border-color: #3498db;
  color: white;
}

.mobile-account-section .btn-secondary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .autonaba-header .autonaba-search-container {
    margin: 0 0.5rem;
    max-width: 250px;
  }

  .auth-links {
    display: flex;
  }

  .sell-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    display: none;
    /* Hide the button */
  }

  /* Ensure auth links are visible on mobile */
  .header-right .auth-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .header-right .auth-link {
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
  }

  /* Reduce gap between header elements on mobile */
  .autonaba-header .d-flex.align-items-center {
    gap: 0.5rem;
  }
}

@media (max-width: 576px) {
  .autonaba-header .autonaba-search-container {
    display: none;
  }

  .header-left {
    gap: 0.5rem;
  }

  .autonaba-header .site-title {
    font-size: 1.25rem;
  }

  .autonaba-header {
    padding: 0.4rem 0;
  }

  .auth-links {
    display: flex;
  }

  /* Ensure auth links are visible on small mobile screens */
  .header-right .auth-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
  }

  .header-right .auth-link {
    font-size: 0.65rem;
    padding: 0.2rem 0.3rem;
  }

  .auth-separator {
    font-size: 0.65rem;
  }

  /* Ensure header right section is visible */
  .header-right {
    display: flex;
    align-items: center;
    min-width: 0;
  }
}

.site-header.scrolled {
  padding: 0.375rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.2px;
  color: var(--primary-color);
}

.site-title a {
  color: var(--primary-color);
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.site-title a:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

/* Search */
.autonaba-search-container {
  flex: 1;
  max-width: 500px;
  margin: 0 1rem;
}

.autonaba-search-form .form-control {
  border: 2px solid var(--primary-color);
  border-radius: 0;
  padding: 0.75rem;
  font-size: 0.875rem;
}

.autonaba-search-form .btn {
  background-color: var(--primary-color);
  border: none;
  border-radius: 0;
  padding: 0.75rem 1rem;
  color: white;
}

.autonaba-search-form .btn:hover {
  background-color: var(--primary-hover);
}

/* Category Navigation */
.autonaba-category-nav {
  margin-top: 0.5rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.5rem;
}

.autonaba-categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.autonaba-categories li {
  margin-right: 1.5rem;
}

.autonaba-categories a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.autonaba-categories a:hover {
  color: var(--primary-color);
}

/* Mobile Categories */
.mobile-categories h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--dark-color);
}

.mobile-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-category-list li {
  margin-bottom: 0.5rem;
}

.mobile-category-list a {
  color: var(--dark-color);
  text-decoration: none;
  padding: 0.5rem;
  display: block;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
}

.mobile-category-list a:hover {
  background-color: #f1f5f9;
  color: var(--primary-color);
  padding-left: 0.75rem;
}

/* Category List (Sidebar) */
.autonaba-category-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.autonaba-category-item {
  padding: 0.5rem;
  border-radius: var(--border-radius);
  color: var(--dark-color);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.autonaba-category-item:hover,
.autonaba-category-item.active {
  background-color: rgba(255, 107, 0, 0.1);
  color: var(--primary-color);
}

/* Navigation */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.main-navigation li {
  position: relative;
  margin: 0 0.1rem;
}

.main-navigation a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  position: relative;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
  color: var(--primary-color);
}

/* Mobile Navigation */
.mobile-navigation-wrapper {
  padding: 1rem 0;
}

.mobile-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.mobile-navigation li {
  border-bottom: 1px solid #e2e8f0;
}

.mobile-navigation li:last-child {
  border-bottom: none;
}

.mobile-navigation a {
  display: block;
  padding: 0.75rem;
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.9375rem;
}

.mobile-navigation a:hover {
  background-color: #f1f5f9;
  color: var(--primary-color);
  padding-left: 1rem;
}

/* Header Actions */
.header-actions .btn {
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid var(--primary-color);
  font-size: 0.8125rem;
}

.header-actions .btn-outline-primary {
  background: transparent;
  color: var(--primary-color);
}

.header-actions .btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--box-shadow);
}

.header-actions .btn-primary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.header-actions .btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--box-shadow);
}

.dropdown-menu {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: none;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
}

.dropdown-item {
  padding: 0.375rem 0.75rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(255, 107, 0, 0.1);
  color: var(--primary-color);
}

/* Main Content */
.site-main {
  min-height: 60vh;
  padding: 1rem 0;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
}

.breadcrumb-item a {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--secondary-color);
}

/* Page Header */
.page-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid #e2e8f0;
}

.page-title {
  font-weight: 700;
  color: var(--dark-color);
  margin: 0;
  font-size: 1.625rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 4rem 0;
  margin-bottom: 2rem;
}

.hero-content {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 0;
}

.autonaba-search-form {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

.autonaba-search-form .form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #0f172a;
  font-size: 0.875rem;
}

.autonaba-search-form .form-control,
.autonaba-search-form .form-select {
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius);
  padding: 0.625rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.875rem;
}

.autonaba-search-form .form-control:focus,
.autonaba-search-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
  outline: none;
}

.autonaba-search-button {
  padding: 0.375rem 0.75rem;
  /* Reduced size */
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  height: 100%;
  font-size: 0.8125rem;
  /* Smaller font */
}

.autonaba-search-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* YouTube-Style Search Form */
.autonaba-search-form-youtube {
  max-width: 600px;
  margin: 0 auto;
}

.youtube-search-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.search-input-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #ccc;
  border-radius: 24px;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-input-container:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.2);
}

.search-icon-left {
  color: #999;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.youtube-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  padding: 0;
  font-family: var(--font-family);
  color: #0f172a;
}

.youtube-search-input::placeholder {
  color: #999;
}

.search-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-suggestions-dropdown.show {
  display: block;
}

.suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background-color 0.15s ease;
}

.suggestion-item:hover {
  background-color: #f5f5f5;
}

.suggestion-item.suggestion-selected {
  background-color: #e9ecef;
  outline: 2px solid #007bff;
  outline-offset: -2px;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-icon {
  color: #999;
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
}

.suggestion-text {
  flex: 1;
  color: #0f172a;
  font-size: 0.95rem;
}

.suggestion-highlight {
  font-weight: 500;
  color: var(--primary-color);
}

.youtube-search-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.youtube-search-button:hover {
  background-color: var(--primary-hover);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

.youtube-search-button:active {
  transform: scale(0.95);
}

/* Responsive Design for YouTube Search */
@media (max-width: 768px) {
  .autonaba-search-form-youtube {
    max-width: 100%;
  }

  .youtube-search-wrapper {
    gap: 0.25rem;
  }

  .search-input-container {
    padding: 0.5rem 0.75rem;
  }

  .youtube-search-button {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .youtube-search-input {
    font-size: 0.95rem;
  }

  .search-input-container {
    border-radius: 20px;
    padding: 0.5rem 0.75rem;
  }

  .suggestion-item {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* Category Icons */
.autonaba-categories {
  margin: 2rem 0;
}

.autonaba-categories h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  font-size: 1.5rem;
}

.autonaba-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.autonaba-category-item {
  text-align: center;
  padding: 1rem;
  border-radius: var(--border-radius);
  background-color: #fff;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--dark-color);
  border: 1px solid #e2e8f0;
}

.autonaba-category-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
  color: var(--dark-color);
  text-decoration: none;
  border-color: var(--primary-color);
}

.autonaba-category-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  /* Fallback content in case icon doesn't load */
  position: relative;
}

.autonaba-category-icon i {
  /* Ensure Font Awesome icons display properly */
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.autonaba-category-icon:empty:before,
.autonaba-category-icon i:before {
  /* Fallback content in case icon doesn't load */
  content: "🏠";
  /* Fallback house icon */
  font-size: 1.5rem;
  font-family: sans-serif;
}

/* Special styling for land icon */
.autonaba-category-icon .fa-mountain {
  color: #22c55e;
  /* Green color for land */
}

.autonaba-category-name {
  font-weight: 500;
  color: var(--dark-color);
  font-size: 0.875rem;
}

/* Featured Listings */
.autonaba-featured-listings {
  margin: 0.5rem 0;
  /* Further reduced from 1rem to 0.5rem to reduce space after story slider */
}

.autonaba-featured-listings h2 {
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
  font-size: 1.5rem;
}

/* Flex container for section headers with smaller buttons */
.autonaba-featured-listings .d-flex {
  align-items: center;
}

/* Property Grid */
.autonaba-property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.autonaba-property-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.autonaba-property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.autonaba-property-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.autonaba-property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  background-color: #f8f9fa;
  /* Fallback background */
}

.autonaba-property-card:hover .autonaba-property-image img {
  transform: scale(1.05);
}

.autonaba-property-featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.autonaba-property-content {
  padding: 1.5rem;
}

.autonaba-property-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.autonaba-property-title a {
  color: var(--dark-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.autonaba-property-title a:hover {
  color: var(--primary-color);
}

.autonaba-property-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

.autonaba-property-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.autonaba-property-excerpt {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.autonaba-property-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.autonaba-property-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Ad Cards */
.autonaba-ad-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  /* Indicate that the entire card is clickable */
}

.autonaba-ad-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.autonaba-ad-image {
  position: relative;
  height: 160px;
  overflow: hidden;
  background-color: #f8f9fa;
  /* Add background color in case image fails to load */
  display: flex;
  align-items: center;
  justify-content: center;
}

.autonaba-ad-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
  background-color: #f8f9fa;
  /* Fallback background */
}

.autonaba-ad-card:hover .autonaba-ad-image img {
  transform: scale(1.05);
}

.autonaba-ad-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.autonaba-ad-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.autonaba-ad-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.autonaba-ad-title a {
  color: var(--dark-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.autonaba-ad-title a:hover {
  color: var(--primary-color);
}

.autonaba-ad-type {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
}

.autonaba-ad-type i.fa-mountain {
  color: #22c55e;
  /* Green color for land */
}

.autonaba-ad-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.autonaba-ad-price-condition {
  font-size: 0.75rem;
  font-weight: 400;
  color: #64748b;
  background-color: #f1f5f9;
  padding: 0.125rem 0.25rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.autonaba-ad-location {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.autonaba-ad-description {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  flex-grow: 1;
}

.autonaba-ad-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.autonaba-ad-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a3b8;
  align-items: center;
  gap: 0.5rem;
}

.autonaba-ad-stats span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Ensure favorite container is visible */
.autonaba-favorite-container {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
  z-index: 10;
  background: transparent;
  border: none;
  vertical-align: middle;
  /* Ensure it's visible */
  visibility: visible !important;
}

.autonaba-favorite-container:hover {
  transform: scale(1.1);
}

.autonaba-favorite-icon {
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  color: #ffc107;
  display: inline-block;
  vertical-align: middle;
  /* Ensure it's visible */
  visibility: visible !important;
  /* Ensure it takes up space */
  min-width: 16px;
  min-height: 16px;
}

.autonaba-favorite-icon:hover {
  transform: scale(1.2);
}

.autonaba-favorite-icon.far.fa-star {
  color: #64748b;
  opacity: 0.7;
}

.autonaba-favorite-icon.fas.fa-star {
  color: #ffc107;
  opacity: 1;
}

/* Ensure star icons are visible by using content if font icons fail */
.autonaba-favorite-icon.far.fa-star:before,
.autonaba-favorite-icon.fas.fa-star:before {
  /* This ensures the icon content is displayed */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* Fallback content for star icons in case Font Awesome fails */
.autonaba-favorite-icon.far.fa-star:empty:before,
.autonaba-favorite-icon.fas.fa-star:empty:before {
  content: "☆";
  /* Unicode star symbol as fallback */
  font-size: 16px;
  color: #64748b;
}

.autonaba-favorite-icon.fas.fa-star:empty:before {
  content: "★";
  /* Unicode filled star symbol as fallback */
  color: #ffc107;
}

/* Adjust the flex container for better alignment */
.autonaba-featured-listings .justify-content-between {
  align-items: center;
}

/* Property Details Page */
.autonaba-property-single {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 2rem;
}

.autonaba-property-header {
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.autonaba-property-title-main {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: var(--dark-color);
}

.autonaba-property-price-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 1rem 0;
}

.autonaba-property-meta-main {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #64748b;
}

.autonaba-property-location-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.autonaba-property-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  background: #f1f5f9;
}

.autonaba-property-gallery .gallery-item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  height: 100px;
}

.autonaba-property-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.2s ease;
}

.autonaba-property-gallery .gallery-item:hover img {
  transform: scale(1.05);
}

.autonaba-property-content-main {
  padding: 2rem;
}

.autonaba-property-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.autonaba-property-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.autonaba-property-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--dark-color);
}

.autonaba-property-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.autonaba-property-detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.autonaba-property-detail-item:last-child {
  border-bottom: none;
}

.autonaba-property-detail-label {
  font-weight: 500;
  color: #64748b;
}

.autonaba-property-detail-value {
  font-weight: 500;
  color: var(--dark-color);
}

.autonaba-seller-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.autonaba-seller-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid var(--primary-color);
}

.autonaba-seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.autonaba-seller-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--dark-color);
}

.autonaba-seller-rating {
  color: #f59e0b;
  margin-bottom: 1rem;
}

.autonaba-contact-button {
  width: 100%;
  margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .autonaba-property-grid {
    grid-template-columns: 1fr;
  }

  .autonaba-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-section {
    padding: 2rem 0;
  }

  .autonaba-search-form {
    padding: 1rem;
  }

  .autonaba-search-form .row>div {
    margin-bottom: 1rem;
  }

  .page-title {
    font-size: 1.375rem;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: center;
  }

  .main-navigation li {
    margin: 0.25rem 0;
  }

  .autonaba-categories ul {
    flex-wrap: wrap;
  }

  .autonaba-categories li {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 576px) {
  .autonaba-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .autonaba-categories li {
    margin-right: 0.75rem;
  }

  .autonaba-search-button {
    padding: 0.5rem;
    font-size: 0.75rem;
  }
}

/* Services Section */
.services-section {
  margin: 2rem 0;
  padding: 2rem 0;
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.services-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  color: var(--dark-color);
  font-size: 1.5rem;
}

.service-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background-color: #f8fafc;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--primary-color);
}

.service-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  /* Fallback content in case icon doesn't load */
  position: relative;
}

.service-icon i {
  /* Ensure Font Awesome icons display properly */
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.service-icon:empty:before,
.service-icon i:before {
  /* Fallback content in case icon doesn't load */
  content: " ⓘ ";
  /* Fallback info icon */
  font-size: 2rem;
  font-family: sans-serif;
}

.service-card h3 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.service-card p {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.service-card .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Stats Section */
.stats-section {
  margin: 2rem 0;
  padding: 2rem 0;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--secondary-color);
  font-size: 0.875rem;
}

/* Testimonials Section */
.testimonials-section {
  margin: 2rem 0;
  padding: 2rem 0;
}

.testimonials-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  color: var(--dark-color);
  font-size: 1.5rem;
}

.testimonial-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid #e2e8f0;
}

.testimonial-content p {
  font-style: italic;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.testimonial-info h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--dark-color);
  font-size: 1rem;
}

.testimonial-info p {
  color: var(--secondary-color);
  margin: 0;
  font-size: 0.8125rem;
}

/* Newsletter Section */
.newsletter-section {
  margin: 2rem 0;
  padding: 2rem;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  border-radius: var(--border-radius);
}

.newsletter-section h2 {
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.5rem;
}

.newsletter-section p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 0.5rem;
}

.newsletter-form .form-control {
  flex: 1;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem;
}

.newsletter-form .btn {
  background-color: var(--dark-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: all 0.2s ease;
}

.newsletter-form .btn:hover {
  background-color: #000;
  transform: translateY(-1px);
  box-shadow: var(--box-shadow);
}

/* About Page */
.autonaba-about-page {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.autonaba-about-content {
  margin-bottom: 1.5rem;
}

.autonaba-about-content h2 {
  font-weight: 700;
  color: var(--dark-color);
  margin: 1rem 0 0.625rem;
  font-size: 1.375rem;
}

.autonaba-about-content p {
  line-height: 1.6;
  color: var(--secondary-color);
}

.autonaba-about-sidebar {
  background: var(--light-color);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.autonaba-team-members {
  margin-top: 0.875rem;
}

.autonaba-team-member {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.autonaba-team-member:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.autonaba-team-member h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--dark-color);
  font-size: 1rem;
}

.autonaba-team-member p {
  color: var(--secondary-color);
  margin: 0;
  font-size: 0.8125rem;
}

/* Contact Page */
.autonaba-contact-page {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.autonaba-contact-form-wrapper {
  margin-bottom: 1.5rem;
}

.autonaba-contact-form-wrapper h2 {
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-size: 1.375rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.3125rem;
  color: var(--dark-color);
  display: block;
  font-size: 0.875rem;
}

.form-control {
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius);
  padding: 0.625rem;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
  outline: none;
}

.btn {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--box-shadow);
}

.btn-outline-primary {
  background-color: transparent;
  border: none;
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: transparent;
  border: none;
  color: var(--primary-hover);
  transform: translateY(-1px);
}

.autonaba-contact-info h3 {
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-size: 1.375rem;
}

.autonaba-contact-item {
  margin-bottom: 1rem;
}

.autonaba-contact-item h4 {
  font-weight: 600;
  margin-bottom: 0.3125rem;
  color: var(--dark-color);
  font-size: 1rem;
}

.autonaba-contact-item p {
  color: var(--secondary-color);
  margin: 0;
  line-height: 1.5;
  font-size: 0.875rem;
}

/* Authentication Pages */
.autonaba-auth-container {
  max-width: 500px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.autonaba-auth-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c42 100%);
  color: white;
  padding: 2rem;
  text-align: center;
}

.autonaba-auth-logo {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.autonaba-auth-header h1 {
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
}

.autonaba-auth-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}

.autonaba-auth-content {
  padding: 2rem;
}

.autonaba-auth-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.autonaba-tab-nav {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 2rem;
}

.autonaba-tab-button {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.autonaba-tab-button.active {
  color: var(--primary-color);
}

.autonaba-tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
}

.autonaba-tab-button:hover {
  color: var(--primary-color);
}

.autonaba-tab-content {
  min-height: 300px;
}

.autonaba-tab-pane {
  display: none;
}

.autonaba-tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.autonaba-form-group {
  margin-bottom: 1.5rem;
}

.autonaba-form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #0f172a;
}

.autonaba-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.autonaba-input-icon {
  position: absolute;
  left: 1rem;
  color: var(--primary-color);
  z-index: 2;
}

.autonaba-form-control {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1rem;
  position: relative;
}

.autonaba-form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
  outline: none;
}

.autonaba-form-control::placeholder {
  color: #94a3b8;
}

.autonaba-form-checkbox {
  display: flex;
  align-items: center;
}

.autonaba-form-check-input {
  margin-right: 0.5rem;
  width: 1rem;
  height: 1rem;
}

.autonaba-form-check-label {
  font-weight: 400;
  color: #64748b;
}

.autonaba-btn {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.autonaba-btn-block {
  width: 100%;
  display: block;
}

.autonaba-btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c42 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.autonaba-btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #ff7d2e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.3);
}

.autonaba-btn-outline {
  background: transparent;
  border: 2px solid #e2e8f0;
  color: #0f172a;
}

.autonaba-btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.autonaba-form-footer {
  text-align: center;
  margin: 1.5rem 0;
}

.autonaba-form-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.autonaba-form-link:hover {
  text-decoration: underline;
}

.autonaba-divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  color: #64748b;
}

.autonaba-divider::before,
.autonaba-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.autonaba-divider span {
  padding: 0 1rem;
}

.autonaba-oauth-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.autonaba-oauth-buttons .autonaba-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.autonaba-oauth-buttons .autonaba-btn i {
  margin-right: 0.5rem;
}

.autonaba-logged-in h2 {
  margin: 1rem 0;
  color: #0f172a;
}

.autonaba-logged-in p {
  color: #64748b;
  margin-bottom: 1.5rem;
}

/* Responsive Design for Authentication Pages */
@media (max-width: 768px) {
  .autonaba-auth-container {
    margin: 1rem;
    border-radius: 8px;
  }

  .autonaba-auth-header {
    padding: 1.5rem;
  }

  .autonaba-auth-header h1 {
    font-size: 1.5rem;
  }

  .autonaba-auth-content {
    padding: 1.5rem;
  }

  .autonaba-tab-nav {
    flex-direction: column;
  }

  .autonaba-tab-button {
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
  }

  .autonaba-tab-button:last-child {
    border-bottom: none;
  }

  .autonaba-tab-button.active::after {
    bottom: auto;
    top: 0;
    left: 0;
    right: auto;
    width: 3px;
    height: 100%;
  }

  .autonaba-oauth-buttons {
    flex-direction: column;
  }

  .autonaba-form-control {
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  }

  .autonaba-input-icon {
    left: 0.75rem;
  }
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
  color: white;
  padding: 2rem 0;
}

.site-footer h3 {
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: white;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer ul li {
  margin-bottom: 0.5rem;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
}

.site-footer .footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Story Slider */
.story-slider-section {
  margin: 0rem 0;
  /* Removed all margin */
  padding: 0rem 0;
  /* Removed all padding */
}

.story-slider-container {
  position: relative;
  overflow: hidden;
  padding: 0rem 0;
  /* Removed all padding */
  width: 100%;
}

/* Improve visibility of partial slides */
.swiper-slide-prev,
.swiper-slide-next {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.swiper-slide-active {
  opacity: 1;
}

.swiper.story-slider {
  padding: 0rem 0;
  /* Removed all padding */
  width: 100%;
}

.swiper-slide {
  height: auto;
  width: 150px;
  flex-shrink: 0;
  /* Prevent slides from shrinking */
}

@media (max-width: 768px) {
  .swiper-slide {
    width: 120px;
  }
}

@media (max-width: 576px) {
  .swiper-slide {
    width: 100px;
  }
}

/* Desktop view - fixed width for exactly 3 slides */
@media (min-width: 992px) {
  .swiper-slide {
    width: calc((100% - 50px) / 3);
    max-width: 250px;
  }
}

@media (min-width: 1200px) {
  .swiper-slide {
    width: calc((100% - 60px) / 3);
    max-width: 280px;
  }
}

@media (min-width: 1400px) {
  .swiper-slide {
    width: calc((100% - 70px) / 3);
    max-width: 300px;
  }
}

.story-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  height: 250px;
  display: flex;
  flex-direction: column;
  touch-action: manipulation;
  /* Improves touch responsiveness */
}

.story-card:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

.story-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.story-caption {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 3;
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  /* Changed from left to right */
  background-color: #3b82f6;
  color: white;
  border-radius: 12px;
  padding: 2px 8px;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
  /* Allows up to 8 characters */
}

.story-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.story-video-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.story-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Video wrapper styles for story slider - matching single property page */
.autonaba-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio for landscape */
  overflow: hidden;
}

.autonaba-video-wrapper.autonaba-shorts-video {
  padding-bottom: 133.33%;
  /* 3:4 aspect ratio for portrait */
}

.autonaba-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #000;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
}

.play-button {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.video-info p {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
}

.click-to-play {
  color: #3b82f6;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.8rem;
  margin: 0;
}

.platform-name {
  color: #9ca3af;
  font-size: 0.7rem;
  margin: 0.2rem 0 0 0;
}

.video-placeholder:hover .click-to-play {
  text-decoration: underline;
}

.story-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.75rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.story-title.hidden {
  display: none;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
  color: #3b82f6;
  background: rgba(255, 255, 255, 0.8);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  top: 40%;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: white;
  transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 14px;
  font-weight: bold;
}

/* Swiper Pagination */
.swiper-pagination {
  position: relative;
  margin-top: 0rem;
  /* Removed all margin */
  text-align: center;
  /* Center the pagination bullets */
}

/* Mobile improvements for navigation */
@media (max-width: 768px) {

  /* Hide navigation arrows on mobile screens */
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
}

@media (max-width: 576px) {

  /* Ensure navigation arrows remain hidden on smaller screens */
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
}

.swiper-pagination {
  position: relative;
  margin-top: 0rem;
  /* Removed all margin */
}

.swiper-pagination-bullet {
  background: #cbd5e1;
  opacity: 1;
  width: 8px;
  height: 8px;
}

.swiper-pagination-bullet-active {
  background: #3b82f6;
}

/* Responsive adjustments for story slider */
@media (max-width: 768px) {
  .story-card {
    height: 200px;
  }

  .story-title {
    font-size: 0.7rem;
    padding: 0.5rem 0.25rem;
  }

  .story-badge {
    height: 20px;
    font-size: 0.65rem;
    min-width: 20px;
    padding: 2px 6px;
  }
}

@media (max-width: 576px) {
  .story-card {
    height: 180px;
  }

  .story-slider-section {
    margin: 0rem 0;
    /* Removed all margin */
    padding: 0rem 0;
    /* Removed all padding */
  }
}

/* Floating AI Assistant Button */
.ai-assistant-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
}

.ai-assistant-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.ai-assistant-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-assistant-icon .material-icons {
  color: white;
  font-size: 32px;
}

.ai-assistant-icon .ai-gear-icon {
  position: absolute;
  top: -2px;
  right: -2px;
  color: #3b82f6;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  padding: 2px;
}

@media (max-width: 768px) {
  .ai-assistant-fab {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }

  .ai-assistant-icon .material-icons {
    font-size: 26px;
  }

  .ai-assistant-icon .ai-gear-icon {
    font-size: 10px;
    padding: 1px;
  }
}

/* AI Assistant Modal */
.ai-assistant-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-assistant-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.ai-assistant-modal-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  height: 600px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ai-assistant-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: white;
}

.ai-assistant-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.ai-language-selector {
  display: flex;
  gap: 6px;
  margin-left: auto;
  margin-right: 12px;
}

.ai-lang-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-lang-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.ai-lang-btn.active {
  background: rgba(255, 255, 255, 0.9);
  color: #1e40af;
  border-color: rgba(255, 255, 255, 0.9);
}

.ai-lang-btn i {
  font-size: 12px;
}

.ai-assistant-close {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.ai-assistant-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ai-assistant-modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ai-assistant-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ai-assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ai-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.ai-message-content {
  flex: 1;
  background: #f3f4f6;
  padding: 12px 16px;
  border-radius: 16px;
  border-top-left-radius: 4px;
}

.ai-message-content p {
  margin: 0;
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
}

.user-message {
  display: flex;
  justify-content: flex-end;
}

.user-message-content {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: white;
  padding: 12px 16px;
  border-radius: 16px;
  border-top-right-radius: 4px;
  max-width: 70%;
}

.user-message-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.ai-assistant-input {
  display: flex;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.ai-input-field {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.ai-input-field:focus {
  border-color: #3b82f6;
}

.ai-voice-btn {
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ai-voice-btn:hover {
  background: #e2e8f0;
  color: #475569;
}

.ai-voice-btn.recording {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.ai-send-btn {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.ai-send-btn:hover {
  transform: scale(1.05);
}

.ai-send-btn:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .ai-assistant-modal-content {
    width: 95%;
    height: 80vh;
    max-height: 600px;
  }

  .ai-assistant-modal-header {
    padding: 16px;
  }

  .ai-assistant-messages {
    padding: 16px;
  }

  .ai-assistant-input {
    padding: 16px;
  }

  .ai-avatar {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* AI Message Content Formatting (Markdown-like) */
.ai-message-content h2,
.ai-message-content h3,
.ai-message-content h4 {
  margin: 15px 0 8px 0;
  font-weight: 700;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-message-content h2 {
  font-size: 1.25rem;
}

.ai-loading {
  text-align: center;
  padding: 20px;
  color: #64748b;
  font-size: 14px;
}

.ai-message-content h3 {
  font-size: 1.1rem;
}

.ai-message-content h4 {
  font-size: 1rem;
}

.ai-message-content em {
  display: block;
  font-style: italic;
  color: #64748b;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.ai-message-content blockquote {
  margin: 10px 0;
  padding-left: 15px;
  border-left: 4px solid #3b82f6;
  color: #374151;
  font-style: normal;
}

.ai-message-content hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

.ai-message-content ul {
  padding-left: 20px;
  margin: 15px 0;
  list-style-type: disc;
}

.ai-message-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.ai-message-content strong {
  color: #1e3a8a;
  font-weight: 700;
}

.ai-message-content p {
  margin-bottom: 10px;
}
/* Single Post Specific Responsive Styles */
@media (max-width: 768px) {
    /* Adjust container spacing */
    .single-post-article {
        padding: 0;
    }
    
    /* Reduce title size on mobile to avoid overwhelming the screen */
    .single-post-article .entry-title {
        font-size: 1.75rem !important; /* Approx 28px */
        line-height: 1.3;
        margin-bottom: 1rem !important;
    }
    
    /* Stack meta info vertically or wrap nicely */
    .single-post-article .entry-meta {
        font-size: 0.85rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 1.5rem !important;
    }
    
    .single-post-article .entry-meta span {
        margin: 0 !important;
    }
    
    /* Make featured image stretch nicely */
    .single-post-article .post-thumbnail {
        border-radius: 8px !important;
        margin-bottom: 1.5rem !important;
    }

    /* Adjust content readability */
    .single-post-article .entry-content {
        font-size: 1.05rem !important; /* Standard readable size */
        line-height: 1.7;
    }
    
    /* AI Summary box adjustments */
    .ai-summary-container {
        padding: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Blockquotes on mobile */
    .single-post-article blockquote {
        margin-left: 0;
        padding-left: 1rem;
        border-left-width: 3px;
    }
}


/* Mobile Typography Adjustments for Sub-headers */
@media (max-width: 768px) {
    .single-post-article .entry-content h2 {
        font-size: 1.5rem !important; /* Smaller H2 */
        line-height: 1.3;
        margin-top: 1.5rem;
    }
    
    .single-post-article .entry-content h3 {
        font-size: 1.3rem !important; /* Smaller H3 */
        line-height: 1.35;
        margin-top: 1.25rem;
    }
    
    .single-post-article .entry-content h4 {
        font-size: 1.15rem !important; /* Smaller H4 */
        line-height: 1.4;
    }
    
    .single-post-article .entry-content h5,
    .single-post-article .entry-content h6 {
        font-size: 1rem !important; /* Smaller H5/H6 */
        line-height: 1.5;
        font-weight: 600;
    }
}


/* AI Summary Section - Base Styles copied from index.php */
.ai-summary-container {
    background-color: #f2f2f2; /* Light gray background */
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #0f0f0f;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ai-summary-container:hover {
    background-color: #e5e5e5;
}

.ai-summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.ai-summary-icon {
    color: #0f0f0f;
}

.ai-summary-content {
    margin-top: 8px;
    display: none;
    line-height: 1.5;
    color: #0f0f0f;
}

