/* Professional Government Footer - Dark Teal Style */
:root {
  /* Footer specific colors - Dark Teal */
  --footer-primary: #0F766E;        /* Dark teal - main color */
  --footer-accent: #28a745;         /* Green accent */
  --footer-bg: #0F766E;             /* Dark teal background */
  --footer-text: #ffffff;           /* White text */
  --footer-text-muted: rgba(255, 255, 255, 0.8);
}

/* Professional Footer Base */
.site-footer {
    position: relative;
    background: var(--footer-bg);
    color: var(--footer-text) !important;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    overflow: hidden;
    z-index: 2;
}

/* FORCE WHITE TEXT FOR ALL FOOTER CONTENT */
.site-footer,
.site-footer *,
.site-footer p,
.site-footer span,
.site-footer li,
.site-footer div {
    color: #ffffff !important;
}

/* High Contrast Mode Override for All Footer Content */
.high-contrast .site-footer,
.high-contrast .site-footer *,
.high-contrast .site-footer p,
.high-contrast .site-footer span,
.high-contrast .site-footer li,
.high-contrast .site-footer div,
body.tcl-high-contrast .site-footer,
body.tcl-high-contrast .site-footer *,
body.tcl-high-contrast .site-footer p,
body.tcl-high-contrast .site-footer span,
body.tcl-high-contrast .site-footer li,
body.tcl-high-contrast .site-footer div {
    color: #000000 !important;
    background-color: #ffffff !important;
}

/* Corporate Headquarters Section - Ensure White Text */
.site-footer .footer-section:first-child h2,
.site-footer .footer-section:first-child ul,
.site-footer .footer-section:first-child li,
.site-footer .footer-section:first-child p {
    color: #ffffff !important;
}

/* High Contrast Mode Override for Corporate Headquarters */
.high-contrast .site-footer .footer-section:first-child h2,
.high-contrast .site-footer .footer-section:first-child ul,
.high-contrast .site-footer .footer-section:first-child li,
.high-contrast .site-footer .footer-section:first-child p,
body.tcl-high-contrast .site-footer .footer-section:first-child h2,
body.tcl-high-contrast .site-footer .footer-section:first-child ul,
body.tcl-high-contrast .site-footer .footer-section:first-child li,
body.tcl-high-contrast .site-footer .footer-section:first-child p {
    color: #000000 !important;
    background-color: #ffffff !important;
}

/* Specific targeting for Corporate Headquarters content */
.footer-section h2 {
    color: var(--text-light) !important; /* Force white color for better contrast */
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-bottom: var(--spacing-xs);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.footer-section ul li {
    color: #ffffff !important;
}

.footer-section ul li a {
    color: #ffffff !important;
}

/* High Contrast Mode Override for Footer Sections */
.high-contrast .footer-section h2,
.high-contrast .footer-section ul li,
.high-contrast .footer-section ul li a,
body.tcl-high-contrast .footer-section h2,
body.tcl-high-contrast .footer-section ul li,
body.tcl-high-contrast .footer-section ul li a {
    color: #000000 !important;
    background-color: #ffffff !important;
}

/* Web Information Manager (WIM) Section Styling */
.wim-section {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    text-align: center;
}

.wim-title {
    color: var(--footer-text) !important;
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--footer-accent);
    padding-bottom: var(--spacing-sm);
    display: inline-block;
}

.wim-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

.wim-name,
.wim-email,
.wim-responsibility {
    color: var(--footer-text) !important;
    margin: 0;
    font-size: var(--text-base);
    line-height: 1.5;
}

.wim-email a {
    color: var(--footer-accent) !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.wim-email a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.wim-responsibility {
    font-style: italic;
    opacity: 0.9;
    max-width: 600px;
    text-align: center;
}

/* High Contrast Mode Override for WIM Section */
.high-contrast .wim-section,
body.tcl-high-contrast .wim-section {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
}

.high-contrast .wim-title,
.high-contrast .wim-name,
.high-contrast .wim-email,
.high-contrast .wim-responsibility,
body.tcl-high-contrast .wim-title,
body.tcl-high-contrast .wim-name,
body.tcl-high-contrast .wim-email,
body.tcl-high-contrast .wim-responsibility {
    color: #000000 !important;
}

.high-contrast .wim-email a,
body.tcl-high-contrast .wim-email a {
    color: #0000ff !important;
}

/* Responsive Design for WIM Section */
@media (max-width: 768px) {
    .wim-section {
        padding: var(--spacing-md);
        margin: var(--spacing-md) 0;
    }
    
    .wim-title {
        font-size: var(--text-base);
    }
    
    .wim-details {
        gap: var(--spacing-xs);
    }
    
    .wim-name,
    .wim-email,
    .wim-responsibility {
        font-size: var(--text-sm);
    }
}



/* Subtle texture overlay */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23footerGrain)"/></svg>');
    pointer-events: none;
    z-index: -1;
}

