/*
 * Art-Decor Premium Design System
 * Modern, Luxurious Interior Design & Home Inspiration Theme
 * Fully Optimized for RTL & LTR
 */

:root {
  --primary-color: #c5a880; /* Elegant warm champagne gold */
  --primary-hover: #b39368; /* Darker gold for hover states */
  --primary-light: #f7f3ea; /* Soft light gold background */
  --dark-color: #1c2024;    /* Premium deep slate gray */
  --dark-hover: #121518;    /* Deeper black-slate */
  --text-color: #2e353b;    /* Charcoal text for excellent readability */
  --text-muted: #6b7280;    /* Soft gray for meta/secondary text */
  --bg-color: #fdfcfb;      /* Elegant creamy warm off-white */
  --card-bg: #ffffff;       /* Pure white for content cards */
  --border-color: #ebe6dd;  /* Warm subtle borders */
  --glass-bg: rgba(28, 32, 36, 0.6);
  --glass-border: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 2px 8px rgba(28, 32, 36, 0.04);
  --shadow-md: 0 10px 30px rgba(28, 32, 36, 0.06);
  --shadow-lg: 0 20px 40px rgba(28, 32, 36, 0.1);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Assistant', 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ======================================================== */
/* Header & Logo */
/* ======================================================== */
.header {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 100;
}

.header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  margin: 0 auto; /* Center the logo for an elegant editorial look */
}

.logo a {
  font-family: 'Outfit', 'Assistant', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-color);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
}

.logo a:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}

.logo a:hover .logo-icon {
  transform: scale(1.1) rotate(-8deg);
}

/* ======================================================== */
/* Navigation Menu */
/* ======================================================== */
.head-menu {
  background-color: var(--dark-color);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.head-menu .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.head-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.head-menu ul li {
  position: relative;
}

.head-menu ul li a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 18px 20px;
  display: block;
  transition: var(--transition-smooth);
}

.head-menu ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.head-menu ul li a:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.03);
}

.head-menu ul li a:hover::after {
  transform: scaleX(0.8);
}

/* Active Menu Item Highlight based on current page */
.head-menu ul li.active a {
  color: var(--primary-color);
}
.head-menu ul li.active a::after {
  transform: scaleX(1);
}

/* ======================================================== */
/* Hero Banner (Distinctive & Professional Image Section) */
/* ======================================================== */
.hero-banner {
  position: relative;
  background-image: url('../img/interior_hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

/* Subtle Zoom effect on page load */
.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(28, 32, 36, 0.45); /* Dark overlay */
  background-image: linear-gradient(180deg, rgba(28, 32, 36, 0.3) 0%, rgba(28, 32, 36, 0.75) 100%);
  z-index: 1;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
  animation: floatUp 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-banner-title {
  font-family: 'Outfit', 'Assistant', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-banner-subtitle {
  font-size: 18px;
  color: #e5e7eb;
  margin: 0;
  font-weight: 400;
  line-height: 1.6;
}

/* Shorter Hero for Category Pages */
.hero-banner.category-hero {
  height: 300px;
}

.hero-banner.category-hero .hero-banner-content {
  padding: 32px 40px;
  max-width: 650px;
}

.hero-banner.category-hero .hero-banner-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.hero-banner.category-hero .hero-banner-subtitle {
  font-size: 15px;
}

/* ======================================================== */
/* Main Grid & Layout Wrapper */
/* ======================================================== */
.page-wrapper {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 24px;
}

.main-grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 40px;
}

/* ======================================================== */
/* Main Content Card */
/* ======================================================== */
.page-cntn {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.page-cntn h1 {
  font-family: 'Outfit', 'Assistant', sans-serif;
  color: var(--dark-color);
  font-size: 34px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 24px;
  line-height: 1.3;
  position: relative;
  padding-bottom: 16px;
}

.page-cntn h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0; /* RTL alignment */
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-cntn p {
  font-size: 17px;
  color: #4b5563;
  margin-bottom: 24px;
  line-height: 1.8;
}

/* ======================================================== */
/* Featured Article Card */
/* ======================================================== */
.featured-article {
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--primary-light) 100%);
  border-right: 4px solid var(--primary-color); /* RTL border */
  border-left: none;
  padding: 32px;
  margin: 40px 0;
  border-radius: 4px 20px 20px 4px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.featured-article::before {
  content: '✦';
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 24px;
  color: var(--primary-color);
  opacity: 0.3;
}

.featured-article h2 {
  font-family: 'Outfit', 'Assistant', sans-serif;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 22px;
  color: var(--dark-color);
  font-weight: 700;
}

.featured-article p {
  margin: 0;
  font-size: 16px;
  color: #4b5563;
}

/* ======================================================== */
/* Articles List & Individual Items */
/* ======================================================== */
.articles-list {
  margin-top: 50px;
}

.articles-list h3 {
  font-family: 'Outfit', 'Assistant', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 12px;
}

.articles-list h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
}

.articles-list h3::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 150px;
  height: 2px;
  background-color: var(--primary-color);
  z-index: 2;
}

