/* ==========================================================================
   Design System & Variable Definitions
   ========================================================================== */
:root {
    /* Primary Colors */
    --color-bg-deep: #0b132b;      /* Deep Dark Blue */
    --color-bg-card-dark: #1c2541; /* Dark Slate Blue */
    --color-primary: #3a506b;      /* Muted Navy */
    --color-accent: #00b4d8;       /* Electric Cyan */
    --color-accent-hover: #90e0ef; /* Light Cyan */
    --color-accent-glove: #0077b6; /* Deep Blue Accent */
    
    /* Light/Neutral Colors */
    --color-text-dark: #2b2d42;    /* Charcoal Text */
    --color-text-muted: #6c757d;   /* Muted Grey Text */
    --color-bg-light: #f4f6fc;     /* Soft Blue-Grey Background */
    --color-card-bg-light: #ffffff;/* White Card Background */
    --color-border: #e2e8f0;       /* Light border */
    
    /* Typography */
    --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing & Utilities */
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(11, 19, 43, 0.08), 0 4px 6px -2px rgba(11, 19, 43, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(11, 19, 43, 0.15), 0 10px 10px -5px rgba(11, 19, 43, 0.04);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout Dimensions */
    --header-height: 80px;
    --header-height-scrolled: 65px;
    --max-width: 1280px;
}

/* ==========================================================================
   Global Reset & Setup
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    padding-top: var(--header-height);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

iframe {
    border: none;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Header (Sticky Glassmorphic Navbar)
   ========================================================================== */
.main-header {
    background-color: rgba(11, 19, 43, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-header.scrolled {
    height: var(--header-height-scrolled);
    background-color: rgba(11, 19, 43, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo-area {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.main-header.scrolled .logo-img {
    height: 32px;
}

.logo-text {
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.accent-text {
    color: var(--color-accent);
}

/* Desktop Navigation (Supports Joomla mod_menu structures) */
.desktop-nav {
    display: flex;
    align-items: center;
}

.desktop-nav ul,
.nav-menu {
    display: flex;
    gap: 32px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.desktop-nav li,
.nav-item {
    display: inline-block;
}

.desktop-nav a,
.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    display: block;
}

.desktop-nav a:hover,
.desktop-nav .active > a,
.desktop-nav .current > a,
.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.desktop-nav a::after,
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.desktop-nav a:hover::after,
.desktop-nav .active > a::after,
.desktop-nav .current > a::after,
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Live dot marker */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ff3333;
    border-radius: 50%;
    margin-right: 4px;
    animation: flash 1.5s infinite;
}

@keyframes flash {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.7);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    color: #ffffff;
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 180, 216, 0.3);
}

.search-btn, .mobile-menu-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.search-btn:hover, .mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: none;
}

/* Dropdown Search Bar */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 24px;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
}

.search-dropdown.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-container input[type="text"] {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 50px 12px 20px;
    border-radius: 25px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.search-container input[type="text"]:focus {
    border-color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.2);
}

.search-submit-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.search-submit-btn:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   Mobile Menu Drawer
   ========================================================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--color-bg-deep);
    z-index: 2000;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    transition: cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.close-drawer-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
}

.drawer-menu-container ul,
.drawer-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.drawer-menu-container a,
.drawer-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1.15rem;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-menu-container a:hover, 
.drawer-menu-container .active > a,
.drawer-menu a:hover, 
.drawer-menu a.active {
    color: var(--color-accent);
    padding-left: 8px;
}

.drawer-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-footer p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 19, 43, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: var(--transition-smooth);
}

.drawer-overlay.open {
    display: block;
    opacity: 1;
}

/* ==========================================================================
   Page Layout
   ========================================================================== */
.page-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.content-grid.full-width-grid {
    grid-template-columns: 1fr;
}

.section-title {
    font-family: var(--font-headings);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.accent-color {
    color: var(--color-accent-glove);
}

/* ==========================================================================
   Featured Section & Joomla Category Blog overrides
   ========================================================================== */
.featured-card,
.blog-items.items-leading .blog-item {
    background-color: var(--color-card-bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    margin-bottom: 50px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.featured-card:hover,
.blog-items.items-leading .blog-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.video-container,
.video-responsive {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000000;
}

.video-responsive iframe,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.featured-body,
.blog-items.items-leading .card-body-override {
    padding: 30px;
}

.blog-items.items-leading .item-content {
    padding: 0;
}

/* Badges and Meta */
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--color-accent-glove), var(--color-accent));
    color: #ffffff;
    margin-right: 12px;
}

.post-date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.featured-title,
.blog-items.items-leading .page-header h2 {
    font-family: var(--font-headings);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 15px;
    margin-bottom: 12px;
}

.featured-title a,
.blog-items.items-leading .page-header h2 a {
    color: var(--color-text-dark);
}

.featured-title a:hover,
.blog-items.items-leading .page-header h2 a:hover {
    color: var(--color-accent-glove);
}

.featured-text,
.blog-items.items-leading .item-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 10px;
}

/* ==========================================================================
   Video Grid & Standard Cards (Joomla Columns-2 Blog)
   ========================================================================== */
.video-grid,
.blog-items.columns-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    padding: 0;
    list-style: none;
}

