/*
Theme Name: TCL Theme
Theme URI: https://tcl.gov.in
Author: Your Name
Author URI: https://yourwebsite.com
Description: Official theme for Troop Comforts Limited - A Government of India Enterprise
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tcltheme
*/

/* News Section Background */

/* Breadcrumb Styles */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 2rem;
}

.breadcrumb-item {
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color:var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #6c757d;
}

@media print {
    .breadcrumb {
        background-color: transparent;
        padding: 0;
        margin-bottom: 1rem;
    }
}

/* Accessibility Enhancements for Breadcrumbs */
.breadcrumb-item.active:not([aria-current="page"]),
.breadcrumb-list li.active:not([aria-current="page"]) {
    position: relative;
}
.breadcrumb-item.active:not([aria-current="page"])::before,
.breadcrumb-list li.active:not([aria-current="page"])::before {
    content: attr(class);
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}
/* This rule ensures all active breadcrumb items get the aria-current="page" attribute via CSS */
.breadcrumb-item.active:not([aria-current="page"])::after,
.breadcrumb-list li.active:not([aria-current="page"])::after {
    content: ""; /* Empty content to prevent display issues */
}

/* More targeted selector for navigation in the header */
nav[aria-label="breadcrumb"] .breadcrumb-item.active:not([aria-current="page"]),
.tcl-breadcrumb .breadcrumb-list li.active:not([aria-current="page"]) {
    position: relative;
}
/* These elements should use aria-current="page" instead of relying on CSS */

/* Language Switcher Fixes */
.language-switcher,
.pll-parent-menu-item {
    position: relative;
    z-index: 1000; /* Ensure it's above other elements */
}

/* Hide language items until fully loaded */
.language-switcher.loading,
.pll-parent-menu-item.loading {
    opacity: 0;
    visibility: hidden;
}

/* Prevent FOUC during language switch */
.switching-language {
    cursor: wait !important;
    pointer-events: none !important;
}

/* Language-specific typography adjustments */
.lang-hi {
    /* Hindi font adjustments */
    --font-family-hindi: 'Noto Sans Devanagari', sans-serif;
}

.lang-hi h1,
.lang-hi h2,
.lang-hi h3,
.lang-hi h4,
.lang-hi h5,
.lang-hi h6,
.lang-hi p,
.lang-hi .menu-item a {
    font-family: var(--font-family-hindi);
}

/* Ensure proper text alignment for different languages */
.lang-hi .text-right {
    text-align: left !important;
}

/* Fix for RTL/LTR content during transition */
[dir="rtl"] .site-content,
[dir="ltr"] .site-content {
    transition: none !important;
}

/* Prevent layout shifts during language switch */
.site-content {
    min-height: 500px;
}

/* Fix for menu items during language switch */
.menu-item a {
    white-space: nowrap;
    display: inline-block;
}

/* Ensure proper font loading */
@font-face {
    font-family: 'Noto Sans Devanagari';
    src: url('assets/fonts/NotoSansDevanagari-Regular.woff2') format('woff2');
    font-display: swap;
}

