/* =========================================================
   DEVOPS TECHNOLOGIES PAGE
   Mobile + Desktop | Dark + Light Mode | Dhanish Empower
========================================================= */

.devops-page {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text, #ffffff);
    background:
            radial-gradient(circle at 8% 0%, rgba(56, 189, 248, 0.16), transparent 30%),
            radial-gradient(circle at 92% 18%, rgba(34, 211, 238, 0.10), transparent 32%),
            linear-gradient(180deg, #07111f, #0f172a);
}

body.light .devops-page {
    color: #0f172a;
    background:
            radial-gradient(circle at 8% 0%, rgba(2, 132, 199, 0.12), transparent 32%),
            radial-gradient(circle at 95% 18%, rgba(186, 230, 253, 0.60), transparent 34%),
            linear-gradient(180deg, #f8fafc, #eef7ff);
}

.devops-page .container {
    max-width: 1180px;
}

/* HERO */
.devops-hero {
    position: relative;
    padding: 118px 0 76px;
    overflow: hidden;
}

.devops-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
            linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at 50% 40%, black, transparent 74%);
}

body.light .devops-mesh {
    background:
            linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
}

.devops-breadcrumb {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 0.86rem;
    font-weight: 850;
}

.devops-breadcrumb a {
    color: var(--primary, #38bdf8) !important;
    text-decoration: none;
}

.devops-breadcrumb a:hover {
    text-decoration: underline;
}

.devops-breadcrumb span {
    opacity: 0.75;
}

.devops-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 54px;
    align-items: center;
}

.devops-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    border-radius: 999px;
    color: var(--primary, #38bdf8);
    background: rgba(56, 189, 248, 0.13);
    border: 1px solid rgba(56, 189, 248, 0.22);
    font-size: 0.82rem;
    font-weight: 950;
}

