html, body {
    height: 100%;
    margin: 0;
    line-height: 1.6;
    font-family: "Phudu", sans-serif;
    font-weight: 200;
    background-color: rgb(245, 245, 245);
  }

  .empty-space {
  height: 10vh;
}

  /* General styling for the wrapper to center content */
.e-header-wrapper {
    position: relative; 
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1;
}

.e-header-wrapper::before {
  content: '';
  background-image: url('../Images/header-bg.jpg');
  background-size: cover;
  background-position: center;
  
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  opacity: 0.4;
  filter: blur(2px);

  z-index: -1;
}

/* Styles the content container */
.e-header-upper {
    /* Uses flexbox to stack items vertically and center them */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem; /* Adds space between the child elements */
    text-align: center; /* Ensures text is centered */
}

.first-title {
    color: #000000;
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
    font-weight: 700;
    letter-spacing: 1px; 
    margin-top: 10%;
}

.second-title {
    color: #000000;
    font-size: clamp(3rem, 1.5rem + 5vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    max-width: 800px;
}

.cta-button {
    background-color: #FFFFFF;
    color: #000000;
    border: 1px solid #EAEAEA;
    border-radius: 50px;
    padding: 14px 28px;
    font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Phudu", sans-serif;
}

.cta-button:hover {
    background-color: #F5F5F5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.title-divider {
  display: flex; /* Changed from 'block' to 'flex' */
  align-items: center; /* This now correctly vertically centers the items */
  width: 100%; 
  gap: 1.5rem; /* This now correctly adds space between the title and the line */
}

.title-divider h2 {
  margin: 0; /* Removes default heading margin */
  color: black; /* Sets a dark gray color for the text */
  font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.1rem);
  font-weight: 600;
  white-space: nowrap;
  padding-bottom: 1%;
}

.title-divider .line {
  flex-grow: 1; /* Allows the line to grow and fill all available space */
  height: 2px; /* Sets the thickness of the line */
  background-color: gray; /* Sets a light gray color for the line */
}

.e-header-lower {
    width: 100%;
    padding-top: 1.5rem; /* Adds space above the blog cards */
}

.p-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Make the entire card a clickable link without underlines */
.p-blog-link {
    text-decoration: none; /* Removes the default link underline */
    color: inherit; /* Makes the title inherit its color */
    display: block; /* Ensures the link takes up the whole grid space */
}

