/*---------------------------------------
  GOOGLE FONTS
-----------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/*---------------------------------------
  ROOT VARIABLES (Design System)
-----------------------------------------*/
:root {
    --primary-color: #1A4D5E;
    --secondary-color: #E8A87C;
    --accent-color: #2C9C7C;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --text-dark: #212529;
    --text-muted: #6C757D;
    --border-color: #DEE2E6;

    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Playfair Display', serif;

    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 25px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --border-radius: 10px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
}

/*---------------------------------------
  GLOBAL RESET & BASE
-----------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.8rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 80px 0;
}
.section-padding-top {
    padding-top: 80px;
}
.section-padding-bottom {
    padding-bottom: 80px;
}

/* Buttons */
.btn {
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: #0F3A47;
    border-color: #0F3A47;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}
.btn-secondary:hover {
    background-color: #D9946A;
    border-color: #D9946A;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-outline-light {
    color: #fff;
    border-color: #fff;
}
.btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* Section Headers */
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.card .card-body {
    padding: 2rem 1.5rem;
}
.card .card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}
.card .card-text {
    color: var(--text-muted);
}

/* Utility Classes for Colors */
.text-primary-custom { color: var(--primary-color); }
.text-secondary-custom { color: var(--secondary-color); }
.bg-primary-custom { background-color: var(--primary-color); }
.bg-secondary-custom { background-color: var(--secondary-color); }
.bg-light-custom { background-color: var(--bg-light); }

/*---------------------------------------
  HEADER / NAVIGATION
-----------------------------------------*/
.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 10px 0;
    transition: var(--transition);
}
.header-scrolled {
    background-color: #fff;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    padding: 5px 0;
}
.navbar-brand img {
    max-height: 75px;
    width: auto;
}
.navbar .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--secondary-color) !important;
}
.navbar .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 10px;
}
.navbar .btn-nav-cta {
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 50px;
    padding: 8px 25px !important;
    font-weight: 600;
    margin-left: 10px;
}
.navbar .btn-nav-cta:hover {
    background-color: #D9946A;
    color: #fff !important;
}

/*---------------------------------------
  HERO SECTION
-----------------------------------------*/
.hero {
    background: linear-gradient(135deg, #1A4D5E 0%, #2C7A8E 100%);
    color: #fff;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(232, 168, 124, 0.15);
    border-radius: 50%;
    pointer-events: none;
}
.hero h1 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
}
.hero .btn {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}
.hero-image {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/*---------------------------------------
  SERVICES SECTION
-----------------------------------------*/
.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.service-card {
    border-radius: var(--border-radius);
    background: #fff;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border-bottom: 4px solid var(--secondary-color);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Service Card - Background & Layout */
.service-card {
    position: relative;
    border-radius: 16px;
    padding: 0; /* Let overlay handle padding */
    min-height: 280px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    background-color: #1a1a1a; /* Fallback dark color */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* 
   This is the DARK OVERLAY that makes the image "low visibility".
   We use rgba(0,0,0, 0.75) -> 75% black, so the image is very dim.
*/
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.75); /* Increased darkness */
    border-radius: 16px;
    transition: background 0.3s ease;
}

/* Optional: Slightly lighten overlay on hover */
.service-card:hover::before {
    background: rgba(0, 0, 0, 0.65);
}

/* 
   This is the TEXT WRAPPER.
   It sits ON TOP of the dark overlay.
*/
.service-overlay {
    position: relative;
    z-index: 2;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #ffffff !important;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* FORCE THE ICON TO APPEAR */
.service-overlay .service-icon {
    display: inline-block !important;
    font-family: "bootstrap-icons" !important; /* Force font family */
    font-size: 2.8rem !important;
    color: #ffffff !important;
    margin-bottom: 0.8rem;
    line-height: 1;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5); /* Adds glow/contrast */
}

/* Text inside overlay */
.service-overlay h5 {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.3rem;
    margin-top: 0.2rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.service-overlay p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
    margin-bottom: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
/*---------------------------------------
  ABOUT SECTION
-----------------------------------------*/
.about-section .about-content {
    padding: 2rem 0;
}
.about-section .about-content ul {
    list-style: none;
    padding: 0;
}
.about-section .about-content ul li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.about-section .about-content ul li i {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

/*---------------------------------------
  WHY CHOOSE US
-----------------------------------------*/
.why-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}
.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.why-card .why-icon {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.why-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.why-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/*---------------------------------------
  TESTIMONIALS
-----------------------------------------*/
.testimonial-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--secondary-color);
}
.testimonial-card .testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.testimonial-card .testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
}
.testimonial-card .testimonial-role {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/*---------------------------------------
  FAQ SECTION
-----------------------------------------*/
.faq-section .accordion-item {
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0 !important;
}
.faq-section .accordion-button {
    font-weight: 600;
    color: var(--text-dark);
    padding: 1.5rem 0;
    background: transparent;
    box-shadow: none;
}
.faq-section .accordion-button:focus {
    border-color: transparent;
    box-shadow: none;
}
.faq-section .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--primary-color);
}
.faq-section .accordion-body {
    padding: 0 0 1.5rem 0;
    color: var(--text-muted);
}

