/* ============================
   Color Theme Variables
============================= */
:root {
  --white: #FFFFFF;
  --black: #000000;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-400: #BDBDBD;
  --gray-500: #9E9E9E;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --radius: 12px;
  --transition: all 0.3s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);

  /* Midnight Blues theme */
  --primary: #1A1D29;
  --primary-light: #3D3F4A;
  --primary-dark: #0E1017;
  --accent: #7D8491;
  --highlight: #B1B2B5;

  /* Green border for tips */
  --green-border: #4CAF50;
}

/* ============================
   Global Styles
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.luxury-font {
  font-family: 'Cormorant Garamond', serif;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

main {
  flex: 1;
}

section {
  padding: 80px 0;
}

/* Section Head */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent);
}

.section-head p {
  color: var(--gray-600);
  font-size: 1.1rem;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.view-all:hover {
  border-color: var(--primary);
  background: var(--gray-100);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================
   Header
============================= */
header.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-300);
  padding: 20px 0;
  transition: var(--transition);
}

header.shrink {
  padding: 12px 0;
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--primary);
}

.logo-icon {
  display: flex;
  width: 32px;
  height: 32px;
}

.logo-square {
  width: 14px;
  height: 14px;
  margin: 1px;
}

.square-green { background-color: #7FBA00; }
.square-orange { background-color: #F25022; }
.square-blue { background-color: #00A4EF; }
.square-yellow { background-color: #FFB900; }

/* Navigation */
.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active { color: var(--primary); }

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; }
.dropdown-toggle .fa-chevron-down { display: none; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-radius: 8px;
  color: var(--gray-700);
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.dropdown-menu a span { opacity: 0; transition: var(--transition); }
.dropdown-menu a:hover span { opacity: 1; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 20px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

/* ============================
   Article Content
============================= */
.article-header {
  padding: 100px 0 60px;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
}

.article-header-content { max-width: 900px; margin: 0 auto; text-align: center; }

.article-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.article-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.article-meta .author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-meta .author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.article-featured-image {
  max-width: 900px;
  margin: 0 auto 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-featured-image img {
  width: 100%;
  height: auto;
}

.article-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-section { margin-bottom: 60px; }

.article-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-300);
}

.article-section h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 30px 0 15px;
}

.article-section p { margin-bottom: 20px; line-height: 1.7; color: var(--gray-700); }

.article-section ul, .article-section ol { margin-bottom: 20px; padding-left: 20px; }
.article-section li { margin-bottom: 10px; line-height: 1.6; }

.category-section {
  text-align: center;
  padding: 20px;
}

.category-section h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #1a73e8;
}

.category-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.category-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  border: 2px solid #1a73e8;
  border-radius: 12px;
  text-decoration: none;
  color: #1a73e8;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-box img {
  margin-bottom: 10px;
  width: 64px;
  height: 64px;
}

.category-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Tip Box */
.tip-box {
  background: var(--gray-100);
  border-left: 4px solid var(--green-border);
  padding: 20px;
  margin: 25px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.tip-box h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--primary);
}

/* Example Box */
.example-box {
  background: var(--gray-100);
  padding: 20px;
  border-radius: var(--radius);
  margin: 25px 0;
  border: 1px solid var(--gray-300);
}

.example-box h4 {
  margin-bottom: 10px;
  color: var(--primary);
}

/* Illustration */
.illustration { margin: 30px 0; text-align: center; }
.illustration img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.illustration-caption {
  margin-top: 10px;
  font-style: italic;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.faq-section {
  text-align: center;
  padding: 20px;
}

.faq-section h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #1a73e8;
}

.faq-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.faq-box {
  width: 300px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.faq-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.faq-question {
  color: #000000;
  margin-bottom: 10px;
  font-weight: bold;
}

.faq-answer {
  color: #008000; /* green */
  font-size: 0.95em;
  margin-bottom: 15px;
}

.faq-like {
  background-color: #1a73e8;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.faq-like:hover {
  background-color: #1558b0;
}

.faq-section {
  margin: 40px 0;
}

.faq-section h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #1a73e8;
  text-align: center;
}

