/* Shared Container Width Overrides */
.main-content .container {
    max-width: 1375px;
    margin: 0 auto;
}

/* Common Section Heading Underline Styles */
.underline {
    position: relative;
}

.underline::after {
    bottom: -45px !important;
}

/* Global Form Validation Error Colors */
.text-danger,
.error {
    color: red;
}

/* Global Select2 Overrides */
.select2-container .select2-selection--single .select2-selection__rendered {
    padding-top: 7px;
}

.select2-container .select2-selection--single {
    height: 43px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
}

/* Shared Alignment for Item Grids */
.items-container .row {
    justify-content: start !important;
}

/* Common intl-tel-input (iti) Styles */
.iti {
    width: 100% !important;
}

.iti--separate-dial-code .iti__selected-flag {
    background-color: #ffffff !important;
    padding: 10px;
    border-radius: 5px 0 0 5px;
    height: 100%;
    display: flex;
    align-items: center;
}

.iti--separate-dial-code .iti__selected-flag:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.iti--allow-dropdown input {
    padding-left: 100px !important;
}

.iti input {
    height: 45px !important;
    border-radius: 5px !important;
}

/* Premium Glassmorphic Header */
.premium-header {
    background: rgba(137, 22, 82, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 12px 0;
}

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

.logo-link img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-link:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none !important;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.signup-btn-premium {
    background: #f8c45f;
    color: #000 !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(248, 196, 95, 0.3);
}

.signup-btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(248, 196, 95, 0.4);
    background: #ffffff;
}

.signup-btn-premium i {
    transition: transform 0.3s ease;
}

.signup-btn-premium:hover i {
    transform: translateX(5px);
}

/* User Profile Trigger */
.profile-trigger {
    background: none;
    border: none;
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: #ffffff !important;
    padding: 0 !important;
    cursor: pointer;
}

.profile-trigger img {
    border-radius: 50px;
    width: 40px;
}

