/* =======================
   GOOGLE FONT
======================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* =======================
   RESET & BASE STYLES
======================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:  Arial, sans-serif; /* Fallback to standard sans-serif */
}

html{
    scroll-behavior:smooth;
}

body{
    background:#f5f7fa;
    color:#222;
    overflow-x: hidden;
}

/* =======================
   HEADER / NAVIGATION
======================= */
nav{
    position: fixed;
    background:#0f172a;
    height:90px;
    padding:0 30px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    position:sticky;
    top:0;
    z-index:1000;
}

.logo-container{
    display:flex;
    align-items:center;
    gap:15px;
    flex-shrink:0;
}

.logo{
    width:60px;
    height:60px;
    object-fit:contain;
    border-radius:50%;
    background:#fff;
    padding:4px;
}

.logo-container h2{
    color:#fff;
    font-size:20px;
    font-weight:700;
    white-space:nowrap;
}

nav ul{
    display:flex;
    align-items:center;
    list-style:none;
    gap:35px;
    margin:0;
    padding:0;
}

nav ul li{
    margin:0;
}

nav ul li a{
    color:#fff;
    text-decoration:none;
    font-size:16px;
    font-weight:600;
    transition:.3s;
    position:relative;
}

nav ul li a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:2px;
    background:#38bdf8;
    transition:.3s;
}

nav ul li a:hover{
    color:#38bdf8;
}

nav ul li a:hover::after{
    width:100%;
}

/* Generic List Overrides */
ul{
    padding-left:25px;
}

li{
    margin-bottom:10px;
}

/* Responsive Menu Toggle Class */
.menu-toggle {
    display: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    user-select: none;
}

/* =======================
   HERO
======================= */
.hero{
    height:55vh;
    background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), url("images/g1.jpg") center/cover no-repeat;
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
}

.overlay{
    position:absolute;
    inset:0;
}

.hero-content{
    position:relative;
    color:#fff;
    text-align:center;
    z-index:2;
}

.hero-content h1{
    font-size:55px;
    margin-bottom:15px;
}

.hero-content p{
    font-size:22px;
    opacity:.9;
}

/* =======================
   COURSE SECTION
======================= */
.courses{
    padding:80px 8%;
}

.title{
    text-align:center;
    margin-bottom:60px;
}

.title h2{
    font-size:40px;
    color:#0f172a;
}

.title p{
    margin-top:10px;
    color:#666;
}

/* =======================
   GRID SYSTEM & CARDS
======================= */
.course-container{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
    transition:.4s;
    position:relative;
    display:flex;
    flex-direction:column;
}

.card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 45px rgba(37,99,235,.25);
}

.card img{
    width:100%;
    height:200px;
    object-fit:cover;
}

.duration{
    position:absolute;
    top:15px;
    right:15px;
    background:#2563eb;
    color:#fff;
    padding:8px 15px;
    border-radius:30px;
    font-size:14px;
    font-weight:600;
    z-index:10;
}

.card h3{
    font-size:24px;
    padding:20px 22px 10px;
    color:#0f172a;
}

.card p{
    padding:0 22px;
    color:#555;
    line-height:1.7;
    font-size:15px;
    flex-grow: 1; /* Pushes content down to align cards cleanly */
}

.card ul{
    list-style:none;
    padding:20px 22px;
}

.card ul li{
    margin-bottom:12px;
    color:#333;
    font-size:15px;
}

.card ul li i{
    color:#2563eb;
    margin-right:10px;
}

.btn{
    display:block;
    margin:auto 22px 25px;
    text-align:center;
    background:#2563eb;
    color:#fff;
    text-decoration:none;
    padding:13px;
    border-radius:10px;
    font-weight:600;
    transition:.3s;
}

.btn:hover{
    background:#0f172a;
}

/* =======================
   WHY CHOOSE US
======================= */
.why{
    padding:80px 8%;
    background:#0f172a;
    color:#fff;
    text-align:center;
}

.why h2{
    font-size:40px;
    margin-bottom:50px;
}

.why-container{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.box{
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.1);
    border-radius:18px;
    padding:35px 20px;
    transition:.4s;
}

.box:hover{
    transform:translateY(-10px);
    background:#2563eb;
}

