/* ==========================================================================
   Чист, дизайнерски CSS за уебсайт (JA T3 / Joomla)
   - Спокойна неутрална основа + акцентен червен
   - Една и съща визия на Topbar за десктоп и мобилни
   ========================================================================== */

/* Google Font: Montserrat + Cyrillic */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap&subset=cyrillic');

/* CSS променливи */
:root {
  --site-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;

  /* Основни цветове за фон и текст */
  --main-text-color: #1A1A1A;          /* тъмен графит за основен текст */
  --secondary-text-color: #555555;     /* средно сиво за допълнителен текст */
  --background-color: #F8F8F8;         /* светлосив фон на тялото */
  --container-bg-color: #FFFFFF;       /* бяло за контейнери и карти */
  --welcome-bg-color: #FFFFFF;

  /* Акцентни цветове на марката */
  --accent-red: #D93B41;               /* наситен червен */
  --accent-red-dark: #C42F34;          /* по-тъмен нюанс за hover */
  --brand-blue: #3e4b5c;               /* дълбок професионален син */

  /* Topbar (дефинираме, макар да не са задължителни) */
  --topbar-bg: #3e4b5c;
  --topbar-color: #ffffff;
  --topbar-border: #2c3642;
}

/* Глобална типография и фон */
html, body {
  font-family: var(--site-font) !important;
  color: var(--main-text-color);
  background-color: var(--background-color);
}

/* =======================================================================
   Заглавия, секционни тайтъли и навигация – форсираме брандинг шрифт
   ======================================================================= */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.section-title h1, .section-title h2, .section-title h3,
.section-title .h1, .section-title .h2, .section-title .h3,
.acm-features .section-title h2,
.features-content .section-title h2,
.blog .box-content .article-header h2 a,
.blog-featured .box-content .article-header h2 a,
.module-title,
.t3-mainnav .nav > li > a {
  font-family: var(--site-font) !important;
}

/* Основен контейнер */
.t3-mainbody {
  background: var(--container-bg-color);
  border-radius: 20px;
  padding: 40px 0 108px;
  margin: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.module-title {
  font-weight: 700;
  color: var(--brand-blue);
}

/* Дребни корекции */
.pagenavigation a.btn { padding: 20px 0; }
h1.eventgallery-category-headline { display: none !important; }

/* =======================================================================
   TOPBAR – Единен стил за всички резолюции (десктоп + мобилни)
   ======================================================================= */
.t3-topbar {
  background: var(--topbar-bg) !important;     /* #3e4b5c */
  color: var(--topbar-color) !important;       /* #ffffff */
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.5px;
  padding: 8px 0;
  border-bottom: 1px solid var(--topbar-border);
  text-align: center;
  box-shadow: none;
}

.t3-topbar a {
  color: #ffffff !important;
  text-decoration: none;
  transition: color .2s ease;
}

.t3-topbar a:hover,
.t3-topbar a:focus {
  color: #eaeaea !important;
}

.t3-topbar .container-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  width: 100%;
  text-align: center;
}

.t3-topbar .welcome-text {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: #ffffff !important;
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
  text-align: center;
  margin: 0;
  padding: 0;
  width: 100%;
}

.t3-topbar .welcome-text span {
  color: #ffcc66 !important; /* златист акцент */
  font-weight: 500;
}

/* Мобилен topbar – запазваме същите цветове */
@media (max-width: 767.98px) {
  .t3-topbar {
    background: var(--topbar-bg) !important;
    color: var(--topbar-color) !important;
    padding: 6px 0;
    border-bottom: 1px solid var(--topbar-border);
    box-shadow: none;
  }
  .t3-topbar a,
  .t3-topbar .module-ct,
  .t3-topbar .custom,
  .t3-topbar small {
    color: var(--topbar-color) !important;
    font-size: 14px;
    font-weight: 600;
    text-shadow: none;
  }
  .t3-topbar .container-inner {
    flex-direction: column;
    gap: 4px;
    padding: 4px 8px;
    height: auto;
  }
  .t3-topbar .topbar-left,
  .t3-topbar .topbar-right {
    width: 100% !important;
    text-align: center !important;
  }
  .t3-topbar .welcome-text,
  .t3-topbar .custom,
  .t3-topbar small {
    font-size: 12px !important;
    line-height: 1.25;
    margin: 0;
  }
}

