/*
 * NewGlas Modern Theme - 2026
 * A contemporary, responsive design for glass products showcase
 * Note: This CSS applies to internal pages only. Front page uses legacy styles.
 */

/* ============================================
   Scope Limitation - Apply only to non-front pages
   ============================================ */
/* Modern styles should not interfere with front page */
body.home .site-header,
body.home .site-main,
body.home .site-footer,
body.home .articles-grid,
body.home .article-card {
    /* Reset on front page - let legacy styles handle it */
}

/* ============================================
   CSS Custom Properties (Design System)
   ============================================ */
:root {
    /* Colors - Refined blue palette */
    --color-primary: #1a73e8;
    --color-primary-dark: #0d47a1;
    --color-primary-light: #4dabf7;
    --color-secondary: #37b7c3;
    --color-accent: #00d4ff;

    --color-text: #1a1a1a;
    --color-text-light: #5f6368;
    --color-text-muted: #80868b;

    --color-bg: #ffffff;
    --color-bg-secondary: #f8f9fa;
    --color-bg-tertiary: #e8eaed;

    --color-border: #dadce0;
    --color-border-light: #f1f3f4;

    /* Glass morphism effects */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-bg-dark: rgba(26, 46, 53, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    /* Typography - Modern stack */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    --font-size-xs: 0.75rem;     /* 12px */
    --font-size-sm: 0.875rem;    /* 14px */
    --font-size-base: 1rem;      /* 16px */
    --font-size-lg: 1.125rem;    /* 18px */
    --font-size-xl: 1.25rem;     /* 20px */
    --font-size-2xl: 1.5rem;     /* 24px */
    --font-size-3xl: 1.875rem;   /* 30px */
    --font-size-4xl: 2.25rem;    /* 36px */
    --font-size-5xl: 3rem;       /* 48px */

    /* Spacing scale */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.5rem;    /* 24px */
    --space-6: 2rem;      /* 32px */
    --space-7: 2.5rem;    /* 40px */
    --space-8: 3rem;      /* 48px */
    --space-10: 4rem;     /* 64px */
    --space-12: 6rem;     /* 96px */

    /* Layout */
    --container-max: 1280px;
    --container-narrow: 960px;
    --container-wide: 1440px;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 400ms ease-in-out;

    /* Z-index scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-tooltip: 1060;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 var(--space-4) 0;
    color: var(--color-text);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
    margin: 0 0 var(--space-4) 0;
    line-height: 1.7;
}

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

a:hover {
    color: var(--color-primary-dark);
}

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

/* ============================================
   Layout Components
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.container-wide {
    max-width: var(--container-wide);
}

/* ============================================
   Header - Modern Glassmorphism Design
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--glass-bg-dark);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-base);
}

.site-header.scrolled {
    background: rgba(26, 46, 53, 0.95);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.header-wrapper {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-4) 0;
}

/* Logo */
.site-logo img {
    height: 60px;
    width: auto;
    max-width: none;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.site-logo:hover img {
    transform: scale(1.05);
}

/* Header Contact Info */
.header-contacts {
    display: flex;
    gap: var(--space-5);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.9);
    flex-wrap: wrap;
}

.header-contacts a {
    color: var(--color-accent);
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.header-contacts a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.header-contacts i {
    margin-right: var(--space-1);
    opacity: 0.8;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-1);
}

.nav-menu > li > a {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    position: relative;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-menu > li > a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.nav-menu > li > a:hover::before,
.nav-menu > li.current-menu-item > a::before {
    opacity: 1;
}

.nav-menu > li > a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.nav-menu > li.current-menu-item > a {
    color: var(--color-accent);
}

/* Dropdown Menu - With awesome animations from main page */
.nav-menu .sub-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: transparent !important;
    min-width: 250px;
    z-index: var(--z-dropdown);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border-radius: 0 !important;
    opacity: 0;
    pointer-events: none;
    perspective: 1000px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu li:hover > .sub-menu {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
}

/* Individual submenu items with glassmorphism */
.nav-menu .sub-menu li,
.nav-menu .sub-menu li.menu-item,
.nav-menu .sub-menu li.menu-item-type-post_type,
.nav-menu .sub-menu li.menu-item-object-post,
.nav-menu ul.sub-menu li {
    display: block !important;
    opacity: 0;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
    margin: 4px 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.nav-menu .sub-menu li a,
.nav-menu .sub-menu li.menu-item a,
.nav-menu ul.sub-menu li a {
    padding: 12px 20px !important;
    display: block !important;
    white-space: nowrap;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.nav-menu .sub-menu li a:hover {
    color: #70bce9 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 10px rgba(112, 188, 233, 0.5) !important;
}

/* Animated submenu items - 3D rotate and fade in */
.nav-menu li:hover > .sub-menu li:nth-child(1) {
    animation: menuItemAppear 0.3s ease-in-out forwards;
    animation-delay: 0s;
}

.nav-menu li:hover > .sub-menu li:nth-child(2) {
    animation: menuItemAppear 0.3s ease-in-out forwards;
    animation-delay: 0.05s;
}

.nav-menu li:hover > .sub-menu li:nth-child(3) {
    animation: menuItemAppear 0.3s ease-in-out forwards;
    animation-delay: 0.1s;
}

.nav-menu li:hover > .sub-menu li:nth-child(4) {
    animation: menuItemAppear 0.3s ease-in-out forwards;
    animation-delay: 0.15s;
}

.nav-menu li:hover > .sub-menu li:nth-child(5) {
    animation: menuItemAppear 0.3s ease-in-out forwards;
    animation-delay: 0.2s;
}

.nav-menu li:hover > .sub-menu li:nth-child(n+6) {
    animation: menuItemAppear 0.3s ease-in-out forwards;
    animation-delay: 0.25s;
}

@keyframes menuItemAppear {
    0% {
        opacity: 0;
        transform: rotateX(-90deg) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: rotateX(0) translateY(0);
    }
}

/* Arrow indicator for menu items with submenu */
.nav-menu > li.menu-item-has-children > a::after {
    content: "▾";
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Header CTA Buttons */
.header-cta {
    display: flex;
    gap: var(--space-3);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all var(--transition-base);
}

/* ============================================
   Main Content Area
   ============================================ */
.site-main {
    min-height: 60vh;
    padding: var(--space-10) 0;
}

/* ============================================
   Article Cards - Modern Grid
   ============================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-10);
}

.article-card {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border-light);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.article-card-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg-tertiary), var(--color-bg-secondary));
}

.article-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-content {
    padding: var(--space-6);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.article-meta-date {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.article-meta-category {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card-title {
    margin: 0 0 var(--space-3) 0;
    font-size: var(--font-size-2xl);
    line-height: 1.3;
}

.article-card-title a {
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.article-card-title a:hover {
    color: var(--color-primary);
}

.article-excerpt {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.article-read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
}

.article-read-more:hover {
    gap: var(--space-3);
    color: var(--color-primary-dark);
}

.article-read-more::after {
    content: '→';
    font-size: 1.2em;
}

/* ============================================
   Single Post Layout
   ============================================ */
.single-post-header {
    max-width: var(--container-narrow);
    margin: 0 auto var(--space-8);
    text-align: center;
}

.single-post-title {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--space-4);
}

.single-post-meta {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
    color: var(--color-text-muted);
}

.single-post-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    font-size: var(--font-size-lg);
    line-height: 1.8;
}

.single-post-content h2 {
    margin-top: var(--space-10);
    margin-bottom: var(--space-5);
}

.single-post-content h3 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
}

.single-post-content img {
/*    margin: var(--space-8) 0;
    border-radius: var(--radius-lg);*/
}

/* Related Posts Section */
.related-posts {
    margin-top: var(--space-12);
    padding-top: var(--space-10);
    border-top: 1px solid var(--color-border);
}

.related-posts-title {
    text-align: center;
    margin-bottom: var(--space-8);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
}

/* ============================================
   Footer - Modern Design
   ============================================ */
.site-footer {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2f3f 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: var(--space-10) 0 var(--space-5);
    margin-top: var(--space-12);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
    color: #fff;
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-4);
}

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

.footer-menu li {
    margin-bottom: var(--space-3);
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-menu a:hover {
    color: var(--color-accent);
    transform: translateX(4px);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: var(--color-accent);
    width: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding-top: var(--space-5);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: var(--color-accent);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
    }

    .header-wrapper {
        grid-template-columns: auto 1fr;
        gap: var(--space-4);
    }

    .header-contacts {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .main-navigation {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --space-10: 3rem;
        --space-12: 4rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--glass-bg-dark);
        backdrop-filter: blur(20px);
        padding: var(--space-5);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .mobile-menu-open .main-navigation {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu > li > a {
        padding: var(--space-4);
    }

    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: var(--space-2);
        margin-left: var(--space-4);
    }

    .header-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   Pagination Styles
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin: var(--space-10) 0;
    font-size: var(--font-size-sm);
}

.pagination .nav-links {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: var(--space-2) var(--space-3);
    background: var(--color-bg);
    color: var(--color-text);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.pagination .page-numbers:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    padding: var(--space-2) var(--space-4);
}

/* Archive Header */
.archive-header {
    text-align: center;
    margin-bottom: var(--space-10);
    padding-bottom: var(--space-6);
    border-bottom: 2px solid var(--color-border-light);
}

.archive-title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-4);
    color: var(--color-primary);
}

.archive-description {
    max-width: var(--container-narrow);
    margin: 0 auto;
    color: var(--color-text-light);
    font-size: var(--font-size-lg);
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: var(--space-12) var(--space-4);
}

.no-posts h2 {
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

/* Single Post Thumbnail */
.single-post-thumbnail {
    margin: var(--space-8) 0;
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border-light);
}

.post-tags i {
    color: var(--color-text-muted);
}

.post-tags a {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--color-bg-secondary);
    color: var(--color-text);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.post-tags a:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ============================================
   Utility Classes
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Animation utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .header-cta,
    .mobile-menu-toggle,
    .related-posts {
        display: none;
    }
}

