/* ============================================================
   DEDICATED SERVERS PAGE STYLES — Dinihost
   Harmonized with Dinihost Brand Colors & Smooth Animations
   ============================================================ */

:root {
    --ds-blue-deep:  #02345c;
    --ds-blue-mid:   #03416d;
    --ds-blue-brand: #166195;
    --ds-blue-light: #2280c3;
    --ds-sky:        #0e9aff;
    --ds-orange:     #ff8c00;
    --ds-green:      #22c55e;
    --ds-green-dk:   #16a34a;
    --ds-border:     #e2e8f0;
    --ds-text:       #1e293b;
    --ds-text-muted: #64748b;
    --ds-bg-light:   #f8fafc;
}

.ds-ds {
    background: #ffffff;
    color: var(--ds-text);
}

/* ── HERO ───────────────────────────────────────────────── */
.ds-ds-hero {
    width: 100%;
    min-height: 16rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, rgba(2, 52, 92, 0.92) 0%, rgba(3, 65, 109, 0.86) 60%, rgba(14, 154, 255, 0.42) 100%),
                url('../assets/dedicated/dedicated-servers-cover.jpeg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .ds-ds-hero {
        min-height: 25rem;
        padding: 5rem 1rem;
    }
}

.ds-ds-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(14, 154, 255, 0.22) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.ds-ds-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.ds-ds-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

.ds-ds-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: dsHeroFadeDown 0.6s ease-out both;
}

.ds-ds-hero-badge svg {
    color: #facc15;
    filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.6));
    animation: dsPulse 2s infinite ease-in-out;
}

.ds-ds-hero h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.18;
    text-transform: capitalize;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    animation: dsHeroFadeDown 0.8s ease-out both;
}

.ds-ds-hero h1 strong {
    font-weight: 800;
}

.ds-ds-hero p {
    margin: 0 auto;
    color: #e2e8f0;
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 52rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    animation: dsHeroFadeUp 0.9s ease-out both;
}

.ds-ds-inner {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 0.75rem;
}

@media (min-width: 1024px) {
    .ds-ds-inner {
        padding: 0 1.5rem;
    }
}

.ds-ds-plans {
    padding: 3.5rem 0 1.5rem;
}

/* ── COUNTRY TABS ───────────────────────────────────────── */
.ds-ph-country-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0 auto 2.5rem;
    padding: 0.45rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    width: fit-content;
    max-width: 100%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.ds-ph-country-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.6rem;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.2;
}

.ds-ph-country-tab-btn:hover {
    color: #02345c;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 52, 92, 0.08);
}

.ds-ph-country-tab-btn.is-active {
    background: linear-gradient(135deg, #166195 0%, #03416d 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(22, 97, 149, 0.35);
    transform: translateY(-1px);
}

.ds-country-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease;
}

.ds-ph-country-tab-btn:hover .ds-country-flag {
    transform: scale(1.12);
}

.ds-ph-country-tab-content {
    display: none;
}

.ds-ph-country-tab-content.is-active {
    display: block;
    animation: dsPhFadeIn 0.35s ease;
}

@keyframes dsPhFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── DEDICATED SERVER CARD & ROWS ───────────────────────── */
.ds-ds-card {
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--ds-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    transition: box-shadow 0.3s ease;
}

.ds-ds-card:hover {
    box-shadow: 0 8px 30px rgba(2, 52, 92, 0.08);
}

.ds-ds-card-head {
    padding: 1.6rem 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--ds-border);
}

.ds-ds-card-head h2 {
    margin: 0 0 0.25rem;
    font-size: 1.65rem;
    font-weight: 800;
    color: #02345c;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.ds-ds-card-subtitle {
    margin: 0;
    font-size: 0.925rem;
    color: #64748b;
    font-weight: 500;
}

.ds-ds-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ds-ds-table-inner {
    min-width: 980px;
}

.ds-ds-row {
    display: grid;
    grid-template-columns: 2.3fr 1.25fr 1.15fr 1.3fr 1fr 1.1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ds-ds-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #166195 0%, #22c55e 100%);
    opacity: 0;
    transform: scaleY(0.6);
    transition: all 0.25s ease;
}

.ds-ds-row:hover {
    background: #fafbfc;
    box-shadow: 0 6px 18px rgba(2, 52, 92, 0.06);
    z-index: 2;
}

.ds-ds-row:hover::before {
    opacity: 1;
    transform: scaleY(1);
}

.ds-ds-proc {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ds-ds-proc img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.ds-ds-row:hover .ds-ds-proc img {
    transform: scale(1.1);
}

.ds-ds-proc-info h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e2022;
    line-height: 1.3;
    transition: color 0.25s ease;
}

.ds-ds-row:hover .ds-ds-proc-info h4 {
    color: #166195;
}

.ds-ds-proc-info p {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.3;
}

