/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Times New Roman', serif;
  color: #18100e;
  background-color: #fff;
  line-height: 1.6;
}

/* Colors from the website */
:root {
  --dark-brown: #18100e;
  --light-brown: #cdb7a6;
  --gray: #535453;
  --medium-brown: #6c4e42;
  --deep-brown: #452b22;
  --green: #52923a;
  --red: #b42131;
  --dark-gray: #4f4a4c;
  --light-gray: #8a838c;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
}

.language-switcher a {
  display: block;
  margin-left: 15px;
}

.language-switcher img {
  width: 30px;
  height: auto;
  transition: transform 0.3s ease;
}

.language-switcher img:hover {
  transform: scale(1.1);
}

/* Header styles */
header {
  background-color: rgba(24, 16, 14, 0.9);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 100;
  padding: 15px 0;
  transition: background-color 0.3s ease, padding 0.3s ease;
}

header.scrolled {
  background-color: rgba(24, 16, 14, 0.95);
  padding: 10px 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  z-index: 101; /* Above the hamburger menu */
}

.logo img {
  height: 50px;
}

/* Hamburger Menu Button */
.hamburger-menu {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 101;
  margin-left: auto;
}

.hamburger-menu span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger-menu span:nth-child(1) {
  top: 0px;
}

.hamburger-menu span:nth-child(2),
.hamburger-menu span:nth-child(3) {
  top: 10px;
}

.hamburger-menu span:nth-child(4) {
  top: 20px;
}

.hamburger-menu.open span:nth-child(1) {
  top: 10px;
  width: 0%;
  left: 50%;
}

.hamburger-menu.open span:nth-child(2) {
  transform: rotate(45deg);
}

.hamburger-menu.open span:nth-child(3) {
  transform: rotate(-45deg);
}

.hamburger-menu.open span:nth-child(4) {
  top: 10px;
  width: 0%;
  left: 50%;
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  margin-left: 30px; /* Added margin-left for nav-menu items */
}

.nav-menu a {
  color: #fff;
  font-weight: 500;
  font-size: 1.1rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
  letter-spacing: 1px;
  padding-bottom: 5px;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--light-brown);
  text-shadow: 0 0 10px rgba(205, 183, 166, 0.7);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--light-brown);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* Hero section */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  filter: brightness(2.5);
  display: flex;
  align-items: center;
  position: relative;
  background-attachment: fixed;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  /* background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent); */
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  
}

.hero-content {
  color: #fff;
  max-width: 600px;
  padding-left: 50px;
  position: relative;
  z-index: 2;
  margin-top: 60px;
  
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 400;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  
}

/* Sections */
.section {
  padding: 80px 0;
  position: relative;
}

.team-details.section,
.services-details.section {
  padding-top: 120px;  /* Увеличаване на padding-top за вътрешни страници */
}

@media (max-width: 768px) {
  .team-details.section,
  .services-details.section {
    padding-top: 140px;  /* Още по-голям padding за мобилни устройства */
  }
}

@media (max-width: 576px) {
  .team-details.section, 
  .services-details.section {
    padding-top: 120px;
  }
  
  .team-member, .team-member-no-photo {
    padding: 20px 15px;
    margin-bottom: 30px;
  }
  
  .team-member-no-photo {
    padding: 20px 15px;
  }
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  color: var(--deep-brown);
  position: relative;
  animation: fadeInUp 1s ease-out;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--light-brown);
  animation: width-grow 1.5s ease-out;
}

/* Subtle animation for headers */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Divider */
.section-divider {
  height: 3px;
  width: 100px;
  margin: 0 auto 40px;
  background: linear-gradient(to right, transparent, var(--light-brown), transparent);
}

/* About section */
.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.about-item {
  padding: 20px;
  border-left: 3px solid var(--light-brown);
  background-color: rgba(205, 183, 166, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.about-item::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: var(--light-brown);
  opacity: 0.1;
  z-index: -1;
}

.about-item:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Areas of Practice section */
.practice-areas {
  background-color: #f7f7f7;
}

.practice-areas p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

.practice-areas ul {
  columns: 2;
  column-gap: 40px;
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.practice-areas li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
  transition: transform 0.2s ease;
}

.practice-areas li:hover {
  transform: translateX(5px);
}

.practice-areas li:before {
  content: "⚖️"; /* Gavel emoji */
  position: absolute;
  left: 0;
  color: var(--deep-brown);
  font-size: 1em;
}

.practice-areas .service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--medium-brown);
}

