
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6; 
    letter-spacing: 0.02em; 
    color: #222;
}

.sidebar {
  flex: 0 0 350px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Widgeturi sidebar */
.sidebar .widget {
  background: #f0f0f0;
  padding: 15px;
}

/* Widget post */
.sidebar .widget-post {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sidebar .widget-post img {
  width: 80px;
  height: 60px;
  object-fit: cover;
}

/* Responsive */
@media(max-width: 1400px) {
  .main-container { flex-direction: column; }
  .content, .middle-column, .sidebar { flex: 1 1 100%; }
}






.tags {
  margin-top: 50px;
  margin-bottom: 10px;
}

.tags span {
  font-weight: bold;
  margin-right: 10px;
}

.tags a {
  display: inline-block;
  background: #eee;
  padding: 5px 10px;
  margin: 2px;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 0.88rem;
}

.tags a:hover {
  background: #0073e6; 
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-decoration: none !important;
}

.tags-widget {
  background: #fff !important;
color:#000; 
  padding: 15px;
  border-radius: 6px;
  min-height: 80px !important;
  border: 1px solid #ccc;
margin-bottom:50px;
}

.tags-widget h3 {
  color: #000;
  margin-bottom: 15px;
  font-size: 18px;
}

.tags-widget a {
  display: inline-block;
  margin: 5px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  color: #000 !important;
  text-decoration: none !important;
  font-size: 14px;
  transition: all 0.3s ease;
}

.tags-widget a:hover {
  background: orange;
  color: #000;
}


.widget {
  margin-bottom: 40px;
}
.widget h4 {
  margin-bottom: 20px;
  b4order-bottom: 2px solid #ddd;
  padding-bottom: 10px;
  font-size: 1.2rem;
}
.widget-post {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  background: #fff;
  bor33der-radius: 12px;
  box-shadow: 0 8px 10px rgba(0,0,0,0.15);
  overflow: hidden;
  trans444ition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 10px;
padding-top: 10px;
}
.widget-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 10px rgba(0,0,0,0.60);
  border: 0px solid #ccc;
}
.widget-post img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.widget-post div {
  padding: 12px;
  flex: 1;
}
.widget-post .date {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 6px;
}
.widget-post a {
  font-weight: 600;
  color: #111;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  line-height: 1.2;
padding-left:10px;
margin-top:5px;
  margin: 0 0 5px 0;
  font-size: 1rem;
  color: #111;
}
.widget-post p {
  font-size: 1rem;
  color: #000;
  line-height: 1;
  margin: 0;
padding-left:10px;
margin-bottom:5px;
}
.widget a {
  text-decoration: none;
  color: #333;
  display: inline-block;
  margin: 0 6px 6px 0;
  font-size: 1rem;
}


.related {
  margin-top: 35px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
  margin-bottom: 100px;
}
.related-post h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  line-height: 1.2;
}
.related-post p {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}
.related-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
}
.related-post {
  flex: 0 0 220px !important; 
  max-width: 220px !important;
  display: flex !important;
  flex-direction: column !important;
  ackground: #fafafa;
  padding: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  border-radius: 6px;
}
.related-post img {
  width: 100% !important;
  height: 140px !important;
  object-fit: cover !important;
  margin: 0 !important;
  border-radius: 6px !important;
}


