/**
 * Custom CSS for Homepage (Front Page) Only
 * File: custom-home.css
 * 
 * Chỉ áp dụng cho trang chủ - không ảnh hưởng theme WordPress khác
 * This file only loads on the homepage - doesn't affect other WordPress themes
 */

/* ===================================
   CUSTOM HOMEPAGE STYLES
   Add your custom CSS below this line
   =================================== */

/* Example: Custom hero modifications for homepage only */
/*
.home .hero-new {
    padding-top: 120px;
}

.home .hero-headline {
    font-size: 72px;
}

.home .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
*/

/* Example: Custom section spacing */
/*
.home .section-padding {
    padding: 80px 0;
}
*/

/* Example: Custom colors for homepage */
/*
.home .text-accent {
    color: #FF6B6B;
}

.home .portfolio-modern-section {
    background: #f8f9fa;
}
*/

/* Example: Custom animations */
/*
.home .slide-up {
    animation-duration: 1s;
}
*/

/* ===================================
   RESPONSIVE - HOMEPAGE ONLY
   =================================== */

/* Tablet */
@media (max-width: 992px) {
    /* Add custom tablet styles for homepage here */
}

/* Mobile */
@media (max-width: 768px) {
    /* Add custom mobile styles for homepage here */
}

/* ===================================
   NOTES / GHI CHÚ:
   
   - File này CHỈ load ở trang chủ WordPress
   - Tất cả CSS ở đây sẽ KHÔNG ảnh hưởng các theme khác
   - Thêm custom CSS của bạn vào file này
   - Sử dụng class .home để đảm bảo chỉ áp dụng cho trang chủ
   
   - This file ONLY loads on WordPress homepage
   - All CSS here will NOT affect other themes
   - Add your custom CSS to this file
   - Use .home class to ensure it only applies to homepage
   =================================== */

   /* Fix layout for Featured Case Studies bento */
/* ================================
   Case Studies Bento (Desktop base)
   ================================ */

/* =========================
   Case Studies Bento (match mock)
   Layout: [Header + Gift] | [Switts + Omni] | [Under Armour (tall) + CTA]
   ========================= */

.case-studies-bento-section .cs-bento-grid{
  display: grid;
  grid-template-columns: 320px minmax(260px, 1fr) minmax(320px, 1.15fr);
  grid-template-rows: auto auto auto;
  gap: 22px;
  align-items: start;
}

/* Placement */
.case-studies-bento-section .cs-bento-header{
  grid-column: 1;
  grid-row: 1;
  max-width: 320px;
}

.case-studies-bento-section .cs-switts{
  grid-column: 2;
  grid-row: 1;
}

.case-studies-bento-section .cs-gift-market{
  grid-column: 1;
  grid-row: 2;
}

.case-studies-bento-section .cs-omni{
  grid-column: 2;
  grid-row: 2;
}

.case-studies-bento-section .cs-under-armour{
  grid-column: 3;
  grid-row: 1 / span 2; /* tall card */
}

.case-studies-bento-section .cs-bento-footer{
  grid-column: 3;
  grid-row: 3;
  justify-self: end;   /* CTA nằm bên phải như ảnh */
  align-self: start;
  margin-top: 4px;
}

/* Card base */
.case-studies-bento-section .cs-item{ min-height: 0; }

.case-studies-bento-section .cs-card{
  position: relative;
  display: block;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #111;
}

/* Aspect ratios giống mock */
.case-studies-bento-section .cs-switts .cs-card,
.case-studies-bento-section .cs-omni .cs-card{
  aspect-ratio: 16 / 7; /* card ngang */
}

.case-studies-bento-section .cs-gift-market .cs-card{
  aspect-ratio: 1 / 1;  /* card vuông */
}

.case-studies-bento-section .cs-under-armour .cs-card{
  aspect-ratio: 3 / 4.2; /* card dọc cao */
}

/* Image */
.case-studies-bento-section .cs-card img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1);
  transition: transform .35s ease;
}

.case-studies-bento-section .cs-card:hover img{
  transform: scale(1.03);
}

/* Subtle dark gradient like mock */
.case-studies-bento-section .cs-card::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.35));
  pointer-events:none;
}

/* Label bottom-right, white (match mock) */
.case-studies-bento-section .cs-overlay{
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: auto;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.case-studies-bento-section .cs-label{
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

/* Header typography (optional tweak to look like mock) */
.case-studies-bento-section .section-title-large{
  line-height: 1.05;
  margin-bottom: 10px;
}
.case-studies-bento-section .cs-bento-desc{
  margin: 0 0 10px;
  max-width: 300px;
}

/* CTA style (pill, right) */
.case-studies-bento-section .cs-bento-footer .btn-outline-large{
  border-radius: 999px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 1024px){
  .case-studies-bento-section .cs-bento-grid{
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
  }
  .case-studies-bento-section .cs-bento-header{ grid-column: 1 / span 2; grid-row: 1; max-width: 100%; }
  .case-studies-bento-section .cs-switts{ grid-column: 1; grid-row: 2; }
  .case-studies-bento-section .cs-omni{ grid-column: 2; grid-row: 2; }
  .case-studies-bento-section .cs-gift-market{ grid-column: 1; grid-row: 3; }
  .case-studies-bento-section .cs-under-armour{ grid-column: 2; grid-row: 3; }
  .case-studies-bento-section .cs-bento-footer{ grid-column: 2; grid-row: 4; justify-self: end; }
}

@media (max-width: 900px){
  .case-studies-bento-section .cs-bento-grid{
    grid-template-columns: 1fr;
  }
  .case-studies-bento-section .cs-bento-header,
  .case-studies-bento-section .cs-switts,
  .case-studies-bento-section .cs-omni,
  .case-studies-bento-section .cs-gift-market,
  .case-studies-bento-section .cs-under-armour,
  .case-studies-bento-section .cs-bento-footer{
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
  }
  .case-studies-bento-section .cs-bento-footer{
    justify-self: end;
  }
}