/* Button container for centered buttons */
.button-container {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.button {
  display: inline-block;
  background-color: var(--deep-brown);
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 0.9rem;
}

.button:hover {
  background-color: var(--medium-brown);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Topics Section Styling */
.topics-section {
  background-color: #f8f5f2;
  padding: 80px 0;
}

.topics-section .section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.topic-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.topic-card h3 {
  color: var(--deep-brown);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.topic-card p {
  flex-grow: 1;
  margin-bottom: 20px;
  color: var(--dark-gray);
}

.topic-card .button {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 768px) {
  .topics-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact section */
.contact {
  background-color: #f7f7f7;
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-info {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contact-info:hover {
  transform: translateY(-5px);
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--deep-brown);
  border-bottom: 2px solid var(--light-brown);
  padding-bottom: 10px;
}

.contact-info h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--medium-brown);
}

.contact-address {
  margin-bottom: 20px;
}

.contact-email {
  display: block;
  margin-top: 10px;
  color: var(--deep-brown);
  transition: color 0.3s ease;
}

.contact-email:hover {
  color: var(--red);
}

.map-container {
  margin-top: 15px;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.office-map,
iframe {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.map-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(69, 43, 34, 0.6);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-icon {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.map-link:hover .map-overlay {
  opacity: 1;
}

.map-link:hover .office-map {
  transform: scale(1.05);
}

.map-link:hover iframe {
  transform: scale(1.05);
}

/* Contact Form Styles */
.contact-form-container {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 50px auto;
}

.contact-form-container h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--deep-brown);
  text-align: center;
}

.contact-form-container p {
  text-align: center;
  margin-bottom: 30px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group:nth-last-child(2),
.form-group:last-child {
  grid-column: span 2;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--deep-brown);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--light-brown);
  box-shadow: 0 0 5px rgba(205, 183, 166, 0.5);
  outline: none;
}

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

.form-group button {
  padding: 12px 24px;
  background-color: var(--deep-brown);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  width: auto;
  margin: 0 auto;
  display: block;
}

.form-group button:hover {
  background-color: var(--medium-brown);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  background-color: var(--dark-brown);
  color: #fff;
  padding: 20px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--light-brown), transparent);
  opacity: 0.3;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
}

.footer-content p {
  margin: 0;
  line-height: 1.6;
}

@keyframes subtle-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(205, 183, 166, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(205, 183, 166, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(205, 183, 166, 0);
  }
}

.footer-content a {
  color: var(--light-brown);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  background-color: rgba(205, 183, 166, 0.1);
}

.footer-content a:hover {
  color: #fff;
  background-color: var(--light-brown);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.footer-content a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--light-brown);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.footer-content a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Details Pages Styles */
.services-details, .team-details {
  padding: 150px 0 80px;
}

.team-member {
  margin-bottom: 50px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  align-items: center;
}

.team-member-photo {
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member-info h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--deep-brown);
}

.team-member-info p.position {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--medium-brown);
}

.team-member-info ul {
  list-style-type: none;
  padding: 0;
  margin-bottom: 20px;
}

.team-member-info li {
  margin-bottom: 5px;
  padding-left: 20px;
  position: relative;
}

.team-member-info li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--deep-brown);
}

/* Специален стил за член на екипа без снимка */
.team-member-no-photo {
  margin-bottom: 50px;
  background-color: rgba(205, 183, 166, 0.05);
  padding: 30px;
  border-radius: 8px;
  border-left: 3px solid var(--light-brown);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-no-photo:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.team-member-no-photo h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--deep-brown);
}

.team-member-no-photo p.position {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--medium-brown);
}

.team-member-no-photo ul {
  list-style-type: none;
  padding: 0;
  margin-bottom: 20px;
}

.team-member-no-photo li {
  margin-bottom: 5px;
  padding-left: 20px;
  position: relative;
}

.team-member-no-photo li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--deep-brown);
}

/* Service Details */
.service-item {
  margin-bottom: 40px;
  padding: 30px;
  border-radius: 5px;
  background-color: rgba(205, 183, 166, 0.05);
  border-left: 3px solid var(--light-brown);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-item::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: var(--light-brown);
  opacity: 0.1;
  z-index: -1;
}

