/* =========================================
   Layout Fixes & Animations
   ========================================= */

/* 1. Partners Marquee (About Page) */
.trust-strip {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 40px 0;
    overflow: hidden;
    position: relative;
    max-width: 100vw;
}

.trust-strip::before,
.trust-strip::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.trust-strip::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.trust-strip::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

.partners-track {
    display: flex !important;
    align-items: center;
    gap: 60px;
    width: max-content !important;
    animation: scroll 40s linear infinite;
    padding-left: 60px;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 40px));
    }
}

.partner-logo {
    font-size: 1.6rem;
    color: #94a3b8;
    /* Slate-400 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    cursor: default;
    white-space: nowrap;
}

.partner-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

/* Brand Colors (Hover) */
.partner-logo.brand-intel:hover {
    color: #0071C5;
}

.partner-logo.brand-dell:hover {
    color: #306998;
}

.partner-logo.brand-amd:hover {
    color: #ED1C24;
}

.partner-logo.brand-cloudlinux:hover {
    color: #2C6FD0;
}

.partner-logo.brand-cpanel:hover {
    color: #FF6C2C;
}

.partner-logo.brand-litespeed:hover {
    color: #0088CC;
}

.partner-logo.brand-immunify:hover {
    color: #34495e;
}


/* 2. Hosting Pricing Grid (Hosting Page) */
.pricing-grid {
    /* Define grid structure but do not force display:grid globally */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    margin-top: 30px;
    display: none;
    /* Hide by default */
}

.pricing-grid.active {
    display: grid !important;
    /* Show only when active */
}

/* Ensure cards take full height */
.pricing-card {
    height: 100%;
    margin: 0 !important;
    width: auto !important;
}

/* Responsive */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    }
}

/* =========================================
   3. Enhanced Pricing Selector (Premium Look)
   ========================================= */

.processor-toggle-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0 auto 40px auto;
}

.proc-toggle-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.proc-toggle-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.proc-toggle-btn:hover:not(.active) {
    background: #f8fafc;
    color: var(--primary);
    border-color: #cbd5e1;
}

