/* Professional Government Footer - Matching Header Colors */
:root {
  /* Footer specific colors matching header */
  --footer-primary: #1a365d;        /* Matches header primary */
  --footer-primary-dark: #2c5282;   /* Matches header primary-dark */
  --footer-primary-light: #3182ce;  /* Matches header primary-light */
  --footer-accent: #ff9500;         /* Matches header accent */
  --footer-bg: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  --footer-card-bg: rgba(255, 255, 255, 0.05);
  --footer-card-border: rgba(255, 255, 255, 0.1);
  --footer-text: rgba(255, 255, 255, 0.9);
  --footer-text-muted: rgba(255, 255, 255, 0.7);
  --footer-link-hover: #ff9500;
}

/* Professional Footer Base */
.site-footer {
    position: relative;
    background: var(--footer-bg);
    color: var(--footer-text) !important;
    padding: 4rem 0 2rem;
    overflow: hidden;
    z-index: 2;
    border-top: 3px solid var(--footer-accent);
}

/* 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;
}

/* 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;
}

/* Specific targeting for Corporate Headquarters content */
.footer-section h2 {
    color: var(--footer-accent) !important;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    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;
}

.footer-section ul li a:hover {
    color: var(--footer-accent) !important;
}

/* 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);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Footer Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

/* Footer Section Styling */
.footer-section {
    background: var(--footer-card-bg);
    border: 1px solid var(--footer-card-border);
    border-radius: 1rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.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;
}

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

.footer-links a {
    color: var(--footer-text);
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.5rem 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-links a:hover::before {
    width: 100%;
}

.footer-links a:hover {
    color: var(--footer-accent);
    transform: translateX(0.5rem);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Contact Information */
.footer-contact-info {
    color: var(--footer-text-muted);
    font-size: 0.95rem;
    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.2);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255,255,255,0.1);
    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;
}

.gigw-links-list a {
    color: var(--footer-text);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 500;
}

.gigw-links-list a:hover {
    background: var(--footer-accent);
    color: var(--footer-primary);
    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: 0.9rem;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

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

.last-updated-label {
    color: var(--footer-accent);
    font-weight: 600;
    margin-right: 0.5rem;
}

.last-updated-date,
.last-updated-time {
    color: var(--footer-text);
    font-weight: 500;
}

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

.official-badges img {
    height: 40px;
    /* 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;
    }
    
    .fab-menu {
        bottom: 60px;
        min-width: 180px;
    }
}

@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: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .disclaimer-text {
        font-size: 0.8rem;
    }
    
    .last-updated-info {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .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: 0.95rem;
    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: 0.95rem;
    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: 0.95rem;
    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);
}