/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme for Astra
Author: Ashish
Author URI: https://yourdomain.com
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/


/* === Inner Hero Banner with Overlay === */
.inner-hero {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background-color: #003d5b;
}

.inner-hero picture,
.inner-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Blue overlay */
.inner-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 51, 102, 0.6); /* Blue with opacity */
  z-index: 1;
}

/* Centered text */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 2rem;
  min-width: 90%;
  max-width: 90%;
}

.hero-content .breadcrumbs {
  font-size: 14px;
  color: #ffffffcc;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

/* Mobile tweaks */
  @media (max-width: 767px) {
    .inner-hero {
      height: 200px;
    }
    
    .widget-title {
      margin-bottom: 0.1em !important;
    }

  .hero-content {
    min-width: 100%;
    max-width: 100% !important;
    padding: 0 1.5rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero-content .breadcrumbs {
    font-size: 12px;
  }
}

/* === Section Background Colors === */

/* Full-width background sections */
.section-bg-dark,
.section-bg-light,
.section-bg-white {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Dark Section Background */
.section-bg-dark {
  background-color: #003c61;
  color: #ffffff;
}

/* Light Section Background */
.section-bg-light {
  background-color: #e1edf4;
  color: #333333;
}

/* White Section Background */
.section-bg-white {
  background-color: #ffffff;
  color: #333333;
}

/* Contained content for all sections */
.section-bg-dark .wp-block-group__inner-container,
.section-bg-light .wp-block-group__inner-container,
.section-bg-white .wp-block-group__inner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* Responsive padding */
@media (max-width: 768px) {
  .section-bg-dark .wp-block-group__inner-container,
  .section-bg-light .wp-block-group__inner-container,
  .section-bg-white .wp-block-group__inner-container {
    padding: 40px 15px;
  }
}

/* === Block-Specific Background Overrides === */

/* CTA Breaker - Always Dark Background */
.cta-breaker {
  background-color: #003c61 !important;
  color: #ffffff !important;
  border-radius: 20px;
  padding: 40px;
}



/* Why Choose - Always Light Background */
.usp-section {
  background-color: #e1edf4 !important;
  color: #333333 !important;
}



/* === Global H2 Margin Fix === */
/* Remove top margin from h2 tags on inside pages */
.entry-content h2 {
  margin-top: 0 !important;
}

/* === Global Entry Content Margin Fix === */
/* Remove bottom margin from all elements in entry content */
.entry-content > * {
  margin-bottom: 0px !important;
}

/* === Additional Utility Classes === */

/* For manual overrides in Additional CSS Class(es) */
.bg-override-dark {
  background-color: #003c61 !important;
  color: #ffffff !important;
}

.bg-override-light {
  background-color: #e1edf4 !important;
  color: #333333 !important;
}

.bg-override-white {
  background-color: #ffffff !important;
  color: #333333 !important;
}

/* Contact Form Modal Styles */
.modal-dialog {
    max-width: 600px !important;
    margin: 1.75rem auto !important;
}

.modal-title {
    margin-bottom: 0 !important;
    line-height: 1.5 !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
    flex: 1 !important;
    text-align: center !important;
}

.modal-body {
    position: relative !important;
    -ms-flex: 1 1 auto !important;
    flex: 1 1 auto !important;
    padding: 1rem !important;
    background: #003F66 !important;
}

.grade-selection {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 20px 0 !important;
    flex-wrap: wrap !important;
}

.form-check-inline {
    margin-right: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.form-check-input {
    margin-right: 8px !important;
    width: 16px !important;
    height: 16px !important;
    accent-color: white !important;
}

.form-check-label {
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0 !important;
}

.form-check-label img {
    width: 50px !important;
    height: 50px !important;
    border-radius: 8px !important;
    transition: transform 0.3s !important;
    border: 2px solid transparent !important;
}

.form-check-input:checked + .form-check-label img {
    transform: scale(1.1) !important;
}

.form-check-input:checked {
    accent-color: #ffb915 !important;
}

.form-check-label img:hover {
    transform: scale(1.05) !important;
}

.calculate-btn {
    background: #ffb915 !important;
    color: #000 !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.calculate-btn:hover {
    background: #e6a700 !important;
    transform: translateY(-2px) !important;
}

.blink {
    animation: smooth-blink 1.5s ease-in-out infinite;
    color: red;
}

@keyframes smooth-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.form-control {
    width: 100% !important;
    padding-left: 15px !important;
    border: none !important;
    border-radius: 25px !important;
    font-size: 16px !important;
    transition: all 0.3s !important;
    background: white !important;
    color: #333 !important;
    margin: 20px 0 !important;
}

.form-control:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255,185,21,0.3) !important;
}

.form-control::placeholder {
    color: #999 !important;
}

.grade-label {
    display: block !important;
    text-align: center !important;
    color: white !important;
    margin-bottom: 15px !important;
    font-size: 16px !important;
}

.otp_input_class {
    padding: 10px !important;
    border-radius: 25px !important;
}



@media (max-width: 769px) {
    .modal-header {
        padding: 0.5rem 0.5rem !important;
    }
    
    .modal-title {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }
    
    .form-control {
        margin: 0 !important;
    }
    
    .form-group {
        margin-bottom: 15px !important;
        margin-top: 15px !important;
    }
    
    .grade-selection {
        gap: 5px !important;
        margin: 10px 0 !important;
    }
}

/* === Latest Posts Block Styling - Custom Blog Design === */

/* Main Latest Posts container */
.wp-block-latest-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Individual post item */
.wp-block-latest-posts > li {
}

/* Featured image container with circle button */
.wp-block-latest-posts__featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
}

.wp-block-latest-posts__featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.wp-block-latest-posts__featured-image:hover img {
    transform: scale(1.05);
}

/* Circle button overlay (same as our blog) */
.wp-block-latest-posts__featured-image::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    background: #E1EDF4;
    width: 60px;
    height: 60px;
    border-radius: 60% 0 0 0;
    z-index: 9;
}

