/*
Theme Name:   Hello Elementor Child
Theme URI:    https://researchsetu.com/
Description:  Hello Elementor Child Theme with Custom Header, Footer, and Right Drawer Mobile Menu
Author:       Antigravity
Template:     hello-elementor
Version:      1.2.0
Text Domain:  hello-elementor-child
*/

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;1,500;0,700&display=swap');

/* --- Reset & Global Theme Styling --- */
body {
    background-color: #f8fafc;
}

/* Hide default theme page titles since page layouts are built in Elementor */
.page .entry-header,
.page .page-header,
.page h1.post-title,
.page h1.entry-title,
.page-header {
    display: none !important;
}

/* --- Announcement Top Bar --- */
.custom-top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #334155;
    background: transparent;
    font-weight: 500;
}

.top-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 32px;
}

.announcement-msg {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.top-bar-divider {
    color: #e2e8f0;
    font-weight: 300;
}

.top-bar-action-btn {
    text-decoration: none !important;
    color: #004ae2;
    background-color: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    line-height: 1;
}

.top-bar-action-btn:hover {
    background-color: #eff6ff;
    border-color: #004ae2;
    transform: translateY(-0.5px);
}

/* --- Google Material Icons Styling --- */
.g-icon {
    font-family: 'Material Icons' !important;
    font-size: 18px;
    vertical-align: middle;
    margin-right: 6px;
    display: inline-block;
    line-height: 1;
    color: #004ae2;
}

.top-bar-action-btn .g-icon {
    font-size: 15px;
    margin-right: 3px;
    color: #004ae2;
}

/* --- Floating Main Header Card --- */
.custom-header-wrapper {
    padding: 0 32px;
    margin-top: 4px;
    margin-bottom: 20px;
}

.custom-header {
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 74, 226, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 15px;
    z-index: 9999;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1440px;
    margin: 0 auto;
}

.header-container {
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

/* --- Logo Styling --- */
.custom-logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.custom-logo-img {
    height: 98px;
    width: auto;
    object-fit: contain;
    display: block;
}

.drawer-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 15px;
    margin-left: -18px;
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
    color: #091e42;
    line-height: 1.1;
    letter-spacing: -0.6px;
}

.logo-title-accent {
    color: #004ae2;
}

.logo-tagline {
    font-size: 9.5px;
    font-weight: 500;
    color: #64748b;
    margin-top: 3px;
    letter-spacing: 0.1px;
}

/* --- Navigation Menu (Desktop & Drawer styles) --- */
.custom-nav {
    display: flex;
    align-items: center;
    align-self: center;
}

/* Hide mobile drawer nav on desktop viewports */
#main-navigation.custom-nav {
    display: none;
}

/* Hide Close Button & Drawer Brand Header on Desktop */
.nav-close,
.drawer-header {
    display: none;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-list > li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.nav-list > li > a {
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: color 0.2s ease;
    height: 100%;
    line-height: 1;
}

.nav-list > li:hover:not(.current-menu-item):not(.current_page_item) > a {
    color: #004ae2;
}

/* Dropdown trigger icon */
.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
    margin-left: 6px;
}

.menu-item-has-children:hover > a::after {
    transform: translateY(1px) rotate(45deg);
}

/* Active links background pill */
.nav-list > li.current-menu-item,
.nav-list > li.current_page_item {
    background-color: #f0f5ff;
}

.nav-list > li.current-menu-item > a,
.nav-list > li.current_page_item > a {
    color: #004ae2;
}

.nav-list > li.current-menu-item::after,
.nav-list > li.current_page_item::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background-color: #004ae2;
    border-radius: 2px;
}

/* --- Sub Menu Dropdown UI (Premium Improvements) --- */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(9, 30, 66, 0.08), 0 2px 8px rgba(0, 0, 0, 0.01);
    padding: 8px 0;
    min-width: 210px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    margin-top: 12px;
    z-index: 1000;
}

/* Sub-menu Top Notch pointer arrow */
.sub-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border-left: 1px solid rgba(226, 232, 240, 0.8);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.sub-menu li {
    display: block;
}

