/* =========================
   RESET + VARIABLES
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --primary:#0056a6;
    --primary-dark:#004a8f;
    --accent:#2b6fb8;
    --bg:#f5f7fb;
    --card:#ffffff;
    --text:#222;
    --muted:#444;
    --border:#d0d7dd;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* =========================
   TOP BAR
   ========================= */
.top-bar{
    background: var(--primary);
    color:#fff;
    padding: 6px 40px;
    font-size: 13px;
}

.top-bar .links{
    display:flex;
    gap:18px;
}

.top-bar a{
    color:#fff;
    text-decoration:none;
    opacity:.95;
}

.top-bar a:hover{
    opacity:1;
    text-decoration:underline;
}

/* =========================
   HEADER
   ========================= */
.main-header{
    background:#fff;
    padding: 16px 40px;
    border-bottom: 2px solid var(--primary);
}

.logo-box{
    display:flex;
    align-items:center;
    gap:14px;
}

.logo-link{
    display:flex;
    align-items:center;
    justify-content:center;
    background: var(--primary);
    padding: 10px 12px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.uft-logo{
    height: 56px;
    width:auto;
    display:block;
}

.logo-text h2{
    font-size: 14px;
    text-transform: uppercase;
}

.logo-text h1{
    font-size: 20px;
    color: var(--primary);
}

/* =========================
   NAVIGATION
   ========================= */
.main-nav{
    background: var(--accent);
    padding: 0 40px;
}

.main-nav ul{
    list-style:none;
    display:flex;
    gap:18px;
}

.main-nav a{
    color:#fff;
    text-decoration:none;
    padding: 12px 8px;
    font-weight:600;
    opacity:.95;
}

.main-nav a:hover{ opacity:1; }

.main-nav a.active{
    border-bottom: 3px solid rgba(255,255,255,.9);
}

/* =========================
   LAYOUT
   ========================= */
.container{
    max-width:1100px;
    margin: 0 auto;
    padding: 28px 20px;
}

/* =========================
   HOME
   ========================= */
.hero{
    background: linear-gradient(180deg, rgba(0,86,166,.08), rgba(0,86,166,0));
    border:1px solid rgba(0,0,0,.06);
    border-radius:14px;
    padding:22px 24px;
    box-shadow:0 10px 22px rgba(0,0,0,.06);
    margin-bottom:18px;
}

.hero h1{
    font-size:32px;
    color:var(--primary);
    margin-bottom:8px;
}

.hero p{ color:var(--muted); }

.cards{
    display:grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap:16px;
}

.card{
    background:var(--card);
    border:1px solid rgba(0,0,0,.06);
    border-radius:12px;
    padding:18px;
    box-shadow:0 8px 18px rgba(0,0,0,.05);
}

.card h2{
    color:var(--primary);
    margin-bottom:6px;
}

.card p{
    color:var(--muted);
    margin-bottom:10px;
}

.card a{
    color:var(--primary);
    font-weight:700;
    text-decoration:none;
}

.card a:hover{ text-decoration:underline; }

/* =========================
   PAGE SECTIONS
   ========================= */
.page-header,
.staff-section{
    background:var(--card);
    border:1px solid rgba(0,0,0,.06);
    border-radius:14px;
    padding:22px 24px;
    box-shadow:0 10px 22px rgba(0,0,0,.06);
    margin-bottom:16px;
}

.page-header h1{
    font-size:30px;
    color:var(--primary);
    margin-bottom:10px;
}

.staff-section h2{
    font-size:20px;
    color:var(--primary);
    margin-bottom:10px;
}

.staff-section p,
.staff-section li{
    color:#1f2937;
    line-height:1.6;
}

.staff-section ul{ padding-left:18px; }

/* =========================
   STAFF CARDS
   ========================= */
.staff-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap:20px;
}

.staff-card{
    background:#fff;
    border-radius:8px;
    padding:12px;
    text-align:center;
    box-shadow:0 2px 6px rgba(0,0,0,.1);
    text-decoration:none;
    color:var(--text);
}

.staff-card:hover{
    transform:translateY(-3px);
    box-shadow:0 4px 12px rgba(0,0,0,.15);
}

.staff-card img{
    width:100%;
    height:250px;
    object-fit:cover;
    border-radius:6px;
    margin-bottom:10px;
}

/* =========================
   STAFF DETAIL
   ========================= */
.staff-detail-header{
    display:flex;
    gap:20px;
    background:var(--bg);
    border:1px solid var(--border);
    border-radius:8px;
    padding:20px;
    margin-bottom:30px;
}

.staff-detail-header img{
    width:180px;
    height:220px;
    object-fit:cover;
    border-radius:6px;
}

.staff-detail-main h1{
    font-size:26px;
    color:var(--primary);
}

.staff-detail-main p:first-of-type{
    font-weight:bold;
}

/* =========================
   TABLES
   ========================= */
.disciplines-table{
    width:100%;
    border-collapse:collapse;
    font-size:14px;
}

.disciplines-table th,
.disciplines-table td{
    border:1px solid var(--border);
    padding:6px 8px;
}

.disciplines-table th{
    background:#e6f0fb;
}

/* =========================
   CONTACTS
   ========================= */
.contact-card{
    background:#f9f9f9;
    border:1px solid #e0e0e0;
    padding:16px;
    box-shadow:0 2px 5px rgba(0,0,0,.04);
}

.kansazova-card{
    display:flex;
    justify-content:space-between;
    gap:20px;
}

/* =========================
   CHAT WIDGET
   ========================= */
#chat-widget{
    position:fixed;
    bottom:20px;
    right:20px;
    z-index:9999;
}

#chat-button{
    width:60px;
    height:60px;
    border-radius:50%;
    background:var(--primary);
    color:#fff;
    font-size:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 3px 10px rgba(0,0,0,.4);
}

#chat-window{
    position:fixed;
    bottom:90px;
    right:20px;
    width:320px;
    height:420px;
    background:#fff;
    border-radius:10px;
    display:none;
    flex-direction:column;
    overflow:hidden;
    box-shadow:0 3px 12px rgba(0,0,0,.35);
}

.chat-header{
    background:linear-gradient(135deg,#0b4f9c,#1a6dc2);
    color:#fff;
    padding:10px 12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-weight:bold;
}
.chat-header span:first-child {
    white-space: nowrap;
    font-size: 15px; /* леко по-малък */
}


.chat-messages{
    flex:1;
    padding:10px;
    background:#f3f3f3;
    overflow-y:auto;
}
/* input area */
.chat-input-area{
    display:flex;
    border-top: 1px solid #ddd;
    background:#fff;
}

#chat-input{
    flex:1;
    border:none;
    padding:10px;
    outline:none;
    font-size:14px;
    background:#fff;
}

#chat-send{
    border:none;
    background: var(--primary);
    color:#fff;
    padding: 0 16px;
    cursor:pointer;
    font-weight:bold;
}

#chat-send:hover{
    background: var(--accent);
}
.chat-icons{
    display:flex;
    gap:10px;
    align-items:center;
}

.admin-icon{
    font-size: 20px;
    text-decoration:none;
    color:#fff;
    opacity: .95;
}

.admin-icon:hover{ opacity:1; }

.close-icon{
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

.close-icon svg{
    width:23px;
    height:23px;
}


.message{
    margin-bottom:6px;
    padding:6px 10px;
    border-radius:8px;
    max-width:85%;
}

.message.bot{ background:#e1ebff; }
.message.user{
    background:#d5ffd9;
    margin-left:auto;
}

/* =========================
   FOOTER
   ========================= */
.footer{
    background:#2d2d2d;
    color:#fff;
    text-align:center;
    padding:10px 20px;
    margin-top:26px;
}

/* =========================
   ADMIN EXTRAS
   ========================= */
#scrollTopBtn{
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9999;

    background: var(--primary);
    color: #fff;
    border: none;

    padding: 8px 16px;
    border-radius: 4px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.2;

    cursor: pointer;
    display: none;
    box-shadow: 0 6px 14px rgba(0,0,0,.2);
}

#scrollTopBtn:hover{
    background: var(--primary-dark);
}

/* =========================
   RESPONSIVE
   ========================= */
@media(max-width:900px){
    .cards{ grid-template-columns:1fr; }
    .staff-detail-header{ flex-direction:column; }
}
.education-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.education-card{
  display: block;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  color: #111;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.education-card:visited{ color:#111; } /* да не стават лилав цвят */

.education-card:hover{
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
  border-color: #2b6cb0;
}

.education-icon{ font-size: 34px; margin-bottom: 10px; }
.education-card h2{ margin:0 0 8px; color:#0b4aa2; }
.education-card p{ margin:0 0 12px; color:#333; }
.education-more{ font-weight:600; color:#0b4aa2; }

.hero-image {
    margin: 25px 0 35px 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hero-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}
