/*
Theme Name: Creativity MD Theme
Description: Тема WordPress для сайта Ассоциации Креативных Индустрий Приднестровья
Version: 2.3
Author: Creativity MD
Text Domain: creativity-md
Screenshot: screenshot.png
*/

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.entry-thumbnail {
  display: none;
}

body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
    sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: #fff;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: all 0.3s ease;
  box-shadow: none;
}

/* Make all headers have same padding */
.site-header .header-content {
  padding: 0;
}

/* Fixed header only on homepage */
.home .site-header {
  background: transparent;
  position: fixed;
  padding: 0;
  box-shadow: none;
}

/* Header with white background when scrolled */
.site-header.scrolled {
  background: #fff;
  box-shadow: none;
}

.header-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

/* Left: Logo */
.site-branding {
  flex-shrink: 0;
}

.site-logo {
  text-decoration: none;
  display: block;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon img,
.logo-icon .custom-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

/* Right: Two rows */
.header-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Top row: Contacts and languages */
.header-top-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 8px;
  border-bottom: 1px solid #ecf0f1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 20px;
}

.phone {
  font-size: 12px;
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
}

.phone:hover {
  text-decoration: none;
}

.email {
  font-size: 12px;
  color: #7f8c8d;
  text-decoration: none;
}

.email:hover {
  text-decoration: none;
}

/* White text only on homepage when not scrolled */
.home .phone {
  color: white !important;
}

.home .email {
  color: white !important;
}

.home .find-us-btn {
  color: white;
  border-color: white;
}

.home .find-us-btn:hover {
  background: white;
  color: #2c3e50;
}