.service-item:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--deep-brown);
}

/* Mobile Responsive Styles */
@media (max-width: 992px) {
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .team-member {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .team-member-photo {
    width: 200px;
    height: auto;
    margin: 0 auto 20px;
  }
  
  /* Show hamburger menu */
  .hamburger-menu {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background-color: rgba(24, 16, 14, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 20px 40px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-menu li {
    margin: 15px 0;
    margin-left: 0;
    width: 100%;
  }
  
  .nav-menu a {
    font-size: 1.1rem;
    display: block;
    width: 100%;
    padding: 8px 0;
  }

  .team-member-info ul {
    display: inline-block;
    text-align: left;
    margin: 0 auto 20px;
  }

  .team-member-no-photo {
    text-align: center;
  }
  
  .team-member-no-photo ul {
    display: inline-block;
    text-align: left;
    margin: 0 auto 20px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 10px 0;
  }

  .nav-menu a {
    font-size: 1rem;
  }

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

  .practice-areas ul {
    grid-template-columns: 1fr 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-item, .contact-info {
    flex-basis: 100%;
  }

  .topics-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .team-member {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .team-member-info li {
    font-size: 0.9rem;
  }

  .team-member-no-photo li {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .header-container {
    padding: 0 10px;
    justify-content: space-between;
  }

  .logo-container {
    flex-direction: row;
    justify-content: flex-start;
  }

  .logo img {
    height: 40px;
  }

  .hero-content {
    text-align: center;
    padding: 0 10px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .about-content, .team-paragraphs, .contact-container {
    flex-direction: column;
  }

  .contact-info {
    margin-bottom: 30px;
  }

  .button {
    font-size: 0.9rem;
  }

  .nav-menu li {
    margin: 10px 0;
  }

  .nav-menu a {
    font-size: 0.9rem;
  }
  
  .topics-grid {
    grid-template-columns: 1fr;
  }

  .team-member {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 15px;
  }
  
  .team-member-photo {
    width: 150px;
  }
  
  .team-member-info h3 {
    font-size: 1.5rem;
  }

  .team-member-info li {
    font-size: 0.9rem;
  }

  .team-member-no-photo li {
    font-size: 0.9rem;
  }
}

/* Fix for very small devices */
@media (max-width: 380px) {
  .logo img {
    height: 35px;
  }
  
  .language-switcher img {
    width: 25px;
  }
  
  .hero-title {
    font-size: 1.6rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .nav-menu {
    width: 100%;
  }
}

/* Enhanced Visual Effects - Added for better aesthetics */

/* Global Light Effects */
.light-overlay {
  position: relative;
}

.light-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.15), transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Footer enhancement */
footer {
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--light-brown), transparent);
  opacity: 0.3;
}

/* Секция "Актуални теми" */
.topics-section {
  background-color: #f9f7f5;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.topic-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.topic-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.topic-item h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--deep-brown);
}

.topic-item p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: #666;
}

.topic-link {
  display: inline-block;
  color: var(--deep-brown);
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--light-brown);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.topic-link:hover {
  color: var(--medium-brown);
  border-color: var(--medium-brown);
}

@media (max-width: 768px) {
  .topics-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Карта при щракване (GDPR) ---------------------------------------------
   Google Maps iframe-ът тръгваше при отваряне на страницата и предаваше IP-то
   на посетителя на Google без съгласие. Сега се зарежда по щракване.
   Разметката е <div class="karta-gate" data-karta-src="…">, скриптът е в
   js/script.js. */
.karta-gate{position:relative;display:flex;align-items:center;justify-content:center;
  width:100%;height:250px;line-height:1.4;
  background:repeating-linear-gradient(45deg,rgba(0,0,0,.03) 0 10px,transparent 10px 20px),#eef1ee;
  border:1px dashed rgba(0,0,0,.18)}
.karta-gate iframe{width:100%;height:250px;border:0;display:block}
.karta-but{display:grid;gap:6px;max-width:26rem;padding:12px 18px;text-align:center;
  cursor:pointer;background:#fff;border:1px solid rgba(0,0,0,.15);border-radius:8px;font:inherit;color:inherit}
.karta-but:hover{border-color:rgba(0,0,0,.35)}
.karta-but-glavno{font-weight:700}
.karta-but-drebno{font-size:.78rem;opacity:.7}
