@import "https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap";

:root {
    --primary: rgba(255, 255, 255, 1);
    --secondary: rgba(255, 255, 255, 0.6);
    --tertiary: rgba(255, 255, 255, 0.4);
    --bg: #080808;
    --bg-sec: #1d1d1d;
    --bg-ter: #282828;
    --border: 1px solid rgba(255, 255, 255, 0.5);
    --br: 10px;
}

html,
body {
    scroll-behavior: smooth;
}

body {
    padding: 0;
    margin: 0;
    background: var(--bg);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
small,
span,
div,
ul,
a {
    font-family: Montserrat, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 700;
    color: var(--primary);
}

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

p {
    color: var(--secondary);
}

.btn {
    border: 0;
    background: linear-gradient(140deg, #f0f0f0, #fff);
    padding: 10px 20px;
    border-radius: var(--br);
    cursor: pointer;
    transition: 0.3s opacity;

    &:hover {
        opacity: 0.7;
    }
}

.loader-wrapper {
    background-color: black;
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    transition: opacity 0.3s ease;
}

.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 28px;
    height: 28px;
    border: 3px solid #ffffff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    transition: opacity 0.3s ease;
}

@keyframes rotation {
    0% {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

.notfound {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Outfit;
    color: #fff;

    h1 {
        font-size: 5rem;
        margin: 0;
    }

    h2 {
        font-size: 2.5rem;
        margin: 0;
    }

    p {
        margin-bottom: 50px;
    }
}

.tablet {
    display: none !important;
}

@media (max-width: 768px) {
    .pc {
        display: none !important;
    }

    .tablet {
        display: block !important;
    }
}

@media (max-width: 450px) {
    p {
        font-size: 14px;
    }
}

/* Global Blog Card Styles */
.blog-card {
    width: 100%;
    height: 412px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    border-radius: var(--br);
    overflow: hidden;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
}

.blog-card img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: var(--br);
    z-index: 1;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover img {
    transform: scale(1.06);
}

.blog-card-fog {
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    border: var(--border);
    border-radius: var(--br);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 23%, rgba(0, 0, 0, 0.9) 83%);
    pointer-events: none;
    box-sizing: border-box;
}

.blog-card-info {
    margin: 1rem;
    padding: 1rem 1.15rem;
    border: var(--border);
    background: var(--bg-sec);
    border-radius: var(--br);
    position: relative;
    z-index: 3;
    width: calc(100% - 2rem);
    box-sizing: border-box;
}

.blog-card-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}