/* ==========================================================================
   1. CORE SETUP & TYPOGRAPHY
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;600&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

.trg-global-footer {
  background-color: #1C203B;
  font-family: 'Figtree', sans-serif!important;
  color: #ffffff;
  line-height: 1.5;
}

/* BOXED CONTAINER (The 1140px Rule) */
.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================================================
   2. TOP FOOTER (Links & Newsletter)
   ========================================================================== */
.top-footer {
  padding: 60px 0;
}

.split-70-30 {
 display: grid;
  
  grid-template-columns: 56% 40%; 
  
  justify-content: space-between; 
  width: 100%;
  gap: 0;                         
}

/* Column 1: Links Grid (70% side) */
.footer-col-main-links {
  flex: 0 0 55%;
}

/* 1. Define the parent grid container and column tracks */
.inner-grid-4 {
  display: grid;
  
  grid-template-columns: 4fr 2.5fr 3fr; 
  gap: 70px;
  width: 100%;
}

.inner-grid-4 h1 {
  color: #8CFF98;
  font-size: 24px;
  margin: 0 0 10px 0;
  font-weight: 300;
}

.inner-grid-4 a {
  display: block;
  color: #ffffff;
  font-size: 16px;
  text-decoration: none;
  margin-bottom: 8px;
  font-weight: 300 !important;
  transition: color 0.3s ease;
}

.inner-grid-4 a:hover{
  transform:translateX(5px);
  color:#8dff99;
  transition:.2s;
}



.inner-grid-4 a:hover {
  color: #8CFF98;
}

/* 2. Style the Logo Column inside the grid */
.inner-grid-4 .footer-brand {
  width: 100%;
}

.inner-grid-4 .footer-brand img {
  width: 100%;
  max-width: 225px; /* Clean size constraint */
  height: auto;
  display: block;
  
}
.inner-grid-4 .footer-brand p {
  margin-top: 25px !important; 
  text-wrap: pretty
}

.footer-col-newsletter {
  width: 100%; /* No more flex rules needed here! Grid handles its width. */
}

.newsletter-card {
  background-color: #252943;
  padding: 25px; /* This should now be visible again */
  height: 100%;
  border-radius: 20px;
  display: flex; /* Helps contain children */   
  max-height:185px;
}

.newsletter-flex {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%; /* Ensures it stays within the card */
}

.newsletter-icon img {
width: 90%;        /* Image fills the 40% container */
  height: auto;
  display: block;
}

.newsletter-icon {
  /* Use 'calc' to account for the gap */
  flex: 0 0 calc(40% - 10px);
}
.newsletter-content {
  flex: 0 0 calc(60% - 10px);
  padding-right: 5px; /* Extra safety buffer */
}
.newsletter-content p {
  font-size: 14px;
  color: #ffffff;
  margin: 0 0 20px 0;
  line-height: 1.4
    flex: 0 0 60%;
}

/* Global Button Style */
.footer-btn {
  display: inline-block;
  background-color: #8CFF98;
  color: #1C203B;
  padding: 8px 25px 8px 25px;
  border-radius:5px;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-btn:hover {
 /* opacity: 0.9;*/
   background-color:#ffffff;
}


/* ==========================================================================
   3. MIDDLE FOOTER (Partner Logos)
   ========================================================================== */
.middle-footer {
  background-color: #252943;
  padding: 40px 0;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 15px;
  align-items: center;
}

.logo-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 120px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 auto;
}

/* ==========================================================================
   4. LEGAL FOOTER (Bottom Section)
   ========================================================================== */
.legal-footer {
  background-color: #181818;
  padding: 60px 0 20px 0;
}

.legal-links-grid {
  display: grid;
  /* Your requested 10% | 20% | 20% | 50% split */
  grid-template-columns: 10% 20% 20% 43%;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 30px;
  margin-bottom: 20px;
  align-items: start;
}

.legal-col h1 {
  color: #ffffff;
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}

.legal-col a {
  display: block;
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 10px;
  line-height: 1.4;
}

.legal-col a:hover{
  transform:translateX(5px);
  color:#8dff99;
  transition:.2s;
}

.footer-bottom p {
  font-size: 12px;
  margin: 0;
  opacity: 0.8;
}
.footer-brand p{
  font-size:14px
}


/* Container holding the social links */
.footer-social-row {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;    /* Control spacing between icons here */
  margin-top: 24px !important; /* Spacing below the last text link */
}

/* Individual icon links */
.social-icon-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;   /* Dynamic sizing wrapper constraints */
  height: 20px !important;
  color: #ffffff !important;
  opacity: 0.8 !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
  margin-bottom: 0 !important;
}

/* Forces the SVG path code to adapt to sizing constraints */
.social-icon-link svg {
  width: 100% !important;
  height: 100% !important;
  fill: currentColor !important;
}


.social-icon-link:hover {
  opacity: 1 !important;
  color: #8CFF98 !important; 
  transform: translateY(-2px);
}






/* ==========================================================================
   5. RESPONSIVE DESIGN (Mobile/Tablet)
   ========================================================================== */
/*@media (max-width: 991px) {
  .split-70-30 {
    flex-direction: column;
  }
  
  .inner-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  
  .legal-links-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .inner-grid-4 {
    grid-template-columns: 1fr;
  }
  
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}*/

/* ==========================================================================
   RESPONSIVE: Tablet & Mobile (Grid Engine)
   ========================================================================== */
@media (max-width: 991px) {
  
  /* 1. Stack the main sections and move Newsletter to top using Grid */
  .split-70-30 {
    display: grid !important;
    grid-template-columns: 1fr; /* Stacks columns into 1 single vertical track */
    gap: 40px;
    width: 100%;
  }
  
  .footer-col-newsletter {
    grid-row: 1; /* Forcefully shoves the newsletter to the absolute top */
    width: 100%;
  }

  .footer-col-main-links {
    grid-row: 2; /* Drops the link grid below the newsletter */
    width: 100%;
  }

  /* 2. Stabilize the Newsletter Card Layout on Mobile */
  .newsletter-card {
    padding: 20px;
  }
  .newsletter-icon {
    flex: 0 0 80px !important; /* Keeps the pulse logo neatly sized */
  }
  .newsletter-icon img {
    max-width: 80px;
    height: auto;
  }

  /* 3. Main Links Grid: Brand Logo Full-Width + Links Side-by-Side */
  .inner-grid-4 {
    display: grid !important; 
    grid-template-columns: repeat(2, 1fr) !important; /* Creates a clean 2-column mobile structure */
    gap: 24px !important;
    width: 100%;
  }

  /* Force Column 1 (The Brand Logo/Text) to span across both columns (Full-Width) */
  .inner-grid-4 > :nth-child(1) {
    grid-column: 1 / -1 !important; 
    width: 100%;
    margin-bottom: 10px;
  }
  
  /* Ensure the logo graphic scales gracefully when centered or full width */
  .brand-logo-img {
    max-width: 200px !important;
  }
  
  @media screen and (max-width:767px){
    .legal-links-grid{
          grid-template-columns: 1fr;
    } 
  }
  
  
  
  