.video-card,
.blog-items.columns-2 .blog-item {
    background-color: var(--color-card-bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.video-card:hover,
.blog-items.columns-2 .blog-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.card-body,
.blog-items.columns-2 .card-body-override {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-items.columns-2 .item-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-title,
.blog-items.columns-2 .page-header h2 {
    font-family: var(--font-headings);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 5px;
    margin-bottom: 10px;
}

.card-title a,
.blog-items.columns-2 .page-header h2 a {
    color: var(--color-text-dark);
}

.card-title a:hover,
.blog-items.columns-2 .page-header h2 a:hover {
    color: var(--color-accent-glove);
}

.card-text,
.blog-items.columns-2 .item-content p {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Joomla links list for older items */
.items-more {
    background-color: var(--color-card-bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.items-more::before {
    content: 'Starsze materiały';
    display: block;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--color-text-dark);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.com-content-blog__links {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.com-content-blog__link {
    list-style: none;
    position: relative;
    padding-left: 20px;
}

.com-content-blog__link::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-accent-glove);
    transition: var(--transition-smooth);
}

.com-content-blog__link a {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--color-text-dark);
}

.com-content-blog__link a:hover {
    color: var(--color-accent-glove);
}

.com-content-blog__link:hover::before {
    left: 4px;
}

/* ==========================================================================
   Pagination Component (Joomla compatible)
   ========================================================================== */
.pagination-wrapper,
.com-content-category-blog__pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.page-item {
    display: inline-block;
}

.page-link,
.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-card-bg-light);
    border: 1px solid var(--color-border);
    color: var(--color-text-dark);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.page-item:not(.disabled) .page-link:hover,
.pagination a:hover {
    background-color: var(--color-accent-glove);
    border-color: var(--color-accent-glove);
    color: #ffffff;
    transform: scale(1.05);
}

.page-item.active .page-link,
.pagination li.active span,
.pagination li.active a {
    background-color: var(--color-accent-glove);
    border-color: var(--color-accent-glove);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.3);
}

.page-item.disabled .page-link,
.pagination li.disabled span,
.pagination li.disabled a {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Counter text */
.com-content-category-blog__counter {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 10px;
}

/* ==========================================================================
   Sidebar Widgets (Joomla Module Styling overrides)
   ========================================================================== */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Treat every block inside sidebar as a widget */
.sidebar-right > div,
.sidebar-right .sidebar-widget,
.sidebar-right .card {
    background-color: var(--color-card-bg-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    padding: 24px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.sidebar-right > div::before,
.sidebar-right .sidebar-widget::before,
.sidebar-right .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent-glove), var(--color-accent));
}

.sidebar-right h3.card-header,
.sidebar-right .widget-title {
    font-family: var(--font-headings);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    background: none;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Icon support for widget titles */
.sidebar-right h3.card-header::before {
    content: '\f008'; /* film icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-accent-glove);
    margin-right: 6px;
}

/* Search widget/form inside sidebar */
.sidebar-right .search-widget,
.sidebar-right .search {
    padding: 16px;
}
.sidebar-right .search-widget::before,
.sidebar-right .search::before {
    display: none;
}

.sidebar-right form {
    position: relative;
}

.sidebar-right form input[type="text"],
.sidebar-right form input[type="search"] {
    width: 100%;
    padding: 12px 45px 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.sidebar-right form input[type="text"]:focus,
.sidebar-right form input[type="search"]:focus {
    border-color: var(--color-accent-glove);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

.sidebar-right form button,
.sidebar-right form input[type="submit"] {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-muted);
    padding: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

/* Categories List (Joomla mod_menu in Sidebar) */
.sidebar-right ul.mod-menu,
.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.sidebar-right ul.mod-menu li,
.category-list li {
    list-style: none;
}

.sidebar-right ul.mod-menu a,
.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background-color: var(--color-bg-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    color: var(--color-text-dark);
}

.sidebar-right ul.mod-menu a:hover,
.category-item:hover {
    background-color: var(--color-accent-glove);
    color: #ffffff;
    padding-left: 18px;
}

/* Category counter mockup tag in sidebar */
.cat-count {
    background-color: rgba(11, 19, 43, 0.08);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.category-item:hover .cat-count {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Live streaming widget style */
.live-widget {
    background: linear-gradient(135deg, var(--color-bg-deep), var(--color-bg-card-dark));
    color: #ffffff;
    border: none;
}

.live-widget::before {
    display: none;
}

.live-widget .widget-title {
    color: #ffffff;
    border-bottom-color: rgba(255,255,255,0.1);
}
.live-widget .widget-title i {
    color: var(--color-accent);
}

.live-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.live-badge-pulse {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.8rem;
    background-color: #ff3333;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.4);
}

.pulse-dot {
    display: block;
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: pulse 1.2s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 1; }
}

.live-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg-deep);
}

.btn-primary:hover {
    background-color: #ffffff;
    color: var(--color-bg-deep);
    box-shadow: 0 4px 15px rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Social links widget style */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.social-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.85rem;
    color: #ffffff;
    transition: var(--transition-smooth);
}

.social-link-card i {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.social-link-card.facebook {
    background-color: #3b5998;
}
.social-link-card.facebook:hover {
    background-color: #4c70ba;
    box-shadow: 0 4px 15px rgba(59, 89, 152, 0.3);
    transform: translateY(-2px);
}

.social-link-card.youtube {
    background-color: #c4302b;
}
.social-link-card.youtube:hover {
    background-color: #dd4b39;
    box-shadow: 0 4px 15px rgba(196, 48, 43, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--color-bg-deep);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 80px;
}

.footer-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
}

.footer-title {
    font-family: var(--font-headings);
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
}

/* Joomla Footer Menu overrides */
.footer-column ul.mod-menu,
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.88rem;
    padding: 0;
    margin: 0;
}

.footer-column ul.mod-menu li {
    list-style: none;
}

.footer-column ul.mod-menu a,
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-column ul.mod-menu a:hover,
.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 6px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 0.88rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 24px 0 24px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sidebar-right {
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brand-col {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: var(--header-height);
    }
    
    .desktop-nav, .header-actions .social-icons {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .video-grid,
    .blog-items.columns-2 {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .brand-col {
        grid-column: span 1;
    }
}