.box i{
    font-size:45px;
    margin-bottom:20px;
    color:#38bdf8;
}

.box:hover i{
    color:#fff;
}

.box h3{
    font-size:22px;
    font-weight:600;
}

/* =======================
   STICKY BAR & FOOTER
======================= */
.social-sidebar{
    position:fixed;
    right:20px;
    top:50%;
    transform:translateY(-50%);
    display:flex;
    flex-direction:column;
    gap:10px;
    z-index:1000;
}

.social-sidebar a{
    background:white;
    color:black;
    text-decoration:none;
    padding:12px 18px;
    border-radius:10px;
    box-shadow:0 5px 10px rgba(0,0,0,.2);
    font-weight:bold;
}

.social-sidebar a:hover{
    background:#2563eb;
    color:white;
}

footer{
    background:#020617;
    color:#fff;
    text-align:center;
    padding:40px 20px;
}

footer h3{
    font-size:28px;
    margin-bottom:10px;
}

footer p{
    margin:8px 0;
    color:#cbd5e1;
}

/* =======================
   ANIMATIONS
======================= */
.card,
.box{
    animation:fadeUp .8s ease;
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(40px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =======================
   RESPONSIVE LAYOUTS
======================= */

/* Laptop Resolution Screens */
@media(max-width:1200px){
    .logo-container h2 {
        font-size: 18px;
    }
    nav ul {
        gap: 20px;
    }
    nav ul li a {
        font-size: 15px;
    }
    .course-container{
        grid-template-columns:repeat(2,1fr);
    }
    .why-container{
        grid-template-columns:repeat(2,1fr);
    }
}

/* Tablet Screens & Mobile Switchover Profile */
@media(max-width:768px){
    nav {
        padding: 0 20px;
    }

    .logo-container h2 {
        font-size: 15px;
        white-space: normal;
        max-width: 200px;
        line-height: 1.2;
    }

    /* Active Side Hamburger UI Trigger Toggle */
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    /* JavaScript Controlled Sliding Responsive Overlay Menu Drawer */
    nav ul {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: #0f172a;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        padding-top: 20px;
        transition: 0.4s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 15px 0;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    nav ul li a::after {
        display: none;
    }

    nav ul.show {
        left: 0;
    }

    .hero{
        height:45vh;
    }

    .hero-content h1{
        font-size:38px;
    }

    .hero-content p{
        font-size:18px;
    }

    .courses {
        padding: 40px 20px;
    }

    .title h2{
        font-size:32px;
    }

    .course-container{
        grid-template-columns:1fr;
    }

    .why-container{
        grid-template-columns:1fr;
    }

    /* Structural conversion of sidebar link nodes onto bottom viewport block grid */
    .social-sidebar {
        position: static;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 20px 10px;
        background: #f5f7fa;
    }

    .social-sidebar a {
        padding: 10px 15px;
        font-size: 14px;
        box-shadow: 0 2px 5px rgba(0,0,0,.1);
    }
}

/* Compact Mobile Smartphones */
@media(max-width:480px){
    .logo-container h2{
        font-size:13px;
        max-width:160px;
    }

    .logo {
        width: 45px;
        height: 45px;
    }

    .hero-content h1{
        font-size:30px;
    }

    .hero-content p{
        font-size:16px;
    }

    .card h3{
        font-size:22px;
    }

    .why h2{
        font-size:30px;
    }

    footer h3{
        font-size:22px;
    }
} 

/* =======================
   POPUP MODAL COMPONENT INTERFACE
======================= */
.popup-card{
    cursor:pointer;
    transition:0.4s ease;
}

.popup-card.active{
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%) scale(1);
    width:700px;
    max-width:90%;
    background:#fff;
    border-radius:20px;
    z-index:1001;
    box-shadow:0 20px 60px rgba(0,0,0,.4);
    animation:popup .4s ease;
    overflow:auto;
    max-height:90vh;
}

@keyframes popup{
    from{
        opacity:0;
        transform:translate(-50%,-50%) scale(.6);
    }
    to{
        opacity:1;
        transform:translate(-50%,-50%) scale(1);
    }
}

.overlay-bg{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    z-index:1000;
}