/**
 * Gapim.uz - Modern News Portal Theme
 * Inspired by BBC, The Guardian, Medium
 * 
 * Design Philosophy:
 * - Clean, professional news aesthetic
 * - Strong visual hierarchy
 * - Readable typography
 * - Bold category branding
 * - Card-based articles with clear separation
 */

/* ==========================================================================
   1. FONTS - Professional News Typography
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   2. CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
  /* News Brand Colors */
  --brand-primary: #c41e3a;
  /* News red - like BBC */
  --brand-secondary: #1a1a2e;
  /* Deep navy */
  --brand-accent: #16213e;
  /* Dark blue accent */

  /* Category Colors - Each category gets a color */
  --cat-uzbekistan: #c41e3a;
  /* Red */
  --cat-cis: #0066cc;
  /* Blue */
  --cat-world: #2d8a4e;
  /* Green */
  --cat-society: #8b5cf6;
  /* Purple */

  /* Neutral Palette */
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --black: #000000;

  /* Text */
  --text-headline: #1a1a1a;
  --text-body: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-inverse: #ffffff;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.12);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-nav: 0 2px 8px rgba(0, 0, 0, 0.1);

  /* Spacing */
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 32px;
  --gap-2xl: 48px;

  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
}

/* ==========================================================================
   3. BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--gray-100);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--text-headline);
  line-height: 1.2;
  margin: 0 0 var(--gap-sm);
}

h4,
h5,
h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text-headline);
  line-height: 1.3;
  margin: 0 0 var(--gap-sm);
}

p {
  margin: 0 0 var(--gap-md);
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* ==========================================================================
   5. HEADER / NAVIGATION - News Style Top Bar
   ========================================================================== */
#t3-mainnav,
.t3-mainnav,
.navbar-default {
  background: var(--brand-secondary) !important;
  border: none !important;
  box-shadow: var(--shadow-nav);
  padding: 0 !important;
  min-height: 56px;
  margin-bottom: 0 !important;
}

/* Logo */
.logo a,
.logo-text span {
  color: var(--white) !important;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

/* Navigation Links */
.navbar-default .navbar-nav>li>a,
.t3-navbar .nav>li>a {
  color: rgba(255, 255, 255, 0.9) !important;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 18px 20px !important;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}

.navbar-default .navbar-nav>li>a:hover {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-bottom-color: var(--brand-primary);
}

.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:hover {
  color: var(--white) !important;
  background: rgba(196, 30, 58, 0.2) !important;
  border-bottom-color: var(--brand-primary);
}

/* Navigation container improvements */
.t3-mainnav .container,
.navbar-default .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Search Box */
.head-search input[type="search"] {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--white);
  padding: 8px 12px;
  font-size: var(--text-sm);
}

.head-search input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.head-search input[type="search"]:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--brand-primary);
  outline: none;
}

/* Dropdown */
.dropdown-menu {
  background: var(--white);
  border: none;
  border-radius: 4px;
  box-shadow: var(--shadow-card-hover);
  padding: 8px 0;
  margin-top: 0;
}

.dropdown-menu>li>a {
  color: var(--text-body) !important;
  padding: 10px 20px;
  font-size: var(--text-sm);
}

.dropdown-menu>li>a:hover {
  background: var(--gray-100) !important;
  color: var(--brand-primary) !important;
}

/* ==========================================================================
   6. MAIN CONTENT WRAPPER
   ========================================================================== */

/* Account for fixed navbar height (approx 94px) */
.t3-mainbody,
#t3-mainbody {
  padding-top: 100px !important;
}

.t3-wrapper {
  padding-top: 0;
}

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

.t3-content,
#t3-content {
  padding: var(--gap-xl) 0;
}

/* ==========================================================================
   7. MAGAZINE CATEGORY SECTIONS - News Style
   ========================================================================== */
