/* Defining my Css Variables */
:root {
  /* Color variables for the web pages */
  --light-bg: #f9f9f9;
  --text-main: #333333;
  --text-muted: #666666;
  --fnl-green: #009C99; /* Matches your eco-friendly branding */
  --border-color: #e0e0e0;
  --bg-color: #1a1a1a;
  --text-color: #d1d1d1;
  --accent-color: #007bff38; /* Change this to match fnlhub's brand color */
  --primary: #3D52A0;
  --secondary: #7091E6;
  --grey: #8697C4;
  --light-grey: #ADBBDA;
  --off-white: #EDE8F5;
  /* Sizes variables for all elements */
  --company-logo-width: 100px;
  /* font sizes for  */
  --font-size-extra-sm: 0.6rem;
  --font-size-sm: 1rem;
  --font-size-m: 2rem;
  --font-size-l: 2.24rem;
  --font-size-el: clamp(1rem, 0.4rem + 3vw, 4rem);
  /* Font weights */
  --font-weight-extra-light: 100;
  --font-weight-light: 300;
  --font-weight-medium: 400;
  --font-weight-bold: 600;
  --font-weight-exbold: 800;
  /* line heights */
  --line-height-small: 1.2rem;
  --line-height-medium: 1.6rem;
  --line-height-big: 2rem;
}

html {   
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
}

 /* Main Scroll Button Container */
#scrollToTopBtn {
  position: fixed;
  bottom: -60px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: #009C99;
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  transition: bottom 0.5s ease, opacity 0.5s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: visible;
}

#scrollToTopBtn.show {
  bottom: 30px;
  opacity: 1;
}

/* Pulsing Ring (Kirupa style) */
#scrollToTopBtn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background-color: rgba(77, 255, 246, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  animation: pulse-ring 1.5s infinite;
  z-index: -1;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

#scrollToTopBtn:hover {
  background-color: #009C99;
}

/* Styling the main height of the webpage */
.wrapper-main {
    min-height: 100vh;
    width: 100%;
    margin: 0 auto;
}

/* Styling the Navigational Bar of the main page*/
nav {
    background-color: rgb(255, 255, 255);
}

nav ul{
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav li {
    height: 70px;
}

nav a {
    height: 100%;
    padding: 0 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: black;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: 0.3s ease;
}

nav a.active {
  color: #009C99;
  font-weight: 700;
  border-radius: 5px;
}

nav a:hover {
    background-color: #f0f0f0;
    color: #009C99;
}

nav li:first-child {
    margin-right: auto;
}

.comp-logo {
    inline-size: 130px;
}

.home-btn {
    color: #009C99;
}

/* Styling the Sidebar of the main page*/
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.395);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar li {
    width: 100%;
}

.sidebar a {
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.menu-button {
    display: none;
}

@media (max-width: 800px) {
    .hideOnMobile{
        display: none;
    }
    .menu-button {
        display: block;
    }
}

@media (max-width: 400px) {
    .sidebar {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .sidebar {
        width: 100%;
    }
}
/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

.company-layout {
    display: flex;
    max-width: 1200px;
    margin: 50px auto;
    gap: 40px;
    padding: 0 20px;
}

/* Sidebar Back Button */
.back-home {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--fnl-green); /* Using that FNL Green we set earlier */
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding: 10px 15px;
    border: 1px solid var(--fnl-green);
    border-radius: 6px;
    transition: all 0.3s ease;
    width: fit-content;
}

.back-home:hover {
    background-color: var(--fnl-green);
    color: #ffffff !important;
    transform: translateX(-5px); /* Slight slide effect to the left */
}

.back-home i {
    font-size: 0.8rem;
}

/* Sidebar Title adjustment */
.sidebar h3 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #333;
}

/* Sidebar Styling */
.content-sidebar {
    flex: 1;
    position: sticky;
    top: 20px; /* Distance from top of screen when scrolling */
    height: fit-content;
    background: #fdfdfd;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.content-sidebar h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #009C99; /* Using your FNL Green */
}

.content-sidebar ul {
    list-style: none;
    padding: 0;
}

.content-sidebar ul li {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.content-sidebar a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: 0.3s;
}

.content-sidebar a:hover {
    color: #009C99;
    padding-left: 5px;
}

/* Content Area */
.content {
    flex: 3;
}

section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

section p {
    line-height: 1.8;
    color: #666;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .company-layout {
        flex-direction: column;
    }
    .content-sidebar {
        position: relative;
        top: 0;
    }
}

.footer {
    background-color: var(--bg-color);
    color: var(--text-color);
    /* background-color: var(--light-bg);
    color: var(--text-main); */
    padding: 60px 0 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 0 20px;
}

.footer-logo {
    color: #fff;
    margin-bottom: 20px;
}

.social-icons a.facebook {
    background-color: #1778F2;
}

.social-icons a.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icons a.twitter {
    background-color: #000000;
}

.social-icons a.whatsapp {
    background-color: #25D366;
}

.social-icons a.linkedin {
    background-color: #17a9ec;
}

.social-icons a.youtube {
    background-color: #FF0000;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-section h3 {
    color: #009C99;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: 0.3s;
}

.footer-section a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Social Icons */
.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #333;
    color: #ffffff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

.social-icons a.whatsapp:hover {
    background-color: #009C99;
    border-color: #009C99;
    color: #fff;
}

/* Bottom Bar */
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}