/* Circle button with arrow */
.wp-block-latest-posts__featured-image::before {
    content: '\f061';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 5px;
    bottom: 5px;
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 18px;
    transform: rotate(-35deg);
    z-index: 10;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.wp-block-latest-posts__featured-image:hover::before {
    background-color: #FFB915;
    color: #fff;
}

/* Post title styling */
.wp-block-latest-posts__post-title {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #000;
	text-decoration: none;
	line-height: 1.4;
	transition: color 0.3s ease;
}

.wp-block-latest-posts__post-title:hover {
	color: #000;
}

/* Author info styling */
.wp-block-latest-posts__post-author {
	padding: 0 20px 20px 20px;
	font-size: 14px;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 8px;
}

.wp-block-latest-posts__post-author::before {
    content: '\f007';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #003F66;
    font-size: 14px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wp-block-latest-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wp-block-latest-posts > li {
        margin-bottom: 20px;
    }
    
    .wp-block-latest-posts__post-title {
        font-size: 18px;
        padding: 15px 15px 8px 15px;
    }
    
    .wp-block-latest-posts__post-author {
        padding: 0 15px 15px 15px;
    }
}

/* === Latest Posts Custom Block Styling === */

/* Main block container */
.latest-posts-custom-block {
    padding: 60px;
    /*max-width: 1200px;*/
    margin: 0 auto;
}

/* Block header styling */
.latest-posts-custom-block .block-header {
    text-align: center;
    margin-bottom: 50px;
}

.latest-posts-custom-block .block-subtitle {
    background: white;
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    font-size: 14px;
    color: #686868;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Unique title class to differentiate from blog sidebar widget titles */
.latest-posts-custom-block .latest-posts-block-title {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

/* Posts grid layout */
.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
}

/* Individual post item */
.latest-post-item {
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.latest-post-item:hover {
    transform: translateY(-5px);
}

/* Featured image container */
.latest-post-image {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    margin-bottom: 20px;
}

.latest-post-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.latest-post-image:hover img {
    transform: scale(1.05);
}

/* Circle button overlay (same as our blog) */
.latest-post-image .circle-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    background: #003f66;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    padding: 10px 0 0 10px;
    border-radius: 60% 0 0 0;
    z-index: 9;
}

.latest-post-image .circle-overlay svg {
    display: block;
    width: 20px;
    height: 20px;
    position: absolute;
    top: -20px;
    right: 0px;
    transform: rotate(180deg) scale(1.01);
}

.latest-post-image .circle-overlay svg:last-of-type {
    top: auto;
    bottom: 0px;
    right: auto;
    left: -20px;
}

.latest-post-image .circle-overlay svg path {
    fill: #003f66 !important;
}

.latest-post-image .circle-overlay::before {
    position: absolute;
    content: "";
    top: -14px;
    right: 0px;
    height: 16px;
    width: 1px;
    background-color: #003f66;
    z-index: 9;
}

.latest-post-image .circle-overlay::after {
    position: absolute;
    content: "";
    top: -1px;
    right: -2px;
    height: 1px;
    width: 16px;
    background-color: #003f66;
    z-index: 9;
}

/* Circle button with arrow */
.latest-post-image .circle-overlay-link {
    background: #fff;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 100%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    text-decoration: none;
    color: #000;
}

.latest-post-image .circle-overlay-link:hover {
    background-color: #FFB915;
    color: #fff;
}

.latest-post-image .circle-overlay-link i {
    transform: rotate(-35deg);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Post content */
.latest-post-content {
    padding: 0 10px;
}

/* Meta information styling */
.latest-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #fff;
    flex-wrap: wrap;
}

.latest-post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.latest-post-meta i {
    color: #fff;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.latest-post-meta a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-post-meta a:hover {
    color: #FFB915;
}

/* Post title styling */
.latest-post-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.latest-post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-post-title a:hover {
    color: #FFB915;
}

/* View All Blogs Button - Matching Theme Style */
.latest-posts-custom-block .view-all-blogs-btn {
    text-align: center;
    margin-top: 50px;
}

.latest-posts-custom-block .view-all-blogs-btn a {
    display: inline-block;
    background-color: #FFB915;
    color: #000000;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 185, 21, 0.3);
}

.latest-posts-custom-block .view-all-blogs-btn a:hover {
    background-color: #e6a713;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 185, 21, 0.4);
    text-decoration: none;
}

/* No posts message */
.no-posts-message {
    text-align: center;
    padding: 40px;
    color: #686868;
    font-style: italic;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .latest-posts-custom-block {
        padding: 40px 20px;
    }
    
    .latest-posts-custom-block .latest-posts-block-title {
        font-size: 32px;
    }
    
    .latest-posts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .latest-post-meta {
        gap: 10px;
        font-size: 13px;
    }
    
    .latest-post-title {
        font-size: 18px;
    }
    
    .latest-posts-custom-block .view-all-blogs-btn a {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* Post title styling - Override theme defaults */
.latest-posts-custom-block .latest-post-title,
.latest-posts-custom-block .latest-post-title a {
    margin: 0 0 15px 0;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    font-family: inherit !important;
}

/* Override theme's default h3 styling specifically for our block */
.latest-posts-custom-block h3.latest-post-title {
    font-size: 20px !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
}

/* Ensure our styling overrides any theme CSS */
.latest-posts-custom-block .latest-post-title a {
    color: #fff !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    font-family: inherit !important;
}

.latest-posts-custom-block .latest-post-title a:hover {
    color: #FFB915 !important;
}

/* === Modal Popup Form Fixes === */

/* Fix z-index conflict with sticky footer */
.modal {
    z-index: 10000 !important;
}

.modal-backdrop {
    z-index: 9999 !important;
}

/* Fix horizontal scroll in modal */
.modal-content {
    max-width: 90vw !important;
    width: auto !important;
    margin: 0 auto !important;
}

/* Modal responsive breakpoints */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw !important;
        margin: 0 auto !important;
    }
}

/* Fix dropdown styling and font colors */
.select_extra {
    color: #9e9e9e !important;
    background-color: #ffff !important;
    border: 1px solid #D5DCE1 !important;
    border-radius: 25px !important;
    padding: 8px 20px !important;
    font-size: 16px !important;
    width: 100% !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23003F66' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 20px !important;
    padding-right: 45px !important;
}

/* Dropdown options styling */
.select_extra option {
    color: #333 !important;
    background-color: #fff !important;
    padding: 10px !important;
    font-size: 16px !important;
}

/* Dropdown focus state */
.select_extra:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 63, 102, 0.3) !important;
    border-color: #003F66 !important;
}

/* Ensure modal header doesn't overflow */
.modal-header {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

/* Modal body */
.modal-body {
    max-width: 100% !important;
}

/* Form control spacing consistency */
.form-control {
    margin: 15px 0 !important;
}

/* === Theme Override - Scroll to Top Button === */
@media (max-width: 767px) {
  .ast-scroll-to-top-right {
    right: 20px;
    bottom: 70px;
  }
}

/* === Global Mobile H2 Font Size Fix === */
@media (max-width: 544px) {
  h2, .entry-content h2,
  .hero-title, .treatment-content-title,
  .consultation-title, .timeline-title,
  .testimonials-section h2 {
    font-size: 1.6rem !important;
  }
}

/* right block */

.wp-block-categories, ul {
    box-sizing: border-box;
    padding-left: 0px;
    color: #000;
}

.wp-block-categories, ul li a {
    color: #000;
}

.wp-block-search__inside-wrapper .wp-block-search__input {
    padding: 0 10px;
    color: var(--ast-global-color-3);
    background: #e1edf4;
    border-color: var(--ast-border-color);
}


h2, .ast-post-format- .entry-content h2 {
    font-size: 48px;
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Chivo', sans-serif;
    line-height: 1.3em;
    padding: 10px 0px;
}