.magazine-category {
  background: var(--white);
  margin-bottom: var(--gap-lg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* Category Header - Bold colored bar */
.magazine-category-title {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #a01830 100%);
  color: var(--white) !important;
  padding: var(--gap-md) var(--gap-lg);
  margin: 0;
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  position: relative;
}

.magazine-category-title::after {
  display: none;
  /* Remove the old accent line */
}

.magazine-category-title a {
  color: var(--white) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.magazine-category-title a:hover {
  color: var(--white) !important;
}

.magazine-category-title strong {
  font-weight: 700;
}

.magazine-category-title i,
.magazine-category-title .icon-angle-right {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2em;
  transition: transform 0.2s ease;
}

.magazine-category-title a:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   CATEGORY COLORS - Using :has() to target parent based on link href
   Actual site hrefs: /uzbekistan, /sng, /mir, /obshestvo
   ========================================================================== */

/* Default: Red (fallback for all category titles) */
.magazine-category-title {
  background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%) !important;
}

/* УЗБЕКИСТАН - Red (Primary brand color) */
.magazine-category-title:has(a[href*="uzbekistan"]) {
  background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%) !important;
}

/* СНГ - Blue */
.magazine-category-title:has(a[href*="sng"]) {
  background: linear-gradient(135deg, #0066cc 0%, #004999 100%) !important;
}

/* МИР - Green */
.magazine-category-title:has(a[href*="mir"]) {
  background: linear-gradient(135deg, #2d8a4e 0%, #1e6b3a 100%) !important;
}

/* ОБЩЕСТВО - Purple (note: site uses "obshestvo" not "obshhestvo") */
.magazine-category-title:has(a[href*="obshestvo"]) {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d3dd1 100%) !important;
}

/* Fallback for browsers that don't support :has() - use nth-of-type on magazine-category only */
@supports not selector(:has(*)) {
  .magazine-category:nth-of-type(1) .magazine-category-title {
    background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%) !important;
  }

  .magazine-category:nth-of-type(2) .magazine-category-title {
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%) !important;
  }

  .magazine-category:nth-of-type(3) .magazine-category-title {
    background: linear-gradient(135deg, #2d8a4e 0%, #1e6b3a 100%) !important;
  }

  .magazine-category:nth-of-type(4) .magazine-category-title {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d3dd1 100%) !important;
  }
}

/* ==========================================================================
   EMPTY CATEGORY HANDLING
   ========================================================================== */

/* When row-articles is empty or only has whitespace */
.row-articles:empty,
.magazine-category .row-articles:not(:has(.magazine-item)) {
  padding: var(--gap-xl) var(--gap-lg);
  text-align: center;
  color: var(--gray-500);
  font-size: var(--text-sm);
  font-style: italic;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Add "No articles yet" message for empty categories */
.row-articles:empty::before,
.magazine-category .row-articles:not(:has(.magazine-item))::before {
  content: 'Скоро здесь появятся новости...';
  color: var(--gray-400);
}

/* Hide completely empty categories (alternative - uncomment to use) */
/*
.magazine-category:has(.row-articles:empty) {
  display: none;
}
*/

/* Articles Container */
.row-articles {
  padding: var(--gap-lg);
  background: var(--white);
  min-height: 100px;
}

/* ==========================================================================
   8. MAGAZINE ARTICLE ITEMS - News Cards
   ========================================================================== */
.magazine-item {
  background: var(--white);
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: var(--gap-md);
  margin-bottom: var(--gap-md);
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--gray-200);
}

.magazine-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.magazine-item:hover {
  background: var(--gray-50);
  transform: none;
  box-shadow: none;
}

/* Article Headlines */
.magazine-item h2,
.magazine-item .page-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 var(--gap-sm);
}

.magazine-item h2 a,
.magazine-item .page-header a {
  color: var(--text-headline);
  transition: color 0.2s ease;
}

.magazine-item h2 a:hover,
.magazine-item .page-header a:hover {
  color: var(--brand-primary);
}

/* Article Images */
.magazine-item img,
.magazine-item-media img {
  border-radius: 4px;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.magazine-item:hover img {
  opacity: 0.9;
  transform: none;
}

/* Article Content/Intro */
.magazine-item .article-content,
.magazine-item section,
.magazine-item p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0;
}

/* Featured/Lead Article - First item bigger */
.row-articles .magazine-item:first-child h2 {
  font-size: var(--text-2xl);
}

/* ==========================================================================
   9. SIDEBAR / MODULES
   ========================================================================== */
.sidebar .module,
.t3-sidebar .module {
  background: var(--white);
  border-radius: 8px;
  padding: var(--gap-lg);
  margin-bottom: var(--gap-lg);
  box-shadow: var(--shadow-card);
}

