/*
  MODERN FRONTEND DESIGN - Klinik Psikolog Template
  - Template Canvas LLM'den uyarlanmıştır
  - Playfair Display + Source Sans 3 Font Stack
  - Smooth Transitions & Micro-interactions
  - Glassmorphism Effects
  - AOS Scroll Animations
  - Swiper.js Slider Styles
*/

/* 1. CSS VARIABLES (CUSTOM PROPERTIES) - Template Color Scheme */
:root {
  /* Main Colors - HSL from template */
  --color-background: hsl(40, 20%, 97%);
  --color-foreground: hsl(150, 30%, 12%);
  
  --color-card: hsl(0, 0%, 100%);
  --color-card-foreground: hsl(150, 30%, 12%);
  
  --color-primary: hsl(150, 40%, 22%);       /* Koyu Orman Yeşili */
  --color-primary-foreground: hsl(40, 20%, 97%);
  --color-primary-light: hsl(150, 30%, 92%);
  
  --color-secondary: hsl(40, 30%, 95%);
  --color-secondary-foreground: hsl(150, 30%, 12%);
  
  --color-muted: hsl(40, 15%, 93%);
  --color-muted-foreground: hsl(150, 10%, 45%);
  
  --color-accent: hsl(38, 60%, 55%);
  --color-accent-foreground: hsl(0, 0%, 100%);
  
  --color-border: hsl(150, 15%, 85%);
  --color-ring: hsl(150, 40%, 22%);

  /* Legacy color mapping */
  --color-bg: var(--color-background);
  --color-text: var(--color-foreground);
  --color-text-muted: var(--color-muted-foreground);
  --color-white: #ffffff;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', sans-serif;

  /* Effects */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 0.75rem;
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* 2. GENERAL BODY & TYPOGRAPHY */
body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 600;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2rem; }

p {
    color: var(--color-text-muted);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: #004d2e;
}

.lead {
    font-weight: 300;
    font-size: 1.25rem;
}

/* 3. MODERN COMPONENTS & UTILITIES */

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 500;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #004d2e;
    border-color: #004d2e;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--color-white);
}

.btn-search-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background-color: transparent;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    padding: 0;
}

.btn-search-icon:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-outline-primary {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Sections */
.section {
    padding: 100px 0;
    overflow: hidden; /* For AOS animations */
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    bottom: 0;
    left: calc(50% - 30px);
}

/* 4. HEADER & NAVIGATION (Glassmorphism) */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-smooth);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1030;
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-primary) !important;
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.05rem;
    margin: 0 1rem;
    color: var(--color-text) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary) !important;
}

/* Scrolled state for Navbar */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

.navbar.scrolled .nav-link {
    color: var(--color-text); /* Change color on scroll */
}

.navbar.scrolled .navbar-brand {
    color: var(--color-primary);
}

/* Main content needs top padding to not be hidden by fixed navbar */
.main-container {
    padding-top: 100px; /* Adjust based on navbar height */
    position: relative;
    z-index: 1;
}

.main-content {
    position: relative;
    z-index: 3;
    background-color: var(--color-bg);
}

/* 5. HERO SECTION (Swiper.js) */
.hero-slider {
    width: 100%;
    height: 90vh;
    min-height: 700px;
    margin-top: -100px; /* Pull slider up to fill space behind transparent navbar */
}

.swiper-slide {
    background-size: cover;
    background-position: center;
}

.swiper-slide .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    color: var(--color-white);
    text-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 5rem;
    font-weight: 700;
}

.hero-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.3rem;
    max-width: 600px;
}

/* 6. SERVICES SECTION (Modern Grid) */
.service-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.service-card:hover .icon {
    background: var(--color-primary);
    transform: scale(1.1) rotate(15deg);
}

.service-card .icon i {
    font-size: 2.5rem;
    color: var(--color-primary);
    transition: var(--transition-smooth);
}

.service-card:hover .icon i {
    color: var(--color-white);
}

.service-card h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.3rem;
}

/* 7. FOOTER */
.footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
    margin-top: 0; /* Remove margin since CTA section is same color */
}

.footer h5 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

.footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 0.7rem;
}

.footer .footer-links a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.footer .social-icons a:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0; /* Reduced padding */
    margin-top: 2rem; /* Reduced margin */
    text-align: center;
    font-size: 0.9rem;
}

/* 8. PAGE HEADER */
.page-header {
    padding: 60px 0; /* Reduced padding */
    background-color: var(--color-primary-light);
    text-align: center;
    /* margin-top is now handled by main-container padding */
}

.page-header h1 {
    font-size: 2.5rem; /* Slightly smaller */
    color: var(--color-primary);
}