.home .lang-btn {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.home .lang-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

.home .lang-btn.active {
  background: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

.home .main-navigation a {
  color: white;
}

.home .main-navigation a:hover {
  color: #e74c3c;
}

/* Header text colors when scrolled */
.site-header.scrolled .phone {
  color: #2c3e50 !important;
  text-decoration: none;
}

.site-header.scrolled .phone:hover {
  text-decoration: none;
}

.site-header.scrolled .email {
  color: #7f8c8d !important;
  text-decoration: none;
}

.site-header.scrolled .email:hover {
  text-decoration: none;
}

.site-header.scrolled .find-us-btn {
  color: #2c3e50;
  border-color: #e74c3c;
}

.site-header.scrolled .find-us-btn:hover {
  background: #e74c3c;
  color: white;
}

.site-header.scrolled .lang-btn {
  color: #2c3e50;
  background: #f8f9fa;
  border: 1px solid #e1e8ed;
}

.site-header.scrolled .lang-btn:hover {
  background: #e9ecef;
  color: #2c3e50;
}

.site-header.scrolled .lang-btn.active {
  background: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

.site-header.scrolled .main-navigation a {
  color: #2c3e50;
}

.site-header.scrolled .main-navigation a:hover {
  color: #e74c3c;
}

/* Regular header (non-homepage) styles */
.site-header:not(.home) .phone {
  color: #2c3e50;
  text-decoration: none;
}

.site-header:not(.home) .phone:hover {
  text-decoration: none;
}

.site-header:not(.home) .email {
  color: #7f8c8d;
  text-decoration: none;
}

.site-header:not(.home) .email:hover {
  text-decoration: none;
}

.site-header:not(.home) .lang-btn {
  color: #2c3e50;
  background: #f8f9fa;
  border: 1px solid #e1e8ed;
}

.site-header:not(.home) .lang-btn:hover {
  background: #e9ecef;
  color: #2c3e50;
}

.site-header:not(.home) .lang-btn.active {
  background: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

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

.find-us-btn {
  background: transparent;
  color: #2c3e50;
  border: 1px solid #f39c12;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* White text only on homepage */
.home .find-us-btn {
  color: white;
}

/* Find us button when scrolled */
.site-header.scrolled .find-us-btn {
  color: #2c3e50;
}

.find-us-btn:hover {
  background: #f39c12;
  color: white;
}

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

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.3s ease;
}

/* Social links when scrolled */
.site-header.scrolled .social-link {
  background: #f8f9fa;
  border: 1px solid #ecf0f1;
}

.social-link:hover {
  background: #f39c12;
  transform: scale(1.1);
}

.language-switcher {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 2px;
}

/* Language switcher when scrolled */
.site-header.scrolled .language-switcher {
  background: #f8f9fa;
  border: 1px solid #ecf0f1;
}

.lang-btn {
  background: transparent;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Language buttons when scrolled */
.site-header.scrolled .lang-btn {
  color: #7f8c8d;
}

.lang-btn.active {
  background: #f39c12;
  color: white;
}

.lang-btn:hover:not(.active) {
  background: #e9ecef;
  color: #2c3e50;
}

/* Bottom row: Navigation menu */
.header-bottom-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.site-logo {
  font-size: 12px;
  font-weight: 700;
  color: #2c3e50;
  text-decoration: none;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-navigation a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* White text only on homepage */
.home .main-navigation a {
  color: white;
}

/* Active menu item styles */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: #e74c3c;
}

/* Active menu item on homepage */
.home .main-navigation .current-menu-item > a,
.home .main-navigation .current_page_item > a {
  color: #e74c3c;
}

/* Navigation links when scrolled */
.site-header.scrolled .main-navigation a {
  color: #333;
}

.main-navigation a:hover {
  color: #e74c3c;
}

/* Hero Section with Slider */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  color: white;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1 !important;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: slideInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 12px;
  margin-bottom: 2rem;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: slideInUp 1s ease-out 0.2s both;
}

.hero-subtitle p {
  margin: 0 0 1rem 0;
}

.hero-subtitle p:last-child {
  margin-bottom: 0;
}

.hero-description {
  font-size: 12px;
  max-width: 700px;
  margin: 0 auto 3rem;
  opacity: 0.9;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: slideInUp 1s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideInUp 1s ease-out 0.6s both;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

.btn-primary:hover {
  background: #c0392b;
  border-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: none;
}

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

.btn-outline:hover {
  background: white;
  color: #2c3e50;
  transform: translateY(-2px);
  box-shadow: none;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2rem;
  z-index: 3;
}

.slider-prev,
.slider-next {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 1rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active,
.slider-dot:hover {
  background: white;
  transform: scale(1.2);
}

/* Slider Progress Bar */
.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 3;
}

.slider-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #e74c3c, #c0392b);
  width: 0%;
  transition: width 0.3s ease;
}

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

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

/* About Section */
.about-section {
  padding: 100px 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 400px;
  text-align: center;
}

.about-text {
  padding-right: 0;
}

.about-badge {
  display: inline-block;
  background: #f8f9fa;
  color: #e74c3c;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #e74c3c;
  box-shadow: none;
}

.about-title {
  font-size: 3rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 30px;
  line-height: 1.2;
}

.about-description {
  margin-bottom: 50px;
}

.about-description p {
  font-size: 12px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 0;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: #fff;
}

.feature-item:last-child {
  border-bottom: 1px solid #f0f0f0;
}

.feature-item:hover {
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 19px !important;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e74c3c;
  border-radius: 15px;
  flex-shrink: 0;
  box-shadow: none;
  color: #e74c3c;
}

.feature-content h3 {
  font-size: 12px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-content p {
  color: #666;
  line-height: 1.5;
  margin: 0;
  font-size: 12px;
}

/* Hide about visual image per new layout */
.about-visual {
  display: none !important;
}

.about-visual-image {
  width: 100%;
  height: 120%; /* Увеличиваем высоту для эффекта параллакса */
  object-fit: cover; /* Меняем на cover для заполнения */
  object-position: center;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.8) 0%,
    rgba(118, 75, 162, 0.8) 50%,
    rgba(231, 76, 60, 0.8) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.visual-content {
  text-align: center;
  color: white;
}

.visual-text h3 {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
  letter-spacing: 1px;
}

/* Mission Cards */

/* Projects Section */
.projects-section {
  padding: 80px 0;
}

.projects-more {
  text-align: center;
  margin-top: 40px;
}

.projects-more .btn {
  background: #e74c3c !important;
  color: white !important;
  border: none !important;
  padding: 15px 40px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 16px;
}

.news-more {
  text-align: center;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.news-more .btn {
  background: #e74c3c !important;
  color: white !important;
  border: none !important;
  padding: 15px 40px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 16px;
}

.news-more .btn:hover {
  background: #c0392b !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: none;
}

.projects-more .btn:hover {
  background: #c0392b !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: none;
}

.section-title {
  text-align: center;
  font-size: 17px;
  margin-bottom: 1rem;
  color: #2c3e50;
}

/* Projects Section on Homepage */
.projects-section .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Archive Our Projects Styles */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
}

/* Projects Section on Homepage - smaller images */
.projects-section .project-image {
  width: 100%;
  height: 160px;
  background: #ddd;
  object-fit: cover;
  object-position: center;
}

/* Archive page - larger images */
.project-image {
  width: 100%;
  height: 200px;
  background: #ddd;
  object-fit: cover;
  object-position: center;
}

/* Projects Section on Homepage - smaller content */
.projects-section .project-content {
  padding: 1.2rem;
}

/* Archive page - larger content */
.project-content {
  padding: 1.5rem;
}

/* Projects Section on Homepage - smaller titles */
.projects-section .project-title {
  font-size: 12px;
  margin-top: 15px;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-clamp: 2;
}

/* Archive page - larger titles */
.project-title {
  font-size: 12px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 15px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-clamp: 2;
}

/* News Section */
.news-section {
  padding: 100px 0;
  background-color: transparent;
  background-image: linear-gradient(90deg, #f6f4fb 0%, #def5f6 100%);
}

.news-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.news-header {
  text-align: center;
  margin-bottom: 0;
}

.news-badge {
  display: inline-block;
  background: #f8f9fa;
  color: #e74c3c;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #e74c3c;
  box-shadow: none;
}

.news-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 30px !important;
  align-items: start;
}

.news-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.news-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  font-size: 12px;
  color: #e74c3c;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 12px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover {
  color: #e74c3c;
}

.card-date {
  font-size: 12px;
  color: #7f8c8d;
  margin-bottom: 15px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #e74c3c;
  font-weight: 600;
  text-decoration: none;
  font-size: 12px;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: #c0392b;
  background: white;
  transform: translateY(-2px);
}

.read-more svg {
  width: 16px;
  height: 16px;
}

/* Category Page Styles */
.content-wrapper {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e74c3c;
}

.page-title {
  font-size: 17px;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.category-description {
  color: #7f8c8d;
  font-size: 12px;
  line-height: 1.6;
}

.sidebar {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 12px;
  height: fit-content;
}

.sidebar-widget {
  margin-bottom: 2rem;
}

.sidebar-widget:last-child {
  margin-bottom: 0;
}

.sidebar-widget h3 {
  color: #2c3e50;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e74c3c;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 0.5rem;
}

.category-list a {
  color: #374151;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.category-list a:hover {
  background-color: #e5e7eb;
  color: #e74c3c;
}

.category-list .current-category a {
  background-color: #e74c3c;
  color: white;
}

.count {
  font-size: 0.875rem;
  color: #6b7280;
}

.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-post {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.recent-post:hover {
  transform: translateY(-2px);
}

.recent-post-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.recent-post-content h4 {
  margin: 0 0 4px 0;
  font-size: 0.875rem;
  line-height: 1.3;
}

.recent-post-content h4 a {
  color: #374151;
  text-decoration: none;
}

.recent-post-content h4 a:hover {
  color: #e74c3c;
}

.recent-post-date {
  font-size: 12px;
  color: #6b7280;
}

.subscription-widget {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.subscription-widget p {
  margin-bottom: 1rem;
  color: #374151;
}

.subscription-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.subscription-form input {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
}

.subscription-form button {
  padding: 8px 12px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.subscription-form button:hover {
  background-color: #c0392b;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #374151;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background-color: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

.pagination .current {
  background-color: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

.no-posts {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: none;
}

.news-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

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

.news-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: white;
}

.news-categories {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.news-category {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  white-space: nowrap;
  margin-right: 6px;
  margin-bottom: 6px;
}

.news-category-primary {
  background: #e74c3c;
  color: white;
}

.news-category-secondary {
  background: rgba(231, 76, 60, 0.8);
  color: white;
}

.news-content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: white !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3.9em; /* Fallback для браузеров без поддержки line-clamp */
}

.news-title a {
  color: white !important;
  text-decoration: none;
}

.news-title a:hover {
  color: #e74c3c !important;
}

.news-card-large .news-title {
  font-size: 12px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 12px;
  opacity: 0.9;
  margin-top: auto;
}

.news-date {
  font-weight: 500;
  color: #2c3e50 !important;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-author {
  color: #2c3e50 !important;
}

.author-name {
  color: #2c3e50 !important;
}

.news-comments {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* News Placeholders */
.news-placeholder-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-placeholder-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.news-placeholder-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.news-placeholder-4 {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.news-placeholder-5 {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Members Section */
/* Members Section - Slider */
.members-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.members-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 20%,
      rgba(102, 126, 234, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(118, 75, 162, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.members-header {
  text-align: center;
  position: relative;
  z-index: 2;
}

.members-badge {
  display: inline-block;
  background: #f8f9fa;
  color: #667eea;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #667eea;
  box-shadow: none;
}

.members-subtitle {
  font-size: 12px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.members-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
}

.members-slider {
  display: flex;
  gap: 30px;
  padding: 20px 0;
  scroll-behavior: smooth;
  width: max-content;
  transition: transform 0.3s ease;
  flex-wrap: nowrap;
  height: auto;
}

.member-card {
  flex: 0 0 300px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  min-width: 300px;
  max-width: 300px;
}

.member-card:hover {
  transform: translateY(-10px);
}

.member-photo {
  position: relative;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.member-photo-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: none;
  background: #f0f0f0;
}

.member-photo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.member-initials {
  font-size: 17px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.member-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.member-card:hover .member-overlay {
  opacity: 1;
}

.member-social {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.member-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 20px;
  text-align: center;
  border-radius: 0 0 15px 15px;
}

.member-info {
  padding: 25px;
  text-align: center;
}

.member-name {
  font-size: 12px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
  line-height: 1.3;
}

.member-specialty {
  color: #666;
  font-size: 12px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.member-tag {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
}

/* Auto Scroll Animation */
@keyframes autoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Members Slider Controls */
.members-slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.members-slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.members-slider-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.members-slider-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.members-slider-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.members-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.members-slider-dot.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: scale(1.2);
}

.members-slider-dot:hover {
  background: rgba(102, 126, 234, 0.6);
}

/* Main Content */
.site-main {
  padding-top: 0; /* No padding - header is over the content */
}

/* Responsive Members Slider */
@media (max-width: 768px) {
  .members-section {
    padding: 60px 0;
  }

  .members-slider {
    gap: 20px;
    padding: 10px 0;
  }

  .member-card {
    flex: 0 0 280px;
  }

  .member-photo {
    height: 180px;
  }

  .member-photo-placeholder {
    width: 80px;
    height: 80px;
  }

  .member-initials {
    font-size: 12px;
  }

  .member-info {
    padding: 20px;
  }

  .members-slider-btn {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .members-slider-controls {
    gap: 15px;
    margin-top: 20px;
  }

  .members-slider-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .member-card {
    flex: 0 0 250px;
  }

  .member-photo {
    height: 160px;
  }

  .member-photo-placeholder {
    width: 70px;
    height: 70px;
  }

  .member-initials {
    font-size: 12px;
  }

  .members-slider-btn {
    width: 35px;
    height: 35px;
    font-size: 12px;
  }

  .members-slider-controls {
    gap: 10px;
  }
}

/* Responsive Header */
@media (max-width: 768px) {
  .site-header {
    padding: 0;
  }

  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .site-branding {
    align-self: center;
  }

  .header-right {
    width: 100%;
  }

  .header-top-row {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .header-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-bottom-row {
    justify-content: center;
  }

  .site-main {
    padding-top: 150px; /* More space for mobile header */
  }
}

/* CTA Section */
/* CTA Section */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.cta-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  animation: ctaFloat 20s ease-in-out infinite;
}

@keyframes ctaFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.cta-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #fff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.cta-description {
  font-size: 12px;
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  min-width: 150px;
}

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

.cta-feature-icon {
  font-size: 19px !important;
  margin-bottom: 5px;
}

.cta-feature span {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button-primary {
  background: white;
  color: #667eea;
  box-shadow: none;
}

.cta-button-primary:hover {
  transform: translateY(-3px);
  box-shadow: none;
  color: #5a6fd8;
}

.cta-button-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cta-button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

/* Responsive CTA */
@media (max-width: 768px) {
  .cta-section {
    padding: 80px 0;
  }

  .cta-title {
    font-size: 17px;
  }

  .cta-description {
    font-size: 12px;
  }

  .cta-features {
    gap: 20px;
    margin-bottom: 40px;
  }

  .cta-feature {
    min-width: 120px;
    padding: 15px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
  }
}

/* Footer */
.site-footer {
  background: #2c3e50;
  color: white;
  padding: 30px 0px;
}

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

.footer-section h3 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Footer Menu */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-menu a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 2rem;
  text-align: center;
  color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    height: 100vh;
    min-height: 500px;
  }

  .hero-title {
    font-size: 17px;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 12px;
    margin-bottom: 1.5rem;
  }

  .hero-description {
    font-size: 12px;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn {
    width: 200px;
    text-align: center;
  }

  .slider-controls {
    bottom: 30px;
    gap: 1rem;
  }

  .slider-prev,
  .slider-next {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .slider-dots {
    gap: 0.5rem;
  }

  .slider-dot {
    width: 10px;
    height: 10px;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 1rem;
  }

  .mission-cards {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 20px;
  }

  .project-image {
    height: 140px;
  }

  .project-content {
    padding: 1rem;
  }

  .project-title {
    font-size: 12px;
  }

  /* News Section Mobile */
  .news-section .container {
    padding: 0 20px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .news-card {
    height: 300px;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sidebar {
    padding: 1rem;
  }

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

  /* About Section Mobile */
  .about-content {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .about-text {
    padding-right: 0;
  }

  .about-title {
    font-size: 2.2rem;
  }

  .about-visual {
    height: 400px;
    order: -1;
  }

  .visual-text h3 {
    font-size: 12px;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .feature-item:hover {
    transform: none;
    padding-left: 0;
  }

  .feature-icon {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 17px;
  }

  .hero-subtitle {
    font-size: 12px;
  }

  .hero-subtitle p {
    margin: 0 0 0.5rem 0;
  }

  .hero-subtitle p:last-child {
    margin-bottom: 0;
  }

  .hero-description {
    font-size: 12px;
  }

  .hero-content {
    padding: 0 15px;
  }

  .slider-controls {
    bottom: 20px;
    flex-direction: column;
    gap: 0.5rem;
  }

  .slider-prev,
  .slider-next {
    width: 35px;
    height: 35px;
    font-size: 12px;
  }

  /* About Section Small Mobile */
  .about-title {
    font-size: 12px;
  }

  .about-description p {
    font-size: 12px;
  }

  .about-visual {
    height: 300px;
  }

  .visual-text h3 {
    font-size: 12px;
    padding: 0 20px;
  }

  .feature-content h3 {
    font-size: 12px;
  }

  .feature-content p {
    font-size: 12px;
  }

  /* News Section Small Mobile */
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card {
    height: 300px;
  }

  .news-category {
    font-size: 12px;
    padding: 4px 8px;
  }

  .news-meta {
    font-size: 12px;
  }
}

/* Single Post and Page Styles */
.entry-header {
  margin-bottom: 2rem;
}

.entry-title {
  font-size: 17px;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.entry-meta {
  color: #666;
  font-size: 12px;
  margin-bottom: 1rem;
}

.entry-meta .posted-on,
.entry-meta .byline {
  margin-right: 1rem;
}

.entry-thumbnail {
  margin-bottom: 2rem;
}

.entry-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.entry-content {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 2rem;
}

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

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: #2c3e50;
  margin: 2rem 0 1rem;
}

.entry-footer {
  border-top: 1px solid #eee;
  padding-top: 1rem;
  color: #666;
  font-size: 12px;
}

/* Archive and Search Styles */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  background: #f8f9fa;
  border-radius: 10px;
}

.page-title {
  font-size: 17px;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.archive-description {
  font-size: 12px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-thumbnail {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

.post-content {
  padding: 1.5rem;
}

.post-content .entry-title {
  font-size: 12px;
  margin-bottom: 0.5rem;
}

.post-content .entry-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-content .entry-title a:hover {
  color: #e74c3c;
}

.post-content .entry-meta {
  margin-bottom: 1rem;
  font-size: 12px;
}

.post-content .entry-summary {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  color: #e74c3c;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #c0392b;
}

/* 404 Page Styles */
.error-404 {
  text-align: center;
  padding: 3rem 0;
}

.error-404 .page-title {
  font-size: 6rem;
  color: #e74c3c;
  margin-bottom: 1rem;
  font-weight: 700;
}

.error-404 h2 {
  font-size: 17px;
  color: #2c3e50;
  margin-bottom: 2rem;
}

.error-404 .page-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-actions {
  margin: 2rem 0;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #e74c3c;
  color: white;
}

.btn-primary:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

.search-form-container {
  margin: 2rem 0;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 10px;
}

.search-form-container h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.search-form {
  display: flex;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 12px;
}

.search-form input[type="submit"] {
  padding: 0.75rem 1.5rem;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.search-form input[type="submit"]:hover {
  background: #c0392b;
}

.recent-posts {
  text-align: left;
  margin-top: 2rem;
}

.recent-posts h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.recent-posts ul {
  list-style: none;
  padding: 0;
}

.recent-posts li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.recent-posts li:last-child {
  border-bottom: none;
}

.recent-posts a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.recent-posts a:hover {
  color: #e74c3c;
}

.no-results,
.no-posts {
  text-align: center;
  padding: 3rem 0;
}

.no-results h2,
.no-posts h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.no-results p,
.no-posts p {
  color: #666;
  font-size: 12px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-decoration: none;
  color: #2c3e50;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

.pagination .current {
  background: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

/* Comments */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.comments-title {
  color: #2c3e50;
  margin-bottom: 2rem;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 10px;
}

.comment-author {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.comment-meta {
  color: #666;
  font-size: 12px;
  margin-bottom: 1rem;
}

.comment-content {
  line-height: 1.6;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}

/* Single News Page Styles */
.news-hero-image {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}

.news-hero-image .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 1;
}

.hero-content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 2rem 0 0 0;
}

.hero-content-block {
  background: white;
  width: 100%;
  border-radius: 10px 10px 0px 0px;
  padding: 2rem 3rem 0rem 3rem;
}

.news-breadcrumbs {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 12px;
  color: #666;
}

.breadcrumb-link {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: #e74c3c;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: #999;
}

.breadcrumb-current {
  color: #2c3e50;
  font-weight: 500;
}

.news-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.category-tag {
  background: #e74c3c;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-news {
  color: white;
}

.category-events {
  background: #3498db;
  color: white;
}

.news-title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #2c3e50 !important;
  margin: 0;
  line-height: 1.2;
  text-shadow: none !important;
}

h1.news-title {
  color: #2c3e50 !important;
  text-shadow: none !important;
}

.hero-content-block .news-title {
  color: #2c3e50 !important;
  text-shadow: none !important;
}

.news-content-wrapper {
  background: white;
  padding: 3rem 0;
}

.news-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 12px;
  color: #444;
}

.news-content h1,
.news-content h2,
.news-content h3,
.news-content h4,
.news-content h5,
.news-content h6 {
  color: #2c3e50;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

.news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.news-content blockquote {
  border-left: 4px solid #e74c3c;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666;
}

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

.news-content li {
  margin-bottom: 0.5rem;
}

/* Responsive styles for single news */
@media (max-width: 768px) {
  .news-hero-image {
    height: 50vh;
    min-height: 300px;
  }

  .hero-content-overlay {
    padding: 1.5rem 0;
  }

  .news-title {
    font-size: 12px;
  }

  .news-content-wrapper {
    padding: 2rem 0;
  }

  .news-content {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .news-hero-image {
    height: 40vh;
    min-height: 250px;
  }

  .hero-content-overlay {
    padding: 1rem 0;
  }

  .news-title {
    font-size: 12px;
  }

  .news-breadcrumbs {
    font-size: 12px;
  }

  .category-tag {
    font-size: 12px;
    padding: 4px 8px;
  }
}

.no-members-message {
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  margin: 40px auto;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.no-members-message h3 {
  font-size: 17px;
  color: white;
  margin-bottom: 30px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.no-members-message .btn {
  background: white;
  color: #667eea;
  padding: 15px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.no-members-message .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  color: #764ba2;
}

/* Archive Our Projects Styles */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

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

.project-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.project-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}

.project-content {
  padding: 25px;
}

.project-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 15px;
}

.project-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 12px;
  font-weight: 700;
}

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

.project-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.project-date {
  color: #999;
  font-size: 12px;
}

.read-more {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #764ba2;
}

.read-more svg {
  width: 16px;
  height: 16px;
}

/* Single Project Styles */
.project-single {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 40px;
}

.project-hero {
  position: relative;
  margin-bottom: 40px;
}

.project-hero-image {
  height: 400px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-content {
  padding: 30px;
  background: white;
  border-radius: 15px 15px 0 0;
  margin-top: -20px;
  position: relative;
  z-index: 2;
}

.project-breadcrumbs {
  margin-bottom: 20px;
  font-size: 12px;
  color: #666;
}

.breadcrumb-link {
  color: #667eea;
  text-decoration: none;
}

.breadcrumb-link:hover {
  color: #764ba2;
}

.breadcrumb-separator {
  margin: 0 10px;
  color: #ccc;
}

.breadcrumb-current {
  color: #2c3e50;
  font-weight: 600;
}

.project-title {
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.project-date {
  color: #666;
  font-size: 12px;
}

.project-content {
  padding: 0 30px 30px;
}

.project-description {
  font-size: 12px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 30px;
}

.project-description h2,
.project-description h3,
.project-description h4 {
  color: #2c3e50;
  margin: 30px 0 15px;
}

.project-description p {
  margin-bottom: 20px;
}

.project-summary {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  border-left: 4px solid #667eea;
}

.project-summary h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 12px;
}

/* Project Navigation */
.project-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 15px;
}

.nav-previous,
.nav-next {
  flex: 1;
}

.nav-link {
  display: block;
  padding: 20px;
  background: white;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-direction {
  display: block;
  color: #667eea;
  font-weight: 600;
  margin-bottom: 5px;
}

.nav-title {
  display: block;
  color: #2c3e50;
  font-size: 12px;
  line-height: 1.4;
}

/* Related Projects */
.related-projects {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.related-project {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.related-project:hover {
  background: #e9ecef;
}

.related-project-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.recent-post-image-placeholder,
.related-project-image-placeholder {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  flex-shrink: 0;
}

.related-project-content h4 {
  margin: 0 0 5px;
  font-size: 12px;
}

.related-project-content a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-project-content a:hover {
  color: #667eea;
}

.related-project-date {
  color: #666;
  font-size: 12px;
}

.all-projects-link {
  text-align: center;
  padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-hero-content {
    padding: 20px;
  }

  .project-title {
    font-size: 17px;
  }

  .project-content {
    padding: 0 20px 20px;
  }

  .project-navigation {
    flex-direction: column;
    padding: 20px;
  }

  .nav-previous,
  .nav-next {
    flex: none;
  }
}

/* Global font sizes */
h1,
h2 {
  font-size: 30px !important;
}

h3,
h4,
h5 {
  font-size: 17px !important;
}

p,
div,
span,
a,
li,
td,
th,
.text {
  font-size: 12px !important;
}

/* Global section vertical spacing cap */
section:not(.hero-section),
[class$="-section"]:not(.hero-section) {
  padding-top: 50px !important;
  padding-bottom: 50px !important;
}

/* Ensure links inside headings inherit typography from the heading */
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  font-size: inherit !important;
  line-height: inherit;
  font-weight: inherit;
}
