@import url('https://fonts.googleapis.com/css2?family=Gravitas+One&family=Oswald:wght@200..700&family=Outfit:wght@100..900&display=swap');

:root {
    --bg-main: #f8fafc;
    --text-deep: #1e293b;
    --accent-teal: #1abc9c;
    --nav-navy: #2c3e50;
    --glass-white: rgba(255, 255, 255, 0.9);

    --base-color: #0f172a;
    --base-dark: #0a0a0a;
    --secondary-color: #1e293b;
    --accent-color: #38bdf8;
}

html {
    scroll-behavior: smooth;
}

.body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    /* background-color: #f0f2f5; */
    background-color: var(--bg-main) !important;
    /* color: #1a202c; */
    color: var(--text-deep);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* --- Header Section --- */
.header {
    width: 100%;
    background: #0f172a;
    padding: 50px 0;
    border-bottom: 1px solid rgba(26, 188, 156, 0.2);
    position: relative;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 6%;
    /* Side padding ensures it doesn't touch the screen edge */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Keeps everything on the left */
    gap: 50px;
    /* Space between logo and text */
}

/* --- LOGO --- */
.logo {
    position: relative;
}

.logo-accent-blur {
    position: absolute;
    width: 120px;
    /* Matches logo */
    height: 120px;
    background: #1abc9c;
    filter: blur(50px);
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.responsive-logo {
    height: 110px;
    width: auto;
    position: relative;
    z-index: 2;
}

/* --- TEXT: Left Alignment --- */
.company-name {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle vertical separator */
    padding-left: 40px;
}

.institute-tag a {
    font-family: 'Oswald', sans-serif;
    color: #1abc9c;
    /* font-size: 0.85rem;
    letter-spacing: 6px; */
    font-size: 0.80rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.company-name h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.4rem;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.9px;
}

.company-name h1 span {
    display: block;
    color: #94a3b8;
    font-weight: 400;
    font-size: 1.8rem;
    margin-top: 5px;
}

/* --- Animation Keyframes --- */
@keyframes radar-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }
}

@keyframes text-slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}


/* --- Applied Styles --- */

.header {
    width: 100%;
    background: #0f172a;
    padding: 50px 0;
    border-bottom: 1px solid rgba(26, 188, 156, 0.2);
    position: relative;
    overflow: hidden;
}

.logo-accent-blur {
    position: absolute;
    width: 130px;
    height: 130px;
    background: #1abc9c;
    filter: blur(50px);
    top: 50%;
    left: 50%;
    z-index: 1;
    /* Active Radar Animation */
    animation: radar-pulse 4s infinite ease-in-out;
}


.company-name {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 40px;
    /* Sequential Fade-in */
    animation: text-slide-in 0.8s ease-out forwards;
}

.company-name h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.4rem;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    line-height: 1;
    animation: text-slide-in 0.8s ease-out 0.4s backwards;
}

.responsive-logo {
    height: 110px;
    width: auto;
    position: relative;
    z-index: 2;
    transition: filter 0.3s ease;
}

.logo:hover .responsive-logo {
    filter: brightness(1.2) drop-shadow(0 0 15px rgba(26, 188, 156, 0.4));
}

/* --- Mobile Optimization (768px and below) --- */
@media (max-width: 768px) {
    .header {
        padding: 30px 0;
    }

    .header-container {
        gap: 20px;
    }

    .company-name {
        padding-left: 0.6rem;
    }

    .responsive-logo {
        height: 100px;
        margin-bottom: 5px;
    }

    /* Center the radar glow behind the logo */
    .logo-accent-blur {
        width: 140px;
        height: 140px;
        top: 50%;
        left: 50%;
    }

    .institute-tag {
        font-size: 0.75rem;
        letter-spacing: 4px;
        margin-bottom: 8px;
    }

    .institute-tag a{
        font-size: 0.70rem;
        letter-spacing: 2px;
    }

    .company-name h1 {
        font-size: 0.9rem;
        line-height: 1.1;
        /* max-width: 320px; */
    }

    .company-name h1 span {
        font-size: 1.1rem;
        margin-top: 4px;
        display: block;
    }
}

/* Extra small devices (iPhone SE / small Androids) */
@media (max-width: 395px) {
    .header {
        padding: 21px 0;
    }

    .company-name h1 {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .responsive-logo {
        height: 75px;
        margin-bottom: 0px;
    }

    /* Center the radar glow behind the logo */
    .logo-accent-blur {
        width: 140px;
        height: 140px;
        top: 50%;
        left: 50%;
    }

    .institute-tag {
        font-size: 0.65rem;
        letter-spacing: 2px;
        margin-bottom: 5px;
    }
    
    .institute-tag a{
        font-size: 0.60rem !important;
        letter-spacing: 1.1px  !important;
    }

    .company-name h1 span {
        font-size: 1rem;
        margin-top: 2px;
        display: block;
    }
}




/* nav start ... */
nav {
    background-color: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* padding: 10px 0; */
    animation: fadeIn 1.5s ease-out 0.5s both;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    padding: 15px;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: white;
    margin: 2px 0;
    transition: 0.3s;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0 15px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
    letter-spacing: 1px;
    transition: background-color 0.3s;
    font-family: Outfit;
    text-transform: uppercase;
}

nav a:hover {
    background-color: #1abc9c;
    border-radius: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}











/* --- Courses & Workshops Layout --- */

/* Container for the heading */
.page-title {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 40px;
}

.page-title .tag {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #1abc9c;
    margin-bottom: 10px;
    opacity: 0.9;
}

.page-title h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: #1abc9c;
    margin: 20px auto 0;
    border-radius: 10px;
    position: relative;
}

