/* ===========================
   1. CSS Custom Properties
   =========================== */
:root {
  --primary: #FD8F14;
  --secondary: #914E01;
  --heading-color: #2F2F2F;
  --text-color: #6A6A6A;
  --light-bg: #FFFBF6;
  --dark-bg: #2F2F2F;
  --border-color: #F4E6D7;
  --border-light: #F1ECE6;
  --meta-color: #B8B4AD;
  --card-shadow: 0 5px 20px rgba(0,0,0,0.08);
  --radius-card: 15px;
  --radius-btn: 6px;
  --font-family: 'Public Sans', sans-serif;
}

/* ===========================
   2. Base
   =========================== */
body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--font-family);
  font-weight: 600;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--secondary);
}

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

/* ===========================
   3. Top Bar
   =========================== */
.top-bar {
  background-color: var(--light-bg);
  padding: 10px 0;
}

.top-bar .site-title {
  color: var(--heading-color);
  font-size: 14px;
  font-weight: 600;
}

.top-bar .contact-info {
  font-size: 13px;
  color: var(--text-color);
}

.top-bar .contact-info .label {
  font-size: 11px;
  color: var(--meta-color);
}

.top-bar .contact-info .value {
  color: var(--heading-color);
  font-weight: 500;
}

.top-bar .icon-img {
  width: 28px;
  height: 28px;
  padding: 5px;
  object-fit: contain;
  background-color: var(--primary);
  border-radius: 50%;
}

/* ===========================
   4. Navigation
   =========================== */
.navbar-primary {
  background-color: var(--primary) !important;
}

.navbar-primary .navbar-nav .nav-link {
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  padding: 12px 16px;
  transition: opacity 0.2s;
}

.navbar-primary .navbar-nav .nav-link:hover,
.navbar-primary .navbar-nav .nav-link.active {
  opacity: 0.85;
}

/* Desktop: hover-based dropdown so parent link stays clickable */
@media (min-width: 992px) {
  .hover-dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
  .hover-dropdown > .dropdown-menu {
    transition: opacity .15s ease;
  }
}

/* Mobile: tap to toggle dropdown via JS */
.navbar-primary .dropdown-menu {
  border: none;
  box-shadow: var(--card-shadow);
  border-radius: 8px;
  padding: 8px 0;
}

.navbar-primary .dropdown-item {
  color: var(--heading-color);
  font-weight: 500;
  padding: 8px 20px;
  font-size: 14px;
}

.navbar-primary .dropdown-item:hover,
.navbar-primary .dropdown-item.active {
  background-color: var(--light-bg);
  color: var(--primary);
}

.navbar-primary .navbar-toggler {
  border-color: rgba(255,255,255,0.5);
}

.navbar-primary .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===========================
   5. Hero Section
   =========================== */
.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: 52% 33%;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 10%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0) 60%);
}

.hero .hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 30px;
}

.hero h1 {
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(35px, 2.2rem + 1.5vw, 64px);
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: clamp(19px, 1.2rem + 0.5vw, 30px);
}

.hero .btn-hero {
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 18px 40px;
  font-weight: 500;
  font-size: clamp(14px, 0.875rem + 0.3vw, 20px);
  transition: background-color 0.3s;
}

.hero .btn-hero:hover {
  background-color: var(--secondary);
  color: #fff;
}

/* ===========================
   6. Section Headers
   =========================== */
.section-label {
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
}

.section-label-line {
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.section-title {
  font-weight: 700;
  font-size: clamp(24px, 1.5rem + 1vw, 40px);
}

/* ===========================
   7. Service Cards
   =========================== */
.service-card {
  background: #fff;
  border-radius: 0;
  box-shadow: var(--card-shadow);
  padding: 30px;
  height: 100%;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  max-height: 140px;
  object-fit: contain;
}

.service-card h4 a {
  color: var(--heading-color);
}

.service-card h4 a:hover {
  color: var(--primary);
}

/* Картички събития — рамка при ховър */
.event-card-hover {
  transition: box-shadow 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}

.event-card-hover:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(253, 143, 20, 0.15);
}

.event-card-link {
  display: block;
  color: inherit;
}