/* A single, reusable style for ANY blog card */
.p-blog-item {
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* The hover effect now targets the single class */
.p-blog-item:hover {
    transform: translateY(-5px);
}

/* Image and title styles remain the same */
.blog-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-title {
    padding: 2% 2% 2% 0%;
    font-size: clamp(1rem, 1rem + 0.5vw, 1rem);
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

@media (max-width: 900px) {
.e-header-lower{
  display: none;
}

.title-divider{
  display: none;
}
}



.post-list {
    max-width: 1140px;
    width: 100% !important;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}


.post-search-bar-wrapper {
  display: flex;
  justify-content: flex-end; /* Aligns items to the end (right) */
  padding: 0 0%; /* Optional: Adds space from the screen edges */

}

.post-search-container {
  display: flex;
  align-items: center; 
  max-width: 400px; 
  margin-top: 5%;
  margin-bottom: 3%;
  background-color: white;
  border-radius: 50px; /* Creates the pill shape */
  padding-left:2%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
  font-family: 'Montserrat', sans-serif; /* Using a font from your existing list */
}

/* Styling for the text input field */
.post-search-input {
  flex-grow: 1; /* Allows the input to take up available space */
  border: none; /* Removes the default border */
  outline: none; /* Removes the focus outline */
  padding: 3% 5%; /* Adds space inside the input field */
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  color: #000 !important;
}

/* Styling for the placeholder text */
.post-search-input::placeholder {
  color: #aaa;
  font-weight: 500;
}

/* Styling for the search button */
.post-search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #a39cd8;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  border: none;
  border-radius: 50px;
  padding: 15px 35px; /* Space inside the button */
  cursor: pointer; /* Changes cursor to a pointer on hover */
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Changes button color slightly on hover */
.post-search-button:hover {
  background-color: #8c82c5;
  transform: scale(1.05); /* Makes the button 5% bigger */
}

/* Styling for the SVG magnifying glass icon */
.post-search-icon {
  width: 22px;
  height: 22px;
  margin-left: 10px; /* Space between "SEARCH" text and the icon */
}

.post-list-container{
  margin-top: 1rem;
}

/* ======================================= */
/* ======   Individual Post Styles  ====== */
/* ======================================= */

.list-post-wrapper {
    display: flex; /* Aligns image and content side-by-side */
    align-items: center; /* Vertically centers the content with the image */
    gap: 2rem; /* Creates space between the image and the content */
    background-color: rgb(245, 245, 245); /* Sets a white background */
    margin-bottom: 2rem; /* Adds space between this post and the next one */
    overflow: hidden; /* Ensures content respects the rounded corners */
    transition: transform 0.3s ease;
}

.list-post-wrapper:hover {
    transform: translateY(-5px); /* Lifts the card slightly on hover */
}

/* --- Image specific styles --- */
.list-post-image-wrapper {
    flex-shrink: 0; /* Prevents the image from shrinking */
    width: 50%;
    max-width: 600px; /* Sets a fixed width for the image container */
}

.list-post-image {
    width: 100%;
    height: auto;
    display: block; /* Removes any extra space below the image */
    border: none;
    border-color: gray;
    border-width: 1px;
    border-radius: 10px; /* Slightly rounds the image corners */
}

/* --- Content specific styles --- */
.list-post-content-wrapper {
    display: flex;
    flex-direction: column; /* Stacks the content vertically */
    align-items: flex-start; /* Aligns content to the left */
}

.published-date {
    color: black;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0; 
}

.post-list-title {
    /* Clamps the font size between 1rem and 2rem for smooth scaling */
    font-size: clamp(0.5rem, 0.5rem + 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0; /* Top, Right, Bottom, Left margins */
    font-family: 'Montserrat', sans-serif;
}

.post-list-title a {
    color: inherit; /* This makes the link's color the same as the parent h2 */
    text-decoration: none; /* This removes the underline */
}

.post-list-title a:hover {
    /* Optional: Add a hover effect if you like */
    color: gray;
}

.post-list-descriptions {
    /* Clamps the font size between 1rem and 1.15rem */
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
    color: black;
    padding-right: 10%;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.post-list-readmore {
    /* Clamps the font size between 1rem and 1.1rem */
    font-size: clamp(1rem, 0.95rem + 0.5vw, 1.1rem);
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    background: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.post-list-readmore:hover {
    color: gray; /* Darker highlight on hover */
}

.post-meta-container {
    display: flex;
    align-items: center; /* Vertically aligns date and tag */
    gap: 0.5rem; /* Creates space between date, separator, and tag */
    margin-bottom: 0.75rem; /* The margin that used to be on the date */
}

/* --- ADDED: Style for the tag itself --- */
.post-tag {
    font-size: 0.7rem; /* Make the tag text slightly smaller */
    font-weight: 700;
    color: white;
    background-color: #4A90E2; /* A nice blue, feel free to change */
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- ADDED: A small dot separator between the date and tag --- */
.post-tag-separator {
    background-color: black;
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

/* ======================================= */
/* ======   RESPONSIVE MEDIA QUERIES ====== */
/* ======================================= */

/* Hide descriptions on medium screens and below */
@media screen and (max-width: 1050px) {
    .post-list-container .post-list-descriptions,
    .list-post-wrapper .post-list-descriptions {
        display: none !important;
    }
}

/* Hide published date on small screens and below */
@media screen and (max-width: 768px) {
    .post-list-container .published-date,
    .list-post-wrapper .published-date {
        display: none !important;
    }
    
    /* Stack content vertically on mobile */
    .list-post-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .list-post-image-wrapper {
        width: 100%;
        max-width: none;
    }
    
    .post-list-descriptions {
        padding-right: 0;
    }
}


/* ======================================= */
/* ====== Newsletter Banner Styles ====== */
/* ======================================= */

.newsletter-section{
  max-width: 1140px;
    width: 100% !important;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.newsletter-banner {
    display: flex;
    flex-direction: row; 
    align-items: center;           
    justify-content: space-between;
    gap:2rem;
    background-color: #a39cd8;
    border-radius: 10px;
    padding: 3rem 4rem;          /* Adjust padding for the new layout */
    margin-top: 2%;
    border: solid;
    border-color: gray;
    margin-bottom: none;
}

.newsletter-banner h2 {
    color: white;
    font-size: clamp(2rem, 1rem + 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.2;
    margin: 0;
    text-align: left;
    flex-shrink: 0;
}

.newsletter-banner form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
}

.newsletter-banner input[type="email"] {
    background-color: #EFEFEF;
    border: none;
    border-radius: 10px;
    padding: 1rem;
    width: 100%;                    /* 🔥 Change: Make input fill the form width */
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;               /* Align placeholder text to the left */
    color: #333;
    box-sizing: border-box;         /* Ensures padding doesn't affect width */
}

.newsletter-banner input[type="email"]::placeholder {
    color: #888;
    font-weight: 600;
}

/* --- 🔥 REVERTED TO SOLID BUTTON STYLE --- */
.newsletter-btn {
    background-color: #000 !important;
    color: white;
    font-weight: 700;
    font-size: clamp(1.5rem, 0.5rem + 0.5vw, 2rem) !important;
    border: none !important;                   /* Remove border */
    border-radius: 10px;
    padding: 1rem;                  /* Match padding with input field */
    cursor: pointer;
    transition: transform 0.5s ease !important;
    width: 100%;                    /* Make button fill the form width */
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Add subtle shadow */
}

.newsletter-btn:hover {
    transform: scale(1.05);
    color: black !important;
    background-color: rgb(245, 245, 245) !important;
}

@media (max-width: 1225px) {
  .newsletter-banner {
    /* 1. Stacks the content vertically */
    flex-direction: column;
    align-items: flex-start; /* Aligns items to the left */
    
    /* 2. Reduces padding for smaller screens */
    padding: 2.5rem 1.5rem;
    
    /* 3. Increases the gap for better vertical spacing */
    gap: 2rem;
  }

  .newsletter-banner h2 {
    text-align: center; /* Center the heading on mobile */
    width: 100%;
  }

  .newsletter-banner form {
    max-width: none; /* Allows the form to fill the container width */
    align-items: center;
  }
}


/* ======================================= */
/* ======    Pagination Styles      ====== */
/* ======================================= */

/* The main container for the pagination links */
.pagination-container {
    display: flex; /* Aligns links in a row */
    justify-content: center; /* Centers the links on the page */
    align-items: center;
    padding: 1rem 0;
    margin-top: 2rem; /* Space above the pagination bar */
    background-color: #f0f2f5; /* Light grey background for the bar */
    border-radius: 50px; /* Fully rounded ends */
    width: fit-content; /* Makes the container only as wide as its content */
    margin-left: auto;
    margin-right: auto;
}

/* Individual page links (numbers and "NEXT") */
.pagination-link {
    font-weight: 600;
    font-size: 1rem;
    color: #333; /* Dark text color for numbers */
    text-decoration: none;
    padding: 0.75rem 1rem; /* Vertical and horizontal space inside the link */
    margin: 0 0.25rem; /* Small space between numbers */
    border-radius: 50px; /* Makes each link's background a circle/oval */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* The style for the currently active page */
.pagination-link.active {
    background-color: #d1d5db; /* Grey background for the active number */
    color: #000; /* Black text for the active number */
}

/* The style when you hover over a link */
.pagination-link:not(.active):hover {
    background-color: #e5e7eb; /* Slightly darker grey on hover */
}


/*--------------------------POST------------------------------*/

.p-upper-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.post-wrapper {
    justify-content: center;
    align-items: center;
    max-width: 1140px;
    width: 100%;
    text-align: center; /* Center all text content by default */ /* White background for the post */
    padding: 40px;
    padding-top: 10%;
}

/* "EXPERT SHARING" main title */
.post-Main-title {
    font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
    font-weight: bold;
    letter-spacing: 2px; /* Spacing between letters */
    margin-bottom: 10px;
}

/* Sub-title styling */
.post-Sub-title {
    font-size: clamp(2rem, 1rem + 3vw, 3.5rem);
    font-weight: bold;
    color: #333; /* Dark gray color */
    margin-bottom: 30px;

}

/* Container for the main image */
.p-image1 {
    margin-bottom: 40px;
}

.p-image1 img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Slightly rounded corners for the image */
}

/* "H1 HEADING" style */
.p-Small-heading1 {
    font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
    font-weight: bold;
    text-align: left; /* Aligned to the left as in the image */
    margin-bottom: 20px;
}

/* Paragraph text styling */
.p-Paragraph1 {

    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
    color: black; /* Slightly lighter than pure black */
    line-height: 1.6; /* Spacing between lines for readability */
    text-align: left; /* Aligned to the left */
    font-weight: 400;
    font-family: "Montserrat", sans-serif;
}

.p-image2 {
    margin-bottom: 40px;
    margin-top: 10%;
}

.p-image2 img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Slightly rounded corners for the image */
}

.p-Paragraph2 {

    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
    color: black; /* Slightly lighter than pure black */
    line-height: 1.6; /* Spacing between lines for readability */
    text-align: left; /* Aligned to the left */
    font-weight: 400;
    font-family: "Montserrat", sans-serif;
}

.p-Small-heading2 {
    font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
    font-weight: bold;
    text-align: left; /* Aligned to the left as in the image */
    margin-bottom: 40px;
    margin-top:40px;
}

.p-Paragraph3 {

    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
    color: black; /* Slightly lighter than pure black */
    line-height: 1.6; /* Spacing between lines for readability */
    text-align: left; /* Aligned to the left */
    font-weight: 400;
    font-family: "Montserrat", sans-serif;
}

.p-cta-button {
    margin-top: 20px;
    background-color: black;
    color: white;
    border: 1px solid #EAEAEA;
    border-radius: 50px;
    padding: 14px 28px;
    font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Phudu", sans-serif;
}

.p-cta-button:hover {
    background-color: #F5F5F5;
    color: #000000;
    transform: translateY(-10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}



/*===============PARTNER PAGE===============*/

/*==================================
   Partner Page - "Header" Section
====================================*/

.pn-header-wrapper {
    position: relative; 
    min-height: 40vh;
    display: flex;
    flex-direction: column; /* Add this line */
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1;
}

.pn-header-wrapper::before {
  content: '';
  background-image: url('../Images/Screenshot 2025-07-02 at 05.40.28.png');
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  opacity:1;

  z-index: -1;
}

.pn-first-title{
 color: #000000;
 font-size: clamp(2.5rem, 1.25rem + 4vw, 4.5rem);
 font-weight: 700;
 line-height: 1.1;
 max-width: 800px;
 text-align: center;
 padding-bottom: 2%;
}

.pn-header-descriptions{
 color: #000000;
 font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
 font-weight: 400;
 line-height: 1.1;
 max-width: 800px;
 text-align: center;
 font-family: "Montserrat", sans-serif;
 padding-bottom: 2%;
}

.pn-header-image {
  position: relative;
  z-index: 2;
  width: 60%;
  margin: -7rem auto 0; 
  display: block;
}

.pn-header-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px){
  .pn-header-image{
    display: none;
  }
}


/*==================================
   Partner Page - "Why Partner" Section
====================================*/

.pn-reason-why-wrapper {
    padding-top:5%;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.pn-reason-title {
    font-size: clamp(2rem, 1.5rem + 1.5vw, 3rem);
    font-weight: 700;
    color: #000000;
    padding-left: 3%;
    margin-bottom: 1rem;
    font-family: "Phudu", sans-serif;
}

.pn-reason-descriptions {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.4rem);
    color: black;
    font-weight: 400;
    padding-left: 3%;
    font-family: "Montserrat", sans-serif;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
  .pn-reason-descriptions {
    text-align: center;
  }

  .pn-reason-title {
    text-align: center;
  }
}

.pn-reason-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: left;
}

.pn-reason-right {
    flex: 1;
    max-width: 550px;
}

.pn-reason-right img {
    width: 100%;
    height: auto;
    display: block;
}

.pn-reason-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 550px;
}

.Reason-title {
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
    font-weight: 700;
    color: #000000;
    line-height: 1.2;
    font-family: "Phudu", sans-serif;
}

.Reason-card1 {
    background-color: #d5d8e9;
    padding: 30px 25px;
    border-radius: 12px;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.1rem);
    color: #000000;
    font-weight: 500;
    transition: transform 0.3s ease; /* Smooth transition for hover effect */
}

.Reason-card2 {
    background-color: #c6c8ec;
    padding: 30px 25px;
    border-radius: 12px;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.1rem);
    color: #000000;
    font-weight: 500;
    transition: transform 0.3s ease; /* Smooth transition for hover effect */
}

.Reason-card3 {
    background-color: #a1a6eb;
    padding: 30px 25px;
    border-radius: 12px;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.1rem);
    color: #000000;
    font-weight: 500;
    transition: transform 0.3s ease; /* Smooth transition for hover effect */
}

.Reason-card1:hover {
    transform: translateX(10px); /* Moves the card slightly to the right on hover */
    cursor: pointer;
}
.Reason-card2:hover {
    transform: translateX(10px); /* Moves the card slightly to the right on hover */
    cursor: pointer;
}
.Reason-card3:hover {
    transform: translateX(10px); /* Moves the card slightly to the right on hover */
    cursor: pointer;
}


/*--------------MEDIA QUERY--------------*/
/* Adjusts layout for smaller screens */
@media (max-width: 900px) {
    .pn-reason-content {
        flex-direction: column-reverse; /* Stacks the columns vertically */
        text-align: center; /* Centers text for a better mobile view */
    }

    .pn-reason-left, .pn-reason-right {
        max-width: 100%;
    }

    .Reason-title {
        text-align: center;
    }
    .pn-reason-right img{
        display: none;
    }
}



/*==================================
   Partner Page - "Banner-Cta" Section
====================================*/


.pn-banner-cta {
    font-family: "Phudu", sans-serif;
    padding: 2.5%;
}

.pn-banner-cta-wrapper {
    /* This is the container with the background image */
    background-image: url('../Images/tree.png');
    background-size: cover; /* Ensures the image covers the whole area */
    background-position: center; /* Centers the image */
    max-width: 1140px;
    width: 100% !important;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10%;
    border-radius: 25px;
    flex-wrap: wrap; /* Allows content to wrap on smaller screens */
    gap: 2%; /* Adds consistent spacing between wrapped elements */
}

/* --- Add these new styles for the button --- */
.Banner-cta-button {
    background-color: #a9a7e4; 
    color: white;  
    font-weight: bold;   
    font-size: clamp(1.5rem, 1.5rem + 1.5vw, 3rem);  
    font-family: "Phudu", sans-serif;
    padding: 10px 30px; 
    border: solid;
    border-color: white;
    border-width: 1px;
    border-radius: 35px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Optional: Adds a nice effect when you hover over the button */
.Banner-cta-button:hover {
    transform: translateY(-2px); /* Lifts the button slightly */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Enhances the shadow */
    color:#a9a7e4;
    background-color: white;
    border-color:#a9a7e4 ;
}

@media (max-width: 768px) {
    .pn-banner-cta-wrapper {
        padding: 8% 4%; /* Reduce padding on smaller screens */
        border-radius: 20px; /* Slightly smaller border radius */
    }
}

@media (max-width: 480px) {
    .pn-banner-cta-wrapper {
        padding: 6% 3%; /* Further reduce padding on mobile */
        border-radius: 15px; /* Even smaller border radius */
    }
}



/*==================================
   Partner Page - "pn-Form" Section
====================================*/


.pn-form {
  max-width: 1140px;
  width: 100% !important;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
  margin: 40px auto;
  padding: 40px;
  padding-bottom: 150px;
  background: linear-gradient(135deg,#7e86e0, #b3b6cd) ; /* #b3b6cd, #7e86e0*/
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(155, 153, 212, 0.7); /* Creates the outer glow effect */
  border: solid;
  border-width: 0.4rem;
  border-color: #a1a6eb;
}

/* Form Title */
.pn-form-title {
  font-size:clamp(2rem, 1.5rem + 1.5vw, 4rem);
  font-weight: 700;
  text-align: left;
  margin-bottom: 0px;
  color: #ffffff;
  font-family: "Phudu", sans-serif;
}

input:focus + label,
input:not(:placeholder-shown) + label,
select:focus + label,
select:not([value=""]):valid + label { /* Added for select */
    top: -20px; /* Move label above the field */
    font-size: 0.9rem;
    color: #ffffff;
}

/* Generic input, select, and button styles */
input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  background-color: white;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  padding: 10px 0;
  padding-left: 15px;
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.1rem);
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  color: black;
  outline: none; /* Removes the default browser outline on focus */
}

/* Style for placeholder text */
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
color: transparent;
}

/* Labels */
label {
  display: block;
  margin-bottom: 0px;
  margin-top: 25px;
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.1rem);
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* Row container for side-by-side elements */
.pn-form > div:not(:first-child):not(:last-child) {
  display: flex;
  gap: 30px; /* Space between items in a flex container */
  align-items: center; /* Vertically align items */
}

.pn-form > div > div {
  flex: 1; /* Each child takes up equal space */
}

/* Styling for the dropdown select box */
select {
  -webkit-appearance: none; /* Removes default chrome and safari style */
  -moz-appearance: none; /* Removes default firefox style */
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all 0.3s ease-in-out; /* Added for smooth transition */
}

select option {
  background: #9b99d4; /* Match dropdown options background */
  color: #ffffff;
}

/* Styling for the International Telephone Input library */
.iti {
    width: 100%;
}

/* Style the country search input field */
.iti__search-input {
  background: linear-gradient(135deg,#7e86e0, #b3b6cd) !important; /* Dark purple background */
  color: white !important;             /* White text for contrast */
  border-radius: 5px;                   /* Optional: Slightly rounded corners */
}

/* (Optional) You can also adjust the placeholder text color to be light */
.iti__search-input::placeholder {
  color: #d1d0e8 !important; 
}

.iti__selected-flag, .iti__country-list {
    background-color: #9b99d4;
}

.iti__dial-code {
  font-size: clamp(1rem, 0.85rem + 0.25vw, 1.2rem);
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  color: white !important;
}

/* General Fieldset and Legend Styles */
fieldset {
  border: none;
  padding: 0;
  margin: 20px 0;
  /* Removed "width: 100%" to allow the element to shrink */
}

legend {
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.1rem);
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  padding: 0;
  margin-bottom: 25px; /* Reduced space below the legend */
}

/* Hide the default radio buttons */
fieldset input[type="radio"] {
  display: none;
}

/* Container for the toggle switch */
.pn-radio-group {
  display: flex;
  position: relative;
  background-color: white;
  border-radius: 25px; /* Adjusted border-radius for the smaller size */
  overflow: hidden;
  border: 1px solid #e0e0e0;
  max-width: 360px;
  width: 100%; 
}

/* Style for the labels (Phone, Email) */
.pn-radio-group label {
  flex: 1;
  padding: 12px 10px 0px 10px;  /* CHANGE: Reduced padding to make it smaller */
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem; /* CHANGE: Reduced font size */
  font-weight: 600;
  color: black !important;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

/* The blue sliding element */
.slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: #2563eb;
  border-radius: 25px; /* Adjusted border-radius for the smaller size */
  z-index: 0;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* --- The Magic: Moving the Slider and Changing Text Color --- */

/* When the "Email" radio is checked, move the slider to the right */
#contactEmail:checked ~ .slider {
  transform: translateX(100%);
}

/* Change text color to white for the selected option */
#contactPhone:checked ~ label[for="contactPhone"],
#contactEmail:checked ~ label[for="contactEmail"] {
  color: white !important;
}



