/* Universal Reset and Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f7f9fc;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Global Content Wrapper - Sets the narrow, mobile-like width for all sections */
.hero-section, .hosting-features-section, .plans-intro-section, .plans-section, .why-hostbet-section, .main-footer {
    padding-left: 20px;
    padding-right: 20px;
}

/* All main content constrained to a narrow width (mobile-first UI) */
.navbar, .hero-content, .hosting-features-section, .plans-intro-section, .plans-section, .why-hostbet-section .feature-block-1, .why-hostbet-section .why-hostbet-card, .main-footer .footer-container {
    max-width: 450px; 
    margin-left: auto;
    margin-right: auto;
}

/* ========== HERO SECTION STYLING - SS 1 ========== */
.hero-section {
    background-color: #173f6f;
    padding-top: 20px;
    padding-bottom: 0;
}

/* Header ke white hone ke baad, hero content mein text color white hi rahega */
.hero-section * {
    color: white;
}

/* Navbar/Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 25px; /* Adjust as needed */
    margin-right: 10px;
}

.tagline {
    font-size: 10px;
    font-weight: 400;
    align-self: flex-end;
    margin-bottom: 3px;
    /* FIX: Navbar white hone ke baad tagline ka color adjust kiya */
    color: #173f6f; /* Blue */
}

/* Hero Content */
.hero-content {
    padding-top: 20px; 
    text-align: left;
    padding-bottom: 20px; 
}

.hero-content h1 {
    font-size: 40px;
    font-weight: 800; /* Extra bold */
    line-height: 1.2;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 20px; /* Aur kam kiya */
    color: #c7d1e3;
}

.features-list {
    position: relative;
    margin-bottom: 20px; /* Aur kam kiya */
    padding-left: 10px;
    display: block; 
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-item i {
    color: white;
    font-size: 22px;
    margin-right: 15px;
}

.cta-button {
    background-color: white;
    color: #173f6f;
    border: none;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
}

/* ========== HOSTING FEATURES - SS 2 & 3 ========== */
.hosting-features-section {
    padding-top: 30px; 
    padding-bottom: 30px; 
    background-color: white; 
}

.hosting-features-section h2 {
    font-size: 30px;
    font-weight: 700;
    color: #000; 
    text-align: left; 
    margin-bottom: 30px;
}

.feature-detail-card {
    border: none;
    border-radius: 10px;
    padding: 30px 20px;
    margin-bottom: 20px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-bottom: 4px solid #173f6f; /* Blue underline */
}

.feature-detail-card i {
    font-size: 36px;
    color: #6a1b9a; /* Purple icon */
    margin-bottom: 15px;
    display: block;
}

.feature-detail-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.feature-detail-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    text-align: center;
}


/* ========== CHOOSE YOUR PLAN INTRO - SS 3 & 4 STYLING ========== */
.plans-intro-section {
    padding-top: 30px;
    padding-bottom: 60px;
    background-color: #f7f9fc; 
    text-align: center;
}

.plans-intro-section h2 {
    font-size: 30px;
    font-weight: 700;
    color: #000; 
    text-align: left;
    margin-bottom: 30px;
}

.plan-intro-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    text-align: left;
}

.plan-intro-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.plan-start-price {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}
.plan-start-price strong {
    font-weight: 700;
    color: #173f6f; 
}

.choose-plans-button {
    display: block;
    background-color: #6a1b9a; 
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    font-weight: 600;
}

.plan-feature-list {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    padding: 0; 
}

.choose-plans-button-top {
    display: block;
    background-color: #6a1b9a;
    color: white;
    text-align: center;
    padding: 15px;
    font-weight: 600;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin-bottom: 20px;
}

.plan-feature-list ul {
    list-style: none;
    padding: 0 20px 20px 20px;
    text-align: left;
}