/* ============================================
   Legacy Joomla Styles for Article Content
   ============================================ */

/* Category Tabs */
.secslidertabs {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 40px 0;
    gap: 1%;
}

.secslidertabs li {
    width: 18%;
    height: 70px;
    display: inline-block;
    vertical-align: top;
    padding: 7px;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
}

.razddtab {
    background-image: url(/img/temp/sec/razddi.png);
}

.mezhkdtab {
    background-image: url(/img/temp/sec/mezhki.png);
}

.raspdtab {
    background-image: url(/img/temp/sec/raspdi.png);
    padding-top: 11px;
}

.vhdtab {
    background-image: url(/img/temp/sec/vhdi.png);
    padding: 10px;
}

.mayatdtab {
    background-image: url(/img/temp/sec/mayatdi.png);
    padding: 5px;
}

.secslidertabs li:hover {
    background-image: none;
    background-color: #30698b;
}

.secslidertabs li a {
    display: block;
    text-decoration: none;
    height: 100%;
}

.secslidertabs .razddi,
.secslidertabs .mezhkdi,
.secslidertabs .raspdi,
.secslidertabs .vhdi,
.secslidertabs .mayatdi {
    background: transparent;
    border: none;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.secslidertabs .secsliderb {
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
    text-align: center;
}

.secslidertabs .secsliderb img {
    vertical-align: middle;
    width: auto;
    height: auto;
    max-width: 40px;
    max-height: 40px;
}

/* Contact Form Section */
.wrapzay2 {
    background: linear-gradient(135deg, #1684c6 0%, #30698b 100%);
    padding: 60px 0;
    margin: 60px 0;
    border-radius: 16px;
}

.wrapzay2 .zagal {
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}

.wrapzay2 .zagal img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.wrapzay2 .zagal h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.wrapzay2 .zagal p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.zayavka2 {
    max-width: 800px;
    margin: 0 auto;
}

.zayavka2 form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.zayavka2 .textza2 {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.zayavka2 .textza2::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.zayavka2 .textza2:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.zayavka2 .subza2 {
    padding: 15px 40px;
    background: #fff;
    color: #1684c6;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zayavka2 .subza2:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Advantages Section */
.prefooter {
    background: #f8f9fa;
    padding: 80px 0;
    margin-top: 80px;
}

.prefooter .img4zagpfrefoot {
    display: block;
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
}

.prefooter .zagprefoot {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1a2e35;
    margin-bottom: 50px;
}

.prefooter .sptxt {
    padding-right: 40px;
}

.prefooter .sptxt p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.prefooter .spprem {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.prefooter .icoprem {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.prefooter .prem2 p {
    font-size: 14px;
    font-weight: 600;
    color: #1a2e35;
    line-height: 1.4;
    margin: 0;
}

/* Examples Section */
.primer {
    margin: 60px 0;
}

.primer .zagal {
    text-align: center;
    margin-bottom: 40px;
}

.primer .zagal img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.primer .zagal h3 {
    font-size: 32px;
    font-weight: 700;
    color: #1a2e35;
}

/* Carousel for examples */
.wrapcar {
    margin: 40px 0;
}

/* Two-column text sections */
.txtcols {
    padding: 20px;
}

.txtcols h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1684c6;
    margin-bottom: 20px;
}

.txtcols p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

/* First section with image */
.fsecpage {
    margin: 40px 0;
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
}

.sectexthalf {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sectexthalf h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1684c6;
    margin-bottom: 20px;
}

.sectexthalf p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.fsecimg {
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .secslidertabs {
        flex-direction: column;
    }

    .zayavka2 form {
        flex-direction: column;
    }

    .zayavka2 .textza2 {
        width: 100%;
    }

    .prefooter .sptxt {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .fsecimg {
        min-height: 300px;
    }
}

/* ============================================
   Product Cards (vidysub) - Joomla Legacy
   ============================================ */

/* Label text block */
.lbltxt {
    border-left: 3px solid #1684c6;
    padding: 17px 0px 0px 26px;
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Section subtitle */
h2.subk {
    text-align: center;
    margin-top: 55px;
    margin-bottom: 40px;
    font-weight: 600;
    font-size: 25px;
    color: #1a2e35;
}

/* Product card container */
.vidysub {
    background-size: cover;
    background-position: 50%;
    height: 250px;
    padding: 0;
    margin-bottom: 6px;
    border-right: 6px solid #fff;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Floating info section */
.flsubv {
    background-color: rgba(4, 27, 41, 0.67);
    padding-top: 8px;
    padding-bottom: 10px;
    margin-top: 135px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.flsubv h3,
.flsubv p {
    color: #fff;
    padding: 0px 20px;
    margin: 0px;
    transition: all 0.3s ease;
}

.flsubv h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.flsubv p {
    margin-top: 250px;
    position: absolute;
    font-size: 12px;
    line-height: 1.4;
    display: none;
}

/* Fixed bottom section */
.fixsubv {
    background-color: rgba(4, 27, 41, 0.67);
    padding-bottom: 10px;
    position: relative;
    padding: 10px 0;
}

/* Order button */
p.butsv {
    padding: 10px 25px;
    background-color: #1684c6;
    display: inline-block;
    margin-left: 20px;
    margin-bottom: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

p.butsv:hover {
    background-color: #146392;
    cursor: pointer;
}

/* Price and timing info */
p.prsr {
    position: absolute;
    display: inline-block;
    vertical-align: bottom;
    text-align: right;
    right: 20px;
    top: 10px;
    color: #fff;
    font-size: 12px;
    margin: 0;
}

span.ce {
    color: #1684c6;
    font-size: 16px;
    font-weight: 600;
}

/* Hover effects */
.vidysub:hover .flsubv {
    margin-top: 0px;
    transition: all 0.3s ease;
}

.vidysub:hover .flsubv h3 {
    padding-bottom: 135px;
    transition: all 0.3s ease;
}

.vidysub:hover .flsubv p {
    margin-top: -100px;
    transition: all 0.3s ease;
    display: block;
}

/* Responsive for product cards */
@media (max-width: 991px) {
    .vidysub {
        height: 300px;
    }

    .flsubv {
        margin-top: 185px;
    }
}

@media (max-width: 767px) {
    .vidysub {
        height: 350px;
        border-right: none;
        margin-bottom: 10px;
    }

    .flsubv {
        margin-top: 235px;
    }

    h2.subk {
        font-size: 22px;
        margin-top: 30px;
    }
}
