/*
Theme Name: Skillentials Theme
Author: Ekansh
Version: 1.0
Description: Custom WordPress theme for Skillentials LLP
*/

/* =========================
   BASE FOUNDATION
========================= */

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
}

main {
    flex: 1;
}

/* =========================
   GLOBAL ELEMENTS
========================= */

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-xl);
}

h2 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: var(--fs-lg);
    line-height: 1.4;
}

h4 {
    font-size: var(--fs-base);
    line-height: 1.5;
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

/* =========================
   LAYOUT SYSTEM
========================= */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}


/* =========================
   HEADER
========================= */



.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
}

.site-logo a {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-white);
}

.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
    padding-block: var(--space-md);
}

.main-nav .nav-list a {
    color: var(--header-fg);
    font-weight: 500;
    transition: opacity var(--transition-fast);
}

.main-nav .nav-list a:hover {
    opacity: 0.7;
}



.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
}


/* =========================
   GLOBAL IMAGE FADE-IN
========================= */

img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.img-loaded {
    opacity: 1;
}

/* Hero — already in viewport on load */
.hero-image {
    opacity: 1;
    transition: none;
}

/* Blog card images — card animation handles their reveal */
.blog-card-media img {
    opacity: 1;
    transition: transform 0.55s ease;
}