.plan-feature-list li {
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.plan-feature-list li i {
    color: #173f6f; 
    margin-right: 10px;
    font-size: 14px;
}


/* ========== INDIVIDUAL PLAN CARDS - SS 2 (Lower Part) STYLING ========== */
.plans-section {
    padding-top: 30px;
    padding-bottom: 60px;
    background-color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.plans-section h2, .plans-subtitle {
    width: 100%;
    color: #173f6f;
    text-align: left;
}

/* Plan Card Styling */
.plan-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: 100%; 
    text-align: left;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.plan-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #6a1b9a;
    margin-bottom: 5px;
}

.plan-price {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #173f6f;
    margin-bottom: 10px;
}

.plan-price .per-month {
    font-size: 16px;
    font-weight: 400;
    color: #555;
}

.plan-button {
    display: block;
    background-color: #6a1b9a;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
    margin-bottom: 15px;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.plan-features li {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.plan-features li i {
    color: #173f6f; 
    margin-right: 10px;
    font-size: 14px;
    margin-top: 3px;
}


/* ========== WHY Hostlux - SS 5 & 6 STYLING ========== */
.why-hostbet-section {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #f7f9fc;
}

.why-hostbet-section .illustration-area {
    padding-bottom: 30px;
    max-width: 400px; /* Constrain illustration size */
    margin: 0 auto;
}

.why-hostbet-section .server-illustration {
    width: 100%;
    height: auto;
    max-width: 300px;
    display: block;
    margin: 0 auto;
}

.why-hostbet-section .content-area {
    text-align: left;
    margin-bottom: 40px; 
}

.why-hostbet-section .why-tag {
    display: block;
    color: #173f6f;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.why-hostbet-section h2 {
    font-size: 30px;
    font-weight: 800;
    color: #000;
    line-height: 1.2;
    margin-bottom: 20px;
}

.why-hostbet-section p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* Feature Card 2: 24/7 Support (SS 6) */
.why-hostbet-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: left; 
}

.why-hostbet-card i {
    font-size: 40px;
    color: #173f6f;
    margin-bottom: 15px;
    display: block;
}

.why-hostbet-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #173f6f;
    margin-bottom: 10px;
}

.why-hostbet-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}


/* ========== FOOTER STYLING (The final piece) ========== */
.main-footer {
    background-color: #000000;
    color: white;
    padding-top: 40px;
    padding-bottom: 0;
}

.main-footer * {
    color: white;
}

.footer-container {
    display: flex;
    flex-wrap: wrap; /* Allows columns to wrap on mobile */
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

.footer-column {
    width: 100%; /* Full width for mobile stacking */
    margin-bottom: 30px;
    text-align: left;
}

.footer-brand .footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.footer-brand .footer-tagline {
    font-size: 10px;
    font-weight: 400;
    color: #b1c6e4;
    display: block;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
    margin-bottom: 20px;
}

.social-icons a {
    color: white;
    font-size: 20px;
    margin-right: 15px;
    transition: color 0.3s;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    color: #b1c6e4;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    font-size: 14px;
    color: #ccc;
    transition: color 0.3s;
}

.copyright-bar {
    text-align: center;
    padding: 15px 0;
    font-size: 12px;
    color: #888;
    border-top: 1px solid #333;
}

.copyright-bar p {
    color: #888;
}

/* Desktop/Tablet Optimization (for Footer links) */
@media (min-width: 450px) {
    .footer-column {
        width: 48%; /* Adjust for two columns */
    }
    .footer-brand {
        width: 100%; /* Brand remains full width */
    }
}
@media (min-width: 768px) {
    .footer-column {
        width: 23%; /* Adjust for multi-column layout on wider screens */
        margin-bottom: 0;
    }
    .footer-brand {
        width: 25%;
    }
    .footer-container {
        justify-content: space-around;
        align-items: flex-start;
    }
}

/* ============================================== */
/* START: MOBILE MENU STYLES (DROP-DOWN FIX) */
/* ============================================== */

:root {
    --hostbet-blue: #173f6f; /* Variable name not changed for consistency with color logic */
    --text-dark: #333;
    --login-btn-color: #6a1b9a; 
    --header-height: 65px; /* Fixed Header Height */
}

/* FIX 1: Header ka background white aur high z-index */
.fixed-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    z-index: 9997; 
    background-color: white; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}

/* FIX 2: Content Displacement ke liye naya CSS */
.hero-section-with-fixed-header {
    padding-top: var(--header-height); 
}

/* FIX 3: 3-dot position sahi karna aur toggle karna */
.navbar {
    max-width: 100%; 
    padding-left: 20px; 
    padding-right: 20px; 
}

.navbar .menu-icon {
    font-size: 1.5em; 
    cursor: pointer;
    color: var(--hostbet-blue); 
    z-index: 9999; /* Highest Z-INDEX for clickable icon */
}

.navbar .menu-close-btn { 
    display: none;
    font-size: 2em; 
    line-height: 1;
    color: var(--hostbet-blue); 
}

.navbar .menu-icon#openMenuBtn.active { 
    display: none; 
}

.navbar .menu-close-btn.active { 
    display: block; 
}


/* 4. Mobile Menu ka Main Container Styling (SCROLLING & HEIGHT FIX) */
.mobile-menu {
    position: fixed; /* Scrolling issue fix ke liye FIXED */
    top: var(--header-height); /* Header ke theek niche se shuru */
    left: 0; 
    width: 100%; 
    /* height ki jagah max-height par transition lagaya */
    max-height: 0; /* Shuru mein max-height zero */
    overflow: hidden; 
    background-color: white; 
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
    z-index: 9998; 
    
    transition: max-height 0.3s ease-out; /* Transition on max-height */
}

