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

html {
  margin: 0;
  padding: 0;
  overflow-x: hidden; 
}

body {
    background-color: #CCCCCC;
    color: #000000;
    line-height: 1.6;
    font-weight: 400;
    font-family: 'Unbounded', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;    
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Переменные темы */
:root {
    --header-height: 80px;
}

/* Насилие над стилями конструктора */
[class*="sek-module-inner"],
[class*="sek-module-inner"] * {
    font-family: 'Unbounded', sans-serif !important;
    word-break: normal;
    overflow-wrap: normal;
    white-space: pre-wrap;
}
.sek-module-inner .sek-btn {
    background-color: #343768 !important; 
    border-radius: 30px !important;
    padding-top: 1.6em !important;
    padding-bottom: 1.6em !important;
    padding-right: 1.6em !important;
    padding-left: 1.6em !important;
    margin-top: 1.6em !important;
    margin-bottom: 1.6em !important;
    font-family: 'Unbounded'!important; 
    font-size: 1.5em;
    color: #ffffff !important;
    font-style: normal !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
  }

.sek-module-inner .sek-btn:hover {
    background-color: #56567c !important;
}

/* Удаление отступов между секциями */
.sek-module-inner {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}


/* Стандартные элементы темы */
.content-wrapper {
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 80px;
}
.editor-styles-wrapper, .entry-content {
    text-align: center; 
}

.main-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

.entry-content > table > tbody > tr > td{
    padding: 5px;
}

.content-wrapper h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}
.content-wrapper h2,
.content-wrapper h3 {
    font-size: clamp(1.2rem, 3vw, 2rem);
}
.content-wrapper p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.6;
}  
.content-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    max-width: 1600px;
  }
.content-wrapper table td {
    width: 50%;
    vertical-align: top;
}
.content-wrapper img {
    max-width: 100%;
    height: auto;
}

.random-posts-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
  
.random-post-item {
    flex: 1;
    min-width: 250px;
}
  
.post-navigation {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}
  
.nav-previous, .nav-next {
    flex: 1;
    min-width: 200px;
   text-align: center;
    position: relative;
}

/* Отступ от админ панели */
.admin-bar .site-header {
    top: 25px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* Шапка сайта */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid  rgba(131, 131, 131, 0.5);
    height: var(--header-height);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    margin: 0 auto;
    position: relative;
    z-index: 1001;
    height: 100%;
}