.page-header .breadcrumb {
    background: none;
    justify-content: center;
    padding: 0;
    margin-top: 10px;
}

.page-header .breadcrumb-item a {
    color: var(--color-text-muted);
}

.page-header .breadcrumb-item.active {
    color: var(--color-primary);
    font-weight: 500;
}

/* 9. CONTACT PAGE */
.contact-section .contact-info-box {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-info-box .icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    width: 40px;
    flex-shrink: 0;
}

.contact-info-box p {
    margin-bottom: 0;
}

.contact-section .map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-control {
    height: 55px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    padding: 10px 20px;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 96, 57, 0.15);
}

textarea.form-control {
    height: auto;
}

/* ===========================
   TEMPLATE SPECIFIC STYLES
   =========================== */

/* Page Hero Section - Yeşil başlık alanı */
.page-hero {
    padding: 2.5rem 1rem;
    text-align: center;
    margin-top: -100px;
    padding-top: calc(100px + 2.5rem);
}

.page-hero h1,
.bg-primary-custom h1,
section.bg-primary-custom h1 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    color: #ffffff !important;
}

.page-hero p,
.bg-primary-custom p,
section.bg-primary-custom p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 0;
    font-weight: 400;
}

@media (min-width: 768px) {
    .page-hero h1,
    .bg-primary-custom h1 {
        font-size: 2rem;
    }
    
    .page-hero p,
    .bg-primary-custom p {
        font-size: 1.125rem;
    }
}

/* Section Padding Helper */
.section-padding {
    padding: 4rem 1rem;
}

@media (min-width: 992px) {
    .section-padding {
        padding: 6rem 2rem;
    }
}

/* Section Title - Template Style */
.section-title-modern {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

@media (min-width: 768px) {
    .section-title-modern {
        font-size: 2.5rem;
    }
}

.section-subtitle {
    color: var(--color-muted-foreground);
    font-size: 1.125rem;
    max-width: 42rem;
}

/* Background Helpers */
.bg-card {
    background-color: var(--color-card);
}

.bg-secondary-custom {
    background-color: var(--color-secondary);
}

.bg-primary-custom {
    background-color: var(--color-primary);
}

.text-primary-foreground {
    color: var(--color-primary-foreground);
}

/* Card Styles - Modern */
.modern-card {
    background: var(--color-card);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--color-border);
}

.modern-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.12);
    border: 3px solid var(--color-primary);
    z-index: 10;
}

/* Icon Circle */
.icon-circle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.icon-circle i {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: var(--transition-smooth);
}

.modern-card:hover .icon-circle {
    background-color: var(--color-primary);
}

.modern-card:hover .icon-circle i {
    color: var(--color-primary-foreground);
}

.education-card {
    background: var(--color-card);
    border-radius: var(--border-radius);
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid var(--color-border);
}

.education-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.education-card:hover .icon-circle {
    background-color: var(--color-primary);
}

.education-card:hover .icon-circle i {
    color: var(--color-primary-foreground);
}

/* About Section Image */
.about-img-modern {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-modern img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Education Cards */
.education-card {
    background: var(--color-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.education-card .icon-circle {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
}

.education-card .icon-circle i {
    font-size: 1.25rem;
}

/* Blog Cards */
.blog-card-modern {
    background: var(--color-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
}

.blog-card-modern:hover {
    box-shadow: var(--shadow-md);
}

.blog-card-modern .card-img-wrapper {
    overflow: hidden;
    height: 12rem;
}

.blog-card-modern .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card-modern:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.blog-card-modern .card-body {
    padding: 1.25rem;
}

.blog-card-modern .card-meta {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
}

.blog-card-modern .card-title-modern {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-foreground);
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.blog-card-modern .card-text {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.badge-primary {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* Contact Info Box */
.contact-info-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-info-modern .icon-circle {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}

.contact-info-modern .icon-circle i {
    font-size: 1.25rem;
}

.contact-info-modern .info-content h5 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-foreground);
    margin-bottom: 0;
}

.contact-info-modern .info-content p {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    margin-bottom: 0;
}

/* Sidebar Styles */
.sidebar-box {
    background: var(--color-background);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}

.sidebar-box h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-foreground);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list button,
.category-list a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.category-list button:hover,
.category-list a:hover,
.category-list button.active,
.category-list a.active {
    color: var(--color-primary);
    background-color: var(--color-primary-light);
    font-weight: 600;
}

/* Popular Posts Widget */
.popular-post-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.popular-post-item img {
    width: 4rem;
    height: 3rem;
    border-radius: 0.5rem;
    object-fit: cover;
}

.popular-post-item .post-info h6 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-foreground);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-post-item .post-info span {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
}

/* Accordion Styles */
.accordion-custom .accordion-item {
    background: var(--color-card);
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-custom .accordion-button {
    font-family: var(--font-heading);
    color: var(--color-foreground);
    background: var(--color-card);
    padding: 1rem 1.25rem;
}

.accordion-custom .accordion-button:not(.collapsed) {
    background: var(--color-card);
    color: var(--color-primary);
    box-shadow: none;
}

.accordion-custom .accordion-button:focus {
    box-shadow: none;
    border-color: var(--color-border);
}

.accordion-custom .accordion-body {
    color: var(--color-muted-foreground);
    padding: 0 1.25rem 1rem;
}

/* Search Input */
.search-input-wrapper {
    position: relative;
}

.search-input-wrapper input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
    background: var(--color-background);
    color: var(--color-foreground);
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--color-ring);
    box-shadow: 0 0 0 2px rgba(0, 96, 57, 0.15);
}

.search-input-wrapper i {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted-foreground);
}

