/* Main Styles for Ashaa Center Website
------------------------------------------*/
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.eot');
    src: url('../fonts/Vazir.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazir.woff2') format('woff2'),
         url('../fonts/Vazir.woff') format('woff'),
         url('../fonts/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Bold.eot');
    src: url('../fonts/Vazir-Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazir-Bold.woff2') format('woff2'),
         url('../fonts/Vazir-Bold.woff') format('woff'),
         url('../fonts/Vazir-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSansWeb.woff2') format('woff2'),
         url('../fonts/IRANSansWeb.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/IRANSansWeb_Bold.woff2') format('woff2'),
         url('../fonts/IRANSansWeb_Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

:root {
    --primary: #8a2be2; /* بنفش اصلی بر اساس لوگو */
    --primary-dark: #6a1cb2;
    --primary-light: #b984ff;
    --secondary: #343a40;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --gray: #6c757d;
    --gray-light: #f1f1f1;
    --primary-color: #8a2be2;
    --primary-hover: #7825c4;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --body-bg: #ffffff;
    --body-color: #212529;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --footer-bg: #343a40;
    --footer-color: #ffffff;
}

[data-theme="dark"] {
    --primary-color: #9d4edd;
    --primary-hover: #8330d2;
    --secondary-color: #6c757d;
    --light-color: #222529;
    --dark-color: #f8f9fa;
    --body-bg: #121212;
    --body-color: #e4e6eb;
    --card-bg: #1e1e1e;
    --border-color: #4e4e4e;
    --footer-bg: #1e1e1e;
    --footer-color: #e4e6eb;
    --gray-light: #2d2d2d;
    --success: #42b883;
    --info: #42a5f5;
    --warning: #ffc107;
    --danger: #ff5252;
}

html {
    transition: background-color 0.5s ease, color 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body {
    font-family: 'Vazir', 'IRANSans', Tahoma, Arial, sans-serif;
    line-height: 1.7;
    color: var(--body-color);
    background-color: var(--body-bg);
    padding-top: 90px; /* فاصله برای نوبار */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

.btn {
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff;
}

[data-theme="dark"] .btn-primary {
    color: #ffffff !important;
}

[data-theme="dark"] .btn-primary:hover, 
[data-theme="dark"] .btn-primary:focus {
    color: #ffffff !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

[data-theme="dark"] .btn-outline-primary:hover, 
[data-theme="dark"] .btn-outline-primary:focus {
    color: #ffffff !important;
}

.btn-outline-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-secondary:hover, .btn-outline-secondary:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

[data-theme="dark"] .btn-outline-secondary:hover, 
[data-theme="dark"] .btn-outline-secondary:focus {
    color: #ffffff !important;
}

/* Header & Navigation
------------------------------------------*/
.navbar {
    background-color: var(--body-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar-brand img {
    max-height: 60px;
}

.navbar-brand-text {
    display: none;
    margin-right: 10px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-dark, .logo-light {
    max-height: 60px;
    transition: opacity 0.3s ease;
}

.logo-light {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: inline-block;
}

[data-theme="dark"] .navbar-brand-text {
    color: var(--primary-light);
}

.navbar-nav .nav-link {
    color: var(--body-color);
    font-weight: bold;
    padding: 10px 15px;
    margin: 0 5px;
    position: relative;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    right: 0;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
    width: 100%;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Hero Section
------------------------------------------*/
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.6) 100%), url('../img/hero-bg.jpg') center/cover;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, rgba(18,18,18,0.8) 0%, rgba(18,18,18,0.6) 100%), url('../img/hero-bg.jpg') center/cover;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--body-color);
}

/* Services Section
------------------------------------------*/
.services {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card .icon-box {
    margin-bottom: 20px;
}

.service-card .icon-box i {
    font-size: 3rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    margin-bottom: 20px;
    color: var(--body-color);
}

.service-card .read-more {
    font-weight: bold;
    color: var(--primary-color);
}

.service-card .read-more i {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.service-card .read-more:hover {
    color: var(--primary-hover);
}

[data-theme="dark"] .service-card .read-more:hover i {
    transform: translateX(-5px);
}

/* About Us Preview
------------------------------------------*/
.about-preview {
    padding: 80px 0;
    background-color: var(--light-color);
}

.about-preview h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

/* Testimonials
------------------------------------------*/
.testimonials {
    padding: 80px 0;
}

.testimonial-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card .rating {
    margin-bottom: 15px;
    color: #ffc107;
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    color: var(--body-color);
}

.testimonial-card .client {
    display: flex;
    align-items: center;
}

.testimonial-card .client .name {
    font-weight: bold;
    margin-right: 10px;
    color: var(--dark-color);
}

/* Contact Preview
------------------------------------------*/
.contact-preview {
    padding: 80px 0;
    background-color: var(--light-color);
}

.contact-preview h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-info .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 30px;
    text-align: center;
}

.contact-info h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Footer
------------------------------------------*/
footer {
    background-color: var(--footer-bg);
    color: var(--footer-color);
    padding: 50px 0 20px;
}

.footer-column h4 {
    color: var(--footer-color);
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    right: 0;
}

.footer-logo {
    text-align: center;
}

.footer-logo img.footer-img {
    height: 130px;
    width: auto;
    margin: 0 auto;
    display: block;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--footer-color);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--footer-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

[data-theme="dark"] .social-links a {
    color: var(--footer-color) !important;
}

[data-theme="dark"] .social-links a:hover {
    background-color: var(--primary-color);
    color: #ffffff !important;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 50px;
    font-size: 0.9rem;
    color: var(--footer-color);
}

/* Services Page
------------------------------------------*/
.service-detail {
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

[data-theme="dark"] .service-detail {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.service-detail h3 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.service-detail p {
    margin-bottom: 15px;
}

/* Contact Page
------------------------------------------*/
.contact-form {
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-control {
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--body-bg);
    color: var(--body-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(138, 43, 226, 0.25);
}

/* About Page
------------------------------------------*/
.team-member {
    text-align: center;
    margin-bottom: 30px;
}

.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member h4 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.team-member p {
    color: var(--body-color);
    margin-bottom: 15px;
}

/* Gallery Page
------------------------------------------*/
.gallery-item {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Responsive Styles
------------------------------------------*/
@media (max-width: 992px) {
    .navbar-nav {
        margin-top: 15px;
    }
    
    .navbar-brand-text {
        display: inline-block;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .navbar-brand img {
        max-height: 40px;
    }
    
    .navbar-brand-text {
        display: inline-block;
        font-size: 0.9rem;
    }
    
    .footer-logo img.footer-img {
        max-width: 120px;
    }
    
    .footer-column h4 {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero img {
        margin-top: 30px;
    }
    
    .about-preview img {
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        margin-top: 1rem;
    }
    
    .cta-buttons .btn {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
}

/* Form components in dark mode */
[data-theme="dark"] .form-control {
    background-color: #2d2d2d;
    border-color: #444;
}

[data-theme="dark"] .form-control:focus {
    background-color: #2d2d2d;
    border-color: var(--primary-color);
}

/* Cards in dark mode */
[data-theme="dark"] .service-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .team-member {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .testimonial-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Fix for bg-light sections in dark mode */
[data-theme="dark"] .bg-light {
    background-color: var(--light-color) !important;
}

/* Gallery items in dark mode */
[data-theme="dark"] .gallery-item {
    background-color: #1e1e1e;
}

[data-theme="dark"] .gallery-caption {
    background-color: rgba(30, 30, 30, 0.9);
}

/* Map container in dark mode */
[data-theme="dark"] .map-container {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--body-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Timeline (About Page)
------------------------------------------*/
.timeline-item {
    background-color: var(--card-bg);
    color: var(--body-color);
}

[data-theme="dark"] .timeline-item {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ (Contact Page)
------------------------------------------*/
.faq-section {
    background-color: var(--card-bg);
}

.accordion-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.accordion-button {
    background-color: var(--card-bg);
    color: var(--dark-color);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: #fff !important;
}

.accordion-button:not(.collapsed) i {
    color: #fff !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(138, 43, 226, 0.25);
    border-color: var(--primary-color);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

[data-theme="dark"] .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f8f9fa'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Mission Section */
.mission-section {
    background-color: var(--light-color);
}

.mission-item {
    color: var(--body-color);
}

.mission-item h3 {
    color: var(--dark-color);
}

/* Certificate Section */
.certificates-section {
    background-color: var(--light-color);
}

.certificate h5 {
    color: var(--dark-color);
}

.certificate p {
    color: var(--body-color);
}

/* CTA Box */
.cta-box {
    background-color: var(--light-color);
}

.cta-box h3 {
    color: var(--dark-color);
}

/* Page Title */
.page-title {
    background-color: var(--light-color);
}

.page-title h1 {
    color: var(--dark-color);
}

.breadcrumb-item.active {
    color: var(--body-color);
}

/* Contact Info Links */
.contact-info a.text-dark {
    color: var(--body-color) !important;
    transition: color 0.3s ease;
}

.contact-info a.text-dark:hover {
    color: var(--primary-color) !important;
}

/* Form Check in Dark Mode */
[data-theme="dark"] .form-check-input {
    background-color: #333;
    border-color: #666;
}

[data-theme="dark"] .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .form-select {
    background-color: #2d2d2d;
    border-color: #444;
    color: var(--body-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f8f9fa' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

[data-theme="dark"] .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(157, 78, 221, 0.25);
}

/* Contact Info in Dark Mode */
[data-theme="dark"] .contact-info {
    background-color: var(--light-color);
}

[data-theme="dark"] .contact-info h3,
[data-theme="dark"] .contact-info h5 {
    color: var(--dark-color);
}

/* Year in Timeline */
.year {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .year {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.5);
}

/* Improve contrast for dark mode text */
[data-theme="dark"] p {
    color: #e4e6eb;
}

[data-theme="dark"] .lead {
    color: #f5f5f5;
}

/* Fix background in form-control for dark mode */
[data-theme="dark"] textarea.form-control,
[data-theme="dark"] input.form-control {
    background-color: #2d2d2d;
}

/* Improve shadow contrast in dark mode */
[data-theme="dark"] .shadow,
[data-theme="dark"] .shadow-sm,
[data-theme="dark"] .shadow-lg {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
}

/* Fix text color in breadcrumb */
[data-theme="dark"] .breadcrumb-item a {
    color: var(--primary-color);
}

/* Contact Form in dark mode */
[data-theme="dark"] .contact-form {
    background-color: var(--card-bg);
}

[data-theme="dark"] .form-label {
    color: var(--dark-color);
}

/* Fix link colors in dark mode */
[data-theme="dark"] a {
    color: var(--primary-color);
}

[data-theme="dark"] a:hover {
    color: var(--primary-hover);
}

/* Fix accordion colors in dark mode */
[data-theme="dark"] .accordion-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .accordion-body {
    color: var(--body-color);
}

/* Fix bg-white elements in dark mode */
[data-theme="dark"] .bg-white {
    background-color: var(--card-bg) !important;
}

/* Fix text colors in all sections */
[data-theme="dark"] .position {
    color: var(--primary-color);
}

[data-theme="dark"] .bio {
    color: var(--body-color);
}

/* Improve border colors in dark mode */
[data-theme="dark"] .border,
[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-start,
[data-theme="dark"] .border-end {
    border-color: var(--border-color) !important;
}

/* Fix buttons with icons */
.btn i {
    color: inherit;
}

.navbar .btn-primary {
    color: #ffffff;
}

[data-theme="dark"] .navbar .btn-primary {
    color: #ffffff !important;
}

/* Fix scroll to top button */
#scroll-top-btn i {
    color: #ffffff !important;
}

/* Fix buttons */
.btn.btn-primary i,
.btn.btn-outline-primary:hover i,
.btn.btn-outline-primary:focus i,
.btn.btn-outline-secondary:hover i,
.btn.btn-outline-secondary:focus i {
    color: #ffffff !important;
}

/* Dark mode button text fix */
[data-theme="dark"] .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .btn-outline-secondary {
    color: #e4e6eb;
    border-color: #6c757d;
}

/* Fix navbar-toggler in dark mode */
[data-theme="dark"] .navbar-toggler {
    background-color: #2d2d2d;
    border-color: #444;
    color: var(--footer-color);
}

[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Ensure navbar-toggler is always visible */
.navbar-toggler {
    box-shadow: none !important;
    outline: none !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.1rem rgba(138, 43, 226, 0.25);
}

.footer-column:first-child {
    text-align: center;
}

.footer-column:first-child h4 {
    text-align: center;
}

.footer-column:first-child h4:after {
    right: 50%;
    transform: translateX(50%);
}

.footer-column:first-child p {
    text-align: center;
}

.footer-column:first-child .social-links {
    justify-content: center;
}

.footer-column:nth-child(2) {
    text-align: center;
}

.footer-column:nth-child(2) h4 {
    text-align: center;
}

.footer-column:nth-child(2) h4:after {
    right: 50%;
    transform: translateX(50%);
}

.footer-column:nth-child(2) .footer-links li {
    text-align: center;
}

@media (max-width: 992px) {
    .footer-column {
        margin-bottom: 30px;
    }
}

/* Additional responsive fixes */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 50px;
    }
    
    .footer-logo img.footer-img {
        height: 100px;
    }
    
    .footer-column h4 {
        font-size: 1.2rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    /* Fix button alignment in mobile view */
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Make sure navbar-collapse has proper background in dark mode */
[data-theme="dark"] .navbar-collapse {
    background-color: var(--body-bg);
} /* Form text color fix */ 

[data-theme="dark"] input.form-control, 
[data-theme="dark"] textarea.form-control, 
[data-theme="dark"] select.form-control, 
[data-theme="dark"] .form-select { 
    color: #e4e6eb !important; 
}

/* Success and Error pages in dark mode */
[data-theme="dark"] .success-message .card,
[data-theme="dark"] .error-message .card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .success-message h2,
[data-theme="dark"] .error-message h2 {
    color: var(--dark-color);
}

[data-theme="dark"] .success-message .text-muted,
[data-theme="dark"] .error-message .text-muted {
    color: #9ca3af !important;
}

[data-theme="dark"] .contact-info p {
    color: var(--body-color);
}

/* Form label in dark mode */
[data-theme="dark"] .form-label {
    color: var(--dark-color);
}