.site-logo {
    padding: 7px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-main {
    padding-top: 5px;
    padding-left: 11px;
}

.logo-sub {
    padding-top: 13px;
    padding-left: 13px;
}

/* Навигационное меню */
.main-navigation {
    display: flex;           
    align-items: center;
}
.top-menu {
    margin-left: auto;       
    display: flex;
    align-items: center;    
}
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.nav-menu li {
    position: relative;
}
.nav-menu > li > a {
    display: flex;
    align-items: center;
    height: var(--header-height);
    padding: 0 2em;
    position: relative;
}

.nav-menu > li:hover > a::after,
.nav-menu > li:focus-within > a::after {
    opacity: 1;
    transform: translateY(0);
}
.nav-menu .sub-menu,
.nav-menu .children {
    display: none;
    position: absolute;
    left: 0;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    min-width: 220px;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border-top: 2px solid #fff;
    list-style: none;
    padding-left: 0; 
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-menu .menu-item-has-children > .sub-menu {
    left: 0;
    top: 100%;
}

.nav-menu .sub-menu .menu-item-has-children > .sub-menu {
    left: 100%;
    top: 0;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:hover > .children,
.nav-menu li.focus > .sub-menu,
.nav-menu li.focus > .children {
    display: block;
    opacity: 1;
    visibility: visible;
}

.nav-menu .sub-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
}

.nav-menu .sub-menu a {
    padding: 12px 20px;
    display: block;
    color: rgba(0, 0, 0, 1);    
    font-size: 14px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.nav-menu .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    color: #fff;
}

.nav-menu .menu-item-has-children > a {
    pointer-events: none;
}

.nav-menu a {
    text-decoration: none;
    color: #000000; 
    font-size: clamp(14px, 1.2vw + 0.5rem, 20px); 
    font-weight: 600;
    font-family: 'Unbounded', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-menu a:hover {
    color: #f5f5f5;
    text-shadow:
        -1px -1px 0 #000000,
         1px -1px 0 #000000,
        -1px  1px 0 #000000,
         1px  1px 0 #000000;
}

@media (min-width: 991px) {
    .nav-menu > li > a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        background: linear-gradient(to top, rgba(255,255,255,0.35), rgba(255,255,255,0));
        opacity: 0;
        transform: translateY(6px);
        transition: opacity 0.25s ease, transform 0.25s ease;
        pointer-events: none;
    }
    }

@media (max-width: 990px) {
    .nav-menu .sub-menu,
    .nav-menu .children {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding-left: 1.5em;
        background: rgba(0, 0, 0, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        list-style: none; 
    }
    
    .nav-menu .menu-item-has-children.menu-open > .sub-menu,
    .nav-menu .menu-item-has-children.menu-open > .children {
        display: block;
        max-height: 100em; 
        transition: max-height 0.5s ease-in;
    }
    
    
    
    .nav-menu .menu-item-has-children > a::after {
        content: '\f078';
        float: right;
    }
    
    .nav-menu .sub-menu .menu-item-has-children > a::after {
        content: '\f078';
    }
    
    .nav-menu .menu-item-has-children > a {
        pointer-events: auto;
    }
}


/* Кнопка мобильного меню */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 1em;
    background: none;
    border: none;
    position: relative; 
    z-index: 2501;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #000000;
    margin: 3px 0;
    transition: 0.3s;
}

/* Сайдбар для мобильного меню */
.mobile-sidebar {
    position: fixed;
    top: var(--header-height);
    right: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 2000;
    padding: 20px 20px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar .nav-menu {
    flex-direction: column;
    gap: 0;
}

.mobile-sidebar .nav-menu li {
    width: 100%;    
    text-align: -webkit-right;
}

.mobile-sidebar .nav-menu a {
    font-size: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: block;
}
.mobile-sidebar .sub-menu a {
    font-size: 14px;
}

.mobile-sidebar-close {
    position: absolute;
    top: 2em;
    right: 2em;
    background: none;
    border: none;
    font-size: 3em;
    cursor: pointer;
    color: #000000;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 990px) {
    .nav-menu .menu-item-has-children > a::after,
    .nav-menu .sub-menu .menu-item-has-children > a::after {
        content: none !important;
        display: none !important;
    }

    .mobile-sidebar .nav-menu a {
        pointer-events: auto;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .mobile-sidebar .nav-menu .sub-menu,
    .mobile-sidebar .nav-menu .children {
        background: none;
        border-radius: 0;
        box-shadow: none;
        border-top: 0;
    }
    .mobile-sidebar .nav-menu .sub-menu a,
    .mobile-sidebar .nav-menu .children a {
        background: transparent;
        border-radius: 0;
    }
    .main-navigation .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
        
    .hero-video-section {
        height: 70vh;
    }
    
    .main-content {
        padding: 20px 15px;
    }
}


/* Анимации для мобильного меню */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Видео фон для главной страницы */
.hero-video-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.hero-fallback-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    display: none;
}

/* Убедимся, что видео элемент виден даже если оно не проигрывается */
.hero-video-section video {
    visibility: visible !important;
}

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


/* Стили Подвала */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background:#000000;
    width: 100%;
    color:#CCCCCC;
    padding: 20px 40px;
    text-align: left;
}

.footer-contact-info p {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.footer-contact-info i {
    width: 20px;
}

.footer-bottom {
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    text-align: left;
}

.copyright {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a, .copyright a {
    color: #CCCCCC;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-links a:hover, .copyright a:hover {
    color: #FFFFFF;
}

/* --- Хлебные крошки --- */
.breadcrumbs {
    font-size: 1em;
    color: #999999;
    padding: 2px 5px 5px 5px;
    display: inline-block;
    border-bottom: 0.1em solid  rgba(131, 131, 131, 0.5);
}
.breadcrumbs a {
    color: #666666;
    text-decoration: none;
    font-weight: 500;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}

/* --- Ссылки на предыдущую и следующую запись --- */
.post-navigation {
    justify-content: space-between;    
    padding-top: 1em;
    border-top: 1px solid  rgba(131, 131, 131, 0.5);    
    border-bottom: 1px solid  rgba(131, 131, 131, 0.5);
    margin: 10px 0 10px 0;
    gap: 20px;
    display: flex;
    justify-content: center;
}
.nav-previous{
    text-align: right;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    padding: 12px 12px;
    font-size: 1em;
}

.nav-previous a::before {
    content: "←"; 
    display: inline-block;
    margin-right: 8px;
    font-weight: bold;
}

.nav-next a::after {
    content: " →"; 
    display: inline-block;
    margin-left: 8px;
    font-weight: bold;
} 
.post-navigation span {
    display: block;
    color: #888;
    margin-bottom: 4px;
}
.post-navigation a {
    color: #343768;
    font-weight: 600;
    text-decoration: none;
}
.post-navigation a:hover {
    text-decoration: underline;
}

/* --- Раздел записей "Вам может понравиться"  --- */
.random-posts-block {
    margin: 4.8em 0 0 0;
    padding: 2.4em 0 0 0;
    border-top: 0.1em solid #e0e0e0;
    justify-content: center;
}
.random-posts-block h3 {
    font-size: 2.2em;
    margin-bottom: 1.8em;
    color: #343768;
}
.random-posts-list {
    display: flex;
    gap: 2.4em;
    justify-content: center;
    flex-wrap: wrap;
}
.random-post-item {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0.3em 1em rgba(0, 0, 0, 0.2);
    border-bottom: 0.1em solid  rgba(131, 131, 131, 0.5);
    border-radius: 0.8em;
    flex: 1 1 30%;
    min-width: 18em;
    max-width: 24em;
    text-align: center;
}
.random-post-item a {
    margin-top: 0px;
    color: #343768;
    font-weight: 500;
    text-decoration: none;
    display: block;
}
.random-post-item a:hover {
    text-decoration: underline;
}
.random-post-item img,
.random-post-item .random-thumb-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.2em 1.2em 0 0;
    margin-bottom: 0.6em;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.random-thumb-placeholder {
    display: block;
    background: #e0e0e0 url('data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' width=\'100\' height=\'100\'><rect width=\'100\' height=\'100\' fill=\'%23e0e0e0\'/><text x=\'50%\' y=\'50%\' dominant-baseline=\'middle\' text-anchor=\'middle\' font-size=\'14\' fill=\'%23999\'>Нет фото</text></svg>') no-repeat center center;
    background-size: contain;
}

/* --- Категории --- */
.category-title {
    font-size: 2.2rem;
    margin-bottom: 1.8em;
    font-weight: 700;
}
.category-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3.2em;
}
.category-children-list {
    margin-bottom: 4em;
}
.category-children-list h2 {
    font-size: 1.3rem;
    margin-bottom: 1.8em;
    color: #343768;
}
.category-children-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.8em;
}
.category-child-item {
    background: rgba(255,255,255,0.3);
    border-radius: 1em;
    box-shadow: 0 0.3em 1em rgba(0,0,0,0.08);
    border-bottom: 0.1em solid rgba(131,131,131,0.2);
    padding: 1.8em 1.6em;
    width: 22em;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.category-child-item img,
.category-thumb-placeholder {
    width: 8em;
    height: 8em;
    object-fit: cover;
    border-radius: 0.8em;
    margin-bottom: 1em;
    background: #e0e0e0;
    display: block;
}
.category-child-title {
    font-weight: 600;
    color: #343768;
    margin-bottom: 0.6em;
    display: block;
}
.category-child-desc {
    font-size: 0.98rem;
    color: #666;
    margin-top: 0.4em;
}

.category-posts-list {
    margin-top: 3em;
}
.category-posts-list h2 {
    font-size: 1.3rem;
    margin-bottom: 1.8em;
    color: #343768;
}
.category-posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.8em;
}
.category-post-item {
    background: rgba(255,255,255,0.3);
    border-radius: 1em;
    box-shadow: 0 0.3em 1em rgba(0,0,0,0.08);
    border-bottom: 0.1em solid rgba(131,131,131,0.2);
    width: 26em;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.category-post-item img,
.category-thumb-placeholder {

    width: 100%;
    height: 22em;
    object-fit: cover;
    border-radius: 1.2em 1.2em 0 0;
    background: #e0e0e0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.category-post-title {
    font-weight: 600;
    color: #343768;
    margin-bottom: 0.6em;
    padding: 5px;
    display: block;
}
.category-post-title:hover {
    color: #56567c ;
}
.category-post-excerpt {
    font-size: 1rem;
    color: #666;
    padding: 5px;
    margin-top: 0.4em;
}
.category-thumb-placeholder {
    background: #e0e0e0 url('data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' width=\'100\' height=\'100\'><rect width=\'100\' height=\'100\' fill=\'%23e0e0e0\'/><text x=\'50%\' y=\'50%\' dominant-baseline=\'middle\' text-anchor=\'middle\' font-size=\'14\' fill=\'%23999\'>Нет фото</text></svg>') no-repeat center center;
    background-size: contain;
}

/* --- 404--- */
.error-404-block {
    max-width: 48em;
    margin: 8em auto 6em auto;
    padding: 4em 2.8em 3.6em 2.8em;
    background: rgba(255,255,255,0.3);
    border-radius: 1.8em;
    box-shadow: 0 0.3em 1.8em rgba(0,0,0,0.10);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.error-404-icon {
    font-size: 4.5rem;
    margin-bottom: 1.8em;
    line-height: 1;
}
.error-404-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: #343768;
    margin-bottom: 1.8em;
}
.error-404-text {
    font-size: 1.15rem;
    color: #444;
    margin-bottom: 3.2em;
}
.error-404-btn {
    display: inline-block;
    background: #343768;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1.2em 3.2em;
    border-radius: 3em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 0.2em 0.8em rgba(52,55,104,0.08);
}
.error-404-btn:hover {
    background: #23244d;
    color: #fff;
}


/* --- Пагинация для страниц категорий --- */
.page-pagination{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8em;
    margin: 4.8em 0 0 0;
    padding-bottom: 2.4em;
}
.page-pagination .page-numbers {
    display: inline-block;
    min-width: 4.4em;
    height: 4.4em;
    line-height: 4.4em;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: #343768;
    background: rgba(255,255,255,0.7);
    border-radius: 10%;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 0.2em 0.8em rgba(52,55,104,0.06);
    margin: 0 0.2em;
}
.page-pagination .page-numbers.current {
    background: #343768;
    color: #fff;
    box-shadow: 0 0.2em 0.8em rgba(52,55,104,0.12);
}
.page-pagination .page-numbers:hover {
    background: #23244d;
    color: #fff;
}
.page-pagination .page-numbers.dots {
    background: none;
    color: #888;
    box-shadow: none;
    cursor: default;
}



/* Адаптивность */
@media (max-width: 1080px) and (orientation: portrait){
    .logo-sub > img{ 
        display: none;
    }
}

@media (max-width: 768px) {
    .sek-btn {
        font-size: 1.3em !important;        
    }

    .logo-main > a > img{
        height: 40px;

    }
    .logo-sub > img{        
        display: none;
    }

}
@media (min-width: 769px) and (max-width: 1366px) {
    .sek-btn {
        font-size: 1.2em !important;
    }
    .nav-menu > li > a {
        padding: 0 0.7em;
    }
    
}
@media (min-width: 1367px) and (max-width: 1600px) {
    .sek-btn {
        font-size: 1.3em !important;
    }
}

@media (min-width: 2560px) { /* 2K разрешение */
  :root {
    --header-height: 100px; /* Увеличение на 25% */
  }
  .nav-menu a {
    font-size: clamp(14px, 1.2vw + 0.5rem, 26px); 
  }
  .logo-main > a > img {
    transform: scale(1.25);
    transform-origin: left center;
  }
  .logo-sub > img {
    transform: scale(1.25);
    transform-origin: left center;
    padding-left: 63px;
  }
}

@media (min-width: 3840px) { /* 4K разрешение */
 :root {
    --header-height: 120px; /* Увеличение на 50% */
  }
  .nav-menu a {
    font-size: clamp(14px, 1.2vw + 0.5rem, 32px); 
  }
  .logo-main > a > img {
    transform: scale(1.5);
    transform-origin: left center;
  }
  .logo-sub > img {
    transform: scale(1.5);
    transform-origin: left center;
    padding-left: 83px;
  }
  
}

/* Масштабирование базовых стилей системы */
  
@media screen and (max-width: 1024px) {
    .content-wrapper {
      max-width: 90%;
      padding: 5px;
      padding-top: 80px;
    }
  
    .main-content {
      max-width: 100%;
    }
  
    .random-post-item {
      min-width: 200px;
    }
}
  
@media screen and (max-width: 768px) {
    .content-wrapper {
      padding: 10px;
      padding-top: 80px;
   }
  
    .main-content {
      padding: 20px 10px;
    }
  
    .content-wrapper table,
    .content-wrapper table tbody,
    .content-wrapper table tr {
      display: contents;
    }
  
    .content-wrapper table td {
      width: 100%;
      display: contents;
    }
  
    .content-wrapper table tr {
      margin-bottom: 10px;
      overflow: hidden;
    }
  
    #slider-pro-3-380 {
      width: 100%;
      max-width: 100%;
    }
  
    .sp-slides-container, .sp-mask,  .sp-slides,  .sp-slide {
      width: 100% !important;
      max-width: 100% !important;
    }
  
    .random-posts-list {
      flex-direction: column;
      align-items: center;
    }
  
    .random-post-item {
      width: 100%;
      max-width: 350px;
    }
  
    .post-navigation {
      flex-direction: column;
    }
  
   .nav-previous,
    .nav-next {
      width: 100%;
    }
  
    .breadcrumbs {
      font-size: 0.9em;
      padding: 10px;
      text-align: center;
    }
}
  
@media screen and (max-width: 480px) {
    .content-wrapper {
      padding: 5px;
      padding-top: 80px;
    }
  
    .main-content {
      padding: 15px 5px;
    }
  
    .content-wrapper h1 {
      font-size: clamp(1.3rem, 6vw, 1.8rem);
    }
  
    .content-wrapper h2,
    .content-wrapper h3 {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
    }
  
    .content-wrapper p {
        font-size: clamp(0.85rem, 4vw, 1rem);
    }
  
    .nav-previous a, 
    .nav-next a {
      font-size: 0.95em;
      padding: 8px 12px;
      display: inline-block;
    }
}
  

.content-wrapper table td img {
    transition: transform 0.3s ease;
}
  
.content-wrapper table td img:hover {
    transform: scale(1.02);
}
  

@media screen and (min-width: 769px) {
    .content-wrapper,
    .main-content {
      width: calc(100% - 40px);
      transition: width 0.3s ease;
    }
}

@media screen and (min-width: 1921px) and (max-width: 2560px) {
    .content-wrapper {
    padding: 30px;
    padding-top: 100px;
    }

    .main-content {
        padding: 60px 30px;
    }

    .content-wrapper h1 {
        font-size: clamp(2rem, 4vw, 3rem);
        margin-bottom: 30px;
    }

    .content-wrapper h2,
    .content-wrapper h3 {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
    }

    .content-wrapper p {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
        line-height: 1.7;
    }

    .content-wrapper table {
        margin: 30px 0;
    }

    .random-posts-list {
        gap: 30px;
        margin-top: 30px;
    }

    .random-post-item {
        min-width: 350px;
    }

    .post-navigation {
        gap: 20px;
        margin-top: 40px;
    }

    .nav-previous, .nav-next {
        min-width: 300px;
    }
}

@media screen and (min-width: 2561px) {
    .content-wrapper {
    max-width: 2400px;
    padding: 40px;
    padding-top: 120px;
    }

    .main-content {
        max-width: 2400px;
        padding: 80px 40px;
    }

    .content-wrapper h1 {
        font-size: clamp(2.5rem, 4vw, 4rem);
        margin-bottom: 40px;
    }

    .content-wrapper h2,
    .content-wrapper h3 {
        font-size: clamp(2rem, 3vw, 3rem);
    }

    .content-wrapper p {
        font-size: clamp(1.2rem, 2.5vw, 1.6rem);
        line-height: 1.8;
    }

    .content-wrapper table {
        max-width: 2400px;
        margin: 40px 0;
    }

    .content-wrapper table td {
        padding: 10px;
    }

    .random-posts-list {
        gap: 40px;
        margin-top: 40px;
    }

    .random-post-item {
        min-width: 450px;
    }

    .post-navigation {
        gap: 30px;
        margin-top: 50px;
    }

    .nav-previous, .nav-next {
        min-width: 400px;
    }
}

/* 2K Resolution Adaptations for Footer (2560x140 and similar) */
@media screen and (min-width: 1921px) and (max-width: 2560px) {
.site-footer {
padding: 30px 60px;
}

.footer-contact-info p {
    margin-bottom: 15px;
    gap: 15px;
}

.footer-contact-info i {
    width: 30px;
}

.footer-bottom {
    padding: 10px 0;
    gap: 30px;
}

.copyright {
    font-size: 20px;
}

.footer-links {
    gap: 30px;
}

.footer-links a, .copyright a {
    font-size: 20px;
}
}

/* 4K Resolution Adaptations for Footer (3840x2160 and similar) */
@media screen and (min-width: 2561px) {
.site-footer {
padding: 40px 80px;
}

.footer-contact-info p {
    margin-bottom: 20px;
    gap: 20px;
}

.footer-contact-info i {
    width: 40px;
}

.footer-bottom {
    padding: 15px 0;
    gap: 40px;
}

.copyright {
    font-size: 24px;
}

.footer-links {
    gap: 40px;
}

.footer-links a, .copyright a {
    font-size: 24px;
}
}