/*
Theme Name: trangiaphatvn
Theme URI: https://kosmos.vn/
Author: Kosmos Vietnam
Author URI: https://kosmos.vn/
Description: Theme WordPress clone giao diện Kosmos.vn - Công ty vật liệu xây dựng và nội thất.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trangiaphat
Tags: custom-menu, custom-logo, featured-images, custom-header

Kosmos Vietnam - Vật liệu xây dựng & Nội thất
*/

/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #222222;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #e31937;
}

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

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
    color: #222222;
}

h1 {
    font-size: 42px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 20px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

p {
    margin-bottom: 1em;
    color: #575760;
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* === UTILITIES === */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-uppercase {
    text-transform: uppercase;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.section-padding {
    padding: 60px 0;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: calc(.667em + 2px) calc(1.333em + 2px);
    border: none;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.5;
}

.btn-primary {
    background-color: #e31937;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #c41530;
    color: #ffffff;
}

.btn-secondary {
    background-color: #55555e;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #3f4047;
    color: #ffffff;
}

.btn-outline {
    background-color: transparent !important;
    border: 2px solid #e31937 !important;
    color: #e31937 !important;
}

.btn-outline:hover {
    background-color: #e31937 !important;
    color: #ffffff !important;
}

/* === SECTION TITLES === */
.section-title {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title span {
    color: #e31937;
}

.section-subtitle {
    font-size: 18px;
    color: #555555;
    text-align: center;
    margin-bottom: 60px !important;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* === CARDS === */
.card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: rgba(149, 157, 165, 0.4) 0px 12px 30px;
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card-body {
    padding: 15px 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222222;
}

.card-title a:hover {
    color: #e31937;
}

.card-excerpt {
    font-size: 14px;
    color: #636363;
    line-height: 1.5;
}

/* === GRID === */
.grid {
    display: grid;
    gap: 20px;
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #e31937;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background-color: #c41530;
}

/* === WORDPRESS CORE === */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin: 0 auto 1em;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 13px;
    color: #636363;
    text-align: center;
    padding: 5px 0;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a {
    background-color: #f0f0f0;
    color: #222222;
}

.pagination a:hover {
    background-color: #e31937;
    color: #ffffff;
}

.pagination .current {
    background-color: #e31937;
    color: #ffffff;
}