/* Fix for language switcher in mobile menu */
@media (max-width: 768px) {
    .language-switcher,
    .pll-parent-menu-item {
        position: static;
    }
    
    .language-switcher a,
    .pll-parent-menu-item a {
        padding: 10px 15px;
        display: block;
        text-align: center;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

.mobile-menu-btn:hover, 
.mobile-menu-btn:focus {
    background-color: #f5f5f5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.mobile-menu-btn .fas {
    font-size: 20px;
    color: #555;
    transition: transform 0.3s ease;
}

.mobile-menu-btn[aria-expanded="true"] .fas.fa-bars {
    display: none;
}

.mobile-menu-btn[aria-expanded="false"] .fas.fa-times {
    display: none;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive adjustments for mobile menu button */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .site-header .mobile-menu-btn {
        position: absolute;
        right: 15px;
        top: 15px;
    }
}

/* Mobile menu style for high zoom levels */
@media screen and (max-resolution: 96dpi), screen and (max-resolution: 0.95dppx) {
    .mobile-menu-btn {
        width: 44px;
        height: 44px;
    }
    
    .mobile-menu-btn .fas {
        font-size: 24px;
    }
    
    /* Ensure visibility at high zoom */
    body.high-zoom .mobile-menu-btn {
        position: fixed;
        top: 10px;
        right: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        z-index: 9999;
        background-color: #fff;
        display: flex !important;
    }
    
    /* Fix for menu dropdown at high zoom */
    body.high-zoom .dropdown-menu,
    body.high-zoom .submenu {
        position: static !important;
        width: 100% !important;
        margin-top: 0 !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 20px !important;
    }
    
    /* Improve contrast for links at high zoom */
    body.high-zoom .nav-link,
    body.high-zoom .dropdown-item {
        padding: 12px !important;
        font-size: 18px !important;
        font-weight: 500 !important;
        color: #333 !important;
    }
}

/* Mobile Menu - Full Screen */
.main-navigation {
    transition: all 0.3s ease;
}

.main-navigation.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.main-navigation.active .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-height: 80vh;
    margin: 0 auto;
}

.main-navigation.active .menu li {
    text-align: center;
    width: 100%;
    margin: 0.5rem 0;
}

.main-navigation.active .menu a {
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
    display: block;
}

.main-navigation.active .menu .sub-menu {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: 100%;
    background: transparent;
    box-shadow: none;
    padding: 0.5rem 0;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.main-navigation.active .menu .sub-menu a {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
}

/* Mobile Menu Close Button */
.menu-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10000;
    transition: all 0.2s ease;
    display: none;
}

.main-navigation.active .menu-close-btn {
    display: block;
}

.menu-close-btn:hover, 
.menu-close-btn:focus {
    color: #0073aa;
    transform: rotate(90deg);
}

/* Prevent scrolling when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-navigation:not(.active) {
        display: none;
    }
    
    .mobile-menu-toggle,
    .mobile-menu-btn {
        display: block;
    }
}

/**
 * Emergency Hero Slider Visibility Fixes
 * Applied to fix slider display issues that occurred after product features implementation
 */

/* Hero container fixes */
#hero-container, 
#dynamic-hero, 
.hero-section,
.carousel,
#heroCarousel {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    z-index: 1 !important;
    position: relative !important;
}

/* Carousel item fixes */
.carousel-item {
    position: relative !important;
}

.carousel-item.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Carousel controls fixes */
.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
}

/* Ensure carousel images display properly */
.carousel-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Ensure carousel caption displays properly */
.carousel-caption {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 5 !important;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    #hero-container, 
    #dynamic-hero, 
    .hero-section,
    .carousel,
    #heroCarousel {
        height: auto !important;
        min-height: 400px !important;
    }
}

/* Fix for any potential z-index conflicts with product features */
.site-header, 
.main-navigation {
    z-index: 1000 !important;
}

.product-features,
.product-specifications {
    z-index: 0 !important;
}

/**
 * Additional emergency slider fixes after product features implementation
 * Added to resolve any remaining visibility conflicts
 */

/* Ensure slider always takes priority in the stacking order */
body {
    overflow-x: hidden !important;
}

/* Fix any potential parent container issues */
.site-content {
    overflow: visible !important;
    position: relative !important;
}

/* Ensure the background isn't blocking the slider */
.site-content::before,
.site-content::after {
    z-index: 0 !important;
}

/* Force display modes on any parent containers that might be affecting slider */
.entry-content {
    overflow: visible !important;
}

/* Product features specific fixes to avoid conflicts */
.product-features *,
.product-specifications * {
    z-index: 0 !important;
}