.ds-ds-spec {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.ds-ds-spec-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.ds-ds-row:hover .ds-ds-spec-icon {
    transform: scale(1.15);
}

.ds-ds-spec-icon svg {
    width: 22px;
    height: 22px;
    transition: transform 0.25s ease;
}

/* Color-coded spec category icons */
.ds-ds-spec:nth-of-type(1) .ds-ds-spec-icon svg { stroke: #8b5cf6; } /* Memory - Purple */
.ds-ds-spec:nth-of-type(2) .ds-ds-spec-icon svg { stroke: #f59e0b; } /* Speed - Amber */
.ds-ds-spec:nth-of-type(3) .ds-ds-spec-icon svg { stroke: #0284c7; } /* Storage - Sky Blue */
.ds-ds-spec:nth-of-type(4) .ds-ds-spec-icon svg { stroke: #10b981; } /* Bandwidth - Emerald */
.ds-ds-spec:nth-of-type(5) .ds-ds-spec-icon svg { stroke: #ef4444; } /* IP/Location - Red */

.ds-ds-spec-data .label {
    margin: 0;
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.2;
}

.ds-ds-spec-data .value {
    margin: 0.15rem 0 0;
    font-size: 0.935rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
}

.ds-ds-price-wrap {
    text-align: right;
}

.ds-ds-price {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    letter-spacing: -0.3px;
}

.ds-ds-cta-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.ds-ds-cta-wrap .ds-service-btn,
.ds-ds-cta-wrap .ds-ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 135px;
    min-width: 135px;
    max-width: 135px;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    padding: 0 0.5rem !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
    margin: 0;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.28);
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ds-ds-cta-wrap .ds-service-btn::before,
.ds-ds-cta-wrap .ds-ds-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.ds-ds-cta-wrap .ds-service-btn:hover::before,
.ds-ds-cta-wrap .ds-ds-btn:hover::before {
    left: 140%;
}

.ds-ds-cta-wrap .ds-service-btn:hover,
.ds-ds-cta-wrap .ds-ds-btn:hover {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%) !important;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.42);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.ds-ds-note {
    margin: 0;
    text-align: center;
    background: linear-gradient(90deg, #02345c 0%, #166195 100%);
    color: #ffffff;
    padding: 0.95rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* ── SECTION HEADER UTILITIES ───────────────────────────── */
.ds-section-header-center {
    text-align: center;
    margin-bottom: 2.5rem;
}

.ds-section-header-center h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.875rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #02345c;
    letter-spacing: -0.3px;
}

.ds-section-sub {
    margin: 0 auto;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.ds-badge-pill {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 9999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.ds-badge-pill-light {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ds-divider-bar {
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, #166195, #22c55e, #ff8c00);
    margin: 12px auto 0;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(22, 97, 149, 0.25);
}

.ds-divider-bar-light {
    background: linear-gradient(90deg, #22c55e, #0e9aff, #ff8c00);
    box-shadow: 0 2px 8px rgba(14, 154, 255, 0.35);
}

/* ── OPERATING SYSTEMS ──────────────────────────────────── */
.ds-ds-os {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid #f1f5f9;
}

.ds-ds-os-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
    .ds-ds-os-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .ds-ds-os-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .ds-ds-os-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.ds-ds-os-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.8rem 1rem;
    background: #ffffff;
    border: 1px solid var(--ds-border);
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.ds-ds-os-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #166195, #0e9aff);
    transform: scaleX(0);
    transition: transform 0.28s ease;
}

.ds-ds-os-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 28px -4px rgba(2, 52, 92, 0.1);
    border-color: #93c5fd;
}

.ds-ds-os-card:hover::before {
    transform: scaleX(1);
}

.ds-ds-os-card img {
    width: 4.25rem;
    height: 4.25rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ds-ds-os-card:hover img {
    transform: scale(1.12);
}

.ds-ds-os-card p {
    margin: 1rem 0 0;
    font-size: 0.925rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    transition: color 0.25s ease;
}

.ds-ds-os-card:hover p {
    color: #166195;
}

/* ── OVERVIEW / INFO SECTION ────────────────────────────── */
.ds-ds-info-section {
    padding: 4rem 0 1.5rem;
    text-align: center;
    background: #ffffff;
}

.ds-ds-info-block {
    max-width: 920px;
    margin: 0 auto;
    padding: 2.75rem 2rem;
    background: #f8fafc;
    border: 1px solid var(--ds-border);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(2, 52, 92, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ds-ds-info-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(2, 52, 92, 0.08);
    border-color: #cbd5e1;
}

.ds-ds-info-block h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.85rem, 3vw, 2.3rem);
    font-weight: 800;
    color: #02345c;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.ds-ds-info-block p {
    margin: 1rem 0 0;
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.75;
    font-weight: 400;
}

/* ── SPECIALTY SECTION ──────────────────────────────────── */
.ds-ds-specialty {
    margin-top: 3.5rem;
    padding: 5rem 0 5.5rem;
    width: 100%;
    background: linear-gradient(135deg, #02345c 0%, #03416d 60%, #02233f 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.ds-ds-specialty::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 850px;
    height: 850px;
    background: radial-gradient(circle, rgba(14, 154, 255, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.ds-ds-specialty > .ds-ds-inner > .ds-section-header-center h2 {
    color: #ffffff;
}

.ds-ds-specialty-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
    grid-template-columns: 1fr;
    position: relative;
    z-index: 2;
}

@media (min-width: 640px) {
    .ds-ds-specialty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .ds-ds-specialty-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ds-ds-specialty-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 1.75rem;
    border-radius: 14px;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ds-ds-specialty-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.ds-ds-specialty-card img {
    max-width: 4.5rem;
    width: 100%;
    height: 4.5rem;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ds-ds-specialty-card:hover img {
    transform: scale(1.12) rotate(-3deg);
}

.ds-ds-specialty-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
}

.ds-ds-specialty-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cbd5e1;
    font-weight: 400;
}

.ds-ds-br {
    display: none;
}

@media (min-width: 768px) {
    .ds-ds-br {
        display: inline;
    }
}

/* ── KEYFRAME ANIMATIONS ────────────────────────────────── */
@keyframes dsHeroFadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dsHeroFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dsPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}
    }