.post-excerpt {
  margin-bottom: 15px;
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

.post-excerpt h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.thumb-wrap {
  text-align: center; 
  margin: 10px 0;
}

.thumb-wrap img.thumb {
  max-width: 500px;
  border-radius: 6px;
  object-fit: cover;
    height: auto;
  display: block;
    object-fit: cover;
}

.post-excerpt img.thumb {
  width: 100%;
  max-width: 400px; 
  height: auto;
  display: block;
  margin: 0 auto; 
  border-radius: 6px;
  object-fit: cover;
}

.post-excerpt {
  text-align: left;
}
.post-excerpt img.thumb {
  width:100%;
  max-width:400px;
  height:auto;
  display: block;
  object-fit: cover; 
}


.post-date {
  font-size: 14px;
  color: red;
  margin-bottom: 5px;
}

.post-category {
  font-size: 14px;
  color: #0056b3;
  margin-bottom: 5px;
}

.post-category a {
  color: #0056b33;
  text-decoration: none;
}

.post-category a:hover {
  text-decoration: underline;
}

.post a {
  color: #0056b3; 
  text-decoration: none;
}

.post a:hover {
  color: #0056b3;
  text-decoration: underline; 
}

.share-bw {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.share-bw a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  min-width: 110px;
}

.share-bw a svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-bw a:hover {
  background: #f0f0f0;
  border-color: #999;
}

.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  margin: 0 auto;
  max-width: 1600px;
    min-height: 20vh; 
  margin: 0 auto;
margin-top:10px;
  background: url('images/cod7.jpg') center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 0;
  /* border-radius eliminat complet */
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 20px;
  background: rgba(0,0,0,0.6);
  animation: fadeInUp 1s ease-out forwards;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-cta {
  display: inline-block;
  padding: 12px 30px;
  background-color: #ff6600;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-cta:hover {
  background-color: #ff4500;
  transform: translateY(-3px);
}


.print-btn {
  background-color: #f5f5f5; 
  color: #000; 
  border: 1px solid #ccc; 
  border-radius: 12px; 
  padding: 0.5em 1.2em; 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.print-btn:hover {
  background-color: #e0e0e0; 
}

.print-btn:active {
  background-color: #d0d0d0; 
  transform: scale(0.98); 
}

.posts-container {
  max-width: 1600px;
  display: flex;
  gap: 20px;
  margin: 40px auto;
  padding: 0 20px;
}

.main-posts {
  flex: 0 0 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-column {
  flex: 0 0 450px;
  background: #f0f0f0;
  padding: 20px;
}

.side-column ul {
  list-style: none;
  padding: 0;
}

.side-column li {
  margin-bottom: 10px;
}

.side-column a {
  text-decoration: none;
  color: #006699;
}


.container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.posts {
  border: 1px solid #ddd;
  padding: 15px;
}

.sidebar {
  padding: 15px;
  background: #fff;
}

.postare article {
  border: 1px solid #ddd;
  padding: 20px;
  background: #fff;
}

.postare {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.postare h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.postare .post-date,
.postare .post-category {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.sidebar .widget-post {
  display: flex;
  flex-direction: column;  
  gap: 8px;    
  background: #fff;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  padding: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar .widget-post div h4 {
  margin: 0;      
  font-size: 1.1rem;
}

.sidebar .widget-post img {
  width: 100%;        
  height: 200px;         
  object-fit: cover;   
  border-radius: 0;      
}

.container-article {
  max-width: 1600px;
  margin: 40px auto;
  padding: 0 20px;
}

.article-wrapper {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.content-article {
  flex: 1;    
  max-width: none;  
  padding: 0;  
min-width: 0;
}

.postare {
  width: 100%; 
  max-width: none;   
  margin: 0;   
  padding: 20px 0;   
}

.post p {
  margin: 1em 0;
  line-height: 1.7;
}

.content-article {
  padding: 0 15px; 
}

.main-container {
  display: flex;
  gap: 20px;  
  max-width: 1600px;
  margin: 40px auto;  
  padding: 0;
}

.content {
  flex: 0 0 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content::before {
  content: "Tech/Știință";
  display: block;
  background: black;
  color: orange;
  font-weight: bold;
  padding: 6px 12px;
  font-size: 14px;
  text-transform: uppercase;
}

.middle-column {
  flex: 1;    
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;   
}

.middle-column::before {
  content: "HotStream";
  display: block;
  background: black;
  color: red;
  font-weight: bold;
  padding: 6px 12px;
  font-size: 14px;
  text-transform: uppercase;
}

.middle-column h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-bottom: 3px solid #000; 
    padding-bottom: 5px;
}

.middle-column .widget-post h4 a {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    text-decoration: none;
    color: #111;
}

.middle-column .widget-post p {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
    margin: 0;
}

.middle-column .thumb,
.middle-column .video-thumb iframe {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0;
}

.middle-column .widget-post {
    background: #fff;
    padding: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 500px; 
    overflow: hidden;   
}

.middle-column .widget-post img.thumb {
    width: auto;  
    max-width: 100%; 
    height: 400px;    
    object-fit: cover;  
    border-radius: 0;
}

.sidebar {
  flex: 0 0 350px;   
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 350px;
  border: 0px solid red;
  padding: 0;
 flex-shrink: 0;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
}

.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px; 
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.print-btn:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

.print-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

@media (max-width: 600px) {
  .print-btn {
    font-size: 13px;
    padding: 6px 10px;
    gap: 4px;
  }
}

footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px; 
}

footer {
  padding: 25px 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
  border-top: 1px solid #e0e0e0;
  font-size: 1rem;
  color: #ccc;
  border-top: 1px solid #e5e5e5;
  flex-shrink: 0;
  padding: 25px 0;
  background-color: #222 !important;
}

footer a {
  color: #ccc; 
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

.footer-trending {
  background: #111;
  padding: 20px;
  border-top: 1px solid #333;
}

.footer-trending h3 {
  color: red;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.footer-trending ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-trending ul li {
  margin: 6px 0;
}

.footer-trending ul li a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-trending ul li a:ho
ver {
  color: #fff;
}

.trending-widget {
  padding: 15px;
  border-radius: 8px;
}

.trending-widget h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: bold;
color: #e63946;
}

.trending-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trending-widget li {
  margin: 5px 0;
}

.trending-widget a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.2s ease;
}

.trending-widget a:hover {
  color: #e63946; 
}


@media (max-width: 1600px) {
  .hero { max-width: 95%; }
}

@media (max-width: 1200px) {
  .post {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .posts-container {
    flex-direction: column;
  }
  .main-posts, .side-column {
    flex: 0 0 100%;
  }
}


@media (max-width: 992px) {
  .post img { max-height: 400px; }
  .article-wrapper {
    flex-direction: column;
  }
  .sidebar { 
    width: 100%;
    margin-top: 30px; 
  }
}


@media (max-width: 768px) {
  main.container {
    flex-direction: column;
    padding: 0 10px;
  }
  .content, .sidebar {
    width: 100%;
    padding: 15px;
  }
  .post img { max-height: 300px; }
  .post .share button { width: 100%; margin: 10px 0; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero { height: auto; padding: 60px 20px; }
}

 /* .post img { max-height: 200px; }*/
  .carousel-item { flex: 0 0 100%; }
  .related-post { flex: 1 1 100%; height: auto; }
  body { font-size: 15px; line-height: 1.6; }
  h2 { font-size: 20px; }
  h3, h4 { font-size: 18px; }
  .print-btn { font-size: 13px; padding: 5px 10px; }


@media (max-width: 1024px) {
  .carousel-item { flex: 0 0 calc((100% - 20px)/2); }
}

.article-wrapper {
  display: flex;
  gap: 20px; 
}

.content-article { flex: 3; }
.sidebar { flex: 1; }

@media (max-width: 992px) {
  .article-wrapper {
    flex-direction: column;
  }
  .content-article, .sidebar {
    width: 100%;
    padding: 0 10px;
  }
}


@media (max-width: 1200px) {
    .main-container { flex-direction: column; }
    .content, .middle-column, .sidebar { width: 100%; padding: 0 15px; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .widget-post img { max-height: 200px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 0.9rem; }
}

.main-container {
  display: flex;
  gap: 20px;
}

.content, .middle-column { flex: 2; }
.sidebar { flex: 1; }

@media (max-width: 1200px) {
  .main-container { flex-direction: column; }
  .content, .middle-column, .sidebar { width: 100%; }
}


footer {
  background-color: #f8f8f8;
  padding: 25px 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
  border-top: 1px solid #e0e0e0;
  font-size: 1rem;
  color: #555;
  border-top: 1px solid #e5e5e5;
  flex-shrink: 0;
  padding: 25px 0;
}

footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

footer a {
  color: #ccc;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

h1 {
    font-size: 28px;
}
h2 {
    font-size: 24px;
}
h3 {
    font-size: 20px;
}
h4 {
    font-size: 18px;
}
h5 {
    font-size: 16px;
}
h6 {
    font-size: 14px;
}

a {
  color: #0073e6;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #005bb5;
}

.final {
  margin-top: 3em !important;
}

.post h1 {
  font-size: 2.4rem;  
  margin-top: 0.5em;
  margin-bottom: 0.7em;
  line-height: 1.2;
}

.post h2 {
  font-size: 1.7rem; 
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 6px;
  margin-top: 1.5em !important;
}

.post h3 {
  font-size: 1.5rem; 
  margin-top: 1.5em !important;
}

.post h4 {
  font-size: 1.2rem;  
  margin-top: 1.5em !important;
}

.postare > h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  border-bottom: none; 
  color: #111;
}

.post img:not(.gallery-main img):not(.gallery-thumbs img) {
  width: 100%;
  max-width: 700px; /* limita maximă */
  height: auto; /* înălțimea se ajustează automat */
  display: block;
  margin: 25px auto; /* centrează imaginea */
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
  
.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.related-post {
  flex: 0 0 220px !important;
  max-width: 220px !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fafafa;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.related-post img {
  width: 100% !important;
  height: 140px !important;
  object-fit: cover !important;
  border-radius: 6px;
  margin: 0 !important;
}
.related-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.related-info h4 {
  font-size: 16px;
  line-height: 1.2;
  margin: 0 0 5px;
}
.related-info p {
  font-size: 14px;
  line-height: 1.2;
  margin: 0;
  color: #555;
}

  .post {
  color: #222;
  line-height: 1.7;
  margin: 30px auto;
  padding: 0 15px;
  max-width: 1200px;
  margin-bottom: 50px;
}


.post p {
  margin: 1.2em 0;
  font-size: 1rem;
  color: #333;
}

.post ul, .post ol {
  margin: 1.2em 0;
  padding-left: 1.8em;
}

.post li {
  margin-bottom: 0.6em;
}

.post img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.post blockquote {
  border-left: 4px solid #0073e6;
  padding-left: 20px;
  font-style: italic;
  color: #555;
  background: #f3f8ff;
  border-radius: 8px;
  margin: 1.8em 0;
}

.post table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  border-radius: 12px;
  overflow: hidden;
}

.post table th, .post table td {
  border: 1px solid #e0e0e0;
  padding: 14px;
  text-align: left;
}

.post table th {
  background: #f7f7f7;
  font-weight: 600;
}

.post .highlight {
  background: #fff7e6;
  padding: 12px 18px;
  border-left: 4px solid #ffb400;
  border-radius: 8px;
  display: block;
  margin: 1.2em 0;
}

.post .share button {
  margin-top: 15px;
  margin-right: 8px;
  padding: 10px 18px;
  background: #0073e6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.post .share button:hover {
  background: #005bb5;
  transform: translateY(-2px);
}

.post-date {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 12px;
}

.post h1 {
  font-size: 2.2rem !important;
  line-height: 1.2;
  margin-top: 0.8em;
}

.post h2 {
  font-size: 1.6rem !important;
  border-bottom: 0px solid #eaeaea;
  padding-bottom: 6px;
  margin-top: 1.8em;
}

.post h3 {
  font-size: 1.3rem !important;
  margin-top: 1.5em;
}

.post p {
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

   main .content article h4 a {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

main .content article h4 a:hover {
  color: #0073e6;
} 
  