/*
Theme Name: Application Guy Professional
Theme URI: https://applicationguy.com
Author: MD Arzan Hosen
Author URI: https://applicationguy.com/about
Description: A premium, dynamic WordPress theme designed for study abroad agencies. Features include custom post types for Services and Team, a live Customizer for all sections, native form handling, and built-in SEO optimizations. Fully responsive and performance-focused.
Version: 20.2
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: application-guy-professional
Tags: education, custom-colors, theme-options, one-column, two-columns, block-patterns
Copyright: 2024 MD Arzan Hosen
*/
/*
========================================
V2 - MINIMALIST VERSION
Modern, clean design with lots of whitespace
========================================

EASY EDIT COLORS - Change these values to customize your site colors:
*/

:root {
    /* Main Brand Colors - Overridden by Customizer */
    --primary: var(--primary-color, #2563eb);
    --secondary: var(--secondary-color, #8b5cf6);

    /* Gradients */
    --gradient-start-color: var(--gradient-start, #3b82f6);
    --gradient-end-color: var(--gradient-end, #8b5cf6);
    --gradient: linear-gradient(135deg, var(--gradient-start-color) 0%, var(--gradient-end-color) 100%);

    /* Text Colors */
    --text-dark: var(--heading-color, #0f172a);
    --text-body: var(--text-color, #475569);
    --text-gray: var(--text-color, #64748b);
    /* Fallback map */
    --text-light: #94a3b8;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --bg-dark: #1e293b;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
}

/* ========================================
   Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Base container for theme-specific spacing, but using Bootstrap for grid */
.ag-container,
.theme-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Navigation
   ======================================== */
/* Navbar styling augmentation (Bootstrap handles position/flex) */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md) !important;
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Custom Nav Link Styles for Bootstrap navbar */
.navbar-nav .nav-link {
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    max-height: 80px;
    /* Constrain container height */
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img,
.custom-logo-link img,
.custom-logo {
    width: auto !important;
    /* Allow width to scale based on height */
    height: auto !important;
    /* Allow height to scale based on containers */
    max-height: 60px;
    /* Fit strictly within menu bar */
    max-width: 100%;
    /* Prevent exceeding container width */
    object-fit: contain;
    /* Ensure no distortion */
}

/* Logo img styles are dynamically generated in inc/custom-styles.php */

/* Legacy nav-links removed in favor of navbar-nav */

.btn-nav {
    background: var(--gradient);
    color: white !important;
    padding: var(--space-xs) var(--space-md) !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* ========================================
   Buttons
   ======================================== */
.header-social {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-right: var(--space-md);
    margin-left: auto;
}

.social-icon-link {
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-icon-link:hover {
    transform: scale(1.1);
}

/* Bootstrap Button Augmentation */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient) !important;
    border: none !important;
    color: white !important;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white !important;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}


.navbar-brand span {
    font-size: 3rem;
    font-weight: 1000;
    letter-spacing: -0.04em;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero {
    padding-top: var(--space-xl) !important;
    /* Reduced from 3xl to bring content closer to menu */
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.hero h1 {
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: var(--space-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
}

.stat {
    text-align: center;
}

/* Hero Content alignment */
@media (min-width: 1200px) {
    .hero-content {
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 850px;
        position: relative;
        z-index: 10;
    }

    .hero-description {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-buttons {
        justify-content: center !important;
    }

    .hero-stats {
        justify-content: center;
    }
}


.hero-airplane-svg {
    width: 220px;
    /* Bigger and bolder as requested */
    height: auto;
    display: block;
    color: var(--primary);
    /* Uses theme primary color */
    opacity: 0.8;
    /* Subtle transparency for better layering */
}

@keyframes planeFlyBy {
    0% {
        left: -400px;
        opacity: 0;
    }

    3% {
        opacity: 1;
    }

    97% {
        opacity: 1;
    }

    100% {
        left: 150vw;
        /* Fly all the way to infinity */
        opacity: 1;
    }
}


.stat h3 {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-xs);
}

.stat p {
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: var(--space-3xl) 0;
    background: var(--bg-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.service-item {
    background: white;
    padding: var(--space-xl);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: inline-block;
}

.service-item h3 {
    margin-bottom: var(--space-md);
}

/* ========================================
   Process Section
   ======================================== */
.process {
    padding: var(--space-3xl) 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 992px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

.step {
    text-align: center;
    padding: var(--space-xl);
    position: relative;
}

/* Process Arrows */
@media (min-width: 993px) {
    .step:not(:last-child):after {
        content: '→';
        position: absolute;
        top: 30%;
        right: -10%;
        font-size: 2rem;
        color: var(--primary);
        opacity: 0.3;
    }
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
    line-height: 1;
}

/* ========================================
   Team Section
   ======================================== */
.team {
    padding: var(--space-3xl) 0;
    background: var(--bg-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.team-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-sm);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.team-image {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    overflow: hidden;
    background: #f1f5f9;
    /* Light grey background for the "frame" */
    border-radius: 24px 24px 0 0;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-info {
    padding: var(--space-xl);
    text-align: left;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.team-designation {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.team-bio {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.team-bio p {
    margin-bottom: 0;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
    padding: var(--space-3xl) 0;
    background: #f8fafc;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.testimonial-card {
    background: white;
    padding: var(--space-xl);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    background: #f1f5f9;
}

.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-meta {
    flex: 1;
}

.testimonial-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.testimonial-workplace {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 4px 0 0 0;
    font-weight: 500;
}

.rating-aesthetic {
    margin-bottom: 1.25rem;
    display: flex;
    gap: 4px;
}

.star {
    font-size: 1.25rem;
    color: #e2e8f0;
    /* Empty star */
}

.star.filled {
    color: #f59e0b;
    /* Aesthetic gold star */
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.quote {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    font-style: italic;
    position: relative;
    padding-left: 0;
}

.quote::before {
    content: "“";
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.1;
    position: absolute;
    left: -10px;
    top: -10px;
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    color: white !important;
    margin-bottom: var(--space-md);
}

.cta p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: var(--space-xl);
}

.cta .btn-primary {
    background: white;
    color: var(--primary);
}

.cta .btn-primary:hover {
    background: var(--bg-gray);
    color: var(--primary);
}

.cta-note {
    margin-top: var(--space-md);
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    color: white;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ========================================
   WhatsApp Button
   ======================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25d366;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    transition: all 0.3s ease;
}

/* ========================================
   Footer Grid Layout
   ======================================== */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-2xl);
    width: 100%;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    /* Vertical Stack */
    gap: 0.5rem;
    align-items: flex-start;
    /* Aligns left */
}

/* Ensure Logo container resets any inline flex behavior that might cause horizontal drift */
.footer-brand .footer-logo {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
}

.footer-widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: white;
    opacity: 0.9;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-list a,
.footer-widget a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-list a:hover,
.footer-widget a:hover {
    color: white;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: var(--space-md);
    filter: brightness(0) invert(1);
    /* White logo for dark footer */
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

.whatsapp-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.4);
}

/* ========================================
   Contact Form Section
   ======================================== */
.contact-form {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: var(--space-2xl);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8ecf4;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafbfd;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.radio-group {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

/* ========================================
   Modal
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: var(--space-2xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-gray);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-content h2 {
    margin-bottom: var(--space-xs);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-subtitle {
    color: var(--text-gray);
    margin-bottom: var(--space-xl);
}

/* ========================================
   Carousels & Animations
   ======================================== */
.partners-carousel,
.blog-carousel {
    overflow: hidden;
    padding: var(--space-xl) 0;
    position: relative;
    width: 100%;
}

.partners-track,
.blog-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.partners-track:hover,
.blog-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    flex: 0 0 250px;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

.blog-card {
    flex: 0 0 350px;
    margin: 0 var(--space-md);
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   WordPress Mandatory Classes
   ======================================== */
.alignleft {
    float: left;
    margin: 0.5rem 1.5rem 0.5rem 0;
}

.alignright {
    float: right;
    margin: 0.5rem 0 0.5rem 1.5rem;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.sticky {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.wp-caption {
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    max-width: 100%;
    border-radius: 4px;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.5rem;
}

.gallery-caption {
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
}

.bypostauthor {
    font-weight: bold;
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ========================================
   Booking Slots
   ======================================== */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.slot-item {
    background: var(--bg-gray);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.slot-item:hover:not(.taken) {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.slot-item.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.slot-item.taken {
    opacity: 0.5;
    background: #e2e8f0;
    cursor: not-allowed;
    text-decoration: line-through;
}

.slots-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-gray);
    padding: var(--space-md);
    font-style: italic;
}

/* ========================================
   Single Blog Page (Professional Design)
   ======================================== */
/* ========================================
   Single Blog Page (Aesthetic Refinement v11.3)
   ======================================== */
.blog-post-page {
    background: #fdfdfd;
    /* Soft white */
    padding: var(--space-3xl) 0 !important;
}

.container-with-sidebars {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: var(--space-3xl);
    align-items: start;
}

.entry-header {
    text-align: center;
    /* Centered for Aesthetic balance */
    margin-bottom: var(--space-3xl);
    border-bottom: none;
    padding-bottom: 0;
}

.entry-title {
    font-size: 3.25rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.15;
    max-width: 900px;
    margin: 1rem auto;
}

/* Small aesthetic thumbnail */
.post-thumbnail-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-3xl);
}

.post-thumbnail {
    width: 70%;
    max-width: 600px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    background: white;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.post-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.entry-content {
    font-size: 1.25rem;
    line-height: 1.9;
    color: #334155;
    max-width: 800px;
    margin: 0 auto;
    /* Centered content */
}

.entry-content p {
    margin-bottom: 2rem;
}

/* Sidebar Aesthetic Widgets */
.sidebar .widget {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: var(--space-xl);
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    margin-bottom: 3.5rem;
    transition: transform 0.3s ease;
}

.sidebar .widget:hover {
    transform: translateY(-5px);
}

.widget-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
    line-height: 1;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget li::before {
    content: "→";
    color: var(--primary);
    font-weight: 800;
    font-size: 0.9rem;
    opacity: 0.5;
}

.widget li a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
}

.widget li a:hover {
    color: var(--primary);
}

/* ========================================
   Mobile Styles (Bootstrap Overrides)
   ======================================== */
@media (max-width: 992px) {

    /* Navbar Toggler Fixes */
    .navbar-toggler:focus {
        box-shadow: none;
        outline: 2px solid var(--primary);
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 0 0 1rem 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    /* Ensure social icons align nicely if they appear (hidden by d-none d-lg-flex currently) */
    .header-social {
        margin-top: 1rem;
    }

    /* Ensure Header Title is visible */
    .logo.mobile-only {
        display: flex !important;
        font-size: 1.2rem;
    }

    /* Process Section Grid */
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* --- Layout & Grids --- */
    .process-steps,
    .form-grid,
    .footer-grid,
    .container-with-sidebars {
        grid-template-columns: 1fr !important;
        gap: var(--space-xl);
    }

    .container-with-sidebars {
        display: flex;
        flex-direction: column;
    }

    /* --- Typography --- */
    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    .entry-title {
        font-size: 2rem;
        line-height: 1.25;
        margin: 0.5rem 0;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* --- Spacing & Padding --- */
    :root {
        --space-3xl: 3rem;
        /* Reduce large spacing */
        --space-2xl: 2.5rem;
    }

    .container {
        padding: 0 1.5rem;
        /* Ensure side padding */
    }

    /* Fix Padding for Fixed Header */
    .main-content,
    .blog-post-page,
    .page-content {
        padding-top: 100px !important;
    }

    .hero {
        padding-top: 140px;
        padding-bottom: 3rem;
        text-align: center;
    }

    .hero .btn-group {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .hero .btn {
        width: 100%;
        justify-content: center;
    }

    /* --- Forms --- */
    .form-container {
        padding: 1.5rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* --- Footer --- */
    .footer-grid {
        text-align: center;
        gap: 2rem;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links-list,
    .footer-widget ul {
        align-items: center;
        /* Center links on mobile */
    }

    /* --- Sidebar Widgets on Mobile --- */
    .sidebar .widget {
        margin-bottom: 2rem;
        text-align: center;
    }

    .widget li {
        justify-content: center;
    }
}