.site-footer p {
    color: var(--footer-text);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    margin-bottom: var(--spacing-sm);
    line-height: var(--leading-normal);
}

/* Footer Grid Layout - Very Compact Style */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Section Styling - Very Compact Style */
.footer-section {
    background: transparent;
    border: none;
    padding: var(--spacing-xs) var(--spacing-xs);
}

.footer-section:hover {
    /* Simple hover - no complex effects */
    background: transparent;
}

.footer-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--footer-accent), transparent);
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Breadcrumb List in Footer - Make it consistent with footer-links */
.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-list li {
    margin-bottom: 0.25rem;
    position: relative;
}

.breadcrumb-list a {
    color: var(--footer-text);
    font-size: var(--text-sm);
    line-height: 1.5;
    padding: 0.25rem 0;
    display: inline-block;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb-list a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--footer-accent);
    transition: width 0.3s ease;
}

.breadcrumb-list a:hover::before {
    width: 0;  /* Hide the underline on hover since we have background */
}

/* Footer link hover styles - Clean and organized */

.footer-links li {
    margin-bottom: 0.25rem;
    position: relative;
}

.footer-links a {
    color: var(--footer-text);
    font-size: var(--text-sm);
    line-height: 1.5;
    padding: 0.25rem 0;
    display: inline-block;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--footer-accent);
    transition: width 0.3s ease;
}

/* Footer link hover styles - Clean and organized */

.footer-links a:hover::before {
    width: 0;  /* Hide the underline on hover since we have background */
}

/* Remove conflicting hover styles */