.one-cat {
  margin-bottom: 35px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.one-cat:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.one-cat h2 {
  font-family: 'Outfit', 'Assistant', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.4;
}

.one-cat h2 a {
  color: var(--dark-color);
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  display: inline-block;
}

.one-cat h2 a:hover {
  color: var(--primary-color);
}

.one-cat p {
  font-size: 16px;
  color: #4b5563;
  margin: 0;
  line-height: 1.75;
}

/* ======================================================== */
/* Sidebar Panels */
/* ======================================================== */
.sidebars {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.one-sidebar {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.one-sidebar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.one-sidebar h3 {
  font-family: 'Outfit', 'Assistant', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--dark-color);
  margin-top: 0;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.one-sidebar h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.one-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.one-sidebar ul li {
  position: relative;
  padding-right: 18px; /* Space for customized bullet */
}

.one-sidebar ul li::before {
  content: '✦';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--primary-color);
  font-size: 12px;
  transition: var(--transition-smooth);
}

.one-sidebar ul li a {
  color: #4b5563;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  display: block;
  transition: var(--transition-smooth);
}

.one-sidebar ul li a:hover {
  color: var(--primary-color);
  transform: translateX(-5px); /* Move leftwards since it is RTL */
}

.one-sidebar ul li:hover::before {
  transform: rotate(90deg);
}

/* ======================================================== */
/* Footer Design */
/* ======================================================== */
.footer {
  background-color: var(--dark-color);
  color: #9ca3af;
  padding: 80px 0 40px 0;
  margin-top: 100px;
  border-top: 4px solid var(--primary-color);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: rgba(255,255,255,0.05);
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.foot-block h4 {
  font-family: 'Outfit', 'Assistant', sans-serif;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.foot-block h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

.foot-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.foot-block ul li a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-smooth);
  display: inline-block;
}

.foot-block ul li a:hover {
  color: var(--primary-color);
  transform: translateX(-4px);
}

.foot-block p {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.7;
  margin: 0;
}

.footer-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: #6b7280;
}

/* ======================================================== */
/* Responsive Styles for Mobile & Tablets (max-width: 992px) */
/* ======================================================== */
@media (max-width: 992px) {
  .main-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-banner {
    height: 380px;
  }

  .hero-banner-title {
    font-size: 32px;
  }

  .footer .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 16px 0;
  }

  .logo a {
    font-size: 20px;
    gap: 8px;
  }
  
  .logo-icon {
    width: 24px;
    height: 24px;
  }

  /* Sleek Swipeable Horizontal Navigation Menu for Mobile */
  .head-menu {
    background-color: var(--dark-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  }
  
  .head-menu .container {
    padding: 0; /* Full-bleed swipeable menu */
  }

  .head-menu ul {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Butter-smooth iOS inertia scrolling */
    gap: 4px;
  }

  /* Hide scrollbar for a clean, app-like appearance */
  .head-menu ul::-webkit-scrollbar {
    display: none;
  }
  
  .head-menu ul li a {
    white-space: nowrap; /* Prevent wrapping of category text */
    padding: 16px 14px;
    font-size: 14px;
  }

  .head-menu ul li a::after {
    height: 2px;
  }

  /* Optimized Hero Banner for Mobile Screens */
  .hero-banner {
    height: 340px;
    padding: 24px 16px;
  }

  .hero-banner-content {
    padding: 32px 24px;
    border-radius: 20px;
    max-width: 100%;
    width: 100%;
  }

  .hero-banner-title {
    font-size: 24px;
    margin-bottom: 8px;
    line-height: 1.25;
  }

  .hero-banner-subtitle {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Shorter Category Hero for Mobile */
  .hero-banner.category-hero {
    height: 260px;
  }

  .hero-banner.category-hero .hero-banner-content {
    padding: 24px 20px;
  }

  .hero-banner.category-hero .hero-banner-title {
    font-size: 20px;
  }

  /* Fluid Spacing & Padding for Cards */
  .page-wrapper {
    margin: 24px auto;
    padding: 0 16px;
  }

  .page-cntn {
    padding: 32px 20px;
    border-radius: 20px;
  }

  .page-cntn h1 {
    font-size: 26px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .featured-article {
    padding: 24px;
    margin: 32px 0;
    border-radius: 4px 16px 16px 4px;
  }

  .featured-article h2 {
    font-size: 20px;
  }

  .articles-list {
    margin-top: 40px;
  }

  .articles-list h3 {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .one-cat {
    margin-bottom: 28px;
    padding-bottom: 24px;
  }

  .one-cat h2 {
    font-size: 19px;
    line-height: 1.4;
  }
  
  .one-cat p {
    font-size: 15px;
    line-height: 1.7;
  }

  .one-sidebar {
    padding: 28px 20px;
    border-radius: 20px;
  }

  /* Touch-friendly Footer */
  .footer {
    padding: 60px 0 30px 0;
    margin-top: 60px;
  }

  .footer .container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 20px;
  }

  .foot-block h4 {
    margin-bottom: 16px;
  }

  .foot-block ul {
    gap: 12px;
  }

  .foot-block ul li a {
    padding: 4px 0; /* Larger touch target for links */
  }

  .footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
  }
}

/* Extra Small Devices Optimization (down to 320px wide) */
@media (max-width: 375px) {
  .logo a {
    font-size: 17.5px;
  }
  
  .hero-banner {
    height: 310px;
  }
  
  .hero-banner-content {
    padding: 24px 16px;
  }
  
  .hero-banner-title {
    font-size: 21px;
  }
  
  .hero-banner-subtitle {
    font-size: 13px;
  }

  .page-cntn h1 {
    font-size: 22px;
  }
}