@media (max-width: 360px) {
  .t3-topbar .welcome-text,
  .t3-topbar .custom,
  .t3-topbar small {
    font-size: 11px !important;
  }
}

/* =======================================================================
   Лого и основна навигация
   ======================================================================= */
.logo a img { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .06)); }

.t3-mainnav .nav > li > a {
  color: #3e4b5c !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 1px;
}

.t3-mainnav .nav > li > a:hover,
.t3-mainnav .nav > li.active > a {
  color: #a33a3f !important;
}

/* Desktop Navigation Padding */
@media (min-width: 992px) {
  .navbar-default .navbar-nav > li > a,
  .navbar-default .navbar-nav > li > span {
    color: var(--brand-blue);
    font-size: 14px;
    font-weight: 600;
    padding: 36px 0;
    margin: 0 12px;
    position: relative;
    transition: color .2s ease, border-color .2s ease;
  }
}

/* =======================================================================
   About / Curriculum
   ======================================================================= */
.view-about .page-about .box-curriculum { padding: 40px 0; }
.box-curriculum .content-text { text-align: left; }
.box-curriculum .pic-curriculum { margin-top: 20px; }
.box-curriculum .pic-curriculum img { display: block; max-width: 100%; height: auto; }

@media (min-width: 992px) {
  .pic-curriculum { margin-top: 120px !important; }
}

/* =======================================================================
   Изображения в статия
   ======================================================================= */
.view-article .item-page .article-content img,
.view-article .item-page .com-content-article__body img {
  display: inline;
  width: auto;
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

.view-article .item-page .article-content img[style*="float: left"],
.view-article .item-page .article-content img.align-left,
.view-article .item-page .com-content-article__body img[style*="float: left"],
.view-article .item-page .com-content-article__body img.align-left {
  float: left;
  margin: 0 12px 12px 0;
}

.view-article .item-page .article-content img[style*="float: right"],
.view-article .item-page .article-content img.align-right,
.view-article .item-page .com-content-article__body img[style*="float: right"],
.view-article .item-page .com-content-article__body img.align-right {
  float: right;
  margin: 0 0 12px 12px;
}

.view-article .item-page .article-content::after,
.view-article .item-page .com-content-article__body::after {
  content: "";
  display: block;
  clear: both;
}

.view-article .item-page figure.item-image,
.view-article .item-page figure.left.item-image {
  float: left !important;
  margin: 0 16px 12px 0 !important;
}

.view-article .item-page figure.item-image img {
  width: auto !important;
  max-width: 420px !important;
  height: auto !important;
}

.view-article .item-page .article-content {
  clear: none !important;
  overflow: visible !important;
}

@media (max-width: 768px) {
  .view-article .item-page .article-content figure.item-image,
  .view-article .item-page .article-content figure.left.item-image {
    float: none !important;
    margin: 0 0 12px 0 !important;
    width: 100% !important;
    max-width: none !important;
    display: block;
  }

  .view-article .item-page .article-content figure.item-image img,
  .view-article .item-page .article-content figure.left.item-image img,
  .view-article .item-page .article-content img.img-fulltext {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
}

/* =======================================================================
   Дата-бейдж
   ======================================================================= */
.ext-badge {
  background: #c94a4f;
  color: #ffffff;
  border-radius: 50%;
  font-size: 18px;
  line-height: 78px;
  height: 78px;
  width: 78px;
  text-align: center;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
}

/* =======================================================================
   Списък статии – линкове
   ======================================================================= */
.blog .box-content .article-header h2 a,
.blog-featured .box-content .article-header h2 a {
  color: var(--main-text-color) !important;
  text-decoration: none;
}

.blog .box-content .article-header h2 a:hover,
.blog .box-content .article-header h2 a:focus,
.blog-featured .box-content .article-header h2 a:hover,
.blog-featured .box-content .article-header h2 a:focus {
  color: var(--accent-red) !important;
}

/* =======================================================================
   H1 в единична статия
   ======================================================================= */
.view-article .item-page .article-header h1,
.view-article .item-page .article-header h1 a {
  color: var(--brand-blue) !important;
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 24px;
  text-decoration: none;
  border-bottom: 6px solid transparent;
  transition: color .2s, border-color .2s;
}

.view-article .item-page .article-header h1 a:hover,
.view-article .item-page .article-header h1 a:focus {
  color: var(--accent-red) !important;
}

.view-article .item-page .article-header { margin-bottom: 16px; }

@media (max-width: 768px) {
  .view-article .item-page .article-header h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 18px;
  }
  .view-article .item-page .article-header { margin-bottom: 12px; }
}

@media (max-width: 480px) {
  .view-article .item-page .article-header h1,
  .view-article .item-page .article-header h1 a {
    font-size: 14px !important; /* по желание може да се качи до 22–24px */
    line-height: 1.4;
    margin-bottom: 0 !important;
  }
}

/* =======================================================================
   Off-canvas / Sidebar
   - Скриваме off-canvas тригерите на десктоп, оставяме ги за мобилни
   ======================================================================= */
@media (min-width: 992px) {
  #t3-off-canvas, .t3-off-canvas, .off-canvas, .offcanvas, .ja-offcanvas, .ja-sidebar, .sidebar, .sidebar-wrapper,
  .t3-off-canvas-toggle, .off-canvas-toggle, .offcanvas-toggle, .sidebar-toggle, .ja-offcanvas-btn, .ja-sidebar-btn,
  .acm-sidebar .btn, .acm-sidebar .btn-toggle, [data-toggle="offcanvas"], [data-bs-toggle="offcanvas"] {
    display: none !important;
  }
}

.off-canvas-toggle, .btn.off-canvas-toggle, .btn.btn-primary.off-canvas-toggle {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark)) !important;
  border: 0 !important;
  color: var(--container-bg-color) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.off-canvas-toggle i, .btn.off-canvas-toggle i { color: var(--container-bg-color) !important; }