/*---------------------------------------
  CTA SECTION
-----------------------------------------*/
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0F3A47 100%);
    color: #fff;
    padding: 60px 0;
    border-radius: var(--border-radius-lg);
    margin: 40px 0;
}
.cta-section h2 {
    color: #fff;
    font-weight: 700;
}
.cta-section p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/*---------------------------------------
  FOOTER
-----------------------------------------*/
.footer {
    background-color: #1A2A33;
    color: #A0B0B9;
    padding: 60px 0 0;
}
.footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.footer p {
    font-size: 0.95rem;
}
.footer ul {
    list-style: none;
    padding: 0;
}
.footer ul li {
    padding: 0.3rem 0;
}
.footer ul li a {
    color: #A0B0B9;
    transition: var(--transition);
}
.footer ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}
.footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: #fff;
    margin-right: 8px;
    transition: var(--transition);
}
.footer .social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}
.footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9rem;
}

.footer-logo {
    max-height: 75px;
    width: auto;
}

/*---------------------------------------
  BLOG PAGE
-----------------------------------------*/
.blog-card .blog-img {
    height: 220px;
    object-fit: cover;
}
.blog-card .blog-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.blog-card .blog-meta i {
    margin-right: 5px;
}
.blog-card .blog-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/*---------------------------------------
  CONTACT PAGE
-----------------------------------------*/
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}
.contact-info-item:last-child {
    border-bottom: none;
}
.contact-info-item .contact-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    min-width: 50px;
}
.contact-info-item h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.contact-info-item p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.contact-form .form-control {
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 77, 94, 0.1);
}

/*---------------------------------------
  BACK TO TOP
-----------------------------------------*/
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.back-to-top.active {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--primary-color);
    color: #fff;
}

/*---------------------------------------
  RESPONSIVE
-----------------------------------------*/
@media (max-width: 991.98px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-padding { padding: 60px 0; }
    .hero { padding: 100px 0 60px; }
    .hero .hero-image { margin-top: 2rem; }
}

@media (max-width: 767.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .section-padding { padding: 40px 0; }
    .hero { text-align: center; padding: 80px 0 40px; }
    .hero p { margin-left: auto; margin-right: auto; }
    .navbar .btn-nav-cta { margin-left: 0; }
}

@media (max-width: 575.98px) {
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .footer { text-align: center; }
    .footer .social-links a { margin: 0 4px; }
}


/* ==================================
   Single Blog - Tanish Physio
   Colors: #1A4D5E, #E8A87C
   ================================== */

