/*
 Theme Name:   Newspaper Child
 Theme URI:    https://tagdiv.com
 Description:  Child theme pentru tema Newspaper
 Author:       Vasile Dragos Stefan
 Template:     Newspaper
 Version:      1.0.0
 Text Domain:  newspaper-child
*/

/* Import stilurile temei principale */
@import url("../Newspaper/style.css");

/* ======================
   GRILE CUSTOM (vc_basic_grid + vc_masonry_grid)
====================== */

.custom-vc-basic-grid,
.vc-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin: 20px 0;
}

.custom-grid-item,
.vc-masonry-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-grid-item:hover,
.vc-masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* ===== Imaginea din grid ===== */
.custom-grid-thumb,
.vc-masonry-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}

/* ===== Overlay gradient ===== */
.custom-grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 25%, rgba(0,0,0,0.1) 100%);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.custom-grid-item:hover .custom-grid-overlay {
  opacity: 0.9;
}

/* ===== Titlu articol ===== */
.item-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 20px;
  z-index: 2;
}

.entry-title,
.custom-grid-title {
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
}

.entry-title a,
.custom-grid-title a {
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transition: color 0.2s ease;
}

.custom-grid-item:hover .entry-title a,
.custom-grid-item:hover .custom-grid-title a {
  color: #ffcc00;
}

/* ===== Excerpt text (optional) ===== */
.custom-grid-excerpt {
  font-size: 14px;
  color: #555;
  margin-top: 8px;
  line-height: 1.5;
}

/* ======================
   TEXT SEPARATOR
====================== */
.vc-text-separator {
  border-bottom: 4px solid #1e73be;
  margin: 40px 0 20px;
  padding-bottom: 6px;
}
.vc-text-separator h3 {
  font-size: 20px;
  color: #1e73be;
  font-weight: 600;
  margin: 0;
}

/* ======================
   GOOGLE MAPS
====================== */
.vc-gmaps iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* ======================
   VC TOUR / SECTIONS
====================== */
.vc-tour {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.vc-section {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  transition: box-shadow 0.3s ease;
}
.vc-section:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}
.vc-section-title {
  font-weight: 600;
  font-size: 1.2rem;
  color: #1e73be;
  margin-bottom: 12px;
  border-bottom: 2px solid #1e73be;
  padding-bottom: 5px;
}

/* ======================
   BUTOANE (VC BTN)
====================== */
.vc-btn-wrap {
  text-align: center;
  margin: 15px 0;
}
.vc-btn-wrap .btn {
  background-color: #1e73be;
  color: #fff;
  border-radius: 4px;
  padding: 10px 18px;
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.25s ease;
}
.vc-btn-wrap .btn:hover {
  background-color: #145a94;
}

/* ======================
   RESPONSIVE FIXES
====================== */
@media (max-width: 768px) {
  .custom-vc-basic-grid,
  .vc-masonry-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .custom-vc-basic-grid,
  .vc-masonry-grid {
    grid-template-columns: 1fr;
  }
}
