:root {
    --primary-background: #ffffff;
    --primary-text: #0f172a;
    --secondary-background: #f8fafc;
    --secondary-text: #475569;
    --accent-background: #2563eb;
    --accent-text: #ffffff;
    --footer-background: #1e293b;
    --footer-text: #f1f5f9;
    --border-radius: 0.75rem;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--primary-text);
    background-color: var(--primary-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: inherit;
    font-weight: 700;
    line-height: 1.2;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease-in-out, opacity var(--transition-speed) ease-in-out;
}

a:hover {
    opacity: 0.8;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all var(--transition-speed) ease-in-out;
}

ul,
ol {
    list-style: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent-background);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 1.875rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    body {
        font-size: 15px;
    }

    .long-string {
        word-break: break-all;
    }
}

/* ===== main_nav ===== */
.js-dropdown-menu {
    transition: opacity 0.2s ease-in-out;
}

.js-modal-login,
.js-modal-register,
.js-success-login,
.js-success-register {
    backdrop-filter: blur(4px);
}

/* ===== hero_section ===== */
#hero {
    min-height: 60vh;
}

.js-nav-tag {
    cursor: pointer;
    text-decoration: none;
}

/* ===== featured_post ===== */
#featured {
    width: 100%;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

.js-featured-card {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* ===== faq_section ===== */
.js-faq-content {
    transition: max-height 0.3s ease-out;
}

/* ===== related_grid ===== */
#related {
    width: 100%;
    background-color: var(--secondary-background);
}

.js-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-card:hover {
    transform: translateY(-8px);
}

.js-modal {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== user_feedback ===== */
#comments {
    width: 100%;
}

.js-feedback-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.js-feedback-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ===== feedback_form ===== */
#contact {
    width: 100%;
}

.js-contact-form {
    width: 100%;
}

/* ===== footer ===== */
#footer {
    width: 100%;
    background-color: var(--footer-background);
}

.material-symbols-outlined {
    font-size: 20px;
    vertical-align: middle;
}

#footer img{
    width: 60px;
    height: 60px;
    object-fit: contain;
}