.single-breadcrumb { background: #f8f9fa; padding: 15px 0; }
.breadcrumb { background: transparent; margin: 0; padding: 0; }

.single-hero { background: #1A4D5E; padding: 50px 0 40px; color: #fff; }
.single-hero h1 { font-size: 2.8rem; font-weight: 700; margin: 15px 0 20px; color:white;}
.badge-category { background: #E8A87C; color: #fff; padding: 4px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; }
.post-meta { display: flex; flex-wrap: wrap; gap: 20px; color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.post-meta i { color: #E8A87C; margin-right: 6px; }

.single-featured { padding: 30px 0; }
.featured-image { border-radius: 12px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.08); }

.single-content { padding: 40px 0; }
article { font-size: 1.1rem; line-height: 1.8; }
article h2 { color: #1A4D5E; font-weight: 700; margin: 2rem 0 1rem; border-bottom: 3px solid #E8A87C; padding-bottom: 10px; }
article h3 { color: #1A4D5E; font-weight: 600; margin: 1.5rem 0 1rem; }
article blockquote { border-left: 4px solid #E8A87C; padding: 15px 25px; background: #f8f9fa; border-radius: 0 8px 8px 0; margin: 1.5rem 0; font-style: italic; }
article img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.5rem 0; }
.post-tags { margin-top: 30px; padding-top: 20px; border-top: 1px solid #dee2e6; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-tags a { background: #f8f9fa; padding: 4px 14px; border-radius: 50px; font-size: 0.85rem; color: #212529; text-decoration: none; transition: 0.3s; }
.post-tags a:hover { background: #E8A87C; color: #fff; }

.single-share { background: #f8f9fa; padding: 30px 0; }
.share-box { background: #fff; padding: 25px 30px; border-radius: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.share-box h4 { margin: 0; color: #1A4D5E; }
.share-box h4 i { color: #E8A87C; margin-right: 10px; }
.share-buttons { display: flex; gap: 10px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-size: 1.2rem; transition: 0.3s; text-decoration: none; }
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.share-btn.fb { background: #1877F2; }
.share-btn.tw { background: #000; }
.share-btn.li { background: #0A66C2; }
.share-btn.wa { background: #25D366; }

.single-nav { padding: 30px 0 40px; }
.post-nav-link { display: block; padding: 18px 25px; border: 2px solid #dee2e6; border-radius: 12px; color: #1A4D5E; text-decoration: none; transition: 0.3s; }
.post-nav-link:hover { border-color: #E8A87C; transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.post-nav-link span { display: block; color: #6c757d; font-size: 0.85rem; }
.post-nav-link h5 { margin: 5px 0 0; font-weight: 600; }
.post-nav-link.next { text-align: right; }

.single-related { background: #f8f9fa; padding: 40px 0; }
.single-related h3 { color: #1A4D5E; font-weight: 700; text-align: center; margin-bottom: 30px; }
.related-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: 0.3s; height: 100%; }
.related-card:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.related-card a { display: block; color: inherit; text-decoration: none; padding: 15px; }
.related-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; }
.related-card h4 { font-size: 1.1rem; margin: 12px 0 8px; color: #1A4D5E; }
.related-card p { color: #6c757d; font-size: 0.95rem; }
.read-more { color: #E8A87C; font-weight: 600; }

.single-cta { padding: 40px 0 50px; }
.cta-box { background: linear-gradient(135deg, #1A4D5E, #0F3A47); padding: 40px 50px; border-radius: 20px; color: #fff; }
.cta-box .cta-badge { background: #E8A87C; color: #fff; padding: 3px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }
.cta-box h2 { font-size: 2rem; font-weight: 700; margin: 10px 0; color: white; }
.cta-box p { opacity: 0.85; }
.btn-cta, .btn-cta-secondary { display: inline-block; padding: 12px 28px; border-radius: 50px; font-weight: 600; transition: 0.3s; text-decoration: none; margin: 5px; }
.btn-cta { background: #E8A87C; color: #fff; }
.btn-cta:hover { background: #D9946A; color: #fff; transform: translateY(-3px); }
.btn-cta-secondary { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.btn-cta-secondary:hover { background: rgba(255,255,255,0.1); color: #fff; transform: translateY(-3px); }

/* Responsive */
@media (max-width: 991px) {
    .single-hero h1 { font-size: 2.2rem; color:white; }
    .share-box { flex-direction: column; text-align: center; }
    .share-buttons { justify-content: center; }
    .cta-box { padding: 30px; text-align: center; }
    .cta-box .col-lg-4 { text-align: center !important; }
}
@media (max-width: 767px) {
    .single-hero h1 { font-size: 1.8rem; color:white; }
    .post-meta { flex-direction: column; gap: 6px; }
    .nav-link.next { text-align: left; margin-top: 15px; }
    .cta-box h2 { font-size: 1.6rem; color: white; }
    .btn-cta, .btn-cta-secondary { width: 100%; text-align: center; }
    .related-card img { height: 150px; }
}