

/************************************************************************/
/* FROM CSS FILE: General.css */
/************************************************************************/

:root {
  --primary-color: #3b82f6;
  --text-color: #1a1a1a;
  --secondary-color: #1a1a1a;
  --bg-color: #ffffff;
  --card-bg: #f9fafb;
  --border-color: #e5e7eb;
  --header-height: 72px;
  --mobile-menu-bg: rgba(255, 255, 255, 0.98);
}

body[data-theme="dark"] {
  --text-color: #ffffff;
  --bg-color: #111827;
  --card-bg: #1f2937;
  --border-color: #374151;
  --secondary-color: #A0AEC0;
  --mobile-menu-bg: rgba(17, 24, 39, 0.98);
}

/* Global Scrollbar Styling */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
    border-radius: 3px;
    transition: background-color 0.3s ease;
    }

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-color);
    }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-color);
    background-color: var(--bg-color);
      line-height: 1.5;
      transition: background-color 0.3s, color 0.3s;
      min-height: 100vh;
      }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Navigation */
header {
  height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
      background-color: var(--bg-color);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        transition: background-color 0.3s, border-color 0.3s;
        }

nav {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
  text-decoration: none;
  z-index: 1001;
  display: flex;
  align-items: center;
}

.logo span{
  display: inline-block;
  margin-top: -5px;
}

.logo img{
  width: 40px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
    transition: color 0.3s;
    font-weight: 500;
    }

.nav-links a:hover {
  color: var(--primary-color);
    }

.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--text-color);
    cursor: pointer;
    z-index: 1001;
    }

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    z-index: 1001;
    transition: background-color 0.3s;
    }

.theme-toggle:hover {
  background-color: var(--card-bg);
    }

/* Main Content */
main {
  padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
      }

.hero {
  text-align: center;
  padding: 4rem 0;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-color);
    }

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    }

.search-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.search-input {
  flex: 1;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1.125rem;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: inherit;
  resize: none;
  height: 70px;
  min-height: 70px;
  max-height: 140px;
  width: 100%;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.search-input::placeholder {
  color: var(--text-color);
    opacity: 0.6;
    }

.search-button {
  padding: 1rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-height: 70px;
  font-weight: 500;
}

.search-button:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
}

.search-button:active {
  transform: translateY(0);
}


.blog-search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.blog-search-box {
    width: 100%;
    max-width: 600px;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
}

.blog-search-box::placeholder {
    color: #6b7280;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.blog-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.blog-card h3 {
  margin: 1rem 0;
  font-size: 1.25rem;
  color: var(--text-color);
}

.blog-card p {
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.blog-card .date,
.blog-meta span{
  font-size: 0.875rem;
  opacity: 0.6;
  color: var(--text-color);
}

.blog-meta{
  margin: 0.5rem 0;
}

#article-title,
.termeni-si-conditii-container h1,
.container-despre-noi h1{
  font-size: 2.5rem;
  margin-bottom: 1rem;
  margin-top: 4rem;
  text-align: center;
}

.container-parteneri h2{
  font-size: 1.75rem;
  margin-bottom: 2rem;
  margin-top: 4rem;
  text-align: center;
}

.termeni-si-conditii-container p
{
  font-size: 1.1rem;
  color: var(--secondary-color);
  padding: 0.5rem 0;
}

.container-despre-noi p{
  font-size: 1.1rem;
  color: var(--secondary-color);
}


.termeni-si-conditii-container a,
.termeni-si-conditii-container h3{
  color: var(--secondary-color);
}

.article-meta {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  text-align: center;
}

.article-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.article-content {
  font-size: 1.1rem;
  color: var(--secondary-color);
}

.article-content h3 {
  margin: 2rem 0 1rem 0;
}

.article-content p,
.termeni-si-conditii-container p {
  margin-bottom: 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.info-item {
  margin-bottom: 1rem;
}

.info-item h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
}
   
.info-item a,
 .info-item p{
  line-height: 1.8;
  text-decoration: none;
  color: var(--secondary-color);
}

.contact-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  margin-top: 4rem;
}

.contact-image{
  text-align: right;
  max-width: 500px;
  width: 100%;
}
.contact-image img{
  width: 100%;
}
.article-content li{
  margin-left: 3rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.partner-card {
  background-color: var(--dark-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  text-align: center;
}

.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-blue);
}

.partner-name {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Footer */
.footer {
  margin-top: 4rem;
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0 0;
}

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

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: white;
}

.footer-section a {
  color: white;
  text-decoration: none;
  margin-bottom: 0.75rem;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.footer-section a:hover {
  opacity: 1;
}

.footer-section p {
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 0;
}

.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  opacity: 0.8;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
}

.blog-header {
  text-align: center;
  padding: 2rem 1rem;
}

.blog-header h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.blog-header p {
  font-size: 1.2rem;
  color: #a0a0a0;
  max-width: 800px;
  margin: 0 auto;
}

.featured-post {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: var(--card-bg);
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
} 

.featured-post img {
  width: 100%;
  height: clamp(200px, 40vw, 400px);
  object-fit: cover;
}

.featured-content {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.read-more {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(45deg, var(--primary-color), #1859c3);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 2rem;
}

@media only screen and (min-width: 768px) {
  .featured-post {
      grid-template-columns: 1.2fr 1fr;
      margin-bottom: 4rem;
  }

  .featured-post img {
    height: 100%;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .mobile-menu-button {
    display: flex;
  }

  #article-title,
  .termeni-si-conditii-container h1,
  .container-despre-noi h1{
      font-size: 2rem;
      margin-top: 2rem;
  }

  .container-parteneri h2{
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .article-image {
      height: 300px;
  }

  .partners-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-title {
      font-size: 2rem;
      margin-top: 2rem;
  }

.nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--mobile-menu-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .search-container {
    flex-direction: column;
  }

  .search-button {
    width: 100%;
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}