/* ============================================
    PAGE-4 GLOBAL RESET & VARIABLES
    ============================================ */
:root {
  --primary-color: #1E3A8A;
  --text-primary: #777777;
  --border-color: #CCCCCC;
  --border-light-color:#D7D7D7;
  --primary-dark:#1d4ed8;
  --transition: all 0.3s ease;
  --p5-primary: #1E3A8A;
  --p5-primary-light: #5dadea;
  --p5-primary-dark: #1d4ed8;
  --p5-font: 'Poppins', sans-serif;
  --p5-text-primary: #777777;
  --p5-text-secondary: #686868;
  --p5-text-dark: #000000;
  --p5-text-muted: #565656;
  --p5-text-meted:#7D7D7D;
  --p5-bg-white: #ffffff;
  --p5-bg-section: #EFEFEF;
  --p5-transition: all 0.3s ease;
  --p5-shadow-sm: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  --p5-shadow-md: 0px 8px 24px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; width: 100%; font-family: var(--p5-font); }

/* ============================================
    p5 ABOUT HERO SECTION
    ============================================ */
.p5-about-hero-section {
  /* padding: 60px 0 10px; */
  background-color: var(--p5-bg-section);
  position: relative;
  overflow: hidden;
}


/* Entrance Animation */
.p5-about-content {
  animation: p5FadeSlideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes p5FadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Title */
.p5-about-title {
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--p5-text-dark);
  line-height: 1.25;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
  max-width: 550px;
}


/* Description */
.p5-about-desc {
  font-size: 1.313rem;
  font-weight: 400;
  color: var(--p5-text-primary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 800px;
}

/* CTA Button */
.p5-about-btn {
  background-color: var(--p5-primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 44px;
  font-weight: 400;
  font-size: 1.188rem;
  font-family: var(--p5-font);
  transition: var(--p5-transition);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Shimmer sweep effect */
/* .p5-about-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.p5-about-btn:hover::before {
  left: 100%;
}

.p5-about-btn:hover {
  background-color: var(--p5-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.35);
  color: white;
}

.p5-about-btn:active {
  transform: translateY(-1px);
} */

/* Image Wrapper (Right Side) */
.p5-about-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
}

.p5-about-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--p5-shadow-md);
}

/* ============================================
    RESPONSIVE BREAKPOINTS
    ============================================ */
@media (max-width: 991.98px) {
  .p5-about-hero-section {
    padding: 60px 0;
  }
  .p5-about-title {
    font-size: 2.25rem;
  }
  .p5-about-desc {
    font-size: 1rem;
    max-width: 100%;
  }
}
@media (min-width:1000px) and (max-width:1200px) {
  .p5-about-hero-section {
    padding: 20px 0;
  }
}

@media (max-width: 767.98px) {
  .p5-about-hero-section {
    padding: 60px 0;
  }
  .p5-about-title {
    font-size: 1.875rem;
    margin-bottom: 20px;
  }
  .p5-about-desc {
    font-size: 0.938rem;
    margin-bottom: 28px;
  }
  .p5-about-btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 28px;
  }
}

@media (max-width: 575.98px) {
  .p5-about-hero-section {
    padding: 50px 0;
  }
  .p5-about-title {
    font-size: 1.625rem;
  }
  .p5-about-desc {
    font-size: 0.875rem;
    line-height: 1.6;
  }
  .p5-about-btn {
    font-size: 0.938rem;
    max-width: 100%;
  }
}

@media (max-width: 374.98px) {
  .p5-about-title {
    font-size: 1.4rem;
  }
}
/*  p5 ABOUT HERO SECTION end*/

/*P5 contact card section start*/
.p5-contact-section{
    padding:40px 0;
}

.p5-section-title{
    font-size:1.938rem;
    font-weight:500;
    margin-bottom:50px;
    color:#111;
}

.p5-contact-card{
position:relative;
background:#fff;
border-radius:32px;
padding:60px 10px 0px;
text-align:center;
border:1px solid #D6D6D6;
transition:0.4s ease;
overflow:visible; /* FIXED */
height:100%;
margin-top:40px;
}

.p5-contact-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,0,0,0.12);
}

.p5-contact-card::before{
    content:'';
    position:absolute;
    inset:0;
    padding:2px;
    border-radius:25px;
    background:linear-gradient(45deg,#1e3a8a,#2563eb);
    -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
    -webkit-mask-composite:xor;
    mask-composite:exclude;
    opacity:0;
    transition:0.4s;
}

.p5-contact-card:hover::before{
    opacity:1;
}

.p5-icon-box{
    width:76px;
    height:76px;
    background:var(--p5-primary);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:auto;
    position:absolute;
    top:-38px;
    left:0;
    right:0;
    transition:0.4s;
    z-index: 10;
}

.p5-contact-card:hover .p5-icon-box{
    transform:scale(1.1) rotate(5deg);
}

.p5-icon-box img{
    height: 30px;
    width: 30px;
}

.p5-contact-title{
    font-size:1.25rem;
    font-weight:500;
    margin-bottom:15px;
    color:#111;
}

.p5-phone{
    font-size:1.375rem;
    color:var(--p5-primary);
    font-weight:500;
    margin-bottom:20px;
}

hr{
    margin:20px 0;
    opacity:0.2;
}

.p5-email{
    font-size:1.25rem;
    font-weight: 500;
    color:var(--p5-primary);
    text-decoration:none;
    transition:0.3s;
}

.p5-email:hover{
    color:#000;
}

@media(max-width:991px){

    .p5-section-title{
    font-size:34px;
    }

    .p5-contact-title{
    font-size:24px;
    }

    .p5-phone{
    font-size:26px;
    }

    .p5-email{
    font-size:20px;
    }
}

@media(max-width:767px){

    .p5-contact-section{
    padding:60px 15px;
    }

    .p5-section-title{
    text-align:center;
    font-size:28px;
    }

    .p5-contact-card{
    margin-top:50px;
    }
}
/*P5 contact card section end*/

/* p5 OUR OFFICE SECTION start*/

.p5-office-section {
  padding: 40px 0;
  background-color: var(--p5-bg-white);
  position: relative;
}

/* Section Title */
.p5-office-title {
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--p5-text-dark);
  margin-bottom: 32px;
  line-height: 1.3;
  animation: p5FadeSlideUp 0.6s ease both;
}

