/* --- BLOG HERO SECTION --- */
.blog-hero {
  background: #1e54c0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 0;
  min-height: 400px;
  max-width: 100vw;
}

.blog-hero-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 400px;
}

.blog-hero-content {
  flex: 1;
  max-width: 600px;
  padding-right: 40px;
  color: #fff;
  z-index: 2;
}

.blog-hero-image {
  flex: 1;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-hero-image .featured-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  max-height: 350px;
}

.blog-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  line-height: 1.2;
}

.blog-categories {
  margin-bottom: 15px;
}

.category-badge {
  display: inline-block;
  padding: 5px 12px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 8px;
  margin-bottom: 8px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.category-badge:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 20px;
}

.blog-meta i {
  margin-right: 5px;
}

/* --- BLOG CONTENT SECTION --- */
.blog-content {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- BLOG GALLERY --- */
.blog-gallery {
  margin: 30px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item {
  position: relative;
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Slick slider customization */
.blog-gallery .slick-prev,
.blog-gallery .slick-next {
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(30, 84, 192, 0.8);
  border-radius: 50%;
}

.blog-gallery .slick-prev:hover,
.blog-gallery .slick-next:hover {
  background: rgba(30, 84, 192, 1);
}

.blog-gallery .slick-prev {
  left: 15px;
}

.blog-gallery .slick-next {
  right: 15px;
}

.blog-gallery .slick-prev:before,
.blog-gallery .slick-next:before {
  font-size: 20px;
}

.blog-gallery .slick-dots {
  bottom: 15px;
}

.blog-gallery .slick-dots li button:before {
  font-size: 12px;
  color: #fff;
  opacity: 0.7;
}

.blog-gallery .slick-dots li.slick-active button:before {
  color: #fff;
  opacity: 1;
}

.blog-content-wrapper {
  display: flex;
  gap: 40px;
}

.blog-main-content {
  flex: 2;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
}

.blog-main-content p {
  margin-bottom: 2.5rem;
}

.blog-main-content h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1e54c0;
}

.blog-main-content h3 {
  font-size: 1.5rem;
  margin-top: 1.8rem;
  margin-bottom: 1rem;
  color: #1e54c0;
}

.blog-main-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

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

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

.blog-main-content blockquote {
  border-left: 4px solid #1e54c0;
  padding-left: 20px;
  margin-left: 0;
  font-style: italic;
  color: #555;
}

/* --- BLOG CTA SECTIONS --- */
.blog-cta {
  margin: 40px 0;
  padding: 30px;
  border-radius: 12px;
  background-color: #f5f8ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-cta-primary {
  background-color: #1e54c0;
  color: #fff;
}

.blog-cta-secondary {
  background-color: #1e54c0;
  color: #ffffff;
  border: 1px solid #1e54c0;
}

.blog-cta .cta-content {
  flex: 3;
  color: inherit;
}

.blog-cta .cta-button {
  flex: 1;
  text-align: right;
}

.blog-cta h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: inherit;
  font-weight: 600;
}

.blog-cta p {
  margin-bottom: 0;
  font-size: 1rem;
  color: inherit;
  opacity: 0.9;
}

.blog-cta .btn {
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s;
}

.blog-cta .btn-primary {
  background-color: #fff;
  color: #1e54c0;
}

.blog-cta .btn-outline {
  background-color: transparent;
  color: #1e54c0;
  border: 2px solid #1e54c0;
  margin-top: 15px;
}

.blog-cta .btn-primary:hover {
  background-color: #f0f0f0;
}

.blog-cta .btn-outline:hover {
  background-color: #1e54c0;
  color: #fff;
}

.cta-icon {
  font-size: 2.5rem;
  color: #1e54c0;
  margin-right: 20px;
}

/* --- BLOG TAGS AND SHARE --- */
.blog-tags {
  margin: 40px 0 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.tags-title {
  font-weight: 600;
  margin-right: 10px;
  color: #555;
}

.tag-link {
  display: inline-block;
  padding: 5px 12px;
  background-color: #f0f4fa;
  color: #1e54c0;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-right: 8px;
  margin-bottom: 8px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.tag-link:hover {
  background-color: #e0e8f7;
}

.blog-share {
  margin: 30px 0;
  display: flex;
  align-items: center;
}

.share-title {
  font-weight: 600;
  margin-right: 15px;
  color: #555;
}

.share-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s;
}

.share-button:hover {
  transform: translateY(-3px);
}

.facebook {
  background-color: #3b5998;
}

.twitter {
  background-color: #1da1f2;
}

.linkedin {
  background-color: #0077b5;
}

.whatsapp {
  background-color: #25d366;
}

/* --- BLOG AUTHOR BOX --- */
.blog-author-box {
  margin: 50px 0;
  padding: 30px;
  background-color: #f5f8ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
}

.author-avatar {
  flex: 0 0 120px;
  margin-right: 20px;
}

.author-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-info {
  flex: 1;
}

.author-name {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #1e54c0;
}

.author-bio {
  margin-bottom: 15px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.author-link {
  color: #1e54c0;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.author-link:hover {
  text-decoration: underline;
}

/* --- BLOG RELATED POSTS --- */
.blog-related {
  margin: 60px 0 40px;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: #1e54c0;
  position: relative;
  padding-bottom: 10px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #1e54c0;
}

.related-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.related-post {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

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

.related-thumb {
  display: block;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.related-post:hover .related-thumb img {
  transform: scale(1.05);
}

.related-title {
  padding: 15px 15px 5px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

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

.related-title a:hover {
  color: #1e54c0;
}

.related-date {
  padding: 0 15px 15px;
  font-size: 0.8rem;
  color: #777;
}

/* --- BLOG SIDEBAR --- */
.blog-sidebar {
  flex: 1;
}

.sidebar-widget {
  margin-bottom: 40px;
  padding: 25px;
  background-color: #f5f8ff;
  border-radius: 12px;
}

.sidebar-widget h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #1e54c0;
  position: relative;
  padding-bottom: 10px;
}

.sidebar-widget h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #1e54c0;
}

.sidebar-cta {
  background-color: #1e54c0;
  color: #fff;
  text-align: center;
}

.sidebar-cta h3 {
  color: #fff;
}

.sidebar-cta h3:after {
  background-color: #fff;
  left: 50%;
  transform: translateX(-50%);
}

.sidebar-cta .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #fff;
  color: #1e54c0;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  transition: background-color 0.3s;
}

.sidebar-cta .btn:hover {
  background-color: #f0f0f0;
}

.search-form {
  display: flex;
  position: relative;
}

.search-field {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e8f7;
  border-radius: 4px;
  font-size: 0.9rem;
}

.search-submit {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 45px;
  background-color: #1e54c0;
  border: none;
  border-radius: 0 4px 4px 0;
  color: #fff;
  cursor: pointer;
}

.sidebar-categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-categories li {
  border-bottom: 1px solid #e0e8f7;
}

.sidebar-categories li:last-child {
  border-bottom: none;
}

.sidebar-categories a {
  display: block;
  padding: 10px 0;
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.sidebar-categories a:hover {
  color: #1e54c0;
}

.count {
  float: right;
  color: #777;
}

.popular-posts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.popular-post {
  display: flex;
  align-items: center;
}

.popular-thumb {
  flex: 0 0 70px;
  height: 70px;
  margin-right: 15px;
  border-radius: 6px;
  overflow: hidden;
}

.popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-content {
  flex: 1;
}

.popular-content h4 {
  margin: 0 0 5px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.popular-content h4 a {
  color: #333;
  text-decoration: none;
}

.popular-content h4 a:hover {
  color: #1e54c0;
}

.popular-date {
  font-size: 0.8rem;
  color: #777;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- COMMENTS SECTION --- */
.comments-area {
  margin-top: 60px;
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: #1e54c0;
}

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

.comment {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.comment-author {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.comment-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.comment-metadata {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 15px;
}

.comment-content {
  font-size: 0.95rem;
  line-height: 1.6;
}

.reply {
  margin-top: 10px;
}

.reply a {
  color: #1e54c0;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.comment-respond {
  margin-top: 50px;
}

.comment-reply-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #1e54c0;
}

.comment-form-comment label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.comment-form-comment textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  height: 150px;
  resize: vertical;
}

.form-submit .submit {
  background-color: #1e54c0;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form-submit .submit:hover {
  background-color: #1a4aa8;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 900px) {
  .blog-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 20px;
  }
  
  .blog-hero-content {
    padding-right: 0;
    margin-bottom: 30px;
    max-width: 100%;
  }
  
  .blog-hero-image {
    width: 100%;
  }
  
  .blog-content-wrapper {
    flex-direction: column;
  }
  
  .blog-cta {
    flex-direction: column;
    text-align: center;
  }
  
  .blog-cta .cta-button {
    margin-top: 20px;
    text-align: center;
  }
  
  .related-posts {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-author-box {
    flex-direction: column;
    text-align: center;
  }
  
  .author-avatar {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .blog-hero h1 {
    font-size: 2rem;
  }
  
  .blog-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .related-posts {
    grid-template-columns: 1fr;
  }
}

/* Stiluri pentru formularul modal de ofertă */
.modal-oferta {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

.modal-oferta.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  position: relative;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  margin: 40px auto;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: #e0e0e0;
  color: #000;
}

.modal-title {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

.modal-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 25px;
  text-align: center;
}

/* Stiluri pentru formularul de ofertă */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.form-row .form-group {
  padding: 0 10px;
  box-sizing: border-box;
}

.col-6 {
  width: 50%;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input[type="file"] {
  width: 100%;
  padding: 10px 0;
}

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

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #e53935;
}

.form-feedback {
  font-size: 0.85rem;
  margin-top: 5px;
  color: #666;
}

.form-group.has-error .form-feedback {
  color: #e53935;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.form-notice {
  font-size: 0.85rem;
  color: #666;
}

.required {
  color: #e53935;
}

.form-submit {
  background-color: #1e73be;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
}

.form-submit:hover {
  background-color: #1a5c99;
}

.form-submit .btn-loading {
  display: none;
  margin-left: 8px;
}

.form-submit.loading .btn-text {
  display: none;
}

.form-submit.loading .btn-loading {
  display: inline-block;
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  font-size: 48px;
  color: #4caf50;
  margin-bottom: 20px;
}

/* Stiluri pentru checkbox */
.so-accept-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: normal;
  cursor: pointer;
}

.so-accept-group input[type="checkbox"] {
  margin-top: 3px;
}

/* Responsive pentru modal */
@media (max-width: 767px) {
  .modal-content {
    padding: 20px;
    margin: 20px auto;
  }
  
  .col-6 {
    width: 100%;
  }
  
  .form-footer {
    flex-direction: column;
    gap: 15px;
  }
  
  .form-notice {
    order: 2;
  }
}