.devops-hero-copy h1 {
    max-width: 850px;
    margin: 22px 0 20px;
    font-size: clamp(3.1rem, 6vw, 6.4rem);
    line-height: 0.94;
    letter-spacing: -0.07em;
    font-weight: 950;
    color: var(--text, #ffffff);
}

body.light .devops-hero-copy h1 {
    color: #0f172a;
}

.devops-hero-copy h1 span {
    display: block;
    background: linear-gradient(90deg, #38bdf8, #22d3ee, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.devops-hero-copy p {
    max-width: 780px;
    color: var(--text, #ffffff);
    opacity: 0.82;
    font-size: 1.08rem;
    line-height: 1.75;
    font-weight: 650;
}

body.light .devops-hero-copy p {
    color: #334155;
    opacity: 1;
}

.devops-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.devops-btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 950;
    text-decoration: none;
    transition: 0.25s ease;
}

.devops-btn.primary {
    color: #06111f !important;
    background: linear-gradient(135deg, #67e8f9, #38bdf8, #818cf8);
    box-shadow: 0 18px 45px rgba(56, 189, 248, 0.24);
}

.devops-btn.secondary {
    color: var(--text, #ffffff) !important;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(125, 211, 252, 0.22);
}

body.light .devops-btn.secondary {
    color: #0f172a !important;
    background: rgba(2, 132, 199, 0.07);
    border-color: rgba(2, 132, 199, 0.16);
}

.devops-btn:hover {
    transform: translateY(-3px);
}

.devops-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    color: var(--text, #ffffff);
    opacity: 0.82;
    font-size: 0.9rem;
    font-weight: 850;
}

body.light .devops-proof {
    color: #334155;
    opacity: 1;
}

.devops-proof span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.devops-proof i {
    color: var(--primary, #38bdf8);
}

/* HERO PIPELINE */
.devops-hero-visual {
    position: relative;
}

.devops-hero-visual::before {
    content: "";
    position: absolute;
    inset: -60px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 62%);
    filter: blur(18px);
}

.pipeline-card {
    position: relative;
    overflow: hidden;
    max-width: 560px;
    margin-left: auto;
    padding: 24px;
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(125, 211, 252, 0.20);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(20px);
}

body.light .pipeline-card {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

.pipeline-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.pipeline-top span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #38bdf8;
    opacity: 0.8;
}

.pipeline-top strong {
    margin-left: auto;
    color: var(--text, #ffffff);
    opacity: 0.72;
    font-size: 0.84rem;
}

body.light .pipeline-top strong {
    color: #334155;
}

.pipeline-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(125, 211, 252, 0.16);
}

.pipeline-step.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(129, 140, 248, 0.10));
}

body.light .pipeline-step {
    background: rgba(2, 132, 199, 0.055);
}

.pipeline-step i {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--primary, #38bdf8);
    background: rgba(56, 189, 248, 0.13);
    font-size: 1.25rem;
}

.pipeline-step small {
    color: var(--primary, #38bdf8);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 950;
    font-size: 0.72rem;
}

.pipeline-step strong {
    display: block;
    margin-top: 3px;
    color: var(--text, #ffffff);
    font-weight: 950;
}

body.light .pipeline-step strong {
    color: #0f172a;
}

.pipeline-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.pipeline-metrics div {
    text-align: center;
    padding: 12px 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(125, 211, 252, 0.16);
}

body.light .pipeline-metrics div {
    background: rgba(2, 132, 199, 0.055);
}

.pipeline-metrics strong {
    display: block;
    color: var(--primary, #38bdf8);
    font-weight: 950;
}

.pipeline-metrics span {
    font-size: 0.72rem;
    color: var(--text, #ffffff);
    opacity: 0.72;
    font-weight: 850;
}

body.light .pipeline-metrics span {
    color: #334155;
    opacity: 1;
}

/* COMMON SECTIONS */
.devops-section {
    padding: 76px 0;
}

.section-heading {
    max-width: 860px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading span {
    color: var(--primary, #38bdf8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 950;
    font-size: 0.76rem;
}

.section-heading h2 {
    margin: 10px 0 12px;
    color: var(--text, #ffffff);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    font-weight: 950;
}

.section-heading p {
    color: var(--text, #ffffff);
    opacity: 0.74;
    line-height: 1.7;
    font-weight: 650;
}

body.light .section-heading h2 {
    color: #0f172a;
}

body.light .section-heading p {
    color: #475569;
    opacity: 1;
}

/* INFO CARDS */
.course-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.course-info-card,
.faq-card,
.ad-placeholder-content {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 28px;
    color: var(--text, #ffffff);
    background:
            radial-gradient(circle at top right, rgba(56, 189, 248, 0.13), transparent 38%),
            var(--card, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--navbar-border, rgba(255, 255, 255, 0.12));
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
}

.course-info-card i {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 18px;
    color: var(--primary, #38bdf8);
    background: rgba(56, 189, 248, 0.13);
    border: 1px solid rgba(56, 189, 248, 0.18);
    font-size: 1.45rem;
}

.course-info-card h2 {
    font-size: 1.25rem;
    font-weight: 950;
    margin-bottom: 10px;
}

.course-info-card p,
.faq-card p,
.ad-placeholder-content p {
    margin-bottom: 0;
    color: var(--text, #ffffff);
    opacity: 0.76;
    line-height: 1.65;
    font-weight: 600;
}

body.light .course-info-card,
body.light .faq-card,
body.light .ad-placeholder-content {
    background:
            radial-gradient(circle at top right, rgba(2, 132, 199, 0.10), transparent 38%),
            #ffffff;
    color: #0f172a;
    border-color: rgba(2, 132, 199, 0.14);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

body.light .course-info-card p,
body.light .faq-card p,
body.light .ad-placeholder-content p {
    color: #475569;
    opacity: 1;
}

/* PATH CARDS */
.devops-path-section {
    background:
            radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 30%),
            transparent;
}

.devops-course-section {
    background:
            radial-gradient(circle at top right, rgba(56, 189, 248, 0.10), transparent 35%),
            rgba(255, 255, 255, 0.02);
}

body.light .devops-course-section {
    background:
            radial-gradient(circle at top right, rgba(2, 132, 199, 0.08), transparent 35%),
            rgba(255, 255, 255, 0.35);
}

.devops-path-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.devops-path-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 112px;
    padding: 20px;
    border-radius: 24px;
    text-decoration: none;
    color: var(--text, #ffffff) !important;
    background:
            radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 40%),
            var(--card, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--navbar-border, rgba(255, 255, 255, 0.12));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
    transition: 0.25s ease;
}

.devops-path-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary, #38bdf8);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.devops-path-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.18);
    font-size: 1.55rem;
}

.devops-path-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.devops-path-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.devops-path-title {
    color: var(--text, #ffffff);
    font-size: 1.06rem;
    line-height: 1.3;
    font-weight: 950;
}

.devops-path-subtitle {
    margin-top: 4px;
    color: var(--text, #ffffff);
    opacity: 0.72;
    font-size: 0.9rem;
    line-height: 1.45;
    font-weight: 600;
}

.topic-arrow {
    margin-left: auto;
    color: var(--primary, #38bdf8);
    font-size: 1.25rem;
    font-weight: 950;
}

body.light .devops-path-card {
    background:
            radial-gradient(circle at top right, rgba(2, 132, 199, 0.10), transparent 40%),
            #ffffff;
    color: #0f172a !important;
    border-color: rgba(2, 132, 199, 0.14);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

body.light .devops-path-title {
    color: #0f172a;
}

body.light .devops-path-subtitle {
    color: #475569;
    opacity: 1;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.faq-card h3 {
    font-size: 1.05rem;
    font-weight: 950;
    margin-bottom: 10px;
}

/* AD */
.course-ad-section {
    padding: 40px 0 80px;
}

.ad-placeholder-content {
    text-align: center;
}

.ad-placeholder-content h4 {
    font-weight: 950;
    margin-bottom: 8px;
}

/* READING PROGRESS */
#readingProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    z-index: 99999;
    background: linear-gradient(90deg, #38bdf8, #22d3ee, #818cf8);
}

/* TABLET */
@media (max-width: 991px) {
    .devops-hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .devops-hero-copy {
        text-align: center;
    }

    .devops-hero-copy h1,
    .devops-hero-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .devops-actions,
    .devops-proof {
        justify-content: center;
    }

    .devops-hero-visual {
        max-width: 620px;
        width: 100%;
        margin: auto;
    }

    .pipeline-card {
        margin: auto;
    }

    .course-info-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .devops-hero {
        padding: 92px 0 46px;
    }

    .devops-breadcrumb {
        font-size: 0.76rem;
        margin-bottom: 18px;
    }

    .devops-hero-copy {
        text-align: left;
    }

    .devops-badge {
        font-size: 0.72rem;
        padding: 7px 11px;
    }

    .devops-hero-copy h1 {
        font-size: clamp(2.25rem, 12vw, 3.2rem);
        line-height: 1.03;
        letter-spacing: -0.055em;
        margin: 18px 0 16px;
    }

    .devops-hero-copy p {
        font-size: 0.95rem;
        line-height: 1.62;
    }

    .devops-actions {
        flex-direction: column;
        gap: 10px;
    }

    .devops-btn {
        width: 100%;
        min-height: 48px;
        font-size: 0.9rem;
    }

    .devops-proof {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: start;
        gap: 8px;
        font-size: 0.8rem;
    }

    .pipeline-card {
        padding: 16px;
        border-radius: 24px;
        margin-top: 10px;
    }

    .pipeline-top strong {
        display: none;
    }

    .pipeline-step {
        padding: 12px;
        border-radius: 16px;
        gap: 10px;
    }

    .pipeline-step i {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 14px;
        font-size: 1rem;
    }

    .pipeline-step small {
        font-size: 0.58rem;
    }

    .pipeline-step strong {
        font-size: 0.82rem;
    }

    .pipeline-metrics {
        gap: 7px;
    }

    .pipeline-metrics div {
        padding: 9px 5px;
        border-radius: 14px;
    }

    .pipeline-metrics strong {
        font-size: 0.8rem;
    }

    .pipeline-metrics span {
        font-size: 0.56rem;
    }

    .devops-section {
        padding: 48px 0;
    }

    .section-heading {
        text-align: left;
        margin-bottom: 24px;
    }

    .section-heading h2 {
        font-size: 1.85rem;
        line-height: 1.12;
    }

    .section-heading p {
        font-size: 0.92rem;
    }

    .devops-path-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .devops-path-card {
        min-height: auto;
        padding: 16px;
        border-radius: 20px;
        align-items: flex-start;
    }

    .devops-path-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        border-radius: 15px;
        font-size: 1.25rem;
    }

    .devops-path-icon img {
        width: 28px;
        height: 28px;
    }

    .devops-path-title {
        font-size: 0.96rem;
    }

    .devops-path-subtitle {
        font-size: 0.82rem;
    }

    .topic-arrow {
        font-size: 1rem;
    }

    .course-info-card,
    .faq-card,
    .ad-placeholder-content {
        padding: 18px;
        border-radius: 20px;
    }

    .course-info-card h2 {
        font-size: 1.08rem;
    }

    .course-info-card p,
    .faq-card p,
    .ad-placeholder-content p {
        font-size: 0.88rem;
    }

    .faq-card h3 {
        font-size: 0.98rem;
    }

    .course-ad-section {
        padding: 24px 0 56px;
    }
}

/* SMALL MOBILE */
@media (max-width: 390px) {
    .devops-hero-copy h1 {
        font-size: 2.15rem;
    }

    .pipeline-metrics {
        grid-template-columns: 1fr;
    }
}