/* Map Placeholder */
.map-placeholder {
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    height: 12rem;
    background-color: var(--color-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted-foreground);
    font-size: 0.875rem;
}

/* Appointment Form */
.appointment-form {
    background: var(--color-secondary);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.appointment-form h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 1.5rem;
}

.appointment-form input,
.appointment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
    background: var(--color-background);
    color: var(--color-foreground);
    font-size: 0.875rem;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
    margin-bottom: 1rem;
}

.appointment-form input:focus,
.appointment-form textarea:focus {
    outline: none;
    border-color: var(--color-ring);
    box-shadow: 0 0 0 2px rgba(0, 96, 57, 0.15);
}

.appointment-form textarea {
    resize: none;
}

/* Line Clamp Utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero Slider Enhancement */
.hero-slider .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-slider .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 992px) {
    .hero-slider .hero-content h1 {
        font-size: 4rem;
    }
}

/* Navbar Enhancement */
.navbar .navbar-brand {
    font-family: var(--font-body);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Footer Enhancement */
.footer {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
    color: var(--color-primary-foreground);
}

/* ===========================
   NEW APPOINTMENT FORM STYLES
   =========================== */

/* Hero Appointment Form */
.appointment-form-hero {
    background: var(--color-card);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.appointment-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.appointment-icon i {
    font-size: 2.5rem;
    color: var(--color-primary);
}

.appointment-form-hero .form-floating > .form-control {
    height: auto;
    min-height: 3.5rem;
    border: 2px solid var(--color-border);
    border-radius: 0.75rem;
    background-color: var(--color-background);
    transition: var(--transition-smooth);
}

.appointment-form-hero .form-floating > .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 96, 57, 0.1);
}

.appointment-form-hero .form-floating > label {
    color: var(--color-muted-foreground);
}

/* CTA Box for Homepage */
.appointment-cta-box {
    padding: 2rem;
}

.cta-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-icon i {
    font-size: 2rem;
    color: white;
}

/* Text Slider for CTA Section */
.text-slider-container {
    position: relative;
    height: 3.5rem;
    overflow: hidden;
}

.text-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.text-slider-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    font-size: 1.75rem;
    margin: 0;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeSlide 9s ease-in-out infinite;
}

.text-slider-item:nth-child(1) {
    animation-delay: 0s;
}

.text-slider-item:nth-child(2) {
    animation-delay: 3s;
}

.text-slider-item:nth-child(3) {
    animation-delay: 6s;
}

@keyframes fadeSlide {
    0%, 5% {
        opacity: 0;
    }
    10%, 28% {
        opacity: 1;
    }
    33%, 100% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .text-slider-container {
        height: 4.5rem;
    }
    
    .text-slider-item {
        font-size: 1.25rem;
        height: 4.5rem;
    }
}

/* ===========================
   IMPROVED SERVICE CARD STYLES
   =========================== */

/* Service Button - More Stylish */
.btn-service {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    background: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-service:hover {
    color: white;
    transform: translateX(5px);
}

.btn-service:hover::before {
    left: 0;
}

.btn-service i {
    transition: transform 0.3s ease;
}

.btn-service:hover i {
    transform: translateX(3px);
}

/* Service Card Enhancement */
.modern-card .service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
}

.modern-card .service-link:hover {
    border-bottom-color: var(--color-primary);
}

.modern-card .service-link i {
    transition: transform 0.3s ease;
}

.modern-card .service-link:hover i {
    transform: translateX(5px);
}

/* Service Detail Page Styles */
.service-detail {
    padding: 4rem 0;
}

.service-detail .service-content {
    line-height: 1.9;
    color: var(--color-text-muted);
}