/* Office Card - Exact Figma Size */
.p5-office-card {
  position: relative;
  width: 100%;
  max-width: 802px;
  height: 309px;
  /* margin: 0 auto;  */
  border-radius: 28px;
  overflow: hidden;
  animation: p5FadeSlideUp 0.8s ease 0.15s both;
  transition: var(--p5-transition);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.p5-office-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
}

/* Background Image */
.p5-office-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.p5-office-card:hover .p5-office-bg-img {
  transform: scale(1.05);
}

/* Dark Overlay */
.p5-office-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
  transition: background 0.4s ease;
}

.p5-office-card:hover .p5-office-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

/* Content Wrapper - Centered */
.p5-office-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 600px;
}

/* Location Icon */
.p5-office-icon {
  width: 48px;
  height: 48px;
  /* background: rgba(255, 255, 255, 0.95); */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: p5FadeSlideUp 0.6s ease 0.3s both;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
}

/* Professional Icon Hover Effect */
.p5-office-icon::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.p5-office-icon:hover::before {
  opacity: 1;
  transform: scale(1);
  animation: p5IconPulse 1.5s ease-in-out infinite;
}

/* .p5-office-icon:hover {
  transform: scale(1.15) translateY(-4px);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.3);
} */

.p5-office-icon img {
  /* font-size: 1.25rem;
  color: var(--p5-primary); */
  height: 51px;
  width: 38px;
  transition: transform 0.3s ease;
}

.p5-office-icon:hover i {
  transform: scale(1.1);
}

/* Pulse Ring Animation */
@keyframes p5IconPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 0;
  }
}

/* Address Text */
.p5-office-address {
  font-size: 1.375rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: p5FadeSlideUp 0.6s ease 0.4s both;
}

/* ============================================
    RESPONSIVE BREAKPOINTS
    ============================================ */
@media (max-width: 991.98px) {
  .p5-office-section {
    padding: 60px 0;
  }
  .p5-office-title {
    font-size: 1.625rem;
    margin-bottom: 28px;
  }
  .p5-office-card {
    max-width: 700px;
    height: 280px;
    border-radius: 16px;
  }
  .p5-office-address {
    font-size: 1.125rem;
  }
}

@media (max-width: 767.98px) {
  .p5-office-section {
    padding: 50px 0;
  }
  .p5-office-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 24px;
  }
  .p5-office-card {
    max-width: 100%;
    height: 260px;
    border-radius: 14px;
  }
  .p5-office-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
  }
  .p5-office-icon i {
    font-size: 1.125rem;
  }
  .p5-office-address {
    font-size: 1rem;
    line-height: 1.5;
  }
}

@media (max-width: 575.98px) {
  .p5-office-section {
    padding: 40px 0;
  }
  .p5-office-title {
    font-size: 1.375rem;
    margin-bottom: 20px;
  }
  .p5-office-card {
    height: 220px;
    border-radius: 12px;
  }
  .p5-office-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
  }
  .p5-office-icon i {
    font-size: 1rem;
  }
  .p5-office-address {
    font-size: 0.875rem;
  }
}

@media (max-width: 374.98px) {
  .p5-office-card {
    height: 200px;
    border-radius: 10px;
  }
  .p5-office-address {
    font-size: 0.813rem;
  }
}
/* ============================================
    p5 OFFICE & FORM SECTION
    ============================================ */

/* Left Side (Original Center Content) Styling */
.p5-office-section .p5-office-card {
    position: relative;
    width: 100%;
    min-height: 380px; /* Controlled height for professional look */
    border-radius: 28px;
    overflow: hidden;
    transition: var(--p5-transition);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.p5-office-img-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.p5-office-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.p5-office-card:hover .p5-office-bg-img {
    transform: scale(1.05);
}

.p5-office-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.p5-office-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 90%;
}

.p5-office-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.p5-office-icon img {
    height: 100%;
    width: auto;
}

.p5-office-address {
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Right Side (Compact Form) Styling */
.p5-form-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light-color);
    border-radius: 28px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.p5-form-label {
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--p5-text-dark);
    margin-bottom: 5px;
    display: block;
}

.p5-form-input {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

/* Form Footer (Captcha + Button on same line) */
.p5-form-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.p5-captcha-box-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F8FAFC;
    padding: 5px 12px;
    border-radius: 10px;
    border: 1px dashed #CBD5E1;
}

.p5-captcha-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--p5-primary);
    white-space: nowrap;
}

.p5-captcha-field {
    max-width: 50px !important;
    text-align: center;
    padding: 4px !important;
}

.p5-form-btn-compact {
    background: var(--p5-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 1rem;
}

.p5-form-btn-compact:hover {
    background: var(--p5-primary-dark);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .p5-office-card {
        min-height: 280px;
    }
}

@media (max-width: 767px) {
    .p5-form-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .p5-office-address {
        font-size: 1rem;
    }
}
  /* p5 OUR OFFICE SECTION end*/




