/* ======================================================
   HOME PAGE
   ====================================================== */

/* ---------- Variables ---------- */

:root{

    --primary:#041EB1;
    --secondary:#2346D3;
    --accent:#FFD54F;
    --white:#ffffff;
    --dark:#1d1d1d;
    --gray:#666;
    --light:#f5f7fb;

    --shadow:0 10px 30px rgba(0,0,0,.08);

    --radius:18px;

}

/* ---------- Shared Container ---------- */

.container{

    width:min(1200px,92%);

    margin:auto;

}

/* ---------- Sections ---------- */

section{

    padding:90px 0;

}

.section-title{

    font-size:clamp(2rem,4vw,3rem);

    text-align:center;

    color:var(--primary);

    margin-bottom:60px;

    font-weight:700;

}

/* ======================================================
   HERO
   ====================================================== */

.hero{

    position:relative;

    margin-top:78px;

    min-height:calc(100vh - 78px);

    display:flex;

    align-items:center;

    overflow:hidden;

}

/* Hero Images */

.hero-slider{

    position:absolute;

    inset:0;

}

.hero-slider img{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

    opacity:0;

    transition:opacity 1.4s ease;

}

.hero-slider img.active{

    opacity:1;

}

/* Overlay */

.hero-overlay{

    position:absolute;

    inset:0;

    background:
    linear-gradient(
        rgba(0,0,0,.55),
        rgba(0,0,0,.45)
    );

    z-index:1;

}

/* Hero Content */

.hero-content{

    position:relative;

    z-index:2;

    width:min(650px,92%);

    margin-left:8%;

    color:white;

}

/* Subtitle */

.hero-subtitle{

    display:inline-block;

    font-size:1rem;

    text-transform:uppercase;

    letter-spacing:3px;

    color:var(--accent);

    margin-bottom:15px;

}

/* Heading */

.hero h1{

    font-size:clamp(2.5rem,6vw,4.5rem);

    line-height:1.1;

    margin-bottom:25px;

    font-weight:700;

}

/* Paragraph */

.hero p{

    font-size:clamp(1rem,2vw,1.3rem);

    color:#ececec;

    margin-bottom:40px;

    max-width:620px;

}

/* ======================================================
   BUTTONS
   ====================================================== */

.hero-buttons{

    display:flex;

    gap:18px;

    flex-wrap:wrap;

}

.btn{

    display:inline-flex;

    justify-content:center;

    align-items:center;

    padding:15px 34px;

    border-radius:999px;

    font-weight:600;

    transition:.35s;

    cursor:pointer;

}

.btn{

    background:var(--accent);

    color:#222;

}

.btn:hover{

    transform:translateY(-3px);

    box-shadow:0 12px 25px rgba(0,0,0,.2);

}

.btn-outline{

    background:transparent;

    color:white;

    border:2px solid white;

}

.btn-outline:hover{

    background:white;

    color:var(--primary);

}

/* ======================================================
   MOBILE HERO
   ====================================================== */

@media(max-width:768px){

.hero{

    margin-top:72px;

    min-height:75vh;

    text-align:center;

}

.hero-content{

    width:90%;

    margin:auto;

}

.hero-buttons{

    justify-content:center;

}

.hero h1{

    line-height:1.2;

}

.hero p{

    margin-inline:auto;

}

}

/* ======================================================
   WHY CHOOSE SMC
====================================================== */

.features-section{

    background:#ffffff;

}

.features{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

}

/* ---------- Card ---------- */

.card{

    background:#ffffff;

    border-radius:20px;

    padding:40px 30px;

    text-align:center;

    box-shadow:var(--shadow);

    transition:all .35s ease;

    border:1px solid rgba(0,0,0,.05);

    display:flex;

    flex-direction:column;

    justify-content:flex-start;

    height:100%;

}

.card:hover{

    transform:translateY(-12px);

    box-shadow:
    0 18px 40px rgba(0,0,0,.15);

}

