/* --- 1. CORE LAYOUT & BACKGROUNDS --- */
body.blog-page {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    background-color: #fdfcfb;
    color: #333;
}

.page-layout-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url("images/123.webp");
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    padding-bottom: 50px;
}

/* --- 2. HEADER & HAMBURGER --- */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo { font-weight: 800; font-size: 1.4rem; letter-spacing: 1px; }

/* Hamburger Style (Consistent) */
.custom-nav { position: relative; }
.nav-toggle { display: none; }
.nav-toggle-label { cursor: pointer; display: flex; flex-direction: column; gap: 5px; z-index: 1002; position: relative; }
.nav-toggle-label span { display: block; width: 28px; height: 3px; background: #333; transition: 0.3s; }
.nav-links {
    position: fixed; top: 0; right: -400px; width: 215px; height: 100vh;
    background: rgba(25, 25, 25, 0.98); padding: 80px 40px; list-style: none;
    display: flex; flex-direction: column; gap: 20px; transition: 0.4s; z-index: 1001;
}
.nav-links a { color: #fff; text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; }
.nav-links a:hover { color: #ffc412; }
.portal-link { border: 1px solid #ffc412; color: #ffc412 !important; padding: 10px; border-radius: 4px; text-align: center; }
.nav-toggle:checked ~ .nav-links { right: 0; }
.nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: #fff; }
.nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: #fff; }

/* --- 3. BLOG HERO --- */
.blog-hero {
    height: 300px;
    background: url('images/blog-hero-background.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-overlay {
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 40px;
    width: 66.6%;
}
.blog-hero h1 { font-size: 2.5rem; margin-bottom: 10px; color: #ffc412; }

/* --- 4. BLOG FEED CARDS --- */
.center-content.blog-feed {
    flex: 1 1 800px;
    max-width: 800px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    transition: transform 0.3s ease;
}
.blog-post-card:hover { transform: translateY(-5px); }

.post-img-wrapper { flex: 1 1 35%; overflow: hidden; }
.post-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.post-content { flex: 1 1 65%; padding: 25px; }
.category-tag { background: #ffc412; color: #000; font-size: 0.7rem; font-weight: 800; padding: 4px 8px; border-radius: 4px; text-transform: uppercase; }
.post-content h2 { margin: 15px 0 10px; font-size: 1.5rem; color: #222; }
.post-meta { font-size: 0.8rem; color: #888; margin-bottom: 15px; }
.post-content p { font-size: 0.95rem; line-height: 1.6; color: #555; }

/* --- 5. SIDE PANEL & CONTACT --- */
.side-panel { flex: 1 1 300px; max-width: 350px; padding: 40px 20px; }
.overlay-card {
    background: #fff; padding: 25px; border-radius: 8px; border-left: 5px solid #ffc412;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.card-title { font-weight: 800; text-transform: uppercase; margin-bottom: 20px; border-bottom: 2px solid #ffc412; display: inline-block; }
.contact-mini-row { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
.contact-item { display: flex; align-items: center; gap: 10px; }
.mini-icon { width: 24px; height: 24px; }
.mini-btn { font-size: 0.85rem; font-weight: 700; color: #333; text-decoration: none; border-bottom: 2px solid #ffc412; text-transform: uppercase; }

.map-container { border-top: 1px solid #eee; padding-top: 20px; }
.map-address { font-size: 0.8rem; line-height: 1.4; color: #666; }
.map-frame-wrapper { height: 120px; margin: 10px 0; border-radius: 4px; overflow: hidden; border: 1px solid #ddd; }

.learn-more-btn { font-weight: 700; color: #ffc412; text-decoration: none; text-transform: uppercase; font-size: 0.85rem; border-bottom: 2px solid transparent; transition: 0.3s; }
.learn-more-btn:hover { border-bottom-color: #ffc412; }

/* --- 6. FOOTER --- */
.u-footer { text-align: center; padding: 40px; background: #1a1a1a; color: #fff; font-size: 0.8rem; }

/* --- 7. RESPONSIVE --- */
@media (max-width: 991px) {
    .page-layout-wrapper { flex-direction: column; align-items: center; }
    .side-panel { order: 2; width: 100%; max-width: 800px; }
    .blog-post-card { flex-direction: column; }
    .hero-overlay { width: 90%; }
}

.u-contact-overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;

}

.u-contact-content {
    background: #fff;
    width: 95%;
    max-width: 850px;
    height: auto;
    border-radius: 12px;
    /* FIX: Prevent the container itself from scrolling */
    overflow: hidden;
    flex-direction: column; 
    /* Ensure it doesn't exceed screen height */
    max-height: 95vh; 
}

/* The form container and iframe */
#form-content, #u-email-form-container {
    width: 100%;
    flex-grow: 1; /* Fills the available space in the modal content */
    overflow: hidden;
    display: flex;
}

#u-email-form-container iframe {
    width: 100%;
    /* Sets the height of the iframe content */
    height: 75vh; 
    border: none;
    display: block;
    /* ALLOW the iframe to have the only scrollbar */
    overflow: auto; 
}

/* Modal Contact Us Form */
 .modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
}
.form-group { margin-bottom: 15px; }
.btn-submit { width: 100%; padding: 12px; background: #3498db; color: white; border: none; border-radius: 5px; cursor: pointer; }

/* Overlay Background */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000; /* Higher than your sticky header */
}

/* Modal Window */
.modal-content {
  background: white;
  padding: 40px;
  border-radius: 8px;
  position: relative;
  max-width: 600px;
  width: 90%;
}

/* Close Button */
.back-x-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  border: none;
  background: none;
  cursor: pointer;
}

/* Form Layout */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.required {
  color: #e74c3c;
}

.modal-content input, 
.modal-content select, 
.modal-content textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.btn-submit {
  background-color: #ffc412;
  color: black;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
}

/* Ensure the modal is hidden and positioned correctly */
#overviewModal {
    display: none; 
    position: fixed; 
    z-index: 10000; /* Higher than other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); /* Dim background */
}

.ia-modal {
  display: none; 
  position: fixed; 
  z-index: 9999; 
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
}

.ia-modal-content {
  background-color: #ffffff;
  margin: 5% auto;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  font-family: sans-serif;
}

.ia-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.ia-close:hover { color: #000; }

.ia-form-group { margin-bottom: 15px; display: flex; flex-direction: column; }
.ia-form-group label { font-weight: bold; margin-bottom: 5px; color: #333; font-size: 14px; }
.ia-form-group input, .ia-form-group select, .ia-form-group textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.ia-form-row { display: flex; gap: 15px; }
.ia-form-row .ia-form-group { flex: 1; }

.ia-section-title { font-size: 16px; color: #555; margin: 20px 0 15px 0; border-left: 4px solid #ffc412; padding-left: 10px; }
.ia-divider { border: 0; border-top: 1px solid #eee; margin: 20px 0; }

.ia-submit-btn {
  background-color: #ffc412;
  color: #000;
  border: none;
  padding: 12px 20px;
  font-weight: bold;
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.2s;
}

.ia-submit-btn:hover { opacity: 0.9; }

@media screen and (max-width: 480px) {
  .ia-form-row { flex-direction: column; gap: 0; }
}

/* If your HTML uses a span with a class like 'required' */
.required, .error-message, .star {
    color: #ff0000 !important;
    font-weight: bold;
}

/* If you just want to target all red asterisks manually in your labels */
label span {
    color: red;
}

/* Success State Overlay */
.ia-success-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    animation: premiumFadeIn 0.6s ease forwards;
}

.ia-success-icon {
    font-size: 50px;
    color: #2d5a27; /* Deep elegant green */
    margin-bottom: 20px;
}

.ia-success-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.ia-success-body {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

@keyframes premiumFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Red Asterisk - High Contrast */
.required {
    color: #e31b23 !important; /* Branded red */
    font-weight: bold;
    margin-left: 3px;
}

/* --- PREMIUM GLOBAL CONTACT MODAL SYSTEM --- */

/* 1. The Background Overlay */
.u-contact-overlay {
  display: none;
  /* Keep hidden until JS triggers 'flex' */
  position: fixed !important;
  /* Forces it to stay on top of the viewport */
  z-index: 10000 !important;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 43, 72, 0.85);
  /* Dark Brand Blue */
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 2. The Modal Content Box */
.u-contact-content {
  background: #ffffff;
  width: 92%;
  max-width: 850px;
  max-height: 85vh;
  position: relative;
  border-radius: 20px;
  margin: auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 60px 30px 30px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* 3. Social Mini-Modals */
.u-contact-mini {
  max-width: 420px;
  text-align: center;
}

.u-contact-mini img {
  width: 70px;
  margin-bottom: 15px;
}

/* 4. Premium Buttons */
.u-contact-confirm-btn {
  display: inline-block;
  padding: 16px 45px;
  color: #fff !important;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
}

#u-wa-confirm {
  background: linear-gradient(145deg, #25D366, #128C7E);
}

#u-msg-confirm {
  background: linear-gradient(145deg, #0084FF, #0063E2);
}

.u-contact-confirm-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

/* 5. Close Button */
.u-contact-close {
  position: sticky;
  top: 0;
  float: right;
  margin-top: -45px;
  font-size: 28px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: #f8f9fa;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
}

/*begin-variables base-font-size*/
html {
  font-size: 16px;
}

/* --- CUSTOM HAMBURGER MENU --- */
.custom-nav {
  position: relative;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  padding: 20px;
}

/* Hide the checkbox */
.nav-toggle {
  display: none;
}

/* Hamburger Icon Bars */
.nav-toggle-label {
  cursor: pointer;
  display: flex !important;
  align-items: center;
  flex-direction: row !important;
  gap: 10px;
  z-index: 1002;
  transition: all 0.3s ease;
}

.nav-toggle-label span {
  display: block;
  width: 30px;
  height: 4px;
  background-color: #333;
  /* Dark gray bars */
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(1, 0, 0, 1);
}

.hamburger-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hamburger-lines span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #cfaa43;
  /* Match your gold theme */
  transition: all 0.3s ease;
}

/* DESKTOP HOVER LOGIC */
@media (min-width: 1025px) {

  /* Trigger the menu slide-in when hovering over the nav area */
  .custom-nav:hover .nav-links {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
  }

  /* Show the background overlay on hover */
  .custom-nav:hover .nav-overlay {
    display: block;
    opacity: 1;
  }

  /* Optional: Animate the hamburger to an 'X' on hover for desktop */
  .custom-nav:hover .hamburger-lines span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
  }

  .custom-nav:hover .hamburger-lines span:nth-child(2) {
    opacity: 0;
  }

  .custom-nav:hover .hamburger-lines span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
  }
}

/* Hide navigation checkbox */
.nav-toggle {
  display: none;
}

/* --- Mobile Specific --- */
@media (max-width: 767px) {
  .u-header .u-logo-image-1 {
    height: 50px !important;
    /* Slightly smaller logo for mobile */
  }
}

/* --- CONTACT SECTION (BLOCK-11) STYLING --- */

.u-section-51 {
  background-image: none;
  background-color: #052b48;
  /* From u-palette-5-dark-3 */
}

.u-section-51 .u-sheet-1 {
  min-height: 400px;
  /* Standardizing height for the contact row */
}

/* Icons & Layout Containers */
.u-section-51 .u-icon {
  height: 64px;
  width: 64px;
  margin: 0 auto;
}

.u-section-51 .u-layout-cell {
  padding: 30px;
}

/* Heading & Text Styling */
.u-section-51 .u-text-1,
.u-section-51 .u-text-3,
.u-section-51 .u-text-5 {
  font-weight: 700;
  margin-top: 20px;
  color: #ffffff;
}

.u-section-51 .u-text-2,
.u-section-51 .u-text-4,
.u-section-51 .u-text-6 {
  margin: 20px auto 0;
  color: #ffffff;
}

/* Button Styling (Open Form, WhatsApp, Message Us) */
.u-section-51 .u-btn-2,
.u-section-51 .u-btn-3 {
  margin: 30px auto 0;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 50px;
  padding: 15px 30px;
  display: inline-block;
}

/* Responsive Adjustments for Tablets/Mobile */
@media (max-width: 991px) {
  .u-section-51 .u-layout-cell {
    min-height: 100px;
  }
}

@media (max-width: 767px) {
  .u-section-51 .u-layout-cell {
    padding: 40px 10px;
  }
}

```

### 2. Update `global.css` or `blog.css`
Delete any old header styles (`.u-header`, old hamburger rules) and add this clean header system to the **bottom** of your CSS file. This will override previous styles.

```css
/* --- PREMIUM STICKY HEADER SYSTEM (Flexbox Layout) --- */

.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 5px 0; /* Reduced from 10px */
    position: fixed; /* Keep it fixed */
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Ensure body content doesn't hide behind the sticky header */
body.blog-page {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    background-color: #fdfcfb;
    color: #333;
    padding-top: 0 !important; /* Reduce from 80px to match header height */
}

/* The primary flex container that controls alignment */
.header-container {
    max-width: 1200px; /* Limits width on big screens */
    margin: 0 auto; /* Centers the container */
    display: flex;
    justify-content: space-between; /* LOGO LEFT | NAV RIGHT */
    align-items: center; /* Vertically center logo and hamburger */
    padding: 10px 20px; /* Top/bottom padding for clean spacing */
    min-height: 70px; /* Ensures a consistent header height */
}

/* --- THE LOGO (Pushed Left) --- */
.logo-link {
    display: block;
    line-height: 0; /* Prevents text alignment issues */
    margin-right: auto; /* Just in case, ensures it pushes left */
}

.main-logo {
    height: 100px; /* Main logo height (similar to reference image) */
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

/* --- THE NAVIGATION AREA (Pushed Right) --- */
.custom-nav {
    position: relative;
    display: flex;
    align-items: center; /* Vertical center */
}

/* Hide navigation checkbox */
.nav-toggle {
    display: none;
}

/* Hamburger Icon bars */
.hamburger-lines {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Spacing between bars */
    padding: 5px; /* Makes the click target bigger */
    cursor: pointer;
}

.hamburger-lines span {
    display: block;
    width: 25px; /* Width of the bars */
    height: 3px; /* Thickness of the bars */
    background-color: #cfaa43; /* THEME GOLD for bars */
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animate the Hamburger when open (X) */
.nav-toggle:checked ~ .nav-toggle-label .hamburger-lines span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: #fff; /* Switch to white when menu is dark */
}

.nav-toggle:checked ~ .nav-toggle-label .hamburger-lines span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked ~ .nav-toggle-label .hamburger-lines span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: #fff;
}


/* --- PREVENTING MENU CONFLICTS --- */

/* Ensure the nav-toggle label (hamburger container) is properly aligned and clickable */
.nav-toggle-label {
    margin: 0 !important;
    display: flex !important;
}

/* Clean up old .u-header classes that are now unused but could cause issues */
.u-header {
    display: none !important;
}

/* --- MOBILE SPECIFIC ADJUSTMENTS --- */
@media (max-width: 767px) {
  body {
    padding-top: 65px !important;
  }

  .u-header .u-sheet {
    min-height: 55px !important;
  }

  .u-header .u-logo-image-1 {
    height: 55px !important;
    /* Even smaller for phones */
  }

  /* Prevent the hamburger menu from taking full width */
  .u-menu-hamburger {
    margin-right: 0 !important;
  }

  /* Ensure the mobile menu overlay appears below the sticky header */
  .u-menu-overlay {
    top: 55px !important;
  }
}

/* Styling for the SVG icons */
.icon-share-container a, 
.icon-share-container button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333; /* Dark icon color */
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s;
    padding: 5px;
}

.icon-share-container a:hover, 
.icon-share-container button:hover {
    color: #cfaa43; /* Changes to your theme GOLD on hover */
    transform: scale(1.15);
}

/* Ensure the SVG itself fits nicely */
.icon-share-container svg {
    display: block;
}