.off-canvas-toggle:hover { filter: brightness(1.08); }
.off-canvas-toggle:active { transform: translateY(1px); }

/* =======================================================================
   ACM Slideshow
   ======================================================================= */
#acm-slideshow-96 .slider-content { background-size: cover !important; background-position: center center !important; }
#acm-slideshow-96 .slider-content .slider-content-inner,
.acm-slideshow .slider-content .slider-content-inner {
  color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

@media (min-width: 992px) {
  #acm-slideshow-96 .slider-content,
  #acm-slideshow-96 .owl-stage-outer,
  #acm-slideshow-96 .owl-item,
  #acm-slideshow-96 .owl-item .item {
    height: 420px !important; max-height: 420px !important; overflow: hidden;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #acm-slideshow-96 .slider-content,
  #acm-slideshow-96 .owl-stage-outer,
  #acm-slideshow-96 .owl-item,
  #acm-slideshow-96 .owl-item .item {
    height: 360px !important; max-height: 360px !important; overflow: hidden;
  }
}

@media (max-width: 767.98px) {
  #acm-slideshow-96 .slider-content,
  #acm-slideshow-96 .owl-stage-outer,
  #acm-slideshow-96 .owl-item,
  #acm-slideshow-96 .owl-item .item {
    height: 240px !important; max-height: 240px !important; overflow: hidden;
  }
  #acm-slideshow-96 .slider-content .slider-content-inner h2,
  #acm-slideshow-96 .slider-content .slider-content-inner .title,
  .acm-slideshow .slider-content .slider-content-inner h2 {
    font-size: 20px !important; line-height: 1.25; margin: 0 0 8px;
  }
  #acm-slideshow-96 .slider-content .btn { padding: 8px 14px; font-size: 14px; }
}

/* Стрелки и индикатори */
.acm-slideshow .owl-carousel .owl-nav > div .icon { background: #b94a48; }
#acm-slideshow-96 #next-section .icon,
.acm-slideshow #next-section .icon {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--accent-red) !important;
  font-size: 14px;
  transition: color 0.3s ease;
}
.acm-slideshow #next-section .icon:hover { color: #7a272b !important; }

/* =======================================================================
   Мобилни корекции за лого/хедър
   ======================================================================= */