.event-card-link:hover {
  color: inherit;
}

/* Минали събития — сив филтър */
.event-past {
  filter: grayscale(0.7);
  opacity: 0.85;
}

.event-past:hover {
  filter: grayscale(0.5);
  opacity: 0.95;
}

.btn-outline-service {
  border: 1px solid var(--heading-color);
  color: var(--heading-color);
  border-radius: 50px;
  padding: 9px 24px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-outline-service:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===========================
   8. Format Cards (Individual/Company/Group)
   =========================== */
.format-card {
  border: 1px solid var(--border-color);
  padding: 30px;
  text-align: center;
  height: 100%;
}

.format-card img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.format-card h5 a {
  color: var(--heading-color);
}

.format-card h5 a:hover {
  color: var(--primary);
}

/* ===========================
   9. Media Logos
   =========================== */
.media-card {
  border: 1px solid var(--border-color);
  padding: 30px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-card img {
  max-height: 120px;
  object-fit: contain;
}

/* ===========================
   10. Events Section
   =========================== */
.event-photo-card {
  border: 1px solid var(--border-color);
  padding: 30px;
  min-height: 200px;
}

.event-photo-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===========================
   11. Testimonials
   =========================== */
.testimonial-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 30px;
  height: 100%;
  transition: transform 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-3px);
}

.testimonial-card .stars {
  width: 94px;
}

.testimonial-card p {
  font-size: 14px;
}

/* ===========================
   12. Pricing Cards
   =========================== */
.pricing-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  height: 100%;
  transition: transform 0.3s;
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-card .price {
  font-size: clamp(28px, 1.75rem + 1vw, 48px);
  font-weight: 600;
  color: var(--heading-color);
  line-height: 1;
}

.pricing-card .check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.pricing-card .check-icon {
  width: 20px;
  flex-shrink: 0;
  margin-top: 3px;
}

.pricing-card.pricing-highlighted {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pricing-card.pricing-highlighted .price,
.pricing-card.pricing-highlighted h4,
.pricing-card.pricing-highlighted h5,
.pricing-card.pricing-highlighted p,
.pricing-card.pricing-highlighted .text-muted,
.pricing-card.pricing-highlighted .check-item {
  color: #fff !important;
}

.pricing-card.pricing-highlighted .btn-primary {
  background-color: #fff;
  color: var(--primary);
  border-color: #fff;
}

.pricing-card.pricing-highlighted .btn-primary:hover {
  background-color: rgba(255,255,255,0.85);
  color: var(--primary);
}

.pricing-card.pricing-highlighted .check-icon {
  filter: brightness(0) invert(1);
}

/* ===========================
   13. CTA Banner
   =========================== */
.cta-banner {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
}

.cta-banner .cta-content {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(24px, 1.5rem + 1vw, 40px);
  font-weight: 700;
}

.cta-banner p {
  color: rgba(255,255,255,0.9);
}

/* ===========================
   14. Buttons (Primary)
   =========================== */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-lg.btn-primary {
  padding: 18px 48px;
  font-size: clamp(17px, 1rem + 0.4vw, 27px);
  border-radius: 70px;
}

/* ===========================
   15. Blog Cards
   =========================== */
.blog-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card .card-img-top {
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
}

.blog-card .badge-category {
  background-color: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
}

.blog-card .card-title a {
  color: var(--heading-color);
  font-weight: 900;
}

.blog-card .card-title a:hover {
  color: var(--secondary);
}

/* ===========================
   16. Blog Article
   =========================== */
.article-content {
  font-size: 16px;
  line-height: 1.8;
}

.article-content .row {
  margin-bottom: 1.5rem;
}

.article-content .row [class*="col-"] {
  margin-bottom: 1rem;
}

.article-content p {
  margin-bottom: 1.2em;
}

.article-content img {
  border-radius: 8px;
  margin: 1em 0;
}

.article-content h2, .article-content h3, .article-content h4 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1em;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--heading-color);
}

/* ===========================
   17. Footer
   =========================== */
.site-footer {
  background-color: var(--dark-bg);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 20px;
}

.site-footer h3, .site-footer h4 {
  color: #fff;
}

