/*===============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-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-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: -14px; /* 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: 10px;
  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 !important;
  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-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;
}

/* ======================================= */
/* ======   Popular Blog Styles     ====== */
/* ======================================= */

.popular-section{
  max-width: 1180px;
  width: 100% !important;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.title-divider {
  display: flex;
  align-items: center;
  width: 100%; 
  gap: 1.5rem;
}

.title-divider h2 {
  margin: 0;
  color: black;
  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;
  height: 2px;
  background-color: gray;
}

.single-line {
    height: 2px;
    background-color: gray;
    width: 100%;
    margin-top: 2%;
    margin-bottom: 5%;
}

.single-post-container{
  margin-top: 1rem;
}

.list-post-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: rgb(245, 245, 245);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 1rem;
}

.list-post-wrapper:hover {
    transform: translateY(-5px);
}

.list-post-image-wrapper {
    flex-shrink: 0;
    width: 50%;
    max-width: 600px;
}

.list-post-image {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    border-color: gray;
    border-width: 1px;
    border-radius: 10px;
}

.list-post-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.published-date {
    color: black;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0; 
}

.post-list-title {
    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;
    font-family: 'Montserrat', sans-serif;
}

.post-list-title a {
    color: inherit;
    text-decoration: none;
}

.post-list-title a:hover {
    color: gray;
}

.post-list-descriptions {
    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 {
    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;
}

/* ======================================= */
/* ====== Newsletter Banner Styles ====== */
/* ======================================= */

.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;
    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-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%;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    color: #333;
    box-sizing: border-box;
}

.newsletter-banner input[type="email"]::placeholder {
    color: #888;
    font-weight: 600;
}

.newsletter-btn {
    background-color: #000 !important;
    color: white;
    font-weight: 700;
    font-size: clamp(1.5rem, 0.5rem + 0.5vw, 2rem) !important;
    font-family: "Phudu", sans-serif;
    border: none !important;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.5s ease !important;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-btn:hover {
    transform: scale(1.05);
    color: black !important;
    background-color: rgb(245, 245, 245) !important;
}

/* Newsletter message styles */
.newsletter-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.newsletter-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles for popular blog */
@media screen and (max-width: 1050px) {
    .list-post-wrapper .post-list-descriptions {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .list-post-wrapper .published-date {
        display: none !important;
    }
    
    .list-post-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .list-post-image-wrapper {
        width: 100%;
        max-width: none;
    }
    
    .post-list-descriptions {
        padding-right: 0;
    }
}

@media (max-width: 1225px) {
  .newsletter-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 1.5rem;
    gap: 2rem;
  }

  .newsletter-banner h2 {
    text-align: center;
    width: 100%;
  }

  .newsletter-banner form {
    max-width: none;
    align-items: center;
  }
}