.sidebar .module-title,
.t3-sidebar .module-title,
.module-title {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-headline);
  padding-bottom: var(--gap-sm);
  margin-bottom: var(--gap-md);
  border-bottom: 2px solid var(--brand-primary);
  position: relative;
}

.sidebar .module-title::after,
.t3-sidebar .module-title::after {
  display: none;
}

/* ==========================================================================
   10. BUTTONS
   ========================================================================== */
.btn,
button,
input[type="submit"] {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 10px 20px;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--white);
}

.btn-primary:hover {
  background: #a01830;
  transform: translateY(-1px);
}

.btn-default {
  background: var(--gray-200);
  color: var(--text-body);
}

.btn-default:hover {
  background: var(--gray-300);
}

/* Read More Links */
.readmore a,
a.readmore {
  color: var(--brand-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

/* ==========================================================================
   11. FOOTER - Professional News Footer
   ========================================================================== */
#t3-footer,
.t3-footer {
  background: var(--brand-secondary);
  color: var(--gray-400);
  padding: var(--gap-2xl) 0 var(--gap-lg);
  margin-top: var(--gap-2xl);
}

.t3-footer a {
  color: var(--gray-300);
  transition: color 0.2s ease;
}

.t3-footer a:hover {
  color: var(--white);
}

.t3-footer .module-title {
  color: var(--white);
  border-bottom-color: var(--brand-primary);
}

.t3-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--gap-lg);
  margin-top: var(--gap-lg);
  font-size: var(--text-sm);
  color: var(--gray-500);
  text-align: center;
}

/* Back to Top */
#back-to-top .btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--white);
  box-shadow: var(--shadow-card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#back-to-top .btn:hover {
  background: #a01830;
  transform: translateY(-2px);
}

/* ==========================================================================
   12. FORMS
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea,
select {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-base);
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  background: var(--white);
  color: var(--text-body);
  transition: border-color 0.2s ease;
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand-primary);
}

/* ==========================================================================
   13. PAGINATION
   ========================================================================== */
.pagination {
  display: flex;
  gap: var(--gap-xs);
  justify-content: center;
  margin: var(--gap-xl) 0;
}

.pagination li a,
.pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  font-weight: 500;
  font-size: var(--text-sm);
  background: var(--white);
  color: var(--text-body);
  border: 1px solid var(--gray-300);
  transition: all 0.2s ease;
}

.pagination li a:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.pagination li.active a,
.pagination li.active span {
  background: var(--brand-primary);
  color: var(--white);
  border-color: var(--brand-primary);
}

/* ==========================================================================
   14. LANGUAGE FLAGS
   ========================================================================== */
.mod-languages {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.mod-languages img {
  width: 24px;
  height: auto;
  border-radius: 2px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.mod-languages img:hover {
  opacity: 1;
}

/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
  .navbar-default .navbar-toggle {
    border: none;
    background: transparent;
    padding: 10px;
  }

  .navbar-default .navbar-toggle .icon-bar {
    background: var(--white);
    width: 22px;
    height: 2px;
  }

  .navbar-default .navbar-collapse {
    background: var(--brand-secondary);
    border: none;
    box-shadow: var(--shadow-nav);
  }

  .navbar-default .navbar-nav>li>a {
    padding: 12px 16px !important;
    border-bottom: none;
  }
}

@media (max-width: 767px) {
  :root {
    --text-xl: 1.125rem;
    --text-2xl: 1.25rem;
    --text-3xl: 1.5rem;
  }

  .magazine-category-title {
    padding: var(--gap-sm) var(--gap-md);
    font-size: var(--text-sm);
  }

  .row-articles {
    padding: var(--gap-md);
  }

  .magazine-item {
    padding: var(--gap-sm);
  }
}

/* ==========================================================================
   16. PRINT STYLES
   ========================================================================== */
@media print {

  #t3-mainnav,
  #t3-footer,
  #back-to-top {
    display: none !important;
  }

  body {
    background: white;
  }

  .magazine-category {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ==========================================================================
   17. UTILITY & POLISH
   ========================================================================== */
::selection {
  background: var(--brand-primary);
  color: var(--white);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Better scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Focus states */
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Breaking News Ticker (if you add one) */
.breaking-news {
  background: var(--brand-primary);
  color: var(--white);
  padding: 8px 16px;
  font-size: var(--text-sm);
  font-weight: 600;
}

.breaking-news strong {
  text-transform: uppercase;
  margin-right: 8px;
}

/* ==========================================================================
   18. FOOTER LINKS SECTION
   ========================================================================== */
.footer-links {
  background: var(--brand-secondary);
  padding: 50px 0 30px;
  border-top: 4px solid var(--brand-primary);
}

.footer-col {
  margin-bottom: 30px;
}

.footer-col h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-primary);
  display: inline-block;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Footer Menu Lists */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-menu li a:hover {
  color: var(--white);
  padding-left: 5px;
}

/* Footer Contact List */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-contact li i {
  color: var(--brand-primary);
  margin-right: 10px;
  width: 16px;
}

/* Footer Social Icons */
.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  font-size: 18px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--brand-primary);
  transform: translateY(-3px);
}

