/* ============================================================
    5. GLOBAL UI COMPONENTS (Sliders, Cards, Banners)
   ============================================================ */
/* Shared Grids & Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    color: var(--text-dark);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--dropdown-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.service-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--brand-green);
    font-weight: bold;
}

/* Sliders & Hero Areas */
.slider {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;
    min-height: 420px;
    overflow: hidden;
}

.slide-track {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 500%;
    height: 100%;
    animation: slideShow 20s infinite linear;
}

.slide {
    flex: 0 0 20%;
    height: 100%;
}

@keyframes slideShow {

    0%,
    15% {
        transform: translateX(0);
    }

    20%,
    35% {
        transform: translateX(-20%);
    }

    40%,
    55% {
        transform: translateX(-40%);
    }

    60%,
    75% {
        transform: translateX(-60%);
    }

    80%,
    95% {
        transform: translateX(-80%);
    }

    100% {
        transform: translateX(0);
    }
}

.slide img,
.contact-hero-container img,
.contact-hero-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.contact-hero-inner {
    width: 100%;
    height: 100%;
}

.contact-hero-container {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
    background: #000;
}

/* ==========================================
   Hero Section Text Overlay
   ========================================== */
.hero-inner,
.slider-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--hero-text);
    text-align: center;
    width: 90%;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.55);
    padding: 30px;
    border-radius: 10px;
    max-height: 90%;
    /* Prevent the box from being taller than the image */
    overflow-y: auto;
    /* Add scrollbar if content overflows */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

/* Override global h1/h2 color to ensure hero text is white */
.hero-inner h1,
.slider-overlay h2 {
    color: var(--hero-text);
}

/* Ensure all hero titles are white and have a consistent base size */
.hero-inner h1,
.hero-inner h2,
.slider-overlay h1,
.slider-overlay h2 {
    color: var(--hero-text);
}

/* Add a soft drop-shadow for readability */
.hero-inner h1,
.hero-inner p,
.slider-overlay h2,
.slider-overlay p {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(20, 20, 20, 0.95);
    color: var(--text-dark);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.cookie-text a {
    color: var(--brand-green);
    text-decoration: underline;
}

.cookie-btn {
    background: var(--brand-green);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.cookie-btn:hover {
    background: var(--dropdown-hover);
}

/* iOS Prompt */
.ios-prompt {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: var(--card-bg);
    color: var(--text-dark);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    border: 2px solid var(--brand-green);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.ios-prompt-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.ios-prompt-icon img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.ios-prompt-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-dark);
}

.ios-prompt-close {
    position: absolute;
    top: -10px;
    right: -5px;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

/* ============================================================
    Why Choose Us / Benefit Cards (Shared Component)
   ============================================================ */
.why-choose-us {
    background-color: var(--dark-bg);
    margin-top: 80px;
    padding: 80px 8%;
    text-align: center;
    border-top: 1px solid var(--dropdown-border);
}

.why-choose-us h2 {
    margin-top: 0;
    font-size: 2rem;
    color: var(--brand-green);
    margin-bottom: 15px;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.benefits-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 850px;
    margin: 0 auto;
}

.benefit-card {
    background: var(--card-bg);
    border: 1px solid var(--dropdown-border);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.card-header i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--brand-green);
}

.card-header h3,
.card-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.benefit-card p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-light);
}

/* ============================================================
    6. TOOL PAGES & FORUM LAYOUTS
   ============================================================ */
.dns-page-wrapper {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding-bottom: 40px;
}

header.dns-header {
    background: var(--card-bg);
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    border-bottom: 2px solid var(--dropdown-border);
    color: var(--text-dark);
    text-align: center;
}

.dns-container {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 600px;
    align-items: flex-start;
}

.tool-sidebar-column {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tool-sidebar a,
.tool-sidebar button {
    background: var(--card-bg);
    color: var(--text-light);
    border: 1px solid var(--dropdown-border);
    padding: 12px 15px;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    width: 100%;
}

.tool-sidebar a:hover,
.tool-sidebar button:hover {
    background: #252525;
    color: var(--text-dark);
}

.tool-sidebar a.active,
.tool-sidebar button.active {
    background: #25D366;
    color: #000;
    border-color: #25D366;
    font-weight: bold;
}

input[type=text].dns-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--dropdown-border);
    background: var(--dark-bg);
    color: var(--text-dark);
    border-radius: 4px;
    font-size: 16px;
}

button.scan {
    padding: 12px 24px;
    background: #25D366;
    border: 1px solid #25D366;
    color: #000;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

button.scan:hover {
    background: #20ba5a;
    border-color: #20ba5a;
}

.result-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--dropdown-border);
    width: 100%;
    word-wrap: break-word;
}

.result-box h3,
.result-box p,
.result-box td,
.result-box th {
    color: var(--text-dark);
}

/* Forum Profile Links */
.nav-search {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.search-input {
    padding: 8px 35px 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--dropdown-border);
    background: rgba(0, 0, 0, 0.05);
    color: inherit;
    width: 220px;
    font-size: 0.9rem;
}

.nav-profile {
    margin-left: 15px;
}

.profile-link {
    padding: 8px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-link {
    color: var(--seo-red);
    font-size: 0.9rem;
}