.site-footer a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.site-footer a:hover {
  color: #fff;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--light-bg);
  font-size: 18px;
  transition: background-color 0.3s;
}

.social-icon:hover {
  background-color: var(--secondary);
  color: #fff;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ===========================
   18. Partnership Section
   =========================== */
.partnership-card {
  box-shadow: 0 5px 30px rgba(0,0,0,0.08);
  border-radius: 0;
  padding: 30px;
  min-height: 200px;
}

/* ===========================
   19. Gradient Backgrounds
   =========================== */
.bg-gradient-warm {
  background-color: #fffbf6;
}

.bg-gradient-primary {
  background: linear-gradient(219.88deg, #FFEAD3 0%, rgba(255, 225, 192, 0) 77.24%);
}

/* ===========================
   20. Contact Form
   =========================== */
.contact-form .form-control {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-btn);
  padding: 12px 16px;
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(253,143,20,0.15);
}

.contact-form textarea.form-control {
  min-height: 150px;
}

/* Контактна форма — остава в контейнера */
.contact-form input.form-control,
.contact-form textarea.form-control {
  max-width: 100%;
  box-sizing: border-box;
}

.contact-form .row > [class*="col-"] {
  min-width: 0;
}

/* Контактна страница — макс. ширина 900px */
.contact-page-section .contact-page-container {
  max-width: 900px !important;
  width: 100%;
}

/* ===========================
   21. Inner Page Hero
   =========================== */
.page-hero {
  background-color: var(--light-bg);
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 {
  font-weight: 700;
  font-size: clamp(28px, 1.75rem + 1vw, 48px);
}

/* Page banner with image – title in bottom-right, white overlay at bottom, page width */
.page-banner-hero {
  padding: 0 0 2rem;
}

.page-banner-hero-inner {
  position: relative;
  height: 504px;
  min-height: 380px;
  overflow: hidden;
  border-radius: 12px;
}

.page-banner-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-banner-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.4) 30%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}

.page-banner-hero-title {
  position: absolute;
  bottom: 24px;
  right: 24px;
  text-align: right;
}

.page-banner-hero-title h1 {
  font-weight: 700;
  font-size: clamp(24px, 1.5rem + 1vw, 40px);
  color: var(--heading-color);
  margin: 0;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* ===========================
   22. Events List
   =========================== */
.event-item {
  border-left: 4px solid var(--primary);
  padding: 15px 20px;
  margin-bottom: 15px;
  background: #fff;
}

.event-item h3 a {
  color: var(--primary);
  font-weight: 600;
}

.event-item h3 a:hover {
  color: var(--secondary);
}

/* ===========================
   23. Responsive
   =========================== */
@media (max-width: 991px) {
  .hero {
    min-height: 500px;
  }
  .top-bar .contact-desktop {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 400px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .section-title {
    font-size: 24px;
  }
}

/* ===========================
   24. Lead Form Widget
   =========================== */
.ep-lf-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 30px;
  max-width: 500px;
  margin: 30px auto;
}
.ep-lf-title {
  text-align: center;
  margin-bottom: 8px;
  color: var(--heading-color);
}
.ep-lf-desc {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
}
.ep-lf-field {
  margin-bottom: 15px;
}
.ep-lf-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.ep-lf-input:focus {
  border-color: var(--primary-color);
  outline: none;
}
.ep-lf-error {
  color: #dc3545;
  font-size: 13px;
  margin-top: 5px;
}
.ep-lf-consent {
  font-size: 13px;
  color: #666;
}
.ep-lf-consent label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.ep-lf-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}
.ep-lf-small {
  font-size: 12px;
  color: #999;
  margin: 5px 0 0;
}
.ep-lf-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s;
}
.ep-lf-btn:hover {
  background: var(--secondary);
}
.ep-lf-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.ep-lf-success-msg {
  text-align: center;
  padding: 20px 0;
}
.ep-lf-success-msg p {
  font-size: 18px;
  color: var(--heading-color);
  margin-bottom: 20px;
}
.ep-lf-download {
  display: inline-block;
  padding: 14px 30px;
  background: var(--primary-color);
  color: #fff !important;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s;
}
.ep-lf-download:hover {
  background: var(--secondary);
}
