/* SANKO Projects Page Styles
---------------------------------------- */

/* Critical Fix for Container Overflow */
.category-mycustom {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* Prevent all children from overflowing */
.category-mycustom *:not(.hero__overlay) {
    max-width: 100% !important;
}

/* Variables
---------------------------------------- */
:root {
    /* Colors */
    --color-black: #000000;
    --color-dark-gray-1: #1a1a1a;
    --color-dark-gray-2: #222222;
    --color-white: #ffffff;
    --color-light-gray-1: #f5f5f5;
    --color-light-gray-2: #e0e0e0;
    --color-blue-1: #3182ce;
    --color-blue-2: #4299e1;
    
    /* Typography */
    --font-family: 'Montserrat', sans-serif;
    --font-size-small: 0.875rem;
    --font-size-base: 1rem;
    --font-size-medium: 1.125rem;
    --font-size-large: 1.5rem;
    --font-size-xlarge: 2.5rem;
    --font-size-xxlarge: 3.5rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border */
    --border-radius-small: 4px;
    --border-radius-medium: 8px;
    --border-radius-large: 14px;
    --border-radius-xlarge: 24px;
    
    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --transition-fast: 200ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 500ms ease;
}

/* Base Styles
---------------------------------------- */
.category-mycustom {
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: #000000;
    color: #ffffff!important;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Container Reset & Fix
---------------------------------------- */
.category-mycustom {
    margin: 0 !important;
    padding: 0 !important;
}

.category-mycustom .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 var(--spacing-md) !important;
    box-sizing: border-box !important;
}

/* Ensure full width without overflow */
.category-mycustom .projects,
.category-mycustom .hero,
.category-mycustom .filter-bar,
.category-mycustom .cta {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Hero Section
---------------------------------------- */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/wp-content/uploads/kitchen-modern-bg.jpg') center/cover no-repeat;
    filter: brightness(0.3) blur(2px);
    z-index: 1;
}

.hero__content {
    padding: var(--spacing-xl);
    max-width: 800px;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s var(--transition-normal) forwards;
}

.hero__content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    mask-image: linear-gradient(to bottom, transparent, black 50%);
    animation: maskReveal 1.2s var(--transition-normal) forwards;
    color: #ffffff!important;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    mask-image: linear-gradient(to bottom, transparent, black 50%);
    animation: maskReveal 1.2s var(--transition-normal) forwards;
    color: #ffffff!important;
}

.hero__tagline {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    color: #ffffff!important;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes maskReveal {
    to {
        mask-image: linear-gradient(to bottom, black, black);
    }
}

/* Filter Bar
---------------------------------------- */
.category-mycustom .filter-bar {
    background-color: rgba(8, 8, 8, 0.808);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform var(--transition-normal);
}

.category-mycustom .filter-bar__inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

.category-mycustom .filter-bar__group {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
}

.category-mycustom .filter-bar__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-light-gray-2);
    white-space: nowrap;
}

.category-mycustom .filter-bar__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.category-mycustom .filter-tag {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff!important;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-small);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-tag:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.filter-tag.active {
    background: linear-gradient(to right, var(--color-blue-1), var(--color-blue-2));
    border-color: transparent;
}

/* Projects Grid
---------------------------------------- */
.projects {
    padding: var(--spacing-xl) 0;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.projects__load-more {
    margin-top: var(--spacing-xl);
    text-align: center;
}

/* Project Card
---------------------------------------- */
.project-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    margin-bottom: 20px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.project-card__image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 250px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.project-card__info {
    padding: 16px;
    background-color: #fff;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.project-card__title {
    font-size: 18px;
    font-weight: 600;
    color: #4a6baf;
    margin: 0 0 8px 0;
}

.project-card__title a {
    color: #4a6baf;
    text-decoration: none;
}

.project-card__title a:hover {
    color: #3182ce;
}

.project-card__price {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Buttons
---------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-large);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
}