.service-detail .service-content h2,
.service-detail .service-content h3,
.service-detail .service-content h4 {
    color: var(--color-foreground);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-detail .service-content p {
    margin-bottom: 1.25rem;
}

.service-detail .service-content ul,
.service-detail .service-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.service-detail .service-content li {
    margin-bottom: 0.5rem;
}

/* Sidebar Widget */
.widget {
    background: var(--color-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary-light);
}

.widget-services ul {
    margin: 0;
    padding: 0;
}

.widget-services li {
    margin-bottom: 0.5rem;
}

.widget-services li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    color: var(--color-muted-foreground);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
}

.widget-services li a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.widget-services li a i {
    color: var(--color-primary);
}

.widget-cta {
    background: linear-gradient(135deg, var(--color-primary), #004d2e);
    color: white;
    text-align: center;
}

.widget-cta h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.widget-cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ===========================
   ADMIN PANEL STYLES
   =========================== */

/* Admin Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--color-primary);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.admin-sidebar .sidebar-brand {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar .sidebar-brand img {
    height: 32px;
    width: 32px;
    filter: brightness(2);
}

.admin-sidebar .sidebar-brand span {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.admin-sidebar .sidebar-nav {
    padding: 1rem 0;
}

.admin-sidebar .nav-section {
    padding: 0.75rem 1.5rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
}

.admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border-left-color: white;
}

.admin-sidebar .nav-link i {
    font-size: 1.25rem;
    width: 1.5rem;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    background: var(--color-background);
    min-height: 100vh;
}

.admin-header {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header .page-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin: 0;
}

.admin-header .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-content {
    padding: 2rem;
}

/* Admin Cards */
.admin-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-card-header h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin: 0;
    color: var(--color-foreground);
}

.admin-card-body {
    padding: 1.5rem;
}

/* Admin Tables */
.admin-table {
    width: 100%;
    margin: 0;
}

.admin-table thead th {
    background: var(--color-secondary);
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-foreground);
    border: none;
}

.admin-table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-border);
}

.admin-table tbody tr:hover {
    background: var(--color-secondary);
}

.admin-table .actions {
    display: flex;
    gap: 0.5rem;
}

.admin-table .btn-action {
    width: 32px;
    height: 32px;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: var(--transition-smooth);
}

.admin-table .btn-action.btn-view {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.admin-table .btn-action.btn-edit {
    background: #fff3cd;
    color: #856404;
}

.admin-table .btn-action.btn-delete {
    background: #f8d7da;
    color: #721c24;
}

.admin-table .btn-action:hover {
    transform: scale(1.1);
}

/* Admin Stats Cards */
.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card .stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card .stat-icon i {
    font-size: 1.5rem;
}

.stat-card .stat-icon.bg-primary {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.stat-card .stat-icon.bg-info {
    background: #cff4fc;
    color: #0dcaf0;
}

.stat-card .stat-icon.bg-warning {
    background: #fff3cd;
    color: #ffc107;
}

.stat-card .stat-icon.bg-success {
    background: #d1e7dd;
    color: #198754;
}

.stat-card .stat-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-foreground);
}

.stat-card .stat-content p {
    font-size: 0.85rem;
    color: var(--color-muted-foreground);
    margin: 0;
}

/* Admin Form Styles */
.admin-form .form-label {
    font-weight: 500;
    color: var(--color-foreground);
    margin-bottom: 0.5rem;
}

.admin-form .form-control,
.admin-form .form-select {
    border: 2px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: var(--transition-smooth);
}

.admin-form .form-control:focus,
.admin-form .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 96, 57, 0.1);
}

.admin-form .form-text {
    font-size: 0.8rem;
    color: var(--color-muted-foreground);
}

/* Admin Login Page */
.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #004d2e 100%);
    padding: 2rem;
}

.admin-login-card {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.admin-login-card .login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-login-card .login-logo img {
    height: 48px;
    margin-bottom: 1rem;
}

.admin-login-card .login-logo h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin: 0;
}

.admin-login-card .login-logo p {
    color: var(--color-muted-foreground);
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.active {
    background: #d1e7dd;
    color: #0f5132;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #842029;
}

.status-badge.draft {
    background: #fff3cd;
    color: #664d03;
}

/* Responsive Admin */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-header {
        padding: 1rem;
    }
    
    .admin-content {
        padding: 1rem;
    }
}

/* Services Swiper Styles */
.services-swiper {
    padding-bottom: 60px;
}

.services-swiper .swiper-slide {
    height: auto;
}

.services-swiper .modern-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.services-swiper .modern-card p {
    flex-grow: 1;
}

.services-pagination {
    position: relative;
    bottom: 0;
    margin-top: 30px;
}

.services-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--color-border);
    opacity: 1;
}

.services-pagination .swiper-pagination-bullet-active {
    background: var(--color-primary);
}