/*
Theme Name: Micro Digi Lab
Theme URI: https://microdigilab.xyz
Author: Micro Digi Lab
Description: Custom Micro Digi Lab Website Theme
Version: 1.0
Text Domain: microdigilab
*/

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-cream: #FAF7F2;
    --bg-cream-alt: #F4EFE6;

    --color-dark: #0F172A;
    --color-dark-light: #1E293B;

    --color-accent-amber: #D97706;
    --color-accent-emerald: #059669;
    --color-accent-blue: #2563EB;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background-color: var(--bg-cream);
    color: var(--color-dark);

    font-family:
        'Plus Jakarta Sans',
        'Hind Siliguri',
        sans-serif;

    overflow-x: hidden;
}

.font-bn {
    font-family: 'Hind Siliguri', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   MICRO DIGI LAB HEADER
========================================================= */

.mdl-header {
    position: sticky;
    top: 0;
    z-index: 9999;

    background: rgba(250, 247, 242, 0.92);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(226, 219, 206, 0.7);
}

.mdl-container {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.mdl-header-inner {
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGO */

.mdl-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mdl-logo-box {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0F172A;
    color: #FBBF24;

    border-radius: 12px;

    font-size: 20px;
    font-weight: 800;

    box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
}

.mdl-logo-text {
    display: flex;
    flex-direction: column;
}

.mdl-logo-text strong {
    font-size: 20px;
    line-height: 1;

    color: #0F172A;
    font-weight: 800;
}

.mdl-logo-text strong span {
    color: #D97706;
}

.mdl-logo-text small {
    margin-top: 5px;

    font-size: 9px;
    font-weight: 700;

    color: #64748B;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* NAV */

.mdl-nav {
    display: flex;
    align-items: center;
    gap: 4px;

    padding: 6px;

    background: rgba(255, 255, 255, .75);

    border: 1px solid #E7E0D6;
    border-radius: 999px;
}

.mdl-nav a {
    padding: 9px 16px;

    color: #64748B;

    font-size: 13px;
    font-weight: 700;

    border-radius: 999px;

    transition: .2s ease;
}

.mdl-nav a:hover {
    color: #0F172A;
    background: #F4EFE6;
}

.mdl-nav a:first-child {
    color: #0F172A;
}


/* MOBILE */

.mdl-mobile-menu-btn {
    display: none;

    border: 1px solid #E7E0D6;

    background: white;

    width: 42px;
    height: 42px;

    border-radius: 12px;

    font-size: 20px;

    cursor: pointer;
}

.mdl-mobile-menu {
    display: none;

    padding: 12px 16px 20px;

    background: rgba(255,255,255,.97);

    border-top: 1px solid #E7E0D6;
}

.mdl-mobile-menu a {
    display: block;

    padding: 12px 14px;

    color: #334155;

    font-weight: 700;

    border-radius: 10px;
}

.mdl-mobile-menu a:hover {
    background: #F4EFE6;
}


/* FOOTER */

.mdl-footer {
    padding: 35px 0;

    background: #0F172A;

    color: #CBD5E1;

    text-align: center;
}

.mdl-footer p {
    margin: 0;

    font-size: 13px;
}


/* MOBILE RESPONSIVE */

@media (max-width: 900px) {

    .mdl-nav {
        display: none;
    }

    .mdl-mobile-menu-btn {
        display: flex;

        align-items: center;
        justify-content: center;
    }

    .mdl-mobile-menu.active {
        display: block;
    }

}


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

.mdl-hero {
    padding: 90px 0 100px;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(217,119,6,.12),
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(37,99,235,.10),
            transparent 35%
        );

    overflow: hidden;
}

.mdl-hero-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;
}

.mdl-badge {
    display: inline-block;

    padding: 7px 14px;

    background: rgba(217,119,6,.10);

    border: 1px solid rgba(217,119,6,.25);

    border-radius: 999px;

    color: #92400E;

    font-size: 11px;
    font-weight: 800;
}

.mdl-hero-title {
    margin: 18px 0;

    font-size: clamp(38px, 5vw, 62px);

    line-height: 1.08;

    letter-spacing: -2px;

    color: #0F172A;

    font-weight: 800;
}

.mdl-hero-title span {
    color: #D97706;
}

.mdl-hero-text {
    max-width: 620px;

    font-size: 17px;

    line-height: 1.8;

    color: #64748B;
}

.mdl-hero-buttons {
    display: flex;

    gap: 12px;

    margin-top: 28px;

    flex-wrap: wrap;
}

.mdl-btn-dark,
.mdl-btn-light {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 13px 22px;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 800;

    transition: .25s ease;
}

.mdl-btn-dark {
    background: #0F172A;
    color: white;
}

.mdl-btn-dark:hover {
    background: #1E293B;

    transform: translateY(-2px);
}

.mdl-btn-light {
    background: white;

    color: #0F172A;

    border: 1px solid #DDD6CC;
}

.mdl-btn-light:hover {
    background: #F4EFE6;

    transform: translateY(-2px);
}


/* HERO VISUAL */

.mdl-hero-visual {
    min-height: 430px;

    display: flex;

    align-items: center;
    justify-content: center;

    position: relative;
}

.mdl-hero-visual::before {
    content: "";

    position: absolute;

    width: 390px;
    height: 390px;

    border: 2px dashed rgba(217,119,6,.35);

    border-radius: 50%;

    animation: mdlRotate 25s linear infinite;
}

.mdl-hero-card {
    position: relative;
    z-index: 2;

    width: 250px;

    padding: 35px 25px;

    text-align: center;

    background: rgba(255,255,255,.88);

    border: 1px solid rgba(255,255,255,.9);

    border-radius: 24px;

    box-shadow: 0 25px 60px rgba(15,23,42,.14);
}

.mdl-hero-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 16px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #0F172A;

    color: #FBBF24;

    border-radius: 18px;

    font-size: 20px;
    font-weight: 900;
}

.mdl-hero-card h3 {
    margin: 0;

    font-size: 18px;
}

.mdl-hero-card p {
    margin: 8px 0 15px;

    color: #64748B;

    font-size: 12px;
}

.mdl-hero-card span {
    color: #059669;

    font-size: 10px;
    font-weight: 800;
}


/* SECTIONS */

.mdl-section {
    padding: 80px 0;

    background: #FAF7F2;
}

.mdl-section-alt {
    background: #F4EFE6;

    border-top: 1px solid #EBE2D5;
    border-bottom: 1px solid #EBE2D5;
}

.mdl-section-heading {
    margin-bottom: 35px;

    text-align: center;
}

.mdl-section-heading > span {
    color: #B45309;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 2px;
}

.mdl-section-heading h2 {
    margin: 8px 0;

    color: #0F172A;

    font-size: 32px;

    font-weight: 800;
}

.mdl-section-heading p {
    margin: 0;

    color: #64748B;

    font-size: 14px;
}


/* TEMPORARY CAROUSEL */

.mdl-carousel-placeholder {
    display: grid;

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

    gap: 18px;
}

.mdl-empty-card {
    min-height: 180px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: white;

    border: 1px solid #E7E0D6;

    border-radius: 18px;

    color: #94A3B8;

    font-size: 14px;

    font-weight: 800;

    box-shadow: 0 5px 20px rgba(15,23,42,.05);
}


/* LIVE COURSE */

.mdl-course-section {
    padding: 80px 0;

    background: #FAF7F2;
}

.mdl-course-box {
    padding: 55px;

    background:
        linear-gradient(
            120deg,
            #0F172A,
            #1E293B
        );

    color: white;

    border-radius: 28px;

    text-align: center;
}

.mdl-course-box > span {
    color: #F87171;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 2px;
}

.mdl-course-box h2 {
    margin: 12px 0;

    font-size: 32px;
}

.mdl-course-box p {
    color: #CBD5E1;

    margin-bottom: 25px;
}


@keyframes mdlRotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* MOBILE */

@media (max-width: 900px) {

    .mdl-hero {
        padding: 60px 0;
    }

    .mdl-hero-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .mdl-hero-title {
        font-size: 40px;

        letter-spacing: -1px;
    }

    .mdl-hero-visual {
        min-height: 350px;
    }

    .mdl-hero-visual::before {
        width: 300px;
        height: 300px;
    }

    .mdl-carousel-placeholder {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .mdl-container {
        width: min(100% - 24px, 1280px);
    }

    .mdl-header-inner {
        height: 70px;
    }

    .mdl-logo-text strong {
        font-size: 17px;
    }

    .mdl-logo-text small {
        font-size: 7px;
    }

    .mdl-logo-box {
        width: 40px;
        height: 40px;
    }

    .mdl-hero-title {
        font-size: 34px;
    }

    .mdl-hero-text {
        font-size: 15px;
    }

    .mdl-carousel-placeholder {
        grid-template-columns: 1fr;
    }

    .mdl-section-heading h2 {
        font-size: 27px;
    }

    .mdl-course-box {
        padding: 35px 20px;
    }

}


/* =========================================================
   MDL TOOLS PAGE
   ========================================================= */

.mdl-container {
    width: min(1180px, 92%);
    margin-left: auto;
    margin-right: auto;
}

.mdl-page {
    background: #FAF7F2;
}

.mdl-page-hero {
    padding: 80px 0 50px;
    text-align: center;
}

.mdl-eyebrow {
    display: inline-block;
    color: #D97706;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.mdl-page-hero h1 {
    margin: 12px 0;
    color: #0F172A;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 800;
}

.mdl-page-hero p {
    margin: 0;
    color: #64748B;
    font-size: 17px;
}

.mdl-tools-section {
    padding: 20px 0 90px;
}

.mdl-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.mdl-tool-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mdl-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

.mdl-tool-image {
    width: 100%;
    height: 220px;
    background: #F4EFE6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mdl-tool-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mdl-tool-placeholder {
    font-size: 55px;
}

.mdl-tool-content {
    padding: 24px;
}

.mdl-tool-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: #ECFDF5;
    color: #059669;
    font-size: 11px;
    font-weight: 800;
}

.mdl-tool-card h2 {
    margin: 14px 0 8px;
    color: #0F172A;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 800;
}

.mdl-tool-description {
    color: #64748B;
    font-size: 14px;
    line-height: 1.7;
}

.mdl-tool-description p {
    margin: 0;
}

.mdl-tool-credit {
    margin-top: 14px;
    color: #D97706;
    font-size: 13px;
    font-weight: 800;
}

.mdl-tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 18px;
    padding: 12px 18px;
    border-radius: 11px;
    background: #0F172A;
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.mdl-tool-button:hover {
    background: #D97706;
    color: #FFFFFF !important;
}

.mdl-empty-tools {
    grid-column: 1 / -1;
    padding: 70px 20px;
    text-align: center;
    background: #F4EFE6;
    border-radius: 20px;
}

.mdl-empty-tools h3 {
    margin: 0 0 8px;
    color: #0F172A;
    font-size: 22px;
}

.mdl-empty-tools p {
    margin: 0;
    color: #64748B;
}


/* Tablet */

@media (max-width: 900px) {

    .mdl-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* Mobile */

@media (max-width: 600px) {

    .mdl-page-hero {
        padding: 60px 0 35px;
    }

    .mdl-page-hero h1 {
        font-size: 36px;
    }

    .mdl-page-hero p {
        font-size: 15px;
    }

    .mdl-tools-grid {
        grid-template-columns: 1fr;
    }

}