/* 5. Active State: Jab menu khula ho */
.mobile-menu.active {
    height: auto; 
    /* Menu ko content ke hisab se bada karne ke liye ek high value, taki full screen na ho */
    max-height: 90vh; 
    overflow-y: auto; 
}


/* 6. Menu Links, Login Button Styling */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0; 
    padding-bottom: 10px; 
}

.menu-list li {
    border-bottom: 1px solid #f0f0f0;
}

.menu-list li a {
    display: flex;
    justify-content: space-between; 
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.05em;
    font-weight: 600;
}

.menu-list li.has-dropdown a i {
    font-size: 0.8em; 
    color: #999;
    transition: transform 0.3s ease; 
}

.menu-list li.has-dropdown.submenu-active a i {
    transform: rotate(180deg);
}

.menu-actions {
    padding: 20px;
    border-top: 1px solid #eee;
}

.login-btn {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--login-btn-color);
    border: 2px solid var(--login-btn-color);
    border-radius: 25px; 
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.login-btn:hover {
    background-color: var(--login-btn-color);
    color: white;
}

/* ========== SUBMENU STYLING (New) ========== */

/* Submenu container ko shuru mein hide rakhte hain */
.submenu-container {
    padding: 0 20px 10px;
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.3s ease-out;
    background-color: #f7f9fc; 
}

/* Jab parent LI par submenu-active class ho tab dikhana */
.has-dropdown.submenu-active .submenu-container {
    max-height: 300px; 
    padding: 10px 20px 20px; 
}

/* Submenu Card Styling */
.submenu-card {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    text-decoration: none; 
}

.submenu-icon {
    font-size: 24px;
    color: var(--hostbet-blue);
    margin-right: 15px;
}

.submenu-text {
    flex-grow: 1;
}

.submenu-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.submenu-text p {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Remove default border for the LI that contains the active submenu */
.has-dropdown.submenu-active {
    border-bottom: none;
}


/* ============================================== */
/* START: WHATSAPP FLOATING BUTTON STYLES (UPDATED FOR RIGHT SIDE) */
/* ============================================== */

.fixed-whatsapp-btn {
    position: fixed;
    bottom: 20px; /* Neeche se distance */
    right: 20px; /* RIGHT side se distance set kiya */
    left: auto; /* Left setting ko clear kiya */
    z-index: 9999; /* Sabse upar rahega */
    display: block;
    max-width: 450px; 
    width: 100%;
    pointer-events: none; 
}

/* Button position set karna */
.fixed-whatsapp-btn a {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    width: 55px; /* Size of the button */
    height: 55px; /* Size of the button */
    border-radius: 50%; /* Gol shape */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    font-size: 28px;
    text-decoration: none;
    transition: transform 0.3s ease;
    pointer-events: auto; 
    
    /* Place it on the far right of the mobile content area */
    position: relative;
    right: calc(50% - 225px); /* Max-width ke hisaab se right align kiya */
    /* Agar screen bahut choti hai to 20px padding maintain karega */
    margin-right: max(20px, calc(50% - 225px - 20px)); 
    margin-left: auto; /* Left margin ko auto kiya */
}

@media (max-width: 450px) {
    /* Mobile par ise seedha 20px right se set kiya */
    .fixed-whatsapp-btn a {
        right: 20px;
        margin-right: 0;
    }
}
@media (min-width: 451px) {
    /* Desktop par isko chupa diya ya max-width ke andar confine kiya */
    .fixed-whatsapp-btn a {
        right: calc(50% - 225px + 20px); /* 450px content width, isliye 225px half hai */
        margin-right: 0;
    }
}

.fixed-whatsapp-btn a:hover {
    transform: scale(1.05);
}


/* 7. Media Queries (Finalized) */

/* Mobile Mode (450px ya usse choti screen par) */
@media (max-width: 450px) {
    .navbar .menu-icon#openMenuBtn {
        display: block;
    }
}

/* Desktop Mode (451px ya usse badi screen par) */
@media (min-width: 451px) {
    .navbar .menu-icon,
    .navbar .menu-close-btn,
    .mobile-menu {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* FIX: Desktop par header ab transparent ho jayega */
    .fixed-header-wrapper {
        position: static;
        background-color: transparent;
        box-shadow: none;
    }
    
    .hero-section-with-fixed-header {
        padding-top: 20px; 
    }
}

/* ============================================== */
/* END: MOBILE MENU STYLES */
/* ============================================== */