/* Copyright Section */
.t3-copyright {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
}

.t3-copyright p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin: 0;
}

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

/* ==========================================================================
   19. FOOTER GRID FIX - Proper Column Alignment
   ========================================================================== */

/* Footer main container */
#t3-footer .t3-footer-inner,
.t3-footer .container,
#t3-footer .container {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

/* Footer row */
#t3-footer .row,
.t3-footer .row {
  display: flex !important;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
}

/* Footer columns - ensure proper spacing */
#t3-footer [class*="col-"],
.t3-footer [class*="col-"] {
  padding: 0 15px;
  margin-bottom: 30px;
}

/* Footer module containers */
#t3-footer .module,
.t3-footer .module {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Footer module titles */
#t3-footer .module-title,
.t3-footer .module-title,
#t3-footer h3.module-title,
.t3-footer h3.module-title {
  color: var(--white) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 20px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--brand-primary) !important;
  display: inline-block !important;
}

/* Footer menu lists - Joomla menu classes */
#t3-footer ul.menu,
#t3-footer ul.nav,
#t3-footer .menu,
.t3-footer ul.menu,
.t3-footer ul.nav,
.t3-footer .menu {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#t3-footer ul.menu li,
#t3-footer ul.nav li,
.t3-footer ul.menu li,
.t3-footer ul.nav li {
  margin-bottom: 10px !important;
  list-style: none !important;
  padding-left: 0 !important;
}

#t3-footer ul.menu li::before,
.t3-footer ul.menu li::before {
  content: "•" !important;
  color: rgba(255, 255, 255, 0.5) !important;
  margin-right: 8px !important;
  display: inline-block !important;
}

#t3-footer ul.menu li a,
#t3-footer ul.nav li a,
.t3-footer ul.menu li a,
.t3-footer ul.nav li a {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

#t3-footer ul.menu li a:hover,
.t3-footer ul.menu li a:hover {
  color: var(--white) !important;
  padding-left: 5px !important;
}

/* Footer custom HTML content */
#t3-footer .custom,
.t3-footer .custom {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.7;
}

/* Footer contact info */
#t3-footer .custom a,
.t3-footer .custom a {
  color: rgba(255, 255, 255, 0.8);
}

#t3-footer .custom a:hover,
.t3-footer .custom a:hover {
  color: var(--white);
}

/* Footer social icons in footer */
#t3-footer .footer-social a,
.t3-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  font-size: 16px;
  margin-right: 8px;
  transition: all 0.3s ease;
}

#t3-footer .footer-social a:hover,
.t3-footer .footer-social a:hover {
  background: var(--brand-primary);
  transform: translateY(-2px);
}

/* Footer Responsive */
@media (max-width: 991px) {

  #t3-footer .row,
  .t3-footer .row {
    flex-direction: row;
  }

  #t3-footer [class*="col-"],
  .t3-footer [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 767px) {
  .footer-links {
    padding: 30px 0 15px;
  }

  #t3-footer [class*="col-"],
  .t3-footer [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
  }

  .footer-col h4,
  #t3-footer .module-title,
  .t3-footer .module-title {
    margin-bottom: 15px;
  }

  .t3-copyright .col-md-6 {
    text-align: center !important;
    margin-bottom: 10px;
  }

  .footer-social,
  #t3-footer .footer-social {
    justify-content: center;
    margin-bottom: 20px;
  }

  #t3-footer ul.menu,
  .t3-footer ul.menu {
    text-align: center;
  }
}