/* Submit Button */
button[type="submit"] {
  display: flex;
  width: auto;
  margin: 20px 0 0 0; /* Align the button to the left */
  padding: 12px 30px;
  font-weight: bold;   
  font-size: 2rem;  
  font-family: "Phudu", sans-serif;
  color: #ffffff;
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px; /* Pill shape */
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}


button[type="submit"]:hover {
  background-color: #ffffff;
  color: #9b99d4;
}

/* === FORM SUCCESS MESSAGE STYLES === */

.pn-form-success-container {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease-in-out;
}

.pn-form-success-main {
    font-size: 2rem;
    font-weight: 500;
    color: white; /* Adjust color to match your theme */
    margin-bottom: 25px;
}

/* This class mimics the style of your form labels */
.pn-form-success-subtext {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;      /* <-- Make sure this color matches your label color */
    font-size: 1em;   /* <-- Make sure this size matches your label font-size */
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Minor adjustments for cleaner layout */
.pn-form-row {
    display: flex;
    gap: 30px;
    align-items: flex-end;
}

.pn-form-row > div {
    flex: 1;
}

.pn-form-row > .pn-form-field {
    flex: 1; /* Each child takes up equal space */
}

/* Ensure the label for the phone input is correctly handled */
label[for="phone"], label[for="howDidYouKnow"] {
    margin-bottom: 10px; /* Reduce margin-bottom for labels directly above inputs in a row */
}




/*==================================
   Partner Page - "Banner" Section
====================================*/



.pn-banner {
    font-family: "Phudu", sans-serif;
    padding: 2.5%;
    margin-bottom: 2%;
}

.pn-banner-wrapper {
    background-image: url('../Images/tree.png');
    background-size: cover;
    background-repeat: no-repeat;      /* Ensures the image covers the whole area */
    background-position: center; /* Centers the image */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10rem 4rem; /* Adjusted padding for a better look */
    border-radius: 25px;
    max-width: 1140px;
    width: 100% !important;
    margin: 0 auto;
    box-sizing: border-box;
    /* ADD THESE LINES FOR RESPONSIVENESS */
    flex-wrap: wrap; /* Allows content to wrap on smaller screens */
    gap: 4%; /* Adds consistent spacing like full-banner-section */
}

@media (max-width: 768px) {
    .pn-banner-wrapper {
        padding: 8% 3%; /* Reduce padding on smaller screens */
        border-radius: 20px; /* Slightly smaller border radius */
    }
}

@media (max-width: 480px) {
    .pn-banner-wrapper {
        padding: 6% 2%; /* Further reduce padding on mobile */
        border-radius: 15px; /* Even smaller border radius */
    }
}

.Banner-text {
    color: white;
    font-size: clamp(1.5rem, 1.25vw, 2.5rem); /* More subtle responsive font size */
    font-weight: 200; /* A medium weight looks closer than bold */
    line-height: 1.6;
    text-align: center;
    font-family: "Montserrat", sans-serif;
}



/*==================================  
   Partner Page - "Banner" Section
====================================*/

/*==================================
   REMOVE WHEN MERGE!!!!!!
====================================*/



.container {
    width: 100vw;
    overflow: hidden;
  }
  
  .marquee {

    --gap: 2.5rem;
    background-color: #9195d0;
    overflow: hidden;
    user-select: none;
    display: flex;
    gap: var(--gap);
    transform: rotate(0deg);
    margin-bottom: 40px;
  }
  
  .marquee-content {
    background-color: #9195d0;
    list-style: none;
    flex-shrink: 0;
    display: flex;
    min-width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap);
    animation: marquee 24s linear infinite;
  }

  .text {
    background:white;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    font-size: 50px;
    white-space: nowrap;
  }

    @media (max-width: 480px) {
    .text {
      font-size: 25px;
    }
  }
  
  /*  KEYFRAMES MUST BE OUTSIDE media query */
  @keyframes marquee {
    to {
      transform: translateX(calc(-100% - var(--gap)));
    }
  }


