/* ========================================
   PROFESSIONAL HEADER & FOOTER FOR INDEX2.HTML
   Fully Responsive: Desktop, Tablet, Mobile
   ======================================== */

/* Global Overflow Prevention */
html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* ===== TOP BAR ===== */
.index2-top-bar {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    font-size: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    overflow-x: hidden;
}

.index2-top-bar-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.index2-top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.index2-top-bar-icon {
    font-size: 1rem;
}

.index2-top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.index2-top-bar-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.2s ease;
}

.index2-top-bar-link:hover {
    color: #fbbf24;
}

/* ===== MAIN HEADER ===== */
.index2-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.index2-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.98);
}

.index2-header-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.index2-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    gap: 2rem;
}

/* Logo Section */
.index2-logo-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    transition: transform 0.2s ease;
    min-width: 0;
    flex-shrink: 1;
}

.index2-logo-link:hover {
    transform: translateY(-1px);
}

.index2-logo-img {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.index2-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.index2-logo-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #1e3a8a;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.index2-logo-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 500;
}

/* Desktop Navigation */
.index2-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.index2-nav-link {
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
    text-decoration: none;
    color: #374151;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
}

.index2-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    transition: width 0.3s ease;
}

.index2-nav-link:hover {
    color: #1e40af;
}

.index2-nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.index2-nav-dropdown {
    position: relative;
    display: inline-block;
}

.index2-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.index2-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.index2-nav-dropdown:hover .index2-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.index2-dropdown-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.index2-dropdown-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
}

.index2-dropdown-link {
    padding: 0.625rem 0.875rem;
    border-radius: 6px;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    white-space: nowrap;
}

.index2-dropdown-link:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    transform: translateX(4px);
}


.index2-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.index2-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
}

/* Mobile Menu Button */
.index2-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem;
    background: transparent;
    border: none;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
}

.index2-mobile-btn:hover {
    background: #f3f4f6;
    color: #1e40af;
}

/* Mobile Menu */
.index2-mobile-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    position: absolute;
    width: 100%;
    left: 0;
    top: 100%;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    pointer-events: none;
}

.index2-mobile-menu.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.index2-mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.5rem;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
}

.index2-mobile-link {
    padding: 0.875rem 1.25rem;
    border-radius: 0.625rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
}

.index2-mobile-link:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
}

.index2-mobile-cta {
    margin-top: 0.75rem;
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    color: white;
    text-align: center;
    padding: 0.875rem 1.25rem;
    border-radius: 0.625rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ===== FOOTER ===== */
.index2-footer {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    color: #d1d5db;
    padding: 3.5rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.index2-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Footer Grid */
.index2-footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

/* Footer Column */
.index2-footer-column h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: white;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.index2-footer-column p {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0;
}

/* Footer Links */
.index2-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.index2-footer-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.index2-footer-link:hover {
    color: #fbbf24;
    transform: translateX(4px);
}

/* Footer Contact */
.index2-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.index2-footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.index2-footer-contact-label {
    color: #6b7280;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.index2-footer-contact-value {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.index2-footer-contact-value:hover {
    color: #fbbf24;
}

/* Footer Bottom */
.index2-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.index2-footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
    text-align: center;
    margin: 0;
}

.index2-footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    align-items: center;
}

.index2-footer-bottom-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.2s ease;
}

.index2-footer-bottom-link:hover {
    color: #fbbf24;
}

.index2-footer-divider {
    color: #4b5563;
}

/* Social Links */
.index2-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.index2-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.index2-social-link:hover {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .index2-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .index2-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .index2-footer-copyright {
        text-align: left;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .index2-nav {
        display: flex;
    }

    .index2-mobile-btn {
        display: none;
    }

    .index2-footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }

    .index2-top-bar-right {
        display: flex;
    }
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .index2-top-bar {
        font-size: 0.6875rem;
    }

    .index2-top-bar-right {
        display: none;
    }

    .index2-header-content {
        height: 64px;
        gap: 0.75rem;
    }

    .index2-logo-img {
        height: 36px;
    }

    .index2-logo-title {
        font-size: 0.9375rem;
    }

    .index2-logo-subtitle {
        font-size: 0.625rem;
    }

    .index2-footer {
        padding: 2.5rem 0 1.25rem;
    }

    .index2-footer-grid {
        gap: 2rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {

    .index2-header-container,
    .index2-footer-container {
        padding: 0 1rem;
    }

    .index2-top-bar-content {
        padding: 0 1rem;
    }
}