/* Fix for container margins that might be affecting slider position */
.container:first-child,
.container-fluid:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure slider takes full width in all contexts */
.hero-slider,
.carousel-inner {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force slider to be visible in all scenarios */
.carousel-inner > .carousel-item.active {
    transform: none !important;
    -webkit-transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Ensure slides are properly visible */
#heroCarousel .carousel-item.active > *,
#heroCarousel .carousel-caption > * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force overlay and overlay text to be visible */
.carousel-item .overlay,
.carousel-caption * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Final emergency measures for extreme cases */
@media print, screen {
    #hero-container, 
    #dynamic-hero, 
    .hero-section,
    .carousel,
    #heroCarousel {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* --- Modern Hero Section Styles --- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 60vh;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #181c1f;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.hero-section .carousel-inner {
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-item.active {
    opacity: 1;
    z-index: 2;
    position: relative;
    display: flex;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 24px 24px;
    filter: brightness(0.85) contrast(1.05);
    transition: filter 0.4s;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(120deg, rgba(24,28,31,0.7) 0%, rgba(27,67,50,0.5) 100%);
    z-index: 3;
}

.carousel-caption {
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 4vw;
    text-align: left;
    width: 100%;
    height: 100%;
}

.content-box {
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border: 1.5px solid rgba(255,255,255,0.25);
    padding: 2.5rem 2rem;
    color: #222;
    max-width: 480px;
    margin-left: 2vw;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    animation: fadeInHero 1.2s cubic-bezier(.4,0,.2,1);
}

@keyframes fadeInHero {
    from { opacity: 0; transform: translateY(40px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.content-box .subtitle {
    font-size: 1.05rem;
    color: #1B4332;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
    opacity: 0.85;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-box .subtitle .hero-icon {
    display: inline-flex;
    align-items: center;
    font-size: 1.3rem;
    color: #1B4332;
    margin-right: 0.4rem;
}

.content-box h2 {
    font-family: 'Montserrat', 'Inter', Arial, sans-serif !important;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary, #1B4332);
    margin-bottom: 0.5rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-box .description {
    font-size: 1.15rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.content-box .buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.content-box .btn {
    padding: 0.95rem 2.2rem;
    border-radius: 999px;
    font-size: 1.08rem;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(27,67,50,0.10);
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.01em;
    background: var(--primary, #1B4332);
    color: #fff;
}
.content-box .btn-primary {
    background: linear-gradient(90deg, #1B4332 60%, #2D6A4F 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(27,67,50,0.13);
}
.content-box .btn-primary:hover {
    background: linear-gradient(90deg, #2D6A4F 0%, #1B4332 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px rgba(27,67,50,0.18);
}
.content-box .btn-outline-light {
    background: transparent;
    color: var(--primary, #1B4332);
    border: 2px solid var(--primary, #1B4332);
    box-shadow: none;
}
.content-box .btn-outline-light:hover {
    background: var(--primary, #1B4332);
    color: #fff;
    box-shadow: 0 4px 16px rgba(27,67,50,0.13);
}

.carousel-indicators {
    bottom: 24px;
    left: 2vw;
    justify-content: flex-start;
    z-index: 10;
}
.carousel-indicators button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e0e0e0;
    border: none;
    margin: 0 6px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(27,67,50,0.08);
    position: relative;
}
.carousel-indicators .active {
    background: var(--primary, #1B4332);
    transform: scale(1.25);
    box-shadow: 0 4px 16px rgba(27,67,50,0.18);
    animation: dotPulse 1.2s infinite alternate;
}
@keyframes dotPulse {
    0% { box-shadow: 0 0 0 0 rgba(27,67,50,0.18); }
    100% { box-shadow: 0 0 0 8px rgba(27,67,50,0.08); }
}

.carousel-control-prev, .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    z-index: 12;
    transition: background 0.2s;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-control-prev:hover, .carousel-control-next:hover {
    background: var(--primary, #1B4332);
    border-color: var(--primary, #1B4332);
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    background: none !important;
    width: 28px;
    height: 28px;
    display: inline-block;
}
.carousel-control-prev-icon svg, .carousel-control-next-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: #1B4332;
    transition: fill 0.2s;
}
.carousel-control-prev:hover .carousel-control-prev-icon svg,
.carousel-control-next:hover .carousel-control-next-icon svg {
    fill: #fff;
}

@media (max-width: 991px) {
    .hero-section {
        min-height: 45vh;
        max-height: 500px;
        border-radius: 0 0 16px 16px;
    }
    .content-box {
        padding: 1.5rem 1rem;
        max-width: 95vw;
        margin-left: 0;
    }
    .carousel-caption {
        padding: 1rem 2vw;
    }
}
@media (max-width: 767px) {
    .hero-section {
        min-height: 320px;
        max-height: 420px;
        border-radius: 0 0 8px 8px;
    }
    .carousel-caption {
        align-items: flex-end;
        justify-content: center;
        padding: 0.5rem 1vw 2.5rem 1vw;
        text-align: center;
    }
    .content-box {
        margin: 0 auto;
        padding: 1rem 0.5rem;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    }
    .content-box h2 {
        font-size: 1.3rem;
    }
    .content-box .description {
        font-size: 1rem;
    }
    .carousel-indicators {
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
        justify-content: center;
    }
    .carousel-control-prev, .carousel-control-next {
        width: 36px;
        height: 36px;
    }
    .carousel-control-prev-icon, .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }
}
@media (max-width: 480px) {
    .hero-section {
        min-height: 180px;
        max-height: 260px;
    }
    .content-box {
        padding: 0.7rem 0.2rem;
    }
    .carousel-caption {
        padding: 0.2rem 0.2vw 1.2rem 0.2vw;
    }
}
/* --- End Modern Hero Section Styles --- */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Montserrat:wght@700&display=swap');

body, .hero-section, .content-box, .content-box h2, .content-box .description, .content-box .subtitle {
    font-family: 'Inter', 'Montserrat', Arial, sans-serif !important;
}

/* --- Responsive & Modern Ticker Styles --- */
.tcl-critical-ticker {
  width: 100%;
  background: #F8F9FA;
  border-top: 1px solid #E9ECEF;
  border-bottom: 1px solid #E9ECEF;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.tcl-ticker-container {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0;
  position: relative;
}

.tcl-ticker-label {
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: var(--primary, #1B4332);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  min-width: 120px;
  border-left: 4px solid var(--secondary, #FFD700);
  position: relative;
  z-index: 2;
  height: 40px;
}

.tcl-ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 40px;
}

.tcl-ticker-wrapper {
  height: 100%;
  overflow: hidden;
  display: block;
}

.tcl-ticker-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  animation: ticker-scroll 35s linear infinite;
  will-change: transform;
}

@keyframes ticker-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.tcl-ticker-item {
  display: flex;
  align-items: center;
  padding: 0 28px 0 0;
  font-size: 16px;
  font-weight: 500;
  height: 100%;
  color: #222;
  white-space: nowrap;
  line-height: 1.4;
  padding-top: 3px;
  padding-bottom: 3px;
}

.tcl-ticker-date {
  color: #1B4332;
  font-weight: 600;
  margin-right: 8px;
  background: rgba(45, 106, 79, 0.1);
  border-radius: 4px;
  font-size: 14px;
  padding: 2px 6px;
}

.tcl-ticker-link {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.tcl-ticker-link:hover {
  color: #DC3545;
  text-decoration: underline;
}

.tcl-ticker-viewall {
  display: flex;
  align-items: center;
  padding: 0 15px;
  height: 100%;
  background: #F8F9FA;
  border-left: 1px solid #E9ECEF;
  color: #1B4332;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.tcl-ticker-viewall:hover {
  color: #DC3545;
}

/* --- Mobile Styles --- */
@media (max-width: 767px) {
  .tcl-ticker-container {
    flex-direction: column;
    align-items: stretch;
    min-height: unset;
    height: auto;
  }
  .tcl-ticker-label {
    min-width: unset;
    width: 100%;
    justify-content: center;
    font-size: 14px;
    height: 40px;
    border-radius: 0;
    border-left: none;
    border-top: 4px solid var(--secondary, #FFD700);
  }
  .tcl-ticker-content {
    width: 100%;
    height: 48px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 0 0 8px 8px;
    margin-bottom: 2px;
    scroll-snap-type: x mandatory;
  }
  .tcl-ticker-wrapper {
    width: max-content;
    min-width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
  }
  .tcl-ticker-list {
    flex-wrap: nowrap;
    animation: none;
    gap: 0;
    min-width: 100vw;
    width: max-content;
    scroll-snap-type: x mandatory;
  }
  .tcl-ticker-item {
    min-width: 85vw;
    max-width: 95vw;
    padding: 4px 10px 4px 0;
    font-size: 15px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 6px;
    margin-right: 8px;
    box-shadow: 0 2px 8px rgba(27,67,50,0.06);
    border: 1px solid #e9ecef;
    height: 40px;
    align-items: center;
    display: flex;
  }
  .tcl-ticker-date {
    font-size: 13px;
    padding: 2px 5px;
  }
  .tcl-ticker-link {
    font-size: 15px;
  }
  .tcl-ticker-viewall {
    width: 100%;
    justify-content: center;
    border-left: none;
    border-top: 1px solid #E9ECEF;
    margin-top: 2px;
    height: 36px;
    font-size: 14px;
    border-radius: 0 0 8px 8px;
  }
}

/* Full-width Section Container Utility Class 
 * Use this to make any section cover the full width of the screen 
 * while keeping content centered and responsive, similar to Media & Press Releases
 */
.tcl-fullwidth-section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    overflow-x: hidden !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}

.tcl-fullwidth-section .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: none !important;
}

@media (min-width: 768px) {
    .tcl-fullwidth-section .container-fluid {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 992px) {
    .tcl-fullwidth-section .container-fluid {
        padding-left: 48px;
        padding-right: 48px;
    }
}

.tcl-fullwidth-section .section-content-wrapper {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

/* Fix for main navigation background */
.main-navigation.navbar-dark {
    background-color: #1B4332 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    position: relative !important;
    z-index: 100 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    left: 0 !important;
    right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Additional fixes for navigation full width */
.main-navigation .section-content-wrapper {
    width: 100% !important;
    margin: 0 auto !important; 
    padding: 0 !important;
}

.navbar-dark .navbar-nav {
    background-color: #1B4332 !important;
    padding-right: 0 !important;
}

/* Ensure the px-0 class works on the container-fluid */
.main-navigation .container-fluid.px-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

/* Top Bar Layout Styles - With Social Icons on Right */
.top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
    font-size: 14px;
    position: relative;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    min-height: 40px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    width: auto;
    flex-wrap: nowrap;
}

.top-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    width: auto;
    margin-left: auto;
    gap: 15px;
}

/* Social links placed on the right */
.social-links-container {
    flex: 0 0 auto;
    position: relative;
    order: 1;
}

/* Language switcher comes after social icons */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    order: 3;
}

/* Divider between social icons and language switcher */
.top-bar-divider {
    height: 24px;
    width: 1px;
    background-color: #e0e0e0;
    margin: 0;
    flex-shrink: 0;
    order: 2;
}

/* Accessibility link container */
.accessibility-link {
    flex: 0 0 auto;
    margin-right: 10px;
    position: relative;
}

/* Adjust spacing between social icons */
.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
    flex-wrap: nowrap;
    padding: 5px 0;
    margin-top: 3px;
    z-index: 5;
}

/* Enhanced social icon styles */
.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(27, 67, 50, 0.1);
    color: #1B4332;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    z-index: 10;
}

.social-link:hover {
    background-color: #1B4332;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(27, 67, 50, 0.15);
}

/* Improved focus state for better accessibility */
.social-link:focus {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.social-link i {
    font-size: 14px;
}

/* Language Switcher Styles */
.language-label {
    font-size: 0.9rem;
    color: #444;
    white-space: nowrap;
}

.language-button-group {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #f1f1f1;
    border-radius: 4px;
    padding: 2px;
    position: relative;
}

.language-btn {
    background: transparent;
    border: none;
    padding: 4px 10px;
    font-size: 0.9rem;
    color: #444;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.language-btn-active {
    background: #1B4332;
    color: white;
}

.language-btn:hover:not(.language-btn-active) {
    background: rgba(27, 67, 50, 0.1);
}

/* Screen reader access link styling */
#screen-reader-access {
    color: #444;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
}

#screen-reader-access:before {
    content: "\f2a2"; /* Font Awesome icon for accessibility */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 5px;
    font-size: 0.85rem;
}

#screen-reader-access:hover, 
#screen-reader-access:focus {
    color: #1B4332;
    text-decoration: underline;
}

/* Responsive styles for full top bar */
@media (max-width: 767px) {
    .top-bar-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .top-bar-left {
        width: 100%;
        justify-content: center;
    }
    
    .accessibility-link {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    #screen-reader-access {
        justify-content: center;
    }
    
    .language-label {
        display: none;
    }
}

/* Smaller screens */
@media (max-width: 480px) {
    .top-bar {
        padding: 10px 0;
    }
    
    .social-links {
        gap: 20px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link i {
        font-size: 16px;
    }
    
    .language-btn {
        padding: 6px 12px;
    }
}

/* Responsive layouts for right-aligned elements */
@media (max-width: 767px) {
    .top-bar-right {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding-top: 8px;
    }
    
    .social-links-container {
        order: 2;
        margin-top: 5px;
    }
    
    .language-switcher {
        order: 1;
    }
    
    .top-bar-divider {
        display: none;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 5px;
    }
}

/* Smaller screens refinements */
@media (max-width: 480px) {
    .top-bar {
        padding: 10px 0;
    }
    
    .social-links {
        gap: 20px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link i {
        font-size: 16px;
    }
    
    .language-btn {
        padding: 6px 12px;
    }
}

/* Landmark Roles and Elements */
main[role="main"],
main#main-content {
  display: block;
  width: 100%;
}

nav[aria-label="breadcrumb"] {
  display: block;
}

/* Ensure breadcrumbs in nav elements have proper styling */
nav[aria-label="breadcrumb"] .breadcrumb-list,
nav[aria-label="breadcrumb"] .breadcrumb {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Ensure screen reader text is properly hidden visually but available to screen readers */
.screen-reader-text,
.sr-only {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus,
.sr-only:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #0073aa;
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Navigation Landmark Styles */
.social-links-container {
  display: flex;
  margin: 0;
  padding: 0;
}

/* Primary Navigation Landmark */
[aria-label="Primary"] {
  display: block;
  width: 100%;
}

/* Secondary Navigation Landmark */
nav[aria-label="Secondary Navigation"] {
  display: flex;
  margin: 0;
  padding: 0;
}

/* Ensure navigation landmarks maintain layout */
.social-links-container .social-links {
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

/* Update mobile styles */
@media (max-width: 767px) {
  .social-links-container {
    justify-content: center;
    width: 100%;
  }
}

/* Accessibility improvements for color contrast */

/* Fix for helpline and contact information text to meet WCAG AA 4.5:1 contrast ratio */
strong.helpline-text,
strong.contact-text,
strong.email-text {
    color: #B34700 !important; /* Darker orange with better contrast ratio */
}

/* General fix for all strong elements with contact info */
strong {
    color: inherit; /* Default inherited color */
}

/* When strong elements contain phone numbers with specific format, make them accessible */
strong:where(:not(.bg-primary *, .bg-dark *, footer *)) {
    color: #265b44; /* Dark green with good contrast against white */
}

/* When contact information appears on dark backgrounds */
.bg-primary strong, 
.bg-dark strong, 
footer strong,
.help-line-section strong {
    color: #FFFFFF !important;
}

/* Hover state for contact links to ensure consistent contrast */
a:hover strong,
a:focus strong {
    color: inherit !important;
}

/* Fix for direct contact links */
a[href^="tel:"],
a[href^="mailto:"] {
    color: #265b44 !important; /* Dark green with good contrast against white */
    text-decoration: underline;
}

/* On dark backgrounds, use appropriate contrasting colors */
.bg-primary a[href^="tel:"],
.bg-primary a[href^="mailto:"],
.bg-dark a[href^="tel:"],
.bg-dark a[href^="mailto:"],
footer a[href^="tel:"],
footer a[href^="mailto:"],
.help-line-section a[href^="tel:"],
.help-line-section a[href^="mailto:"] {
    color: #FFFFFF !important;
}

/* Hover and focus states for contact links */
a[href^="tel:"]:hover,
a[href^="mailto:"]:hover,
a[href^="tel:"]:focus,
a[href^="mailto:"]:focus {
    color: #B34700 !important;
}

/* On dark backgrounds, use appropriate colors for hover states */
.bg-primary a[href^="tel:"]:hover,
.bg-primary a[href^="mailto:"]:hover,
.bg-primary a[href^="tel:"]:focus,
.bg-primary a[href^="mailto:"]:focus,
.bg-dark a[href^="tel:"]:hover,
.bg-dark a[href^="mailto:"]:hover,
.bg-dark a[href^="tel:"]:focus,
.bg-dark a[href^="mailto:"]:focus,
footer a[href^="tel:"]:hover,
footer a[href^="mailto:"]:hover,
footer a[href^="tel:"]:focus,
footer a[href^="mailto:"]:focus,
.help-line-section a[href^="tel:"]:hover,
.help-line-section a[href^="mailto:"]:hover,
.help-line-section a[href^="tel:"]:focus,
.help-line-section a[href^="mailto:"]:focus {
    color: #F8D0C3 !important; /* Light salmon color with good contrast against dark backgrounds */
}

/* Global focus fixes for dark backgrounds to ensure adequate contrast */
.bg-primary a:focus,
.bg-dark a:focus,
[style*="background-color: #1B4332"] a:focus,
header a:focus,
footer a:focus,
.help-line-section a:focus,
.top-bar a:focus {
    outline: 2px solid #FFFFFF !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2) !important;
}

/* Additional fixes for social links in top bar */
.top-bar .social-links {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    padding: 5px 0 !important;
    margin: 0 !important;
}

.top-bar .social-link {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    top: 0 !important;
    margin: 0 !important;
}

.top-bar-right .social-links-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    padding: 2px 0 !important;
}

/* Specific fixes for social icons on mobile */
@media (max-width: 767px) {
    .top-bar .social-link {
        width: 40px !important;
        height: 40px !important;
        margin: 2px !important;
    }
    
    .top-bar .social-links {
        gap: 10px !important;
        padding: 10px 0 !important;
        margin-top: 8px !important;
    }
    
    .top-bar-right {
        margin-top: 10px !important;
    }
    
    .social-link i {
        font-size: 18px !important;
        font-weight: 500 !important;
        color: #333 !important;
    }
}

/* Navigation styles now handled by Bootstrap navbar components */
/* Old navigation styles removed to prevent conflicts */