/* Contact Information */
.footer-contact-info {
    color: var(--footer-text-muted);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-email a {
    color: var(--footer-accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-email a:hover {
    color: var(--footer-primary-light);
    text-decoration: underline;
}

/* GIGW Mandatory Links */
.gigw-mandatory-links {
    background: rgba(0,0,0,0.3); /* Slightly darker background for better contrast */
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255,255,255,0.2); /* More visible border */
    backdrop-filter: blur(5px);
}

.gigw-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.gigw-links-list li {
    margin: 0;
}

/* Ensure all GIGW links text is visible */
.gigw-mandatory-links,
.gigw-mandatory-links *,
.gigw-mandatory-links a,
.gigw-mandatory-links li {
    color: #ffffff !important;
}

.gigw-links-list a {
    color: #ffffff !important; /* Force white color for better contrast */
    font-size: var(--text-xs);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1); /* Slightly more visible background */
    border: 1px solid rgba(255,255,255,0.2); /* More visible border */
    font-weight: 500;
}

.gigw-links-list a:hover {
    background: var(--footer-accent);
    color: #ffffff !important; /* Keep white text on hover for better contrast */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Footer Base Section */
.footer-base {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.disclaimer-text {
    color: var(--footer-text-muted);
    font-size: var(--text-xs);
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

.last-updated-info {
    background: rgba(255,255,255,0.08);
    padding: var(--spacing-xs);
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    font-size: 0.75rem;
}

.last-updated-label {
    color: var(--footer-accent);
    font-weight: 400;
    margin-right: var(--spacing-xs);
    font-size: 0.75rem;
}

.last-updated-date,
.last-updated-time {
    color: var(--footer-text);
    font-weight: 400;
    font-size: 0.75rem;
    margin-left: var(--spacing-xs);
}

.official-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.official-badges img {
    height: 40px !important;
    width: auto !important;
    object-fit: contain !important;
    max-width: none !important;
    /* Removed global filter - now handled individually */
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* Apply white filter only to National Emblem */
.official-badges img[alt="Government of India"] {
    filter: brightness(0) invert(1);
}

/* Keep Ministry of Defence logo in original colors */
.official-badges img[alt="Ministry of Defence"] {
    filter: none;
}

.official-badges img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Floating E-commerce FAB */
.floating-ecommerce-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: inherit;
}

.fab-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--footer-accent), #e67e00);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-main-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(26, 54, 93, 0.95);
    border-radius: 1rem;
    padding: 1rem;
    min-width: 200px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(1rem) scale(0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fab-menu.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.fab-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.fab-menu-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--footer-accent);
    transform: translateX(0.25rem);
}

.fab-menu-btn:last-child {
    margin-bottom: 0;
}

.ecom-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-section {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section {
        padding: 1.5rem;
    }
    
    .footer-section h2 {
        font-size: 1.2rem;
    }
    
    .footer-base {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .gigw-links-list {
        flex-direction: column;
        align-items: center;
    }
    
    .floating-ecommerce-fab {
        bottom: 1rem;
        right: 1rem;
    }
    
    .fab-main-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Maintain State Emblem aspect ratio on mobile */
    .official-badges img {
        height: 35px !important;
        width: auto !important;
        object-fit: contain !important;
        max-width: none !important;
    }
    
    .fab-menu {
        bottom: 60px;
        min-width: 180px;
    }
    
    /* Twitter Feed Mobile Styles */
    .twitter-feed-section {
        margin-top: var(--spacing-sm);
    }
    
    .twitter-feed-container {
        max-height: 250px;
    }
    
    .twitter-feed-item {
        padding: var(--spacing-xs);
    }
}

@media (max-width: 576px) {
    .site-footer {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-section {
        padding: 1rem;
    }
    
    .gigw-mandatory-links {
        padding: 1.5rem;
    }
    
    .gigw-links-list a {
        font-size: var(--text-xs);
        padding: 0.4rem 0.8rem;
    }
    
    .disclaimer-text {
        font-size: var(--text-xs);
    }
    
    .last-updated-info {
        padding: 0.75rem;
        font-size: var(--text-sm);
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: more) {
    .site-footer {
        background: linear-gradient(135deg, #000080 0%, #000040 100%);
        border-top-color: #ffff00;
    }

    .footer-section h2 {
        color: #ffff00;
    }

    .footer-links a:hover,
    .contact-email a,
    .last-updated-label {
        color: #ffff00;
    }

    .gigw-links-list a:hover {
        background: #ffff00;
        color: #000080;
    }
}

/* Print Styles */
@media print {
    .floating-ecommerce-fab,
    .fab-menu {
        display: none !important;
    }
    
    .site-footer {
        background: none !important;
        color: #000 !important;
        box-shadow: none !important;
    }
    
    .footer-section {
        background: none !important;
        border: 1px solid #ccc !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Legacy styles for backward compatibility */
.footer-pattern {
    display: none;
}

.widget-title {
    color: var(--footer-accent);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--footer-accent);
    border-radius: 2px;
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    margin-top: 50px;
}

.copyright {
    color: var(--footer-text-muted);
    font-size: var(--text-sm);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-bottom-links a {
    color: var(--footer-text-muted);
    font-size: var(--text-sm);
    padding: 5px 10px;
    transition: color 0.3s ease;
}

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

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 12px 20px;
    height: auto;
    font-size: var(--text-sm);
    color: var(--footer-text);
}

.newsletter-form .btn {
    padding: 12px 25px;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: var(--footer-accent);
    border: none;
    color: var(--footer-primary);
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    background: #e67e00;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.partner-card {
    background: var(--footer-card-bg);
    border: 1px solid var(--footer-card-border);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 1rem;
    padding: 1.5rem;
}

.partner-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Footer link hover styles - Clean and organized */
.site-footer a:hover,
.footer-section a:hover,
.footer-links a:hover,
.footer-section ul li a:hover,
.footer-links li a:hover,
.footer-section h2 + ul li a:hover,
.footer-section div ul li a:hover,
.footer-bottom-links a:hover,
.breadcrumb-list a:hover {
    color: #ffffff !important;  /* White text on yellow background */
    background-color: #ffc107 !important;  /* Yellow background */
    padding: 4px 8px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin: 2px 0 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 0 2px #ffc107 !important;  /* Force yellow outline */
    z-index: 999 !important;  /* Ensure it's on top */
}

/* Twitter Feed Section */
.twitter-feed-section {
    background: rgba(255,255,255,0.05);
    border-radius: 0.5rem;
    padding: var(--spacing-md);
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: var(--spacing-md);
}

.twitter-feed-section h3 {
    color: var(--footer-text);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.twitter-feed-section h3::before {
    content: "🐦";
    font-size: 1.2em;
}

.twitter-feed-container {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0,0,0,0.2);
    border-radius: 0.5rem;
    padding: var(--spacing-sm);
}

.twitter-feed-item {
    background: rgba(255,255,255,0.05);
    border-radius: 0.25rem;
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    border-left: 3px solid var(--footer-accent);
}

.twitter-feed-item:last-child {
    margin-bottom: 0;
}

.twitter-feed-text {
    color: var(--footer-text);
    font-size: var(--text-sm);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.twitter-feed-meta {
    color: var(--footer-text-muted);
    font-size: var(--text-xs);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.twitter-feed-link {
    color: var(--footer-accent);
    text-decoration: none;
    font-size: var(--text-xs);
    padding: 0.25rem 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.twitter-feed-link:hover {
    background: var(--footer-accent);
    color: #ffffff;
}