@media (min-width: 992px) {
  .t3-header .logo a img, .t3-header .logo-image img { max-height: 70px; }
}
@media (max-width: 991.98px) {
  .t3-header .logo a img, .t3-header .logo-image img { max-height: 42px; }
  .t3-header .container-inner { min-height: 60px; }
  #section97 { padding-top: 12px !important; }
}

/* =======================================================================
   Бранд цветове: бутони, линкове, пагинация, точки и т.н.
   ======================================================================= */
.btn-primary, .btn.btn-primary, .btn-primary:focus {
  background-color: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
  color: var(--container-bg-color) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover, .btn-primary:active, .btn-primary:focus,
.open > .dropdown-toggle.btn-primary {
  background-color: var(--accent-red-dark) !important;
  border-color: var(--accent-red-dark) !important;
  color: var(--container-bg-color) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
  transform: translateY(-2px);
}
.btn { color: inherit; }

.text-primary { color: var(--accent-red) !important; }
a:hover, a:focus { color: var(--accent-red) !important; }
.mod-articles-latest .article-detail .more-link { color: var(--accent-red); }

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > span,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > span:hover,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .active > span:focus,
body .navbar-default .navbar-nav > li > a:hover,
body .navbar-default .navbar-nav > li > a:focus,
body .t3-mainnav .nav > li:hover > a,
body .t3-mainnav .nav > li:focus > a,
body .t3-mainnav .nav > li.open > a {
  color: var(--accent-red) !important;
  background-color: transparent !important;
}

.t3-mainnav .nav > li > a:before,
.t3-mainnav .nav > li > a:after { background: transparent; }

.t3-mainnav .nav > li:hover > a:before,
.t3-mainnav .nav > li.open > a:before,
.t3-mainnav .nav > li.active > a:before {
  background: var(--accent-red) !important;
}

.t3-mainnav .nav > li.active > a,
.t3-mainnav .nav > li:hover > a,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > li > a:hover {
  border-bottom-color: var(--accent-red) !important;
}

.off-canvas-toggle, .t3-off-canvas-toggle {
  background: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
  background: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  background: var(--accent-red) !important;
}

/* =======================================================================
   Секционни тайтъли
   ======================================================================= */
.section-title h2,
.features-content .section-title h2,
.acm-features .section-title h2 {
  font-size: 32px !important;
  line-height: 1.2;
  margin: 16px 0 10px;
  color: var(--brand-blue);
}
@media (max-width: 991.98px) {
  .section-title h2,
  .features-content .section-title h2,
  .acm-features .section-title h2 { font-size: 24px !important; }
}
@media (max-width: 767.98px) {
  .section-title h2,
  .features-content .section-title h2,
  .acm-features .section-title h2 { font-size: 16px !important; }
}
.section-title {
  max-width: 740px;
  margin: 0 auto 72px;
  text-align: center;
  font-size: 16px;
  color: var(--secondary-text-color);
}

/* =======================================================================
   Footer
   ======================================================================= */
#t3-footer {
  background: #344150 !important;
  border-top: 1px solid #2c3642;
  text-align: center;
  padding: 0;
}
#t3-footer .footer-inner {
  background: #344150 !important;
  color: #ffffff !important;
  border-radius: 0 !important;
  padding: 20px 0;
  box-shadow: none !important;
}
.t3-footer .footer-inner .footer-copy { padding: 14px 0; text-align: center; }
.t3-footer .footer-inner .footer-copy small { line-height: 1.6; display: inline-block; }
#t3-footer .t3-copyright,
#t3-footer .t3-copyright p,
#t3-footer small {
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}
#t3-footer a {
  color: #e07a7d !important;
  text-decoration: none;
  transition: color .2s ease;
}
#t3-footer a:hover { color: #ffb3b5 !important; }
.t3-copyright { font-size: 13px; padding-top: 40px; }

/* =======================================================================
   Typography / Spacing
   ======================================================================= */
