/* =====================================================
   SERVICES PAGE – AVM NETWORKS LIMITED
   Independent Layout CSS
   Auto Height Sticky Sidebar + Responsive
===================================================== */

/* ===== BASE SPACING ===== */
.service-detail{
    padding:110px 22px 150px;
}

/* container */
.service-container{
    max-width:1280px;
    margin:0 auto;
}

/* ===== GRID LAYOUT ===== */
.service-layout{
    display:grid;
    grid-template-columns:300px minmax(0,1fr);
    gap:52px;
    align-items:flex-start;
}

/* ===== SIDEBAR ===== */
.service-sidebar{
    position:sticky;
    top:140px;
    align-self:start;
}

/* sidebar box (AUTO HEIGHT NOW) */
.service-index{
    background:rgba(255,255,255,0.08);
    border-radius:18px;
    padding:26px 22px;
    box-shadow:0 20px 45px rgba(0,0,0,0.25);
    backdrop-filter:blur(14px);

    height:auto;
    max-height:none;
    overflow:visible;
}

/* sidebar links */
.service-index a{
    display:block;
    padding:8px 0 8px 14px;
    color:#cbd5e1;
    text-decoration:none;
    border-left:3px solid transparent;
    transition:all .25s ease;
    font-size:15px;
    line-height:1.6;
}

.service-index a:hover{
    color:#38bdf8;
    border-left-color:rgba(56,189,248,0.5);
}

/* active section highlight */
.service-index a.active{
    color:#38bdf8;
    border-left-color:#38bdf8;
    font-weight:600;
}

/* ===== MAIN CONTENT ===== */
.service-main{
    min-width:0;
}

.service-content{
    display:flex;
    flex-direction:column;
    gap:44px;
}

/* ===== SECTIONS ===== */
.svc-section{
    background:rgba(255,255,255,0.07);
    padding:46px 48px;
    border-radius:22px;
    box-shadow:0 20px 45px rgba(0,0,0,0.28);
    backdrop-filter:blur(16px);
    scroll-margin-top:140px;
    text-align:center;
}

.svc-title{
    font-size:clamp(2.3rem,4vw,3rem);
    margin-bottom:18px;
}

.svc-section h2{
    font-size:1.7rem;
    margin-bottom:14px;
    color:#ffffff;
}

.svc-section p{
    max-width:820px;
    margin:0 auto;
    line-height:1.85;
    color:#dbeafe;
}

/* ===== CTA BUTTONS ===== */
.svc-cta-actions{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:16px;
    margin-top:26px;
    flex-wrap:wrap;
}

.btn-primary{
    padding:14px 34px;
    border-radius:30px;
    background:linear-gradient(135deg,#38bdf8,#0ea5e9);
    color:#fff;
    text-decoration:none;
    font-weight:600;
    transition:all .25s ease;
    box-shadow:0 12px 28px rgba(56,189,248,.45);
}

.btn-primary:hover{
    transform:translateY(-3px);
    box-shadow:0 20px 42px rgba(56,189,248,.6);
}

.btn-secondary{
    padding:14px 34px;
    border-radius:30px;
    border:1px solid #38bdf8;
    color:#38bdf8;
    text-decoration:none;
    font-weight:600;
    transition:all .25s ease;
}

.btn-secondary:hover{
    background:rgba(56,189,248,.15);
}

/* ===== CONTACT CTA SECTION ===== */
.svc-cta{
    background:rgba(56,189,248,.12);
}

/* ===== TABLET ===== */
@media(max-width:1024px){

    .service-layout{
        grid-template-columns:1fr;
    }

    .service-sidebar{
        display:none;
    }

    .service-detail{
        padding:100px 18px 130px;
    }

    .svc-section{
        padding:38px 30px;
    }
}

/* ===== MOBILE ===== */
@media(max-width:768px){

    .service-detail{
        padding:90px 14px 120px;
    }

    .service-content{
        gap:30px;
    }

    .svc-section{
        padding:28px 20px;
        border-radius:18px;
    }

    .svc-title{
        font-size:2rem;
    }

    .svc-section h2{
        font-size:1.35rem;
    }

    .svc-section p{
        font-size:14.7px;
    }

    .svc-cta-actions a{
        width:100%;
        text-align:center;
    }
}

/* ===== LARGE DESKTOP ===== */
@media(min-width:1500px){
    .service-container{
        max-width:1400px;
    }
}
