/* =============================================
   HEADER & FOOTER STYLES
   For use with header.js and footer.js components
   Include this file AFTER style.css
   ============================================= */


/* ========== TRICOLOR BAR ========== */
/*.tricolor-bar {
    height: 4px;
    display: flex;
}

.tricolor-bar .saffron,
.tricolor-bar span:first-child {
    flex: 1;
    background: var(--tricolor-saffron);
}

.tricolor-bar .white,
.tricolor-bar span:nth-child(2) {
    flex: 1;
    background: var(--tricolor-white);
}

.tricolor-bar .green,
.tricolor-bar span:nth-child(3) {
    flex: 1;
    background: var(--tricolor-green);
}*/

/* ========== TRICOLOR BAR ========== */
.tricolor-bar {
    display: flex;
    height: 4px;
}

.tricolor-bar span {
    flex: 1;
}

.tricolor-bar .saffron { background: var(--tricolor-saffron); }
.tricolor-bar .white { background: var(--tricolor-white); }
.tricolor-bar .green { background: var(--tricolor-green); }


/* ========== UTILITY BAR ========== */
.utility-bar {
    background: var(--primary-green-dark);
    color: white;
    /*border-bottom: 1px solid #e0e0e0;*/
    padding: 6px 0;
    font-size: 12px;
}

.utility-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utility-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.utility-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.utility-links a:hover {
    color: white;
    text-decoration: underline;
}

.utility-links .divider {
    color: #ccc;
}

.utility-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.font-controls {
    display: flex;
    gap: 4px;
}

.font-controls button {
    background: white;
    border: 1px solid #ddd;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 12px;
}

.font-controls button:hover {
    background: #f5f5f5;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: var(--font-size-xs);
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s;
}

.lang-btn:hover {
    color: white;
}

.lang-btn.active {
    background: rgba(255,255,255,0.2);
    color: white;
    font-weight: 600;
    border-radius: 4px;
}

.lang-divider {
    color: #ccc; /* rgba(255,255,255,0.4);*/
    font-size: var(--font-size-xs);
}



/* ========== HEADER MAIN - Light Green Background ========== */
.header-main {
    background: #E8F5E9;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-jharkhand {
    height: 60px;
    width: auto;
}

.logo-mudra {
    height: 50px;
    width: auto;
}

.brand-divider {
    width: 2px;
    height: 50px;
    background: var(--primary-green);
    margin: 0 10px;
}

.brand-text h1 {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin: 0;
    font-weight: 700;
}

.brand-text .tagline {
    font-size: 0.85rem;
    color: var(--primary-green);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.govt-info {
    text-align: right;
}

.govt-info .dept {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-green);
}

.govt-info .govt-name {
    font-size: 0.85rem;
    color: var(--primary-green);
}

.logo-digital-india {
    height: 50px;
    width: auto;
}

.logo-india-emblem {
    height: 55px;
    width: auto;
}

/* ========== NAVIGATION BAR ========== */
.main-nav {
    background: var(--primary-green);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    display: block;
    padding: 12px 18px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255,255,255,0.2);
}

.nav-menu li a.active {
    background: rgba(255,255,255,0.25);
    font-weight: 600;
}

/* Navigation Search Box */
.nav-search {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 12px;
    border: none;
    font-size: 0.9rem;
    width: 200px;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: #FF6B35;
    border: none;
    padding: 8px 14px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
}

.search-btn:hover {
    background: #e55a2b;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary-green-dark);
    color: white;
    padding: 40px 0 0;
}

.footer-main.footer-four-col {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* Footer Brand & About */
.footer-about-col {
    padding-right: 20px;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-brand-text h3 {
    font-size: 1.1rem;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.footer-brand-text p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
}

.footer-about-text {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

/* Footer Column Headers */
.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #4CAF50;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

/* Footer Contact Info */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}

.contact-email {
    font-size: 0.85rem;
    color: #81C784;
    text-decoration: none;
}

.contact-email:hover {
    color: white;
    text-decoration: underline;
}

/* Footer Bottom Bar */
.footer-bottom {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom-left p,
.footer-bottom-center p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.footer-bottom-center {
    text-align: center;
}

.footer-bottom .separator {
    margin: 0 8px;
    opacity: 0.5;
}

.footer-bottom-right {
    display: flex;
    gap: 20px;
}

.footer-bottom-right a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.footer-bottom-right a:hover {
    color: white;
}

.footer-tricolor {
    height: 4px;
    display: flex;
}

.footer-tricolor span {
    flex: 1;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 992px) {
    .footer-main.footer-four-col {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-about-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .utility-links .divider:not(:first-of-type),
    .utility-links a:not(:first-child) {
        display: none;
    }
    
    .font-controls {
        display: none;
    }
    
    .header-main {
        padding: 10px 0;
    }
    
    .logo-jharkhand {
        height: 45px;
    }
    
    .logo-mudra,
    .brand-divider,
    .govt-info,
    .logo-digital-india {
        display: none;
    }
    
    .brand-text h1 {
        font-size: 1.1rem;
    }
    
    .brand-text .tagline {
        font-size: 0.75rem;
    }
    
    .logo-india-emblem {
        height: 40px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-green);
        flex-direction: column;
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-search {
        display: none;
    }
    
    .footer-main.footer-four-col {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-about-col {
        grid-column: auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-right {
        justify-content: center;
    }
}