.pricing-period-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    background: #f1f5f9;
    padding: 8px;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.period-btn {
    background: transparent;
    border: none;
    padding: 10px 25px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

:root {
    --active-period-color: #4da8da;
}

.period-btn:hover {
    color: var(--active-period-color);
}

.period-btn.active {
    background: white;
    color: var(--active-period-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Old Price Strikethrough */
.old-price-display {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.8em;
    margin-right: 8px;
    font-weight: 500;
}

/* Discount Badge */
.discount-badge-dynamic {
    background: #ecfccb;
    color: #65a30d;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
}

/* Adjustments for Server Table */
.server-row-price .discount-badge-dynamic {
    display: inline-block;
    margin-top: 0;
    margin-left: 10px;
    background: #dcfce7;
    color: #16a34a;
}

/* 4. Global WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-float i {
    margin-top: 2px;
    /* slight visual adjustment */
}

/* =========================================
   Mega Menu Styles (Corporate)
   ========================================= */
/* Fix Positioning for Centered Mega Menu */
/* Reverted per user request for individual widths */

.dropdown-menu.mega-menu {
    width: max-content;
    min-width: 600px;
    max-width: 1200px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 25px;

    /* Center Relative to Parent Link */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    top: 100%;

    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown:hover .dropdown-menu.mega-menu {
    display: grid;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.3s ease;
    text-decoration: none;
    color: var(--text-main);
}

.mega-menu-item:hover {
    background: #f8fafc;
}

.mega-menu-icon {
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.mega-menu-content div {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.mega-menu-content span {
    font-size: 0.8rem;
    color: #94a3b8;
    display: block;
}

/* Mobile Responsive Fixes for Mega Menu */
@media (max-width: 968px) {
    .dropdown-menu.mega-menu {
        width: 100%;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        grid-template-columns: 1fr;
        display: none;
    }

    .mobile-dropdown.active .dropdown-menu.mega-menu {
        display: grid;
    }
}

/* =========================================
   5. Standardized Price Typography 
   ========================================= */

/* General Pricing Cards */
.price {
    font-family: 'Outfit', sans-serif;
    color: #0f172a;
    /* Dark Slate */
    display: flex !important;
    align-items: baseline;
    gap: 4px;
    margin-top: 10px;
}

/* Table Pricing */
.server-row-price {
    font-family: 'Outfit', sans-serif;
    color: #0f172a;
    display: flex !important;
    align-items: baseline;
    justify-content: flex-start;
    gap: 4px;
}

/* The Amount Number itself */
.price .amount,
.server-row-price .amount {
    font-size: 2.2rem !important;
    /* Large */
    font-weight: 800 !important;
    /* Bold */
    color: #0f172a !important;
    /* Dark color */
    line-height: 1;
    letter-spacing: -0.5px;
}

/* Currency and Period (Unit) */
.price .currency,
.price .period,
.server-row-price span:not(.amount) {
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    color: #64748b !important;
    /* Muted slate */
}

/* Specific Tweaks for Table Context */
.server-row-price span:not(.amount) {
    font-size: 0.9rem !important;
}

/* Override for specific colored pages if needed, but keeping base standardized */

/* =========================================
   6. VDS Pricing Table Enhancements (Wide & Compact)
   ========================================= */

/* Full Width Container - Centered Alignment Locked (Restore Site Scale) */
#pricing .container {
    max-width: 98% !important;
    width: 98% !important;
    /* Standard site container width */
    padding: 0 40px !important;
    margin: 0 auto !important;
}

/* Table Container - Fused Design with Border and Radius */
.server-table-container {
    font-size: 0.95rem;
    width: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden !important;
    /* Clips internal rows to the radius */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* Webkit Scrollbar Styling */
.server-table-container::-webkit-scrollbar {
    height: 8px;
}

.server-table-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.server-table-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.server-table-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Fixed Grid Columns - Locked Spacing (NO SCROLL ON DESKTOP) */
.server-table-header,
.server-table-row {
    display: grid;
    /* Name | CPU | RAM | Disk | Price | Button */
    /* Strict fluid layout: minmax(0, Xfr) prevents content from expanding tracks unevenly */
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 150px !important;
    gap: 100px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    align-items: center;
}

@media (max-width: 1600px) {

    .server-table-header,
    .server-table-row {
        gap: 60px !important;
    }
}

@media (max-width: 1400px) {

    .server-table-header,
    .server-table-row {
        gap: 40px !important;
    }
}

.server-table-header {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 20px 25px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.server-table-row {
    padding: 15px 25px !important;
    background: white;
    margin-bottom: 0 !important;
    /* Fused look */
    border-radius: 0 !important;
    /* Handled by container */
    min-height: 80px;
    transition: all 0.2s ease;
    align-items: center;
    border-bottom: 1px solid #f1f5f9 !important;
}

.server-table-row:last-of-type {
    border-bottom: none !important;
}

/* Force remove any conflicting borders from featured rows */
.server-table-row[style*="background: #f0f7ff"] {
    border-left: none !important;
}

/* Row Content Scaling */
.server-row-name {
    justify-self: start;
}

.server-row-name h4 {
    font-size: 1.15rem !important;
    margin-bottom: 2px;
    /* Tight spacing */
    white-space: nowrap;
    /* Prevent wrapping */
}

.server-row-name p {
    font-size: 0.8rem !important;
    white-space: nowrap;
}

.server-row-spec {
    font-size: 0.9rem !important;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    justify-self: start;
    width: 100%;
    gap: 12px;
    /* Fixed gap for vertical text alignment */
}

.server-row-spec i {
    font-size: 1.05rem !important;
    width: 30px;
    /* Locked width */
    display: inline-flex;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

/* Price Scaling */
.server-row-price {
    flex-wrap: nowrap !important;
    /* Force single line */
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
    justify-content: flex-start;
    justify-self: start;
    width: 100%;
}

.server-row-price .amount {
    font-size: 1.9rem !important;
    font-weight: 800 !important;
    line-height: 1;
}

.server-row-price span:not(.amount) {
    font-size: 0.85rem !important;
    margin-bottom: 0;
    opacity: 0.8;
}

/* Button & Action Column Fix */
.server-row-action {
    justify-self: start;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.server-table-row .btn {
    padding: 8px 12px !important;
    width: 100%;
    max-width: 140px;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    height: auto !important;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hover Effect - Subtle within container */
.server-table-row:hover {
    background: #f8fafc !important;
    z-index: 10;
    position: relative;
    box-shadow: inset 4px 0 0 var(--primary) !important;
    /* Left accent line */
}

/* Responsive Handling - Only enable scroll on very small screens (mobile) */
@media (max-width: 1180px) {
    .server-table-container {
        overflow-x: auto !important;
        padding-bottom: 15px;
    }
}

/* Table Container - Fused Design with Border and Radius */
.server-table-container {
    font-size: 0.95rem;
    width: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden !important;
    /* Clips internal rows to the radius */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* Webkit Scrollbar Styling */
.server-table-container::-webkit-scrollbar {
    height: 8px;
}

.server-table-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.server-table-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.server-table-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Fixed Grid Columns - Locked Spacing (NO SCROLL ON DESKTOP) */
.server-table-header,
.server-table-row {
    display: grid;
    /* Name | CPU | RAM | Disk | Price | Button */
    /* Strict fluid layout: minmax(0, Xfr) prevents content from expanding tracks unevenly */
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 150px !important;
    gap: 100px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    align-items: center;
}

@media (max-width: 1600px) {

    .server-table-header,
    .server-table-row {
        gap: 60px !important;
    }
}

@media (max-width: 1400px) {

    .server-table-header,
    .server-table-row {
        gap: 40px !important;
    }
}

.server-table-header {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 20px 25px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.server-table-row {
    padding: 15px 25px !important;
    background: white;
    margin-bottom: 0 !important;
    /* Fused look */
    border-radius: 0 !important;
    /* Handled by container */
    min-height: 80px;
    transition: all 0.2s ease;
    align-items: center;
    border-bottom: 1px solid #f1f5f9 !important;
}

.server-table-row:last-of-type {
    border-bottom: none !important;
}

/* Force remove any conflicting borders from featured rows */
.server-table-row[style*="background: #f0f7ff"] {
    border-left: none !important;
}

/* Row Content Scaling */
.server-row-name {
    justify-self: start;
}

.server-row-name h4 {
    font-size: 1.15rem !important;
    margin-bottom: 2px;
    /* Tight spacing */
    white-space: nowrap;
    /* Prevent wrapping */
}

.server-row-name p {
    font-size: 0.8rem !important;
    white-space: nowrap;
}

.server-row-spec {
    font-size: 0.9rem !important;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    justify-self: start;
    width: 100%;
    gap: 12px;
    /* Fixed gap for vertical text alignment */
}

.server-row-spec i {
    font-size: 1.05rem !important;
    width: 30px;
    /* Locked width */
    display: inline-flex;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

/* Price Scaling */
.server-row-price {
    flex-wrap: nowrap !important;
    /* Force single line */
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
    justify-content: flex-start;
    justify-self: start;
    width: 100%;
}

.server-row-price .amount {
    font-size: 1.9rem !important;
    font-weight: 800 !important;
    line-height: 1;
}

.server-row-price span:not(.amount) {
    font-size: 0.85rem !important;
    margin-bottom: 0;
    opacity: 0.8;
}

/* Button & Action Column Fix */
.server-row-action {
    justify-self: start;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.server-table-row .btn {
    padding: 8px 12px !important;
    width: 100%;
    max-width: 140px;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    height: auto !important;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hover Effect - Subtle within container */
.server-table-row:hover {
    background: #f8fafc !important;
    z-index: 10;
    position: relative;
    box-shadow: inset 4px 0 0 var(--primary) !important;
    /* Left accent line */
}

/* Responsive Handling - Only enable scroll on very small screens (mobile) */
@media (max-width: 1180px) {
    .server-table-container {
        overflow-x: auto !important;
        padding-bottom: 15px;
    }
}

/* SEO Section Styles */
.seo-section {
    padding: 80px 0;
    overflow: hidden;
    background: #ffffff;
    color: var(--text-main);
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.seo-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #0f172a;
    line-height: 1.1;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.seo-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.seo-content .highlight {
    color: #0f172a;
    font-weight: 700;
}

.seo-features {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.seo-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e2e8f0;
}

.seo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.seo-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.seo-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.seo-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--primary);
    font-size: 1.2rem;
}

.seo-visual img {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .seo-section {
        padding: 60px 0;
    }

    .seo-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .seo-content h2 {
        font-size: 2.2rem;
    }

    .seo-features {
        justify-content: center;
    }

    .seo-list {
        text-align: left;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Force visual on top for all grids on mobile */
    .seo-grid .seo-visual {
        order: -1;
    }
}

/* Footer Visibility Fix */
footer .footer-col h3,
footer .footer-col h4 {
    color: #ffffff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 1.1rem !important;
    margin-bottom: 25px !important;
    font-weight: 700 !important;
}