.lead {
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.t3-section-wrap .padding-top { padding-top: 20px; }
.t3-section-wrap .padding-bottom { padding-bottom: 20px; }

@media (max-width: 1199.98px) {
  .t3-section-wrap .padding-top { padding-top: 15px; }
  .t3-section-wrap .padding-bottom { padding-bottom: 15px; }
}
@media (max-width: 767.98px) {
  .t3-section-wrap .padding-top { padding-top: 12px; }
  .t3-section-wrap .padding-bottom { padding-bottom: 12px; }
}
@media (max-width: 400px) {
  .t3-section-wrap .padding-top { padding-top: 10px; }
  .t3-section-wrap .padding-bottom { padding-bottom: 10px; }
}

/* =======================================================================
   Галерия / изображения
   ======================================================================= */
#events .item-container .item .event-thumbnail img,
#events img.eg-img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 20px;
  object-fit: cover;
  overflow: hidden;
}

/* =======================================================================
   ACM Features – стрелки
   ======================================================================= */
.acm-features.style-2 .features-image .owl-nav > div .icon {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
  border-radius: 50%;
  color: var(--container-bg-color);
  cursor: pointer;
  top: 50%;
  text-align: center;
  left: 0;
  position: absolute;
  margin-top: -24px;
  margin-left: -24px;
  line-height: 48px;
  height: 48px;
  width: 48px;
  z-index: 1;
}

/* =======================================================================
   Back-to-top – премахване на декоративната „вълна“, стил на стрелката
   ======================================================================= */
#back-to-top::before,
#back-to-top::after {
  background: none !important;
  content: none !important;
  box-shadow: none !important;
}
#back-to-top .ion-ios-arrow-round-up {
  color: #a33a3f !important;
  font-size: 22px !important;
  line-height: 45px !important;
}
#back-to-top:hover .ion-ios-arrow-round-up {
  color: #403d75 !important;
}

/* =========================
   FOOTNAV – тъмен фон + кремави карти
   ========================= */
:root{
  --footnav-bg: #2f3c4a;                  /* тъмен „slate“ фон на секцията */
  --footnav-card-bg: #f4ecdc;             /* топло кремаво за картите */
  --footnav-card-border: rgba(0,0,0,.10); /* деликатна рамка */
  --footnav-title: #1A1A1A;               /* тъмен за заглавията */
  --footnav-text: #555555;                /* текст вътре */
}

.t3-footnav{
  
  padding: 40px 0 24px;
}

/* Картите */
.t3-footnav .t3-module .module-inner{
  background: var(--footnav-card-bg);
  border: 1px solid var(--footnav-card-border);
  border-radius: 20px;
  padding: 32px;
  color: var(--footnav-text);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.t3-footnav .t3-module .module-inner:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0,0,0,.24);
  border-color: rgba(0,0,0,.16);
}

/* Заглавия в картите */
.t3-footnav .module-title,
.t3-footnav .t3-module .module-title{
  color: var(--footnav-title) !important;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 14px;
}

/* Червена чертичка под заглавието */
.t3-footnav .module-title::after{
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-red-dark));
  opacity: .95;
}

/* Текстове и линкове вътре */
.t3-footnav .t3-module .module-inner p,
.t3-footnav .t3-module .module-inner li,
.t3-footnav .t3-module .module-inner small{
  color: var(--footnav-text);
  line-height: 1.65;
  margin-bottom: 10px;
}
.t3-footnav .t3-module .module-inner a{
  color: var(--accent-red);
  text-decoration: none;
  transition: color .15s ease, opacity .15s ease;
}
.t3-footnav .t3-module .module-inner a:hover,
.t3-footnav .t3-module .module-inner a:focus{
  color: var(--accent-red-dark);
}

/* Акцентни съобщения (напр. “Emergency Available!”) */
.t3-footnav .t3-module .module-inner .text-accent,
.t3-footnav .t3-module .module-inner em,
.t3-footnav .t3-module .module-inner strong.emphasis{
  color: var(--accent-red) !important;
  font-weight: 600;
}

/* Разстояния между колоните */
.t3-footnav .row > [class^="col-"],
.t3-footnav .row > [class*=" col-"]{
  margin-bottom: 18px;
}

/* Мобилни */
@media (max-width: 991.98px){
  .t3-footnav{ padding: 28px 0 16px; }
  .t3-footnav .t3-module .module-inner{ padding: 24px; border-radius: 18px; }
}