.title-underline::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 0;
    width: 8px;
    height: 4px;
    background: rgba(26, 188, 156, 0.3);
    border-radius: 10px;
}






/* === COURSES & WORKSHOPS DESIGN === */
.courses-page {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 8px 0;
    /* margin-bottom: 0; */
}

/* === CONTAINER FOR COURSES === */
.hub-container {
    max-width: 1150px;
    margin: 0 auto 70px auto;
    padding: 45px 35px;

    background: linear-gradient(145deg, #ffffff, #f8fafc);

    border-radius: 18px;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.08),
        0 5px 15px rgba(0,0,0,0.04);

    border: 1px solid rgba(0,0,0,0.06);

    /* animation */
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s ease;
}

/* when visible */
.hub-container.show {
    opacity: 1;
    transform: translateY(0);
}

/* SECTION HEADINGS */
.section-heading {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    margin-bottom: 25px;
    color: #0f172a;
    position: relative;
}

.section-heading::after {
    content: "";
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #1abc9c, #38bdf8);
    display: block;
    margin-top: 8px;
    border-radius: 10px;
}

/* STATUS TITLE */
.status-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 30px 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
}

/* === PULSE ICON === */
.pulse-icon {
    width: 10px;
    height: 10px;
    background: #1abc9c;
    border-radius: 50%;
    position: relative;
}

.pulse-icon::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid #1abc9c;
    animation: pulseRing 1.8s infinite ease-out;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* CARD GRID */
.card-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* === CARD DESIGN === */
.hub-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);

    border-radius: 12px;
    padding: 22px 24px;

    display: grid;
    grid-template-columns: 1fr 160px;
    align-items: center;

    text-decoration: none;
    border: 1px solid #e2e8f0;

    box-shadow: 0 6px 15px rgba(0,0,0,0.04);

    transition: all 0.3s ease;

    /* animation initial */
    opacity: 0;
    transform: translateY(50px) scale(0.94);
}

/* SHOW ANIMATION */
.hub-card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* HOVER */
.hub-card:hover {
    transform: translateY(-6px) scale(1.01);

    background: linear-gradient(145deg, #ffffff, #e6f7f4);

    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* LEFT ACCENT STRIP */
.hub-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 4px;
    border-radius: 10px;
    background: linear-gradient(#1abc9c, #38bdf8);
    opacity: 0;
    transition: 0.3s;
}

.hub-card:hover::before {
    opacity: 1;
}

/* TEXT */
.hub-content h4 {
    font-size: 1.3rem;
    margin-bottom: 4px;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
}

.hub-content p {
    font-size: 0.95rem;
    color: #475569;
    font-family: 'Inter', sans-serif;
}

/* DATE */
.date {
    text-align: right;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* EMPTY STATE */
.empty-state {
    padding: 25px;
    text-align: center;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

/* SECTION SEPARATION */
.section-heading:nth-of-type(2) {
    margin-top: 80px;
    padding-top: 20px;
    border-top: 1px solid #cbd5e1;
}

/* MOBILE */
@media (max-width: 768px) {
    .hub-container {
        padding: 25px 18px;
    }

    .hub-card {
        grid-template-columns: 1fr;
    }

    .date {
        text-align: left;
        margin-top: 6px;
    }
}




















/* footer start.................... */
footer {
    background-color: #1e293b;
    color: #cbd5e1;
    padding: 40px 20px;
    margin-top: 0;
    border-top: 3px solid;
    border-image: linear-gradient(to right, transparent, #1abc9c, transparent) 1;
    text-align: center;
    position: relative;
    /* width: 97vw;
    display: flex;
    flex-direction: column;
    justify-content: center;*/
    /* margin-top: auto;  */

    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
}


/* The Button Styling */
.back-to-top-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #1abc9c;
    color: #1abc9c;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 4px;
    transition: all 0.4s ease;
}

/* Hover Effect */
.back-to-top-btn:hover {
    background: #1abc9c;
    color: #0f172a;
    box-shadow: 0 0 20px rgba(26, 188, 156, 0.4);
    transform: translateY(-3px);
}





/* --- Tablet & Mobile Queries --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    nav ul.active {
        display: flex;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    nav {
        padding: 5px 0;
    }

    nav ul {
        display: flex;
        justify-content: center;
        gap: 5px;
        padding: 0 10px;
    }

    nav li {
        margin: 0;
    }

    nav a {
        padding: 12px 10px;
        font-size: 0.85rem;
        white-space: nowrap;
        letter-spacing: 0.5px;
    }

    nav a:active,
    nav a:hover {
        background-color: #1abc9c;
        border-radius: 4px;
    }
}

@media screen and (max-width: 768px) {
    footer {
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    footer p {
        font-size: 0.9rem;
        line-height: 1.6;
        max-width: 300px;
        margin: 0 auto;
        color: #cbd5e1;
    }

    footer {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background-color: #1a202c;
    }
}