/*
Theme Name: Twenty Twenty-Five Child
Description: Custom blog theme with cover page and grid layout
Template: twentytwentyfive
Version: 1.0
*/

@import url("../twentytwentyfive/style.css");

/* Header Styles */
.site-header {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 2rem 0 1rem 0;
  position: relative;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 3rem;
}

.header-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-right {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
}

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

.site-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.site-title a {
  color: #333;
  text-decoration: none;
}

.tractus-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

/* Navigation Menu */
.main-navigation {
  display: flex;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #2563eb;
}

/* Book a Demo Button */
.book-demo-btn {
  background: #2563eb;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 48px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.3s ease;
}

.book-demo-btn:hover {
  background: #1d4ed8;
  color: white;
}

/* Page Title Section */
body .page-title-section {
  text-align: center !important;
  padding: 3rem 0 !important;
  background: transparent !important;
  margin-bottom: 0 !important;
}

body .page-title {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  color: #333 !important;
  margin: 0 !important;
  border: none !important;
}

/* Reset and base styles */
* {
  box-sizing: border-box !important;
}

body.blog,
body.home,
body.single-post {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  line-height: 1.6 !important;
  color: #333 !important;
  background: linear-gradient(135deg, #f0f6ff 0%, #ffffff 100%) !important;
  min-height: 100vh !important;
}

/* Cover/Hero Section */
body .hero-section {
  background: linear-gradient(135deg, #a8c8ff 0%, #ffffff 100%) !important;
  color: white !important;
  text-align: center !important;
  padding: 4rem 2rem !important;
  margin-bottom: 3rem !important;
  display: block !important;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Search and Filter Section */
body .search-filter-section {
  background: transparent !important;
  padding: 2rem 3rem !important;
  margin: 0 auto 2rem auto !important;
  border-radius: 10px !important;
  max-width: 1600px !important;
  display: block !important;
}

.search-filter-container {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-box input:focus {
  border-color: #667eea;
}

.category-filter select {
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
  background: white;
  min-width: 150px;
}

.search-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-btn:hover {
  background: #1d4ed8;
}

/* Blog Grid Layout */
body .blog-container {
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: 0 3rem !important;
  display: block !important;
}

body .blog-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  margin-bottom: 3rem !important;
}

/* Blog Card Styles */
body .blog-card {
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 15px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  height: fit-content !important;
  display: block !important;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: #666;
}

.blog-card-date {
  background: #f0f0f0;
  padding: 4px 8px;
  border-radius: 12px;
}

.blog-card-category {
  background: #667eea;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-card-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-title a:hover {
  color: #667eea;
}

.blog-card-excerpt {
  color: #666;
  line-height: 1.5;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.read-more {
  background: #2563eb;
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
}

.read-more:hover {
  transform: scale(1.05);
  color: white;
  background: #1d4ed8;
}

.blog-author {
  font-size: 0.8rem;
  color: #888;
}

/* Pagination */
.blog-pagination {
  text-align: center;
  margin: 3rem 0;
}

.blog-pagination .page-numbers {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  background: white;
  border: 2px solid #e0e0e0;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

/* Single Post Styles */
.single-post-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 3rem;
}

.single-post-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.single-post-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.3;
}

.single-post-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  color: #666;
  font-size: 1rem;
}

.single-post-image {
  margin-bottom: 2rem;
  text-align: center;
}

.single-post-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.single-post-content {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
}

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

.single-post-content blockquote {
  border-left: 4px solid #667eea;
  padding-left: 2rem;
  margin: 2rem 0;
  font-style: italic;
  background: #f8f9fa;
  padding: 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: 1px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg);
}

/* Mobile Navigation Overlay - Hidden by default */
.mobile-navigation {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.mobile-navigation.active {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-menu li {
  margin: 0;
}

.mobile-nav-menu a {
  font-size: 1.5rem;
  padding: 1rem 2rem;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: block;
}

.mobile-nav-menu a:hover,
.mobile-demo-btn {
  background: #2563eb !important;
  color: white !important;
}

.mobile-demo-btn {
  background: #2563eb;
  color: white;
  font-weight: 600;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden !important;
}

/* Responsive Design */
@media (max-width: 900px) {
  .header-container {
    padding: 0 1.5rem;
    position: relative;
  }

  .mobile-menu-toggle {
    display: flex !important;
    order: 3;
  }

  .header-left {
    order: 1;
    flex: 1;
  }

  .header-center {
    order: 2;
    display: none !important;
  }

  .header-right {
    order: 4;
    display: none !important;
  }

  .main-navigation {
    display: none !important;
  }

  .nav-menu {
    display: none !important;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  body .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .search-filter-container {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    min-width: auto;
    max-width: none;
  }

  .single-post-title {
    font-size: 1.5rem;
  }

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

@media (max-width: 640px) {
  body .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .blog-container {
    padding: 0 2rem !important;
  }

  .blog-card-content {
    padding: 1.25rem !important;
  }

  .blog-card-image {
    height: 175px !important;
  }
}

@media (max-width: 480px) {
  .blog-container,
  .single-post-container {
    padding: 0 1rem !important;
  }

  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .blog-card {
    margin: 0 !important;
  }

  .blog-card-content {
    padding: 1rem !important;
  }

  .blog-card-image {
    height: 150px !important;
  }

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

  .blog-card-excerpt {
    font-size: 0.85rem !important;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .search-filter-section {
    padding: 1rem;
  }
}

/* Footer Styles */
body .site-footer {
  background: transparent !important;
  border-top: 1px solid rgba(224, 224, 224, 0.5) !important;
  padding: 1.5rem 0 !important;
  margin-top: 3rem !important;
}

body .footer-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: 2rem 3rem !important;
}

body .footer-left p {
  margin: 0 !important;
  font-size: 0.9rem !important;
  color: #666 !important;
}

body .footer-right {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

body .footer-right a {
  font-size: 0.85rem !important;
  color: #888 !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

body .footer-right a:hover {
  color: #667eea !important;
}

body .footer-separator {
  font-size: 0.85rem !important;
  color: #ccc !important;
  margin: 0 0.25rem !important;
}

@media (max-width: 900px) {
  body .footer-container {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center !important;
  }

  body .footer-right {
    justify-content: center !important;
  }
}