/*==================================  
   Partner Page - "Follow more" Section
====================================*/

/*==================================
   REMOVE WHEN MERGE!!!!!!
====================================*/

.follow-section {
    font-family: "Phudu", sans-serif;
    text-align: center;
}

.follow-upper{
    margin-bottom: 40px;
    /* background-color: #dad3cb; */
}

/* Styling for the title */
.follow-title {
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: bold;
    color: #000000;
    margin-bottom: 2rem;
    padding: 10px;
}

.follow-title .title-blue {
    color: #6a6cff; /* A blue color similar to the image */
}

/* Container for the buttons */
.follow-buttons-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 30px;
}

/* Styling for each button */
.follow-button {
    background-color: #f8f8f8;
    border: 1px solid #f8f8f8;
    border-radius: 12px;
    padding: 1.5rem 3rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.follow-button:hover {
    background-color: #e9e9e9;
    transform: translateY(-2px);
}

/* Icon styling */
.follow-button .icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    filter: grayscale(100%);
    opacity: 0.7;
}


/*==================================  
   Partner Page - "Footer" Section
====================================*/

/*==================================
   REMOVE WHEN MERGE!!!!!!
====================================*/

.site-footer {
    background-color: #9394d3;
    color: #ffffff;
    padding: 70px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.newsletter-text {
    margin: 0 0 25px 0;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 1.5px;
}

/* Button styles (No changes here) */
.footer-cta-button {
    background-color: #ffffff;
    color: #000000;
    border-radius: 50px;
    padding: 12px 15px 12px 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.footer-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.arrow-icon-wrapper {
    background-color: #7d7db8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* NEW: Styles for the navigation wrapper */
.footer-nav-wrapper {
    display: flex; /* Lays out the two nav lists side-by-side */
    gap: 60px;     /* Adjusts the space between the two lists */
    padding-top: 10px; /* Aligns the lists with the main title */
}

/* Navigation link sections (No changes here) */
.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.footer-nav li {
    margin-bottom: 5px;
}

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for tablets and mobile devices */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-left {
        align-items: center;
    }
    
    .footer-nav-wrapper {
        justify-content: center; /* Center the nav lists on mobile */
    }
}





/* ======================================= */
/* ====== Responsive Search Bar Styles === */
/* ======================================= */

/* --- This media query targets tablets and mobile devices --- */
@media (max-width: 768px) {

  /*
    By default, hide the input field and button text on small screens.
  */
  .post-search-container {
    padding-left: 0;
    background-color: transparent;
    box-shadow: none;
  }

  .post-search-input {
    width: 0;
    padding: 0;
    opacity: 0;
    transition: width 0.4s ease, opacity 0.3s ease-in-out;
  }

  /* --- MODIFIED SECTION --- */
  .post-search-button {
    font-size: 0; /* This makes the text "SEARCH" disappear */
    padding: 10px; /* Adjust padding to be equal for a circular shape */
    background-color: #a39cd8;
  }

  /* --- NEW --- */
  .post-search-icon {
    margin-left: 0; /* Remove margin from the icon since there's no text */
  }
  /* --- END MODIFIED SECTION --- */


  /*
    These are the styles that apply when your JavaScript adds the .is-open class.
  */
  .post-search-container.is-open {
    padding-left: 2%;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .post-search-container.is-open .post-search-input {
    width: 200px;
    padding: 3% 5%;
    opacity: 1;
  }
}


/*EXPERT_DETAILS/COMMUNITY SECTIONS*/
.popular-section{
  max-width: 1180px;
  width: 100% !important;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.single-line {
  height: 2px;
  background-color: gray;
  width: 100%; /* Ensure the line takes the full width of its container */
  margin-top: 2%;
  margin-bottom: 5%;
}



/* ======================================= */
/* ======   All Events Styles  ====== */
/* ======================================= */



.event-background{
    background: linear-gradient(180deg, #f5f5f5, #b0d1ff);
    padding: 4rem 2rem; /* Add padding for spacing */
}

.event-wrapper {
    font-family: "Phudu", sans-serif;
    background-color: #f5f1e6;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    border-radius: 32px;
    margin: 2rem 1rem;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 2rem;
    padding-top: 1.5rem;
    margin-top: 7rem;
}

.event-upper {
    text-align: center;
    margin-bottom: 20px;
}

.event-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #000;
}

.event-grid {
    display: grid;
    gap: 30px;
}

.event-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #efeeea;
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    gap: 0px;
    padding: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.card-content {
    display: flex;
    flex-direction: column;
    padding: 3%;
    max-width: 100%; /* Prevents the container from expanding beyond its grid column */
    overflow: hidden; /* Ensures nothing spills out */
}

.event-card-title {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 0px 0;
    color: #333;
}

.event-location, .event-time {
    font-size: 1rem;
    font-weight: 700;
    color: black;
    margin: 0 0 0px 0;
}

.event-description {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    color: #555;
    margin: 10px 0 20px 0;
    overflow-wrap: break-word; /* Allows long words or strings to break and wrap */
    word-wrap: break-word;     /* Legacy fallback for older browsers */
}


.signup-button {
    background-color: #c2deff !important;
    color: #000000 !important;
    border: none;
    border-radius: 20px;
    padding: 10px 40px;
    font-weight: 500;
    cursor: pointer;
    align-self: flex-start;
    font-weight: bold;
    font-family: "Phudu", sans-serif;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.signup-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: width 0.3s ease, height 0.3s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.signup-button:hover::before {
    width: 200px;
    height: 200px;
}

.signup-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.signup-button:active {
    transform: scale(0.98);
}

.event-actions {
    display: flex;
    align-items: center; /* Vertically aligns buttons if they are different heights */
    flex-wrap: wrap;     /* Allows buttons to wrap on very small screens */
    gap: 15px;           /* Creates space between the buttons */
    margin-top: 10px;    /* Adds space above the button group */
}

/* Styling for the "Read more" / "See less" button */
.read-more-button {
    background-color: transparent;
    color: #555; /* A subtle text color */
    border: 2px solid #d1d1d1; /* A light grey border */
    border-radius: 20px; /* Match the signup button's roundness */
    padding: 8px 20px; /* A little smaller than the main button */
    font-weight: bold;
    font-family: "Phudu", sans-serif; /* Use the same font */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.read-more-button:hover {
    background-color: #e0e0e0; /* A light grey fill on hover */
    border-color: #e0e0e0;
    color: #000;
    transform: scale(1.05);
}

.image-placeholder {
    background-color: #afd0ff; /* Light blue background */
    border-radius: 40px 40px 40px 10px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 1rem;
    background-clip: padding-box;
    border: 1rem solid #afd0ff; 
}


.more-events-container {
    text-align: center;
    margin-top: 40px;
}

.more-events-button {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 35px;
    padding: 5px 10px 5px 20px;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-family: "Phudu", sans-serif;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.more-events-button:hover {
    transform: scale(1.00);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    
}


.more-events-icon {
  background-color: #e6defb;
  border: 1px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  font-weight: bold;
  font-size: 1.5rem;
  transition: transform 0.2s ease-in-out;
}

.more-events-icon:hover{
  transform: scale(1.02);
}

.less-events-container {
    text-align: center;
    margin-top: 40px;
}

.less-events-button {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 35px;
    padding: 5px 10px 5px 20px;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap:20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-family: "Phudu", sans-serif;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.less-events-button:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Styling for the main countdown container */
.event-countdown {
    display: flex;
    justify-content: flex-start; /* Aligns timer to the left on desktop */
    gap: 15px; /* Space between segments */
    margin: 10px 0; /* Space above and below the timer */
    font-family: "Phudu", sans-serif;
}

/* Styling for each segment (e.g., the "Days" block) */
.countdown-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
    /* Add a minimum width to prevent segments from becoming too narrow */
    min-width: 50px;
}

/* Styling for the large numbers (00) */
.countdown-number {
    /* This clamp() function is already making the font size responsive! */
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #333;
}

/* Styling for the small labels (Days, Hours, etc.) */
.countdown-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #666;
}

/* Styling for the message when an event has started */
.event-ended {
    font-weight: bold;
    color: #c44d56; /* A reddish color */
    background-color: #fdd;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

/* ## Sign-up Form Styling ## */

/* This will be the container for our new form */
.signup-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Adds space between the form fields */
    padding: 10px 0; /* Some vertical spacing */
}

.signup-form-wrapper, .event-details {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

.event-details.hidden {
    display: none !important;
    opacity: 0;
    transform: scaleY(0.8);
}

.event-details:not(.hidden) {
    opacity: 1;
    transform: scaleY(1);
    animation: slideInDetails 0.3s ease-out;
}

.signup-form-wrapper.hidden {
    display: none !important;
    opacity: 0;
    transform: scaleY(0.8);
}

.signup-form-wrapper:not(.hidden) {
    opacity: 1;
    transform: scaleY(1);
    animation: slideInForm 0.3s ease-out;
}

@keyframes slideInForm {
    from {
        opacity: 0;
        transform: translateY(-10px) scaleY(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

@keyframes slideInDetails {
    from {
        opacity: 0;
        transform: translateY(-10px) scaleY(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

/* Styling for the input fields to match the 'after' image */
.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 8px;
    background-color: white;
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #000000 !important; /* Explicitly set text color to black */
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: #c2deff;
    background-color: #fff;
    transform: scale(1.01);
    box-shadow: 0 2px 10px rgba(194, 222, 255, 0.3);
}

.form-input::placeholder {
    color: #999;
    transition: color 0.2s ease-in-out;
}

.form-input:focus::placeholder {
    color: #ccc;
}


/* Styling for the new black submit button */
.form-submit-button {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: none;
    font-size: clamp(1.25rem, 0.5vw, 4.5rem) !important;
    border-radius: 20px;
    padding: 15px 40px;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-start;
    font-family: "Phudu", sans-serif;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.form-submit-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: width 0.3s ease, height 0.3s ease;
    transform: translate(-50%, -50%);
}

.form-submit-button:hover::before {
    width: 120px;
    height: 120px;
}

.form-submit-button:hover {
    background-color: #7d7db8 !important;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.form-submit-button.loading {
    background-color: #666;
    cursor: not-allowed;
    position: relative;
}

.form-submit-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success message styling */
.success-message {
    background: linear-gradient(135deg, #afd0ff, #afd0ff);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    animation: successSlide 0.5s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0);
}

@keyframes successSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* A simple utility class to hide elements */
.hidden {
    display: none !important;
}

/* Container to hold both form buttons */
.form-button-container {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between the two buttons */
}

/* Styling for the new close button */
.form-close-button {
    background-color: none;
    color: #000000;
    font-size: clamp(1.25rem, 0.5vw, 4.5rem);
    border: none;
    border-radius: 20px;
    margin-top: 2.5%;
    padding: 15px 30px;
    font-weight: bold;
    cursor: pointer;
    font-family: "Phudu", sans-serif;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.form-close-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: width 0.3s ease, height 0.3s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.form-close-button:hover::before {
    width: 100px;
    height: 100px;
}

.form-close-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.form-close-button:active {
    transform: scale(0.98);
}




/* On mobile, make buttons stack vertically for better usability */
@media (max-width: 800px) {
    .form-button-container {
       flex-direction: column;
       align-items: center; /* Center the stacked buttons */
       width: 100%;
    }

    .form-submit-button, .form-close-button {
        width: 80%; /* Make buttons take up more width */
        text-align: center;
    }
}

/* Minor adjustment for responsiveness */
@media (max-width: 800px) {
    .form-submit-button {
        /* Center the button on mobile, like the original button */
        align-self: center;
    }
}

/* ---------------------------------- */
/* ## Responsive Adjustments ## */
/* ---------------------------------- */
/* For screens smaller than 800px */
@media (max-width: 800px) {
    .event-card {
        /* Switch to a single-column layout */
        grid-template-columns: 1fr;
    }

    .image-placeholder {
        /* Hide the image completely */
        display: none;
    }

    .card-content {
        /* Center all content horizontally */
        align-items: center;
        text-align: center;
        display: flex;
        flex-direction: column;
        padding: 3%;
        
        max-width: 100%; /* Prevents the container from expanding beyond its grid column */
        overflow: hidden; /* Ensures nothing spills out */
    }

    .event-description{
      max-width: 95%;
        word-break: break-word; /* Add this */
        hyphens: auto; /* Add this for better hyphenation */
    }
    .event-countdown {
        /* Ensure the countdown segments are centered */
        justify-content: center;
    }

    .signup-button {
        /* Override the default left-alignment to center the button */
        align-self: center;
    }
}

/* For screens smaller than 576px (tablets and mobile phones) */
@media (max-width: 576px) {
    .event-countdown {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .event-description {
        font-size: 0.8rem;
        line-height: 1.5;
        max-width: 95%;
    }
}

/* For screens smaller than 420px (very narrow mobile phones) */
@media (max-width: 420px) {
    .event-countdown {
        gap: 8px;
    }

    .countdown-segment {
        padding: 4px 8px;
        min-width: 45px;
    }

    .countdown-label {
        font-size: 0.65rem;
    }
}

/* Mobile responsive enhancements */
@media (max-width: 800px) {
    .signup-button, .form-submit-button {
        align-self: center;
        width: auto;
        min-width: 60%;
        text-align: center;
    }
    
    .form-button-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
    }

    .form-submit-button, .form-close-button {
        width: 80%;
        text-align: center;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .signup-form-wrapper, .event-details, 
    .signup-button, .form-submit-button, 
    .form-close-button, .event-card {
        transition: none;
        animation: none;
    }
}

/* Focus indicators for accessibility */
.signup-button:focus, 
.form-submit-button:focus, 
.form-close-button:focus {
    outline: 3px solid #c2deff;
    outline-offset: 2px;
}

.form-close-button:focus {
    outline: 3px solid #a8c8ff;  /* Slightly darker outline since button is same color */
    outline-offset: 2px;
}

.form-input:focus {
    outline: 3px solid #c2deff;
    outline-offset: 2px;
}


/* Event Toggle Buttons Container */
.event-toggle-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

/* Toggle Button Base Styles */
.toggle-button {
    padding: 10px 20px;
    border: 2px solid #007bff;
    background: transparent;
    color: #007bff;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
}

/* Active Toggle Button */
.toggle-button.active,
.toggle-button:hover {
    background: #007bff;
    color: white;
}

/* Toggle Button Focus State */
.toggle-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Past Event Card Styling */
.event-card.past-event {
    position: relative;
}

.event-card.past-event .image-placeholder {
    opacity: 0.7;
}

/* Past Event Date Display */
.event-date-display {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    border-left: 4px solid #6c757d;
}

.event-date-display span:first-child {
    font-size: 18px;
    font-weight: bold;
    color: #6c757d;
}

.event-date-display span:last-child {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
    display: inline-block;
}

/* Responsive Design for Toggle Buttons */
@media (max-width: 768px) {
    .event-toggle-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .toggle-button {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .toggle-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .event-date-display {
        padding: 15px;
        margin: 10px 0;
    }
    
    .event-date-display span:first-child {
        font-size: 16px;
    }
    
    .event-date-display span:last-child {
        font-size: 12px;
    }
}

/*END EVENT STYLING*//*END EVENT STYLING*//*END EVENT STYLING*//*END EVENT STYLING*//*END EVENT STYLING*//*END EVENT STYLING*//*END EVENT STYLING*//*END EVENT STYLING*//*END EVENT STYLING*//*END EVENT STYLING*/

.full-banner-wrapper {
    font-family: "Phudu", sans-serif;
    padding: 1%;
}

.full-banner-section{
    /* background-color: black; */
    background-image: url('../Images/quantumcomputer.jpg');
    display: flex;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    justify-content: center;
    align-items: center;
    padding: 10%;
    gap: 4%;
    flex-wrap: wrap;
    border-radius: 25px;
}

.full-banner-text {
color: white;
font-size: clamp(2em, 5vw, 4em);
font-weight: bold;
text-align: center;
white-space: nowrap;
}


.activity-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.activity-header {
    font-size: clamp(2rem, 1.5rem + 5vw, 4.5rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.activity-post-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 20px;
    height: 600px;
    margin-bottom: 40px;
}

.activity-post-1 {
    grid-column: 1;
    grid-row: 1 / 3;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('https://images.unsplash.com/photo-1559223607-a43c990c692c?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.activity-post-1:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.activity-post-1:hover::before {
    opacity: 1;
}

.activity-post-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.activity-post-2 {
    grid-column: 2;
    grid-row: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.activity-post-2:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.activity-post-2:hover::before {
    opacity: 1;
}

.activity-post-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.activity-post-3 {
    grid-column: 2;
    grid-row: 2;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.activity-post-3:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.activity-post-3:hover::before {
    opacity: 1;
}

.activity-post-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.activity-post-4 {
    grid-column: 1 / 3;
    grid-row: 3;
    background: transparent;
    border-radius: 0;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    padding: 0;
}

.activity-post-5 {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.activity-post-5:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.activity-post-5:hover::before {
    opacity: 1;
}

.activity-post-5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.activity-post-5:last-child {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('https://images.unsplash.com/photo-1544717297-fa95b6ee9643?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.activity-post-5:last-child:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.activity-post-5:last-child:hover::before {
    opacity: 1;
}

.activity-post-5:last-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.activity-post-6 {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('https://images.unsplash.com/photo-1551698618-1dfe5d97d256?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.activity-post-6:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.activity-post-6:hover::before {
    opacity: 1;
}

.activity-post-6::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.activity-title {
    color: white;
    font-weight: bold;
    font-size: 1.75rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.activity-post-1 .activity-title {
    font-size: 2rem;
}

.activity-question {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-top: 40px;
}

/* Responsive design */
@media (max-width: 768px) {
    .activity-section{
      display: none;
    }
}

/* ======================================= */
/* ======       NAVBAR STYLES       ====== */
/* ======================================= */

/* --- General Navbar & Layout --- */
.navbar {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 90%;
  max-width: 1100px;
  z-index: 999;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 60px;
  padding: 10px 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease-in-out;
}

.navbar--hidden {
  transform: translateY(-150%);
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

/* --- Logo & Branding --- */
.logo-link {
  z-index: 9999;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
  transition: transform 0.3s ease-in-out;
}
.logo-link:hover {
    transform: scale(1.05);
}

.logo-img {
  height: 30px;
}

.logo-text {
  font-family: "Phudu", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: black;
  margin: 0;
}

/* --- Navigation Menu (Desktop) --- */
.nav-menu {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 5px;
  gap: 40px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
}

.nav-menu li {
  font-family: 'Phudu', sans-serif;
}

.nav-menu li a {
  position: relative;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  transition: transform 0.3s ease;
  padding-bottom: 5px;
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: black;
  transition: width 0.3s ease;
}

.nav-menu li a:hover {
  transform: scale(1.05);
}

.nav-menu li a:hover::after {
  width: 100%;
}

/* --- Right-Aligned Items (CTA & Language) --- */
.navbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-cta-button {
  background: #fff;
  border: none;
  border-radius: 100px;
  padding: 10px 24px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Phudu', sans-serif;
  box-shadow: 0 4px 5px rgb(206, 236, 254);
  text-decoration: none;
  color: #000;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-cta-button:hover {
  background: #f0f0f0;
  transform: scale(1.03);
}

/* --- Desktop Language Dropdown --- */
.language-dropdown {
  position: relative;
}

.language-dropdown-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 5px;
  gap: 8px;
}

.language-dropdown .flag-icon {
  width: 24px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.language-dropdown .arrow-down {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #333;
  transition: transform 0.3s ease;
}

.language-dropdown-menu {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
  min-width: 150px;
}

.language-dropdown-menu.active {
  display: block;
}

.language-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  text-decoration: none;
  color: #333;
  font-family: 'Phudu', sans-serif;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.language-dropdown-menu a:hover {
  background-color: #f5f5f5;
}

/* --- Hamburger Menu Icon --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  margin-left: auto;
}

.hamburger-bar {
  width: 2rem;
  height: 0.25rem;
  background-color: #333;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

/* Hamburger animation to 'X' */
.hamburger.hamburger--active .hamburger-bar:nth-child(1) {
  transform: translateY(0.75rem) rotate(45deg);
}
.hamburger.hamburger--active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.hamburger.hamburger--active .hamburger-bar:nth-child(3) {
  transform: translateY(-0.75rem) rotate(-45deg);
}

/* --- Sticky Language Dropdown (Mobile) --- */
.sticky-language-dropdown {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  display: none;
}

.sticky-language-toggle {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  gap: 6px;
  border-radius: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
  min-width: 60px;
  justify-content: center;
}

.sticky-language-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 1);
}

.sticky-language-toggle .flag-icon {
  width: 20px;
  height: auto;
  border-radius: 3px;
  flex-shrink: 0;
}

.sticky-language-toggle .arrow-up {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid #333;
  transition: transform 0.3s ease;
  margin-left: 2px;
}

.sticky-language-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background-color: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  z-index: 1051;
  overflow: hidden;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: bottom right;
}

.sticky-language-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.sticky-language-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  font-family: 'Phudu', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sticky-language-menu a:last-child {
  border-bottom: none;
}

.sticky-language-menu a .flag-icon {
  width: 18px;
  height: auto;
  border-radius: 2px;
  flex-shrink: 0;
}

.sticky-language-menu a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #000;
  transform: translateX(-2px);
}

.sticky-language-menu.active ~ .sticky-language-toggle .arrow-up {
  transform: rotate(180deg);
}

/* ======================================= */
/* ======   NAVBAR: RESPONSIVE      ====== */
/* ======================================= */

@media (max-width: 1000px) {
  /* Adjust navbar padding for mobile */
  .navbar {
    padding: 8px 15px;
    width: 95%;
    border-radius: 50px;
  }

  /* Reset navbar-inner layout */
  .navbar-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    position: relative;
  }

  /* Logo adjustments */
  .logo-link {
    margin-left: 10px;
    flex-shrink: 0;
    z-index: 1002;
  }

  .logo-text {
    font-size: 18px;
  }

  .logo-img {
    height: 28px;
  }

  /* Center the CTA button */
  .navbar-right {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    gap: 0;
    z-index: 1000;
  }
  
  .nav-cta-button {
    font-size: 14px;
    padding: 8px 16px;
    font-weight: 600;
  }

  /* Hamburger positioning */
  .hamburger {
    display: flex;
    margin-left: auto;
    z-index: 1002;
    position: relative;
  }

  /* Hide desktop language dropdown */
  .language-dropdown {
    display: none;
  }

  /* Mobile navigation menu - FIXED */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: 90%;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    gap: 5px;
    margin: 0;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  /* Active mobile menu */
  .nav-menu.nav-menu--active {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  /* Mobile menu items */
  .nav-menu li {
    width: 100%;
    text-align: center;
    margin: 8px 0;
  }
  
  .nav-menu li a {
    display: block;
    font-size: 20px;
    font-weight: 500;
    padding: 15px 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: #333;
    position: relative;
  }

  .nav-menu li a::after {
    display: none; /* Remove underline effect on mobile */
  }

  .nav-menu li a:hover,
  .nav-menu li a:focus {
    background-color: rgba(0, 0, 0, 0.08);
    transform: scale(1.02);
    color: #000;
  }

  /* Show the mobile sticky language dropdown with proper spacing */
  .sticky-language-dropdown {
    display: block;
  }

  /* Add padding to body to prevent content from being hidden behind sticky dropdown */
  body {
    padding-bottom: 100px;
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
    padding-bottom: 100px;
  }

  /* Ensure sticky dropdown doesn't interfere with mobile menu */
  .nav-menu.nav-menu--active ~ .sticky-language-dropdown {
    z-index: 999;
  }
}

/* Additional responsive adjustments for very small screens */
@media (max-width: 480px) {
  .navbar {
    width: 98%;
    padding: 6px 12px;
  }

  .logo-link {
    margin-left: 5px;
  }

  .logo-text {
    font-size: 16px;
  }

  .logo-img {
    height: 25px;
  }

  .nav-cta-button {
    font-size: 12px;
    padding: 6px 14px;
  }

  .nav-menu {
    width: 95%;
    top: 65px;
    padding: 20px 15px;
  }

  .nav-menu li a {
    font-size: 18px;
    padding: 12px 20px;
  }
}