.faq-box {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.faq-box h4 {
  margin-bottom: 10px;
  color: #222;
  font-weight: bold;
}

.faq-box p {
  margin: 0;
  color: #2e7d32; /* green answer text */
  line-height: 1.6;
}.section-divider {
      border: 0;
      height: 2px;
      background: #e0e0e0; /* Light gray underline */
      margin: 40px auto;
      width: 90%;
      transition: background 0.3s ease;
    }

    .section-divider:hover {
      background: #1a73e8; /* Light blue on hover */
    }

    /* Wider underline style */
    .section-divider.wider {
      width: 95%; /* slightly wider */
    }

/* Related Articles */
.related-articles { margin-top: 80px; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid var(--green-border);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: #3d8c40;
}

.article-image {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: var(--gray-100);
}

.article-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition);
}

.article-card:hover .article-image img { transform: scale(1.05); }

.article-card-content { padding: 25px; }

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
}

.article-card-meta span {
  background: var(--gray-100);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 30px;
  font-weight: 500;
}

.article-card-meta time { color: var(--gray-500); }

.article-card-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 15px;
  line-height: 1.4;
}

.article-card-content p { color: var(--gray-600); margin-bottom: 20px; line-height: 1.6; }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
}

.read-more:hover { gap: 12px; }

/* ============================
   AdSense Containers
============================= */
.ad-container {
  margin: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.ad-banner {
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-weight: 500;
  width: 100%;
}

.ad-banner.horizontal { height: 90px; max-width: 100%; }
.ad-banner.large-rectangle { height: 280px; max-width: 100%; }

/* ======== Stop Horizontal Scrolling on Mobile ======== */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Prevent hidden overflow from breaking positioned elements */
* {
  box-sizing: border-box;
  max-width: 100%;
}

/* Ensure layout stays stable on all screen sizes */
img, iframe, ins, video {
  max-width: 100%;
  height: auto;
}

/* ============================
   Footer
============================= */
footer {
  background: #000;
  color: #fff;
  padding: 60px 0 30px;
  border-top: 1px solid #333;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-column h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  color: #ccc;
  font-size: 14px;
  transition: var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-left { display: flex; align-items: center; gap: 20px; }
.footer-bottom-left span { font-size: 14px; color: #ccc; }

.footer-bottom-right { display: flex; gap: 20px; }
.footer-bottom-right a { color: #ccc; font-size: 14px; transition: var(--transition); }
.footer-bottom-right a:hover { color: #fff; }

.language-selector { display: flex; align-items: center; gap: 8px; color: #ccc; font-size: 14px; }

/* ============================
       Responsive Styles
    ============================= */
    @media (max-width: 1024px) {
      .article-title {
        font-size: 2.5rem;
      }
      
      .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
      }
    }

    @media (max-width: 768px) {
      .container {
        padding: 0 15px;
      }
      
      section {
        padding: 60px 0;
      }
      
      .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
      }
      
      .section-head h2 {
        font-size: 2rem;
      }
      
      .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 30px;
        transition: var(--transition);
        z-index: 999;
      }
      
      .nav.active {
        right: 0;
      }
      
      .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
      }
      
      .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 10px 0 0 15px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
      }
      
      .dropdown.active .dropdown-menu {
        display: block;
      }
      
      .hamburger {
        display: flex;
        z-index: 1000;
      }
      
      .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
      }
      
      .hamburger.active span:nth-child(2) {
        opacity: 0;
      }
      
      .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
      }
      
      .article-header {
        padding: 80px 0 40px;
      }
      
      .article-title {
        font-size: 2rem;
      }
      
      .article-meta {
        flex-direction: column;
        gap: 10px;
      }
      
      .articles-grid {
        grid-template-columns: 1fr;
      }
      
      .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
      }
      
      .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
      }
      
      .footer-bottom-right {
        flex-wrap: wrap;
      }
    }

    @media (max-width: 576px) {
      .article-title {
        font-size: 1.8rem;
      }
      
      .article-section h2 {
        font-size: 1.7rem;
      }
      
      .article-section h3 {
        font-size: 1.3rem;
      }
      
      .footer-grid {
        grid-template-columns: 1fr;
      }
    }
  </style>