.sub-menu li a {
    display: block;
    padding: 11px 20px 11px 18px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.sub-menu li a:hover {
    background-color: #f8fafc;
    color: #004ae2;
    border-left-color: #004ae2;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* --- Action Buttons --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-btn {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 44px;
    height: 44px;
    color: #475569;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background-color: #f1f5f9;
    color: #004ae2;
    border-color: #cbd5e1;
}

.action-btn {
    text-decoration: none !important;
    padding: 11px 26px;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-login {
    color: #004ae2;
    border: 1.5px solid #cbd5e1;
    background-color: transparent;
    height: 44px;
    box-sizing: border-box;
}

.btn-login:hover {
    border-color: #004ae2;
    background-color: #f5f9ff;
}

.btn-signup {
    color: #ffffff;
    background-color: #004ae2;
    border: 1.5px solid transparent;
    gap: 8px;
    height: 44px;
    box-sizing: border-box;
}

.btn-signup .arrow {
    transition: transform 0.2s ease;
    font-size: 16px;
    line-height: 1;
}

.btn-signup:hover {
    background-color: #003bbb;
    box-shadow: 0 4px 14px rgba(0, 74, 226, 0.25);
}

.btn-signup:hover .arrow {
    transform: translateX(3px);
}

/* --- Mobile Menu Hamburger Toggle --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: #475569;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Drawer Backdrop Overlay --- */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(9, 30, 66, 0.3);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* --- Mobile Actions inside Dropdown --- */
.mobile-nav-actions {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 24px;
    width: 100%;
}

.mobile-action-btn {
    text-decoration: none !important;
    padding: 12px;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 12px;
    text-align: center;
    display: block;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.mobile-btn-login {
    border: 1.5px solid #cbd5e1;
    color: #004ae2;
    background-color: transparent;
}

.mobile-btn-login:hover {
    border-color: #004ae2;
    background-color: #f0f5ff;
}

.mobile-btn-signup {
    background-color: #004ae2;
    color: #ffffff;
    border: 1.5px solid transparent;
}

.mobile-btn-signup:hover {
    background-color: #003bbb;
}

/* ==========================================================================
   --- MOBILE RIGHT DRAWER MENU RESPONSIVE STYLING ---
   ========================================================================== */
@media (max-width: 1024px) {
    .custom-header-wrapper {
        padding: 0 16px;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hide desktop nav on mobile */
    .desktop-only-nav {
        display: none !important;
    }

    /* Transform main nav into a sliding right drawer */
    #main-navigation.custom-nav {
        display: flex;
        position: fixed;
        top: 0;
        right: -320px; /* Hidden offscreen on right side */
        width: 320px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -10px 0 40px rgba(9, 30, 66, 0.15);
        padding: 40px 24px 30px 24px;
        box-sizing: border-box;
        flex-direction: column;
        justify-content: flex-start;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99999;
        overflow-y: auto;
    }

    #main-navigation.custom-nav.active {
        right: 0; /* Slides into viewport */
    }

    /* Show Close & Brand Headers inside Drawer */
    .nav-close {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: #64748b;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: #f8fafc;
        transition: background 0.2s;
    }
    
    .nav-close:hover {
        background-color: #f1f5f9;
        color: #004ae2;
    }
    
    .drawer-header {
        display: block;
        margin-top: 15px;
        margin-bottom: 30px;
        text-align: left;
    }
    
    .drawer-tagline {
        font-size: 11px;
        color: #64748b;
        margin: 6px 0 0 0;
        font-weight: 500;
        line-height: 1.3;
    }

    .mobile-nav-actions {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
        margin-bottom: 30px;
    }

    .nav-list > li {
        width: 100%;
        height: auto;
        padding: 0;
        border-radius: 10px;
        display: block;
    }

    .nav-list > li > a {
        padding: 12px 14px;
        width: 100%;
        justify-content: space-between;
        border-radius: 10px;
        box-sizing: border-box;
    }

    .nav-list > li > a:hover {
        background-color: #f8fafc;
        color: #004ae2;
    }

    .nav-list > li.current-menu-item > a,
    .nav-list > li.current_page_item > a {
        background-color: #eff6ff;
        color: #004ae2;
    }

    /* Accordion mobile dropdown transition */
    .sub-menu {
        position: static;
        transform: none !important;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        max-height: 0;
        overflow: hidden;
        margin-top: 0;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 100%;
        display: block;
        opacity: 1;
        visibility: visible;
        border-left: 1.5px solid #e2e8f0;
        margin-left: 15px;
        background-color: transparent;
    }
    
    .sub-menu::before {
        display: none; /* Hide pointer notch on mobile */
    }

    .sub-menu li a {
        padding: 10px 14px;
        border-left: none;
    }

    .menu-item-has-children.open .sub-menu {
        max-height: 350px;
        margin-top: 6px;
        margin-bottom: 6px;
    }

    /* Rotate indicator arrow on toggle */
    .menu-item-has-children.open > a::after {
        transform: rotate(-135deg);
    }

    .nav-list > li.current-menu-item::after,
    .nav-list > li.current_page_item::after {
        display: none;
    }
}

/* Hide desktop login/signup triggers on smaller screens */
@media (max-width: 768px) {
    .header-actions .btn-login,
    .header-actions .btn-signup {
        display: none !important;
    }
}

/* --- Breadcrumbs Styling (Matches image) --- */
.rs-breadcrumbs-container {
    padding: 12px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.rs-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
}

.breadcrumb-link {
    color: #475569 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #004ae2 !important;
}

.rs-breadcrumb-separator {
    color: #64748b;
    display: inline-flex;
    align-items: center;
}

.rs-breadcrumb-separator svg {
    color: #64748b;
}

.rs-breadcrumb-current {
    color: #091e42;
}

/* ==========================================================================
   --- PREMIUM CUSTOM FOOTER STYLING ---
   ========================================================================== */
.custom-footer {
    background-color: #002984;
    color: #a3b3cc;
    font-family: 'Outfit', sans-serif;
    padding-top: 60px;
    margin-top: 40px;
}

.footer-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px 50px 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-col-brand {
    flex: 1 1 280px;
    max-width: 320px;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo-icon {
    width: 38px;
    height: 38px;
}

.footer-logo-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.footer-logo-title-accent {
    color: #ffffff;
}

.footer-tagline {
    font-size: 11px;
    font-weight: 500;
    color: #cbd5e1;
    margin-top: -6px;
    margin-bottom: 20px;
}

.footer-brand-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #a3b3cc;
    margin-bottom: 20px;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
}

.social-icon-btn {
    width: 36px;
    height: 36px;
    background-color: #1a3060;
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.25s ease;
}

.social-icon-btn:hover {
    background-color: #004ae2;
    transform: translateY(-2px);
    color: #ffffff !important;
}

.footer-col {
    flex: 1 1 150px;
}

.footer-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: 0.2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links li a {
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 500;
    color: #a3b3cc;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: #ffffff;
}

.footer-links li a.highlight-link {
    font-weight: 700;
    color: #ffffff;
}

.footer-links li a.highlight-link:hover {
    color: #60a5fa;
}

.footer-col-subscribe {
    flex: 1 1 280px;
    max-width: 350px;
}

.subscribe-text {
    font-size: 13.5px;
    margin-bottom: 14px;
    color: #cbd5e1;
}

.footer-subscribe-form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.subscribe-input {
    flex-grow: 1;
    background-color: #ffffff;
    border: 1px solid transparent;
    padding: 12px 16px;
    font-size: 13.5px;
    font-family: inherit;
    border-radius: 12px;
    outline: none;
    color: #091e42;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.subscribe-btn {
    background-color: #004ae2;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.subscribe-btn:hover {
    background-color: #003bbb;
    box-shadow: 0 4px 12px rgba(0, 74, 226, 0.2);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright-text {
    font-size: 13px;
    color: #a3b3cc;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-bottom-links a {
    text-decoration: none !important;
    font-size: 13px;
    color: #a3b3cc;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

.bar-divider {
    color: rgba(255, 255, 255, 0.15);
    font-size: 12px;
}

@media (max-width: 768px) {
    .footer-main-container {
        padding: 0 20px 40px 20px;
    }

    .footer-bottom-container {
        padding: 0 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Specific styling for narrow phone mode (width < 480px) */
@media (max-width: 480px) {
    .logo-title {
        font-size: 19px;
    }
    .logo-tagline {
        font-size: 8px;
    }
    .logo-icon {
        width: 38px;
        height: 38px;
    }
    .custom-header-wrapper {
        padding: 0 8px;
    }
    .header-container {
        padding: 8px 12px;
        min-height: 60px;
    }
    .custom-header {
        top: 8px;
    }
    
    /* Shrink mobile menu drawer width for very small phone screens */
    .custom-nav {
        width: 280px;
    }
}

/* Hide top announcement bar on mobile devices to prevent layout breakage and overflow */
@media (max-width: 768px) {
    .custom-top-bar {
        display: none !important;
    }
    .custom-header-wrapper {
        margin-top: 8px;
    }
}