.btn i {
    font-size: 1.1rem;
}

.btn--primary {
    background: linear-gradient(to right, var(--color-blue-1), var(--color-blue-2));
    color: #ffffff!important;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.btn--primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
}

.btn--primary:active {
    transform: scale(0.97);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #ffffff!important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn--secondary {
    background: transparent;
    border: 1px solid var(--color-blue-1);
    color: var(--color-blue-1);
}

.btn--secondary:hover {
    background: rgba(49, 130, 206, 0.1);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn--animated {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* CTA Section
---------------------------------------- */
.cta {
    padding: var(--spacing-xl) 0 calc(var(--spacing-xl) * 2);
}

.cta__inner {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(232, 232, 232, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    padding: var(--spacing-xl);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: #ffffff!important;
}

.cta__text {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* Responsive Styles
---------------------------------------- */
@media (max-width: 1280px) {
    .projects__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero__title {
        font-size: 2.8rem;
        color: #ffffff!important;
    }
    
    .hero__tagline {
        font-size: 1.1rem;
    }
    
    .cta__title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .category-mycustom .container {
        padding: 0 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .filter-bar__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
        padding: 1rem 0;
    }
    
    .filter-bar__group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }
    
    .filter-bar__tags {
        width: 100%;
    }
    
    .projects {
        padding: 2rem 0;
    }
    
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .project-card__image {
        height: 180px;
    }
    
    .project-card__info {
        padding: 12px;
    }
    
    .project-card__title {
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    .project-card__price {
        font-size: 14px;
    }
    
    .hero {
        height: 45vh;
        min-height: 300px;
    }
    
    .hero__content {
        padding: 1rem;
        max-width: 95%;
    }
    
    .hero__title {
        font-size: 1.6rem;
        color: #ffffff!important;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .hero__tagline {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        line-height: 1.4;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .cta {
        padding: 2rem 0 3rem;
    }
    
    .cta__inner {
        padding: 1.5rem;
    }
    
    .cta__title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .cta__text {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 640px) {
    /* Giữ 2 cột thay vì chuyển về 1 cột */
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .project-card__image {
        height: 160px;
    }
    
    .project-card__info {
        padding: 10px;
    }
    
    .project-card__title {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .project-card__price {
        font-size: 13px;
    }
    
    .hero {
        height: 40vh;
        min-height: 280px;
    }
    
    .hero__content {
        padding: 0.8rem;
    }
    
    .hero__title {
        font-size: 1.4rem;
        color: #ffffff!important;
        line-height: 1.2;
        margin-bottom: 0.6rem;
    }
    
    .hero__tagline {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .btn--primary {
        padding: 0.5rem 1.2rem;
        font-size: 0.75rem;
    }
    
    .cta__title {
        font-size: 1.3rem;
        line-height: 1.3;
        color: #ffffff!important;
    }
    
    .cta__text {
        font-size: 0.85rem;
        color: #ffffff!important;
    }
    
    .filter-tag {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .projects__load-more {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .category-mycustom .container {
        padding: 0 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .project-card__image {
        height: 140px;
    }
    
    .project-card__info {
        padding: 8px;
    }
    
    .project-card__title {
        font-size: 13px;
    }
    
    .project-card__price {
        font-size: 12px;
    }
    
    .hero {
        height: 35vh;
        min-height: 250px;
    }
    
    .hero__content {
        padding: 0.6rem;
    }
    
    .hero__title {
        font-size: 1.2rem;
        color: #ffffff!important;
        margin-bottom: 0.5rem;
    }
    
    .hero__tagline {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .cta__inner {
        padding: 1.2rem 0.8rem;
    }
    
    .cta__title {
        font-size: 1.1rem;
    }
    
    .cta__text {
        font-size: 0.8rem;
    }
    
    .filter-bar__inner {
        padding: 0.75rem 0;
    }
    
    .filter-tag {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }
} 