/* =========================================================
   GTZHOST - CARRIERS SECTION FULL CSS
   ========================================================= */

/* --- CSS VARIABLES (COLORS) --- */
:root {
    /* Primary Colors */
    --primary-color: #0f2747;    /* Dark Navy */
    --primary-light: #1c355e;   /* Lighter Navy */
    --primary-bg: #223d69;      /* For Inner Boxes */

    /* Secondary/Neutral Colors */
    --secondary-bg: #f4f6fb;    /* Global Background */
    --secondary-text: #6b7a90;  /* Paragraph Text */
    
    /* Accent Colors */
    --accent-red: #d12020;      /* Main Brand Red (Adjusted for image match) */
    --accent-red-hover: #b01b1b;
    --accent-light-red: #ffe5df; /* For Badges */

    /* Generic */
    --white: #ffffff;
    --text-dark: #0b1f3a;
    --border-color: #eef2f7;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    --transition: 0.3s ease;
}

/* --- GLOBAL STYLES --- */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--secondary-bg);
    color: var(--text-dark);
}

.container, .container-carriers {
    width: 90%;
    max-width: 1600px;
    margin: auto;
}

/* =========================================================
   MAIN PAGE STYLES (Hero, Region Cards)
   ========================================================= */

/* --- HERO & BANNER SECTION --- */
.primary-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 280px;
    padding: 100px 0;
    color: var(--white);
    position: relative;
    flex-wrap: wrap;
}

.g-datacenters-backdrop {
    background-image: linear-gradient(90deg, rgba(10,20,40,0.9) 30%, rgba(10,20,40,0.4) 100%), 
                      url(/assets/img/resources/datacenter-hero.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.hero h1, .carrier-banner h1 {
    font-size: 48px;
    line-height: 1.2;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero h1 span, .carrier-banner h1 span {
    color: var(--accent-red);
}

.hero p, .carrier-banner p {
    margin: 20px 0;
    color: #cbd5e1;
    max-width: 550px;
}

/* --- REGION CARDS SECTION --- */
.section { padding: 80px 0; }
.section h2 { font-size: 32px; font-weight: 800; margin-bottom: 30px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    border: 1px solid transparent;
}
.card:hover { transform: translateY(-5px); border-color: var(--accent-red); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }

.badge {
    background: var(--accent-light-red);
    color: var(--accent-red);
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 700;
}

.card p { color: var(--secondary-text); font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.tags { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.tag { background: var(--border-color); padding: 18px; border-radius: 6px; font-size: 15px; text-align: center; font-weight: 500; color: #475569; }

/* --- BUTTONS --- */
.btn { display: inline-block; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: var(--transition); border: none; cursor: pointer; }
.btn-main { background: var(--accent-red); color: var(--white); }
.btn-main:hover { background: var(--accent-red-hover); transform: translateY(-2px); }
.btn-outline { background: var(--primary-light); color: var(--white); }

.view-btn {
    margin-top: 20px; display: block; padding: 12px; border-radius: 8px;
    background: #181616; color: var(--white); text-decoration: none;
    font-size: 14px; font-weight: 600; text-align: center; transition: var(--transition);
}
.view-btn:hover { background: var(--accent-red); }


/* =========================================================
   SUBPAGE SPECIFIC STYLES (Modern Card Layout)
   ========================================================= */

/* --- Breadcrumb --- */
.breadcrumb-bar {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    color: #666;
}
.breadcrumb-bar a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.breadcrumb-bar a:hover { text-decoration: underline; }

/* --- Subpage Layout --- */
.carrier-layout {
    display: flex;
    gap: 30px;
    padding: 40px 0;
    align-items: flex-start;
}

/* --- Content Area (Transparent bg, uses inner cards) --- */
.content-area {
    flex: 1;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.content-card {
    background: var(--white);
    border-radius: 12px;
    padding: 35px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}
.content-card h2 { margin-top: 0; font-size: 24px; color: var(--text-dark); margin-bottom: 15px; font-weight: 800; }
.content-card p { font-size: 15px; line-height: 1.7; color: var(--secondary-text); margin-bottom: 20px; }

/* --- Numbered Specs Grid (Like the image) --- */
.specs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
.spec-block {
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 10px;
    background: var(--text-dark);
    transition: var(--transition);
    color: white;
}
.spec-block:hover { border-color: var(--primary-light); box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.spec-block .num { font-size: 32px; font-weight: 800; color: #ffffff; margin-bottom: 15px; display: block; }
.spec-block h4 { margin: 0 0 10px 0; color: var(--text-dark); font-size: 18px; font-weight: 700; }
.spec-block p { margin: 0; font-size: 14px; color:  #ffffff; line-height: 1.5; }

/* --- Sidebar Styling (Matches Image) --- */
.sidebar {
    width: 320px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 25px 20px;
    position: sticky;
    top: 20px;
}
.sidebar-sub { font-size: 11px; color: var(--secondary-text); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; margin-bottom: 5px; display: block; }
.sidebar-title { font-size: 22px; font-weight: 800; color: var(--text-dark); margin-bottom: 25px; }

.region-group { margin-bottom: 5px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; padding-top: 10px; }
.region-group:last-child { border-bottom: none; }

.region-btn {
    width: 100%; background: none; border: none; text-align: left; padding: 10px 5px;
    font-size: 15px; font-weight: 700; color: var(--text-dark); cursor: pointer; 
    display: flex; justify-content: space-between; align-items: center; transition: var(--transition);
}
.region-btn:hover { color: var(--accent-red); }
.region-btn.active-region { color: var(--accent-red); }

.region-badge { background: var(--accent-light-red); color: var(--accent-red); font-size: 11px; padding: 3px 8px; border-radius: 20px; font-weight: 700; }

.region-links { list-style: none; padding: 10px 0 5px 20px; margin: 0; display: none; }
.region-links.show-links { display: block; }

.region-links li { margin-bottom: 5px; position: relative; }
/* Little dot for inactive links */
.region-links li::before { content: '•'; position: absolute; left: -10px; top: 10px; color: #cbd5e1; font-size: 18px; line-height: 1; }
/* Remove dot if the link inside is active */
.region-links li:has(.active-carrier)::before { display: none; }

.region-links a { 
    text-decoration: none; color: var(--secondary-text); display: block; 
    padding: 10px 15px; border-radius: 6px; font-size: 14px; font-weight: 600; transition: all 0.2s ease; 
}
.region-links a:hover { color: var(--text-dark); background: var(--secondary-bg); }

/* Solid Red Block for Active Carrier */
.region-links a.active-carrier { 
    background: var(--accent-red); 
    color: var(--white); 
    box-shadow: 0 4px 10px rgba(209, 32, 32, 0.2); 
}
.region-links a.active-carrier:hover { background: var(--accent-red-hover); color: var(--white); }

/* --- RESPONSIVE --- */
@media(max-width: 1200px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 900px) {
    .carrier-layout { flex-direction: column; }
    .sidebar { width: 100%; position: static; margin-bottom: 20px; }
    .specs-grid { grid-template-columns: 1fr; }
}

@media(max-width: 768px) {
    .primary-section { text-align: center; justify-content: center; }
    .hero h1, .carrier-banner h1 { font-size: 32px; }
    .hero p, .carrier-banner p { margin: 20px auto; }
    .grid { grid-template-columns: 1fr; }
}