.avatar-placeholder {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

/* Mobile Toggle */
.mobile-toggle {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.hamburger {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hamburger::before {
    top: -8px;
    left: 0;
}

.hamburger::after {
    top: 8px;
    left: 0;
}

.menu-open .hamburger {
    background: transparent;
}

.menu-open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-open .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Responsive adjustments */


/* Premium Footer Styling */
.premium-footer {
    background: #891652;
    color: #ffffff;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.footer-top {
    padding: 80px 0 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.brand-col .footer-logo img {
    height: 45px;
    margin-bottom: 25px;
}

.footer-blurb {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
}

.social-link:hover {
    background: #ffffff;
    color: #891652;
    transform: translateY(-5px);
}

.footer-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

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

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

.footer-contact-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.footer-contact-info li i {
    color: #ffffff;
    /* Changed from yellow to white */
    margin-top: 4px;
}

.footer-contact-info a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.1);
}

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

.copyright-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-legal-links {
    display: flex;
    gap: 25px;
}

.footer-legal-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-deco {
    position: absolute;
    width: 200px;
    opacity: 0.05;
    pointer-events: none;
}

.deco-left {
    bottom: -50px;
    left: -50px;
}

.deco-right {
    top: -50px;
    right: -50px;
    transform: rotate(180deg);
}


/* --- RESPONSIVE HEADER & MOBILE MENU --- */

@media (max-width: 1100px) {
    .nav-menu {
        display: none !important;
    }

    .mobile-toggle {
        display: block !important;
    }
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(137, 22, 82, 0.98);
    z-index: 9999;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 40px;
    visibility: hidden;
    backdrop-filter: blur(20px);
}

.mobile-menu-overlay.active {
    right: 0;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    /* Reduced from 60px */
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
}

.close-menu {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-menu:hover {
    background: #ffffff;
    color: #891652;
    transform: rotate(90deg);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav-links>li {
    margin-bottom: 5px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.mobile-menu-overlay.active .mobile-nav-links>li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-links a {
    color: #ffffff;
    /* Pure white for better legibility */
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    display: block;
    padding: 15px;
    transition: all 0.3s ease;
}

.mobile-nav-links a:hover {
    color: #f8c45f;
}

.has-mobile-submenu>a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.mobile-submenu {
    list-style: none;
    padding: 10px 0;
    display: none;
    background: rgba(0, 0, 0, 0.3);
    /* Darker, more premium feel */
    border-radius: 15px;
    margin: 5px 20px 15px;
}

.has-mobile-submenu.open .mobile-submenu {
    display: block;
}

.mobile-submenu a {
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding: 12px;
}

.mobile-auth-btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-login-btn {
    text-align: center;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 100px;
    font-size: 17px !important;
    color: #ffffff !important;
    display: block !important;
}

.mobile-signup-btn {
    text-align: center;
    padding: 16px;
    background: #f8c45f !important;
    color: #891652 !important;
    border-radius: 100px;
    font-size: 17px !important;
    font-weight: 800 !important;
    display: block !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- PREMIUM FAQ PAGE STYLES --- */
.faq-hero {
    /* background: linear-gradient(135deg, #891652 0%, #4a0d2c 100%); */
    background: #fdf5f9;
    padding: 100px 0 80px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(137, 22, 82, 0.15);
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 40%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    transform: rotate(-15deg);
}

.faq-hero h1 {
    font-size: 56px;
    color: #8f225a;
    font-weight: 800;
    margin-top: 0px;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.faq-hero p {
    font-size: 18px;
    color: #8f225a;
    max-width: 600px;
    margin: 0 auto;
}

.faq-page-content {
    padding: 80px 0;
    background: #fdf5f9;
}

.faq-container-premium {
    max-width: 900px;
    margin: 0 auto;
}

.faq-card-premium {
    background: #ffffff;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.faq-card-premium:hover {
    border-color: rgba(137, 22, 82, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(137, 22, 82, 0.05);
}

.faq-card-premium.active {
    /* border-color: #891652; */
    border-color: rgba(137, 22, 82, 0.3);
    box-shadow: 0 20px 40px rgba(137, 22, 82, 0.08);
    background: #fdf5f9;
}

.faq-header-premium {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-header-premium h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    transition: color 0.3s ease;
}

.faq-card-premium.active .faq-header-premium h3 {
    color: #891652;
}

.faq-icon-premium {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #891652;
    font-size: 14px;
    transition: all 0.4s ease;
}

.faq-card-premium.active .faq-icon-premium {
    background: #891652;
    color: #ffffff;
    transform: rotate(45deg);
}

.faq-body-premium {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-content-inner {
    padding: 0 30px 30px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}

@media (max-width: 767px) {
    .faq-hero {
        padding: 60px 0;
    }

    .faq-hero h1 {
        font-size: 36px;
    }

    .faq-header-premium {
        padding: 20px;
    }

    .faq-header-premium h3 {
        font-size: 17px;
    }

    .social-link {
        margin-left: 0px !important;
    }
}

/* Essential Tools */
@media (max-width: 767px) {
    .essential-tools-cards-wrapper {
        grid-template-columns: 1fr !important;
    }

    .essential-tools-card {
        padding: 25px !important;
    }

    .essential-tools-card-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin-top: 15px !important;
    }

    .free-product-label {
        top: 15px !important;
        left: 15px !important;
        font-size: 10px !important;
    }
}

/* Blog Section Header */
@media (max-width: 767px) {
    .blog-header {
        flex-direction: column !important;
        text-align: center;
        gap: 20px;
    }

    .blog-header h2 {
        font-size: 26px !important;
        width: 100% !important;
    }

    .blog-header .all-articles-btn {
        margin: 0 auto;
    }
}

/* Stats Bar */
@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
    }

    .stat-item {
        padding: 15px !important;
        text-align: center;
        flex-direction: column !important;
    }

    .stat-content h3 {
        font-size: 22px !important;
    }
}

/* General Layout Fixes */
@media (max-width: 767px) {
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    #popup .popup-title {
        font-size: 26px !important;
    }

    .title,
    h2 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
}

.nav-link i {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.has-mega-menu:hover .nav-link i {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    padding: 40px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-bottom: 3px solid #891652;
    z-index: 999;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.mega-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #891652;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(137, 22, 82, 0.1);
}

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

.mega-links li {
    margin-bottom: 20px;
}

.mega-links a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mega-links a i {
    width: 40px;
    height: 40px;
    background: rgba(137, 22, 82, 0.05);
    color: #891652;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.mega-links a span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.mega-links a small {
    display: block;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.mega-links a:hover i {
    background: #891652;
    color: #ffffff;
    transform: scale(1.1);
}

.mega-links a:hover span {
    color: #891652;
}