/* ---------- Icon ---------- */

.icon{

    width:90px;

    height:90px;

    margin:0 auto 25px;

    border-radius:50%;

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:2.3rem;

    color:white;

}

/* ---------- Heading ---------- */

.card h3{

    color:var(--primary);

    font-size:1.35rem;

    margin-bottom:18px;

    font-weight:600;

}

/* ---------- Description ---------- */

.card p{

    color:var(--gray);

    font-size:.97rem;

    line-height:1.8;

    flex:1;

}

/* ======================================================
   HOVER EFFECT
====================================================== */

.card::before{

    content:"";

    position:absolute;

    inset:0;

    border-radius:20px;

    pointer-events:none;

    border:2px solid transparent;

    transition:.35s;

}

.card{

    position:relative;

    overflow:hidden;

}

.card:hover::before{

    border-color:rgba(35,70,211,.15);

}

/* ======================================================
   SIMPLE FADE ANIMATION
====================================================== */

.card{

    animation:fadeUp .8s ease both;

}

.card:nth-child(2){

    animation-delay:.15s;

}

.card:nth-child(3){

    animation-delay:.30s;

}

.card:nth-child(4){

    animation-delay:.45s;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(35px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ======================================================
   RESPONSIVE
====================================================== */

@media(max-width:1100px){

.features{

    grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:768px){

.features{

    grid-template-columns:1fr;

    gap:25px;

}

.card{

    padding:35px 25px;

}

.icon{

    width:80px;

    height:80px;

    font-size:2rem;

}

.card h3{

    font-size:1.2rem;

}

.card p{

    font-size:.95rem;

}

}

/* ======================================================
   LATEST NEWS
====================================================== */

.news-section{

    background:#f8f9fc;

    position:relative;

    overflow:hidden;

}

/* ---------- News Slider ---------- */

.news-container{

    display:flex;

    gap:30px;

    overflow-x:auto;

    scroll-behavior:smooth;

    scroll-snap-type:x mandatory;

    scrollbar-width:none;

    padding:10px 5px 25px;

}

.news-container::-webkit-scrollbar{

    display:none;

}

/* ---------- News Card ---------- */

.news-card{

    min-width:360px;

    max-width:360px;

    background:#fff;

    border-radius:20px;

    overflow:hidden;

    flex-shrink:0;

    scroll-snap-align:start;

    display:flex;

    flex-direction:column;

    box-shadow:var(--shadow);

    transition:all .35s ease;

}

.news-card:hover{

    transform:translateY(-12px);

    box-shadow:0 18px 40px rgba(0,0,0,.15);

}

/* ---------- Image ---------- */

.news-card img{

    width:100%;

    height:230px;

    object-fit:cover;

    transition:transform .45s ease;

}

.news-card:hover img{

    transform:scale(1.08);

}

/* ---------- Content ---------- */

.news-content{

    display:flex;

    flex-direction:column;

    flex:1;

    padding:24px;

}

/* ---------- Date ---------- */

.news-date{

    color:var(--secondary);

    font-size:.9rem;

    font-weight:600;

    margin-bottom:12px;

}

/* ---------- Heading ---------- */

.news-content h3{

    color:var(--primary);

    font-size:1.25rem;

    margin-bottom:15px;

    line-height:1.35;

}

/* ---------- Paragraph ---------- */

.news-content p{

    color:var(--gray);

    line-height:1.7;

    flex:1;

    margin-bottom:20px;

}

/* ---------- Read More ---------- */

.news-content a{

    display:inline-flex;

    align-items:center;

    gap:8px;

    font-weight:600;

    color:var(--secondary);

    transition:.3s;

}

.news-content a:hover{

    color:var(--primary);

    transform:translateX(6px);

}

/* ======================================================
   PREVIOUS / NEXT BUTTONS
====================================================== */

.news-btn{

    position:absolute;

    top:55%;

    transform:translateY(-50%);

    width:55px;

    height:55px;

    border:none;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    font-size:22px;

    cursor:pointer;

    transition:.3s;

    z-index:20;

    box-shadow:0 10px 20px rgba(0,0,0,.15);

}

.news-btn:hover{

    background:var(--secondary);

    transform:translateY(-50%) scale(1.08);

}

.prev{

    left:10px;

}

.next{

    right:10px;

}

/* ======================================================
   RESPONSIVE
====================================================== */

@media(max-width:992px){

.news-card{

    min-width:320px;

    max-width:320px;

}

.news-card img{

    height:210px;

}

}

@media(max-width:768px){

.news-container{

    padding-bottom:10px;

    gap:20px;

}

.news-card{

    min-width:85%;

    max-width:85%;

    margin:auto;

}

.news-card img{

    height:220px;

}

/* Hide arrows on phones */

.news-btn{

    display:none;

}

}

@media(max-width:480px){

.news-card{

    min-width:100%;

    max-width:100%;

}

.news-content{

    padding:20px;

}

.news-content h3{

    font-size:1.15rem;

}

.news-card img{

    height:200px;

}

}

/* ======================================================
   FOOTER
====================================================== */

footer{

    background:linear-gradient(
        135deg,
        var(--primary),
        #0826c9
    );

    color:#ffffff;

    text-align:center;

    padding:60px 20px;

}

footer h3{

    font-size:1.8rem;

    margin-bottom:15px;

    font-weight:700;

    color:#ffffff;

}

footer p{

    color:rgba(255,255,255,.9);

    margin:8px 0;

    line-height:1.8;

}

/* ======================================================
   SECTION SPACING
====================================================== */

.features-section,
.news-section{

    position:relative;

}

.features-section::before,
.news-section::before{

    content:"";

    position:absolute;

    left:50%;

    top:0;

    transform:translateX(-50%);

    width:100px;

    height:4px;

    border-radius:20px;

    background:var(--accent);

}

/* ======================================================
   ACCESSIBILITY
====================================================== */

a:focus,
button:focus{

    outline:3px solid var(--accent);

    outline-offset:4px;

}

img{

    user-select:none;

}

/* ======================================================
   UTILITIES
====================================================== */

.text-center{

    text-align:center;

}

.mt-1{

    margin-top:10px;

}

.mt-2{

    margin-top:20px;

}

.mt-3{

    margin-top:30px;

}

.mb-1{

    margin-bottom:10px;

}

.mb-2{

    margin-bottom:20px;

}

.mb-3{

    margin-bottom:30px;

}

/* ======================================================
   SCROLL ANIMATION
====================================================== */

.fade-up{

    opacity:0;

    transform:translateY(40px);

    transition:all .8s ease;

}

.fade-up.show{

    opacity:1;

    transform:translateY(0);

}

/* ======================================================
   LARGE DESKTOPS
====================================================== */

@media(min-width:1600px){

.container{

    max-width:1400px;

}

.hero-content{

    max-width:700px;

}

.hero h1{

    font-size:5rem;

}

.section-title{

    font-size:3.4rem;

}

}

/* ======================================================
   TABLETS
====================================================== */

@media(max-width:992px){

section{

    padding:70px 0;

}

.section-title{

    margin-bottom:45px;

}

}

/* ======================================================
   MOBILE
====================================================== */

@media(max-width:768px){

section{

    padding:60px 0;

}

.section-title{

    margin-bottom:35px;

}

footer{

    padding:45px 20px;

}

footer h3{

    font-size:1.5rem;

}

footer p{

    font-size:.95rem;

}

}

/* ======================================================
   SMALL PHONES
====================================================== */

@media(max-width:480px){

.hero{

    min-height:70vh;

}

.hero h1{

    font-size:2.2rem;

}

.hero p{

    font-size:1rem;

}

.btn{

    width:100%;

    justify-content:center;

}

.hero-buttons{

    flex-direction:column;

    width:100%;

}

}