/* HOME: mobile-first, uses same animated gradient (red -> navy) as dashboard */
:root{
  --brand-red: #ff4b4b;
  --brand-navy: #1e1e2f;
  --accent: #d64545;
}

/* Page background gradient (animated) */
body {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-navy));
  /*linear-gradient(180deg, #000000c9, #ff4b4b)*/

  background-size: 400% 400%;
  animation: gradientBG 18s ease infinite;
  color: #fff;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
@keyframes gradientBG {
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

#pro_card{
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgb(255 215 0 / 55%));
  background-size: 400% 400%;
  animation: gradientBG 18s ease infinite;
}

@keyframes gradientBG {
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

/* Only needed if using downloaded files */
@font-face {
    font-family: 'Oswald';
    src: url('/assets/fonts/oswald/Oswald-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Oswald';
    src: url('/assets/fonts/oswald/Oswald-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

/* Add more @font-face rules for each weight... */


/* Header */
.home-topnav{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding:0.75rem 1rem;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  position:sticky;
  top:0;
  z-index:40;
}
.home-topnav .brand{ 
  font-weight:700; 
  color:#fff; 
  margin-left:0.5rem;
  display: block;
}

.home-topnav .left{
  display:flex;
  align-items:center;
  gap:0.8rem;
  justify-content: space-between;
  width: 58%;
  
}

.hamburger{
  font-size:1.2rem;
  background:transparent;
  border:none;
  color:#fff;
  padding:0.25rem 0.5rem;
  cursor:pointer;
}

  #logout_btn{
    display:none;
  }

  #auth_lnk{
    display: none;
  }
.top-links{ 
  display:none;
   gap:1rem; 
   width: 100%;
  }

  .top-links a { 
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
  }
.auth .link{ 
  color: rgba(255,255,255,0.9);
   margin-right:0.6rem; 
   text-decoration:none;
  
 }
.btn-cta{ background: rgba(255,255,255,0.06); color:#fff; padding:0.45rem 0.8rem; border-radius:6px; text-decoration:none; border:1px solid rgba(255,255,255,0.08);}

  .brand_logo{
    display:none;
  }
/* Desktop nav visible at >= 992px */
@media(min-width:992px){
  .top-links{ 
    display:flex; 
    align-items:center;
    width: 100%;
  }
  .hamburger{ 
    display:none; 
  }
  .brand_logo{
    display:block;
  }
  #logout_btn{
    display:block;
  }

  #auth_lnk{
    display: flex;
    align-items: center;
  }


}




.lst_style_type_none{
  list-style-type: none;
}

/* Mobile slide-in nav */
.mobile-nav{
  position:fixed;
  top:0; left:0;
  height:100vh;
  width:280px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-navy));
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  transform: translateX(-110%);
  transition: transform .28s ease;
  z-index:80;
  padding:1rem;
  color:#fff;
}
.mobile-nav.open{ transform: translateX(0); }
.mobile-close{ background:none; border:none; color:#fff; font-size:1.2rem; float:right; cursor:pointer;}
.mobile-nav-links{ margin-top:2rem; display:flex; flex-direction:column; gap:1rem;}
.mobile-backdrop{ display:none; position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:70;}
.mobile-backdrop.show{ display:block; }

/* HERO */
.hero{ position:relative; height:78vh; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.hero-video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0.8; filter:brightness(0.6) saturate(0.9); }
.hero-overlay{ position:relative; z-index:10; max-width:1100px; margin:auto; text-align:left; padding:2rem; }
.hero-overlay h1{ font-size:1.8rem; margin-bottom:0.6rem; color:#fff; }
.lead{ color: rgba(255,255,255,0.9); margin-bottom:1rem; }

/* Buttons in hero */
.hero-ctas a{ margin-right:0.6rem; display:inline-block; text-decoration:none; border-radius:25px; }
.btn-pry{ background:var(--accent); color:#fff; padding:0.7rem 1.1rem; border-radius:8px; }
.btn-outline{ background:transparent; color:#fff; padding:0.6rem 1rem; border-radius:8px; border:1px solid rgba(255,255,255,0.12); }

/* Sections 
.section{ padding:2.4rem 0; }*/
.section-title{ font-size:1.4rem; margin-bottom:1rem; color:#fff; text-align:center; }

/* Feature cards */
.feature-card{ display:flex; flex-direction:column; gap:0.6rem; background:rgba(255,255,255,0.05); padding:1.1rem; border-radius:10px; }
.feature-img{ width:540px; height:auto; object-fit:contain; }

/* About section 
.about-text{ margin-bottom:1rem; color:rgba(255,255,255,0.92); }
.faq-panels details{ background: rgba(255,255,255,0.03); padding:0.8rem; border-radius:8px; margin-bottom:0.6rem; color:#fff; }
.faq-panels summary{ cursor:pointer; font-weight:600; }
*/
/* Board */
.board-card{ background:rgba(255,255,255,0.05); padding:1rem; border-radius:10px; text-align:center; }
.board-img{ width:100%; height:180px; object-fit:cover; border-radius:8px; margin-bottom:0.6rem; }

/* Why / icons */
.icon-block{ display:flex; gap:0.8rem; align-items:flex-start; }
.icon{ width:36px; height:36px; fill:currentColor; color:#fff; margin-right:0.4rem; }

/* Plan cards (detailed look like your PDF) */

.plan-card.featured{ 
  border:2px solid rgba(255,255,255,0.18); 
  transform:scale(1.02); 
}


.plan-card.detailed{ 
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); 
  padding:1.2rem; border-radius:12px; 
  border:1px solid rgba(255,255,255,0.06); 
  text-align:left; 
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.plan-card h3{ color:#fff; margin-bottom:0.3rem; }
.plan-range{ color: rgba(255,255,255,0.85); margin-bottom:0.6rem; font-weight:600; }
.plan-features{ list-style:none; padding:0; margin:0 0 0.8rem 0; color:rgba(255,255,255,0.85); }
.plan-features li{ margin:0.35rem 0; }
.plan-card .plan-earn{ font-weight:700; color:#fff; margin-bottom:0.8rem; }


/* Chart card */
.chart-card{ background:rgba(255,255,255,0.04); padding:1rem; border-radius:10px; }

/* Testimonials */
.testimonial-card{ background: rgba(255,255,255,0.03); padding:1rem; border-radius:10px; color:#fff; }

/* Steps */
.steps{ list-style:decimal; margin:1rem auto; max-width:700px; padding-left:1.4rem; color:#fff; }

/* Footer */
.site-footer{ background: rgba(0,0,0,0.5); padding:2rem 0; color:#fff; margin-top:2rem; }
.site-footer h4{ margin-bottom:0.6rem; }

/* Utility */
.my_row { display:flex; flex-direction:column; /*gap:1rem;*/ }
@media(min-width:768px){ 
  .my_row{ 
    flex-direction:row; 
  } 
  .mt_md_2{
  margin-top: 0;
}
.home-topnav .brand{ 

  display: block;

}

.home-topnav .left{
  justify-content: space-between;
  width: 49%;
}

  #logout_btn {
    display: block;
  }
}

@media(min-width:992px){ 
.home-topnav .brand{ 

  display: block;
}
}

/* small refinements 
.feature-img, .about-image{
   border-radius:8px;
     max-width: 100%;
    height: auto;
    display: block;
   margin: 0 auto;
   }
*/
/* accessibility / small screens: reduce hero height */
@media(max-width:600px){
  .hero{ height:60vh; }
  .hero-overlay h1{ font-size:1.2rem; }
}

/* Ensure Explore cards align properly *
.explore .my_row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem; /* space between cards *
}

.explore .my_row > div {
  flex: 1 1 45%; /* two columns on desktop *
  min-width: 280px; /* prevent squishing 
}
*/

.explore .my_row,
    .about .my_row,
    .board .my_row,
    .why .my_row {
      display: flex;
      flex-wrap: wrap;
      gap: 1.5rem;
    }

    .explore .my_row > div,
    .about .my_row > div,
    .board .my_row > div,
    .why .my_row > div {
      flex: 1 1 45%;
      min-width: 280px;
    }

    .board .my_row > div,
    .why .my_row > div {
      flex: 1 1 30%; /* 3 columns on desktop */
    }

        /* Ensure images don’t break layout */
    .about-image,
    .feature-img,
    .board-img {
      max-width: 100%;
      height: auto;
      display: block;
      border-radius: 8px;
    }

    .justify_content_center{
      justify-content: center;
    }

    .section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #fff;
}
.gap_1{
  gap: 1rem;
}

.why .my_row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.why .my_row > div {
  flex: 1 1 30%;
  min-width: 280px;
}

.why-card {
 /* background: #fff;*/
  border-radius: 10px;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.icon-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.icon-header .icon {
  width: 28px;
  height: 28px;
  fill: #d64545; /* brand red */
  flex-shrink: 0;
}

.icon-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.why-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #fff;
}

.getstarted .section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: #444;
}

.steps-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.step-card {
  /*background: #fff;*/
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  flex: 1 1 30%;
  min-width: 260px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-left: 1.5rem;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.step-number {
  width: 48px;
  height: 48px;
  line-height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #d64545;
  color: #fff;
  font-size: 1.25rem;
  font-weight: bold;
}

.step-card h4 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  color: #fff;
}

.step-card p {
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.5;
}

.learn-more {
  text-align: center;
}

.learn-more .btn-secondary {
  padding: 0.8rem 1.2rem;
  border: 1px solid #d64545;
  color: #d64545;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.learn-more .btn-secondary:hover {
  background: #d64545;
  color: #fff;
}

.txt_align_center{
  text-align: center;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  
}

/* FAQ Panels */
.faq-panels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  /*border: 1px solid #ddd;*/
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.faq-question {
  width: 100%;
  padding: 1rem 1.2rem;
  text-align: left;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.faq-question::after {
  content: "+";
  font-weight: bold;
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  content: "–";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.2rem;
  color: #fff;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 1rem 1.2rem;
}

.faq-answer p {
  margin: 0;
  font-size: 0.95rem;
  color: whitesmoke;
  line-height: 1.5;
}

/* Tesla Plans Premium Styling */
.tesla-plans h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #fff;
}

.tesla-plan-card {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  color: #fff;
  border-radius: 14px;
  padding: 1.8rem;
  margin-bottom: 2rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tesla-plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.5);
}

.tesla-plan-card .plan-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.tesla-plan-card .icon {
  font-size: 1.6rem;
}

.tesla-plan-card h3 {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0;
}

.tesla-plan-card .plan-range {
  font-size: 0.95rem;
  margin: 0.6rem 0 1rem;
  color: #ccc;
}

.tesla-plan-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.tesla-plan-card ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.tesla-plan-card .btn-premium {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: #FFD700;
  color: #000;
  padding: 0.8rem;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
  text-decoration: none;
}

.tesla-plan-card .btn-premium:hover {
  background: #e6c200;
}

.tesla-plan-card.popular {
  border: 2px solid #FFD700;
}

.tesla-plan-card .plan-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #FFD700;
  color: #000;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}


/* Make all images responsive inside sections */
.section img,
.feature-card img,
.board-card img,
.about-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* optional for nicer look */
}

/* Prevent image columns from collapsing badly */
.my_col_sm_12,
.my_col_md_4,
.my_col_md_6,
.my_col_md_5 {
  overflow: hidden;
}

/* Grid system */
.my_row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.my_row > [class*="my_col_"] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  box-sizing: border-box;
}

/* Mobile default: full width */
.my_col_sm_12 { flex: 0 0 100%; max-width: 100%; }

/* Tablet (≥768px) */
@media (min-width: 768px) {
  .my_col_md_6 { flex: 0 0 50%; max-width: 50%; }
  .my_col_md_4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .my_col_md_5 { flex: 0 0 41.666%; max-width: 41.666%; }
}

/* Desktop (≥1024px) */
@media (min-width: 1024px) {
  .my_col_lg_3 { flex: 0 0 25%; max-width: 25%; }
}

/* Tesla CTA styling */
.tesla-cta {
  position: relative;
  text-align: center;
  padding: 0; /* padding moved to overlay */
  margin: 3rem auto;
  border-radius: 14px;
  overflow: hidden;
  max-width: 1000px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  color: #fff;
  background: url("assets/images/clean-energy.jpeg") center/cover no-repeat; /* replace with your image */
}

.tesla-cta .cta-overlay {
  background: rgba(0,0,0,0.65); /* dark overlay for readability */
  padding: 4rem 2rem;
  border-radius: inherit;
}

.tesla-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #FFD700; /* gold accent */
}

.tesla-cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #eee;
}

/* Premium CTA button (matches Tesla Plans) */
.btn-premium {
  display: inline-block;
  background: #FFD700;
  color: #000;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-premium:hover {
  background: #e6c200;
  transform: translateY(-3px);
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  color: #fff;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-content h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
}

.btn-primary {
  background: #d64545;
  color: #fff;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}

/* Indicators */
.hero-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.hero-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.3s;
}

.hero-indicators .indicator.active {
  background: #fff;
}

/* Hero */
.how-hero {
  background: linear-gradient(-45deg, #d64545, #ff6b6b, #1a2a6c, #2b5876);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  text-align: center;
  padding: 4rem 1.5rem;
  color: #fff;
}
.how-hero h1 { font-size: 2rem; margin-bottom: 1rem; }
.how-hero p { font-size: 1.1rem; }

/* Process Cards */
.process-card {
  /*background: #fff;*/
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-align: center;
  margin-bottom: 1.5rem;
}
.process-card .step-num {
  display: inline-block;
  background: #d64545;
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  line-height: 36px;
  font-weight: bold;
  margin-bottom: 0.8rem;
}

/* Info Cards */
.info-card {
  /*background: #f8f9fa;*/
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}
.info-card h3 { margin-bottom: 0.6rem; }

/* Section spacing */
.how-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* Support Page Wrapper */
.support-hero {
  background: linear-gradient(-45deg, #d64545, #ff6b6b, #1a2a6c, #2b5876);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  text-align: center;
  padding: 4rem 1.5rem;
  color: #fff;
}

.support-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.support-hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Support Section */
.support-section {
  padding: 4rem 1.5rem;
}

.support-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #fff;
}

/* Form Container */
.support-form-wrapper {
  max-width: 600px; /* keep it narrow on desktop */
  margin: 0 auto;
  /*background: #fff;*/
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Labels & Inputs */
.support-form-wrapper label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: #b9adad;
}

.support-form-wrapper input,
.support-form-wrapper textarea,
.support-form-wrapper select {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.support-form-wrapper input:focus,
.support-form-wrapper textarea:focus,
.support-form-wrapper select:focus {
  border-color: #d64545;
  box-shadow: 0 0 6px rgba(214, 69, 69, 0.3);
  outline: none;
}

/* Button */
.support-form-wrapper .btn-primary {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  background: #d64545;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.support-form-wrapper .btn-primary:hover {
  background: #b73737;
}

/* Responsive */
@media (max-width: 768px) {
  .support-form-wrapper {
    padding: 1.5rem;
  }

.tool-row {
flex-direction: column;
}


}

.mt_2{
  margin-top: 2rem;
}

.mt_md_2{
  margin-top: 2rem;
}