/*
Theme Name: Vladimir Krstic Academic Theme
Description: Кастомная тема в стиле academical сайта vladimirkrstic.com с полной поддержкой Elementor для редактирования контента и блоков
Author: Custom Theme Developer
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vladimir-krstic-theme
Tags: elementor, academic, minimal, responsive, blog, education
*/

/* =========================
   RESET AND BASE STYLES
   ========================= */

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #666;
    text-decoration: underline;
}

/* =========================
   TYPOGRAPHY
   ========================= */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: normal;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2em;
    margin-bottom: 0.75em;
    padding-bottom: 0.5em;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    margin-top: 1.5em;
}

h4 {
    font-size: 1.25em;
    margin-bottom: 0.5em;
}

h5, h6 {
    font-size: 1.1em;
    margin-bottom: 0.5em;
    font-weight: bold;
}

p {
    margin-bottom: 1em;
}

/* =========================
   LAYOUT
   ========================= */

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

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

/* =========================
   HEADER
   ========================= */

.site-header {
    background: #fff;
    border-bottom: 1px solid #e1e1e1;
    padding: 20px 0;
}

.site-title {
    font-size: 2.5em;
    font-weight: normal;
    margin: 0;
    text-align: center;
}

.site-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.site-description {
    font-size: 1.1em;
    color: #666;
    text-align: center;
    margin-top: 0.5em;
    margin-bottom: 0;
    font-style: italic;
}

/* =========================
   NAVIGATION
   ========================= */

.main-navigation {
    margin-top: 20px;
    text-align: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: 10px 20px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.1em;
    border-right: 1px solid #ddd;
    transition: all 0.3s ease;
}

.main-navigation li:last-child a {
    border-right: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background-color: #f5f5f5;
    color: #333;
}

/* =========================
   MAIN CONTENT
   ========================= */

.site-main {
    padding: 40px 0;
    min-height: 60vh;
}

.content-area {
    margin-bottom: 40px;
}

/* =========================
   ACADEMIC SECTIONS
   ========================= */

.academic-section {
    margin-bottom: 3em;
}

.academic-section h2 {
    color: #1a1a1a;
    font-size: 1.5em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #ddd;
}

.academic-section h3 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 0.5em;
    margin-top: 1.5em;
}

.publications-list {
    list-style: none;
    padding: 0;
}

.publications-list li {
    margin-bottom: 1em;
    padding-left: 2em;
    position: relative;
}

.publications-list li::before {
    content: counter(publications);
    counter-increment: publications;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.publications-list {
    counter-reset: publications;
}

/* =========================
   CONTACT INFO
   ========================= */

.contact-info {
    background: #f9f9f9;
    padding: 20px;
    border-left: 4px solid #333;
    margin: 20px 0;
}

.contact-info p {
    margin-bottom: 0.5em;
}

.contact-info a {
    color: #333;
    font-weight: bold;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.site-footer p {
    margin: 0;
    font-size: 0.9em;
}

/* =========================
   ELEMENTOR COMPATIBILITY
   ========================= */

.elementor-widget-container {
    margin-bottom: 20px;
}

.elementor-section {
    margin-bottom: 0;
}

.elementor-column {
    padding: 0;
}

/* Ensure Elementor content inherits academic styling */
.elementor-widget-text-editor {
    font-family: inherit;
}

.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3,
.elementor-widget-heading h4,
.elementor-widget-heading h5,
.elementor-widget-heading h6 {
    font-family: inherit;
    font-weight: normal;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */

@media (max-width: 768px) {
    .container,
    .academic-container {
        padding: 0 15px;
    }
    
    .site-title {
        font-size: 2em;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation a {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding: 15px;
    }
    
    .main-navigation li:last-child a {
        border-bottom: none;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .publications-list li {
        padding-left: 1.5em;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.8em;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    .site-main {
        padding: 20px 0;
    }
}

/* =========================
   UTILITY CLASSES
   ========================= */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 2rem !important; }
.mb-3 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-3 { margin-top: 3rem !important; }

.academic-emphasis {
    font-style: italic;
    font-weight: bold;
}

.publication-year {
    font-weight: bold;
    color: #666;
}

.academic-title {
    color: #1a1a1a;
    font-weight: bold;
}


.custom-menu {
  text-align: center;
  margin: 40px 0;
}

.custom-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-menu li {
  margin: 15px 0;
}

.custom-menu a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  transition: color 0.3s ease;
}

.custom-menu a:hover {
  color: #6b63ff; /* фиолетовый hover */
}

.custom-menu a.active {
  color: #9d8eff; /* активный пункт (как на скрине) */
  font-weight: 500;
}

@media (max-width: 768px) {
  .custom-menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .custom-menu li {
    margin: 0; /* убираем вертикальные отступы */
  }
	
	.custom-menu a {
  font-size: 14px;
}
	
	.custom-menu {
  margin: 10px 0;
}
}

