/* General Body & Typography */
@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    color: #333;
    background-color: #f8f9fa; /* Light background for overall site */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Colors - Purple and Bold Yellow */
:root {
    --primary-purple: #8A2BE2; /* BlueViolet */
    --secondary-yellow: #FFD700; /* Gold - Bold Yellow */
    --dark-purple: #4B0082; /* Indigo */
    --light-yellow: #FFEB3B;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --overlay-color: rgba(0, 0, 0, 0.6);
    --glassy-background: rgba(255, 255, 255, 0.1); /* Lighter for top sections */
    --dark-glassy-background: rgba(255, 255, 255, 0.05); /* Darker for lower sections with bg.png */
}

/* Navbar */
.custom-navbar {
    background-color: var(--primary-purple); /* Initially darker/more opaque */
    transition: background-color 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 1; /* Fully opaque by default, as requested */
    border-bottom: 3px solid var(--secondary-yellow);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow */
}

/* Navbar Logo - Set to 2cm height */
.navbar-logo {
    height: 2cm; /* Set height to 2cm */
    width: auto; /* Maintain aspect ratio */
    object-fit: contain;
    transition: all 0.3s ease; /* Smooth transition for hover effect */
    margin-left: 1rem; /* Added margin to push it away from the menu */
}

.navbar-logo:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
    filter: brightness(1.2); /* Make it brighter on hover */
}

/* Spacing between menu items and contact info */
.navbar-menu-items {
    /* Existing styles, ensure this UL is the primary flex item */
    margin-left: 2rem; /* Add some space between menu and contact info */
    /* Push menu items to the right */
    margin-right: auto;
}


/* Specific nav items with bigger, bolder, more vibrant text */
.custom-nav-item {
    font-size: 1.1rem; /* Base font size */
    font-weight: bold;
    color: var(--secondary-yellow) !important; /* Force vibrant yellow */
    transition: all 0.3s ease;
    padding: 0.5rem 1rem; /* Generous padding to act as a button */
    margin: 0 0.2rem; /* Small horizontal margin between buttons */
    border-radius: 8px; /* Slightly rounded corners for button look */
    text-align: center;
    background-color: transparent; /* Default transparent */
    border: 2px solid var(--secondary-yellow); /* Border for button look */
}
.custom-nav-item:hover {
    font-size: 1.2rem; /* 2 font sizes larger on hover */
    font-weight: bolder; /* Even bolder */
    color: var(--primary-purple) !important; /* Text color changes to purple on hover */
    background-color: var(--secondary-yellow); /* Background changes to yellow on hover */
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7); /* Glow effect on hover */
    border-color: var(--primary-purple); /* Border color changes on hover */
}

/* Phone and Address in Navbar - Larger and Left Aligned, now pushing to corner */
.navbar-contact-info {
    color: var(--light-yellow);
    font-size: 0.95rem;
    text-align: left; /* Align to left (RTL) */
    padding-left: 1rem;
    margin-left: 0; /* Remove default margin-left */
    margin-right: 0; /* Align to the very left edge for RTL */
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align contents to end (left for RTL) */
    white-space: nowrap; /* Prevent text wrapping */
}

.navbar-contact-info .phone-address-large {
    font-size: 1.15rem; /* 2 font sizes larger than base */
    font-weight: bold;
    color: var(--light-yellow); /* Keep it yellow for visibility */
    margin-bottom: 0.2rem !important; /* Smaller margin between lines */
}

.navbar-contact-info i {
    margin-left: 5px;
    color: var(--secondary-yellow);
}

.navbar-contact-info .social-links-top {
    margin-right: 0; /* Align social links to the right edge of its container for RTL */
    padding-left: 0; /* No left padding */
}

.navbar-contact-info .social-links-top a {
    color: var(--light-yellow);
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-contact-info .social-links-top a:hover {
    color: white;
    transform: scale(1.2);
}

/* Header/Banner Section */
.header-section {
    width: 100%;
    height: 400px; /* Adjust height for larger screens */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px; /* Space for fixed navbar */
}

.header-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area */
    z-index: 0;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(138, 43, 226, 0.5), rgba(255, 215, 0, 0.3)); /* Gradient overlay */
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    color: #bfa500; /* زرد تیره */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}


.header-title {
    font-size: 4.5rem;
    font-weight: bold;
}

.header-subtitle {
    font-size: 2.8rem; /* 2 font sizes larger */
    font-weight: bold;
    color: white !important /* Force white */
}

/* Special Offer Section */
.offer-frame {
    background: linear-gradient(to right, var(--primary-purple), var(--secondary-yellow));
    color: white;
    padding: 3rem 1rem;
    margin-top: -50px; /* Overlap with banner for design continuity */
    z-index: 5;
    position: relative;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    border-radius: 25px; /* More rounded/helali */
    animation: pulseOffer 2s infinite alternate;
}

@keyframes pulseOffer {
    0% { transform: scale(1); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); }
    100% { transform: scale(1.02); box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4); }
}

.offer-slogan {
    font-size: 1.8rem; /* 2 font sizes larger */
    margin-bottom: 1rem;
    font-weight: bold; /* Bold */
    color: var(--dark-purple) !important; /* Dark purple */
}

.offer-discount {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}

/* Main Content Section */
.main-content {
    padding-top: 4rem; /* Adjust for overlap */
    position: relative;
    background-color: var(--light-bg); /* Base background for main content */
    z-index: 2; /* Ensures it overlays the header on scroll */
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}

/* Glassy Background for lower sections (using bg.png) */
.bg-light-glassy {
    background-image: url('../images/bg.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--dark-purple); /* Fallback */
    position: relative;
}

.bg-light-glassy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-glassy-background); /* Darker transparent overlay */
    backdrop-filter: blur(5px); /* Glassy effect */
    -webkit-backdrop-filter: blur(5px); /* Safari support */
    z-index: 0;
}

.bg-light-glassy > .container,
.bg-light-glassy h2,
.bg-light-glassy p,
.bg-light-glassy .row {
    position: relative;
    z-index: 1; /* Ensure content is above the pseudo-element */
    color: white; /* Ensure text is readable on dark background */
}

.bg-light-glassy .section-title {
    color: var(--light-yellow);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Sidebar Menu Column */
.sidebar-menu-col, .about-us-section-col {
    display: flex;
    flex-direction: column;
}

.sidebar-menu {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.sidebar-menu .list-group-item {
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
    color: var(--primary-purple);
    border-bottom: 1px solid rgba(138, 43, 226, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, font-size 0.2s ease;
}

.sidebar-menu .list-group-item:last-child {
    border-bottom: none;
}

.sidebar-menu .list-group-item:hover {
    background-color: var(--light-yellow);
    color: var(--dark-purple);
    transform: translateX(-5px);
    font-size: 1.15rem;
    font-weight: bold;
}

/* Main Text Content Blocks */
.main-text-content .content-block {
    background-color: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease-out; /* Multi-step animation base */
    border: 2px solid transparent;
}

.main-text-content .content-block h3 {
    color: var(--dark-purple);
    margin-bottom: 15px;
    font-weight: bold;
    border-bottom: 3px solid var(--secondary-yellow);
    padding-bottom: 10px;
    display: inline-block;
    transition: color 0.3s ease;
}

.main-text-content .content-block p {
    color: var(--text-color);
}

/* Hover Animation for Main Text Content Blocks */
.main-text-content .content-block:hover {
    background-color: var(--primary-purple); /* Step 1: Change background */
    color: white; /* Step 2: Change text color */
    transform: scale(1.02); /* Step 3: Enlarge */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Step 4: Add shadow */
    border-color: var(--secondary-yellow); /* Step 5: Change border color */
}

.main-text-content .content-block:hover h3 {
    color: var(--light-yellow); /* Change heading color on hover */
    border-color: white;
}

.main-text-content .content-block:hover p {
    color: #f0f0f0; /* Lighter text on hover */
}

/* About Us Section (Admin Card) */
.about-us-section-col {
    text-align: center;
}

.about-us-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px; /* Keep some rounding */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    border: 2px solid transparent;
    min-height: 380px; /* Make it a bit larger */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-us-card:hover {
    transform: scale(1.03); /* Larger */
    background-color: rgba(138, 43, 226, 0.1); /* Semi-transparent background */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-yellow);
}

.about-us-card .admin-img-square {
    width: 250px; 
    height: 250px; 
    object-fit: cover;
    border: 8px solid var(--secondary-yellow); 
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    border-radius: 5px; /* Square with slight rounding */
}

.about-us-card:hover .admin-img-square {
    transform: rotate(5deg) scale(1.05);
}

.about-us-card h4 {
    color: var(--primary-purple);
    font-weight: bold;
    margin-top: 20px;
}

/* New Info Cards (left/right of main content) */
.info-card {
    background-color: rgba(138, 43, 226, 0.08); /* Light purple background */
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
    transition: all 0.3s ease;
    color: var(--dark-purple);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    background-color: rgba(138, 43, 226, 0.15);
}

.info-card h5 {
    color: var(--primary-purple);
    font-weight: bold;
    margin-bottom: 15px;
}

.info-card p {
    color: #555;
    font-size: 0.95rem;
}


/* Tooltip */
.tooltip-trigger {
    cursor: pointer;
    text-decoration: underline dotted var(--primary-purple);
    color: var(--primary-purple);
    font-weight: bold;
    transition: color 0.2s ease;
}

.tooltip-trigger:hover {
    color: var(--dark-purple);
}

.tooltip-inner {
    background-color: var(--dark-purple);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--dark-purple);
}

.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--dark-purple);
}

/* Services Showcase (Circular Frames) */
.service-circles-container {
    padding: 20px;
}

.service-circle {
    width: 180px; /* Fixed size for circles */
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease-in-out;
    border: 4px solid var(--primary-purple);
}

.service-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.service-circle .service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(138, 43, 226, 0.8); /* Purple overlay */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, background-color 0.4s ease-in-out;
    padding: 10px;
}

.service-circle .service-overlay h5 {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--light-yellow);
}

.service-circle .service-overlay p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* JavaScript Class for Active Service Circle */
.service-circle.active-service {
    transform: scale(1.15); /* Enlarge on click */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--secondary-yellow);
}

.service-circle.active-service img {
    transform: scale(1.05) rotate(5deg); /* Slight rotation */
    filter: brightness(0.7);
}

.service-circle.active-service .service-overlay {
    opacity: 1; /* Show overlay on click */
    background-color: rgba(255, 215, 0, 0.85); /* Yellow overlay on click */
    color: var(--dark-purple);
}
.service-circle.active-service .service-overlay h5,
.service-circle.active-service .service-overlay p {
    color: var(--dark-purple); /* Ensure text is dark on yellow overlay */
}

/* Our Commitments Section */
#our-commitments-section {
    background-color: var(--light-bg); /* رنگ پس‌زمینه روشن */
    padding: 60px 0; /* فاصله داخلی بالا و پایین */
    direction: rtl; /* برای پشتیبانی از زبان فارسی (راست به چپ) */
}

.commitments-grid {
    display: flex;             /* 👈 آیتم‌ها را در یک ردیف قرار می‌دهد */
    flex-wrap: wrap;           /* 👈 اجازه می‌دهد در صفحه‌های کوچک‌تر، آیتم‌ها به خط بعدی بروند */
    justify-content: center;   /* 👈 آیتم‌ها را در مرکز افقی قرار می‌دهد */
    gap: 25px;                 /* 👈 فاصله بین آیتم‌های تعهد (کمی کاهش یافت برای فضای بیشتر) */
    align-items: stretch;      /* 👈 کلیدی برای همتراز کردن ارتفاع آیتم‌ها */
}

.commitment-item {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* برای اینکه border-radius روی تصویر هم اعمال بشه */
    transition: all 0.3s ease-in-out; /* انیمیشن برای هاور */
    flex: 1 1 30%; /* 👈 بهینه‌سازی برای فضای موجود: flex-grow, flex-shrink, flex-basis */
    min-width: 280px; /* 👈 حداقل عرض برای هر کارت در صفحات کوچک‌تر */
    max-width: 350px; /* 👈 حداکثر عرض برای هر کارت در دسکتاپ (کمی کاهش یافت) */
    display: flex;             /* 👈 فلکس باکس داخلی برای محتوای هر کارت */
    flex-direction: column;    /* 👈 محتوای داخل کارت (عکس، تیتر، متن) را به صورت ستونی می‌چیند */
    border: 3px solid transparent; /* برای افکت هاور border */
}

.commitment-item:hover {
    transform: translateY(-8px) scale(1.02); /* کمی به بالا حرکت کند و بزرگتر شود */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2); /* سایه بزرگتر */
    border-color: var(--secondary-yellow); /* رنگ border در زمان هاور */
}

.commitment-item .commitment-img {
    width: 100%;
    height: 220px; /* 👈 ارتفاع تصاویر کمی کاهش یافت تا کادرها فشرده‌تر شوند */
    object-fit: cover; /* تصویر را برش می‌دهد تا فضا را پر کند */
    border-bottom: 3px solid var(--primary-purple); /* خط جداکننده زیر تصویر */
    transition: opacity 0.5s ease-in-out; /* برای افکت‌های آینده اگر تصویر عوض شد */
}

.commitment-item .commitment-caption {
    padding: 20px; /* 👈 فاصله داخلی برای متن کمی کاهش یافت */
    text-align: center;
    flex-grow: 1; /* 👈 به کپشن اجازه می‌دهد فضای عمودی باقی‌مانده را پر کند */
    display: flex; /* 👈 محتوای کپشن هم از فلکس باکس استفاده کند */
    flex-direction: column; /* محتوای کپشن به صورت ستونی */
    justify-content: space-between; /* 👈 محتوای کپشن را به صورت عمودی پخش می‌کند (اگر چند آیتم باشد) */
}

.commitment-item .commitment-caption h4 {
    color: var(--dark-purple);
    font-weight: bold;
    margin-bottom: 12px; /* 👈 فاصله پایین کمی کاهش یافت */
    font-size: 1.5rem; /* 👈 اندازه تیتر کمی کاهش یافت */
}

.commitment-item .commitment-caption p {
    color: #555;
    font-size: 1rem; /* 👈 اندازه متن کمی کاهش یافت */
    line-height: 1.5; /* 👈 خطوط متن کمی فشرده‌تر شدند */
}

/* Customer Testimonials - 3 Boxes in a Row */
#testimonials-section {
    padding: 60px 0;
    background-color: var(--light-bg); /* Use light background for this section */
}

.testimonial-box {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-right: 5px solid var(--secondary-yellow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-box:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-purple);
}

.testimonial-box .testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--dark-purple);
    margin-bottom: 15px;
}

.testimonial-box .testimonial-author {
    font-size: 0.95rem;
    font-weight: bold;
    color: #6c757d;
    text-align: right;
}

.testimonial-box .testimonial-author span {
    font-weight: normal;
}

/* Mission & Vision */
.mission-card, .vision-card {
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid var(--light-yellow);
    color: var(--text-color);
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-purple);
}

.mission-card h4, .vision-card h4 {
    color: var(--dark-purple);
    font-weight: bold;
}

/* Contact Section */
#contact-section .contact-form {
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--secondary-yellow);
    transition: all 0.3s ease;
}

#contact-section .contact-form:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border-color: var(--primary-purple);
    transform: translateY(-3px);
}

.contact-form label {
    color: var(--dark-purple);
    font-weight: bold;
    margin-bottom: 5px;
}

.contact-form .form-control, .contact-form .form-select {
    border-radius: 5px;
    border: 1px solid var(--primary-purple);
    padding: 10px 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .form-control:focus, .contact-form .form-select:focus {
    border-color: var(--secondary-yellow);
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}

.submit-btn {
    background-color: var(--primary-purple);
    color: white;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.submit-btn:hover {
    background-color: var(--dark-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.map-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--secondary-yellow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.map-container:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border-color: var(--primary-purple);
    transform: translateY(-3px);
}

.map-container iframe {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* New: Contact details below map (replacing empty space) */
.contact-details-below-map {
    background-color: var(--primary-purple); /* Or white with dark text, matching footer */
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}
.contact-details-below-map p {
    margin-bottom: 8px;
    color: white;
}
.contact-details-below-map i {
    color: var(--light-yellow);
    margin-left: 5px;
}


/* Footer */
.footer {
    background-color: var(--primary-purple);
    color: white;
    padding: 40px 0; /* Larger padding */
    transition: background-color 0.3s ease, color 0.3s ease, font-size 0.3s ease;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer:hover {
    background-color: var(--dark-purple);
    color: var(--light-yellow);
    font-size: 1.02rem; /* Slightly larger text on hover */
}

.footer-logo {
    height: 70px; /* Adjust size as needed */
    width: auto;
    object-fit: contain;
    filter: brightness(1.2); /* Make it pop on dark background */
}

.footer .social-icons a {
    color: white;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer .social-icons a:hover {
    color: var(--secondary-yellow);
    transform: scale(1.2) rotate(5deg);
}

/* Scroll Buttons */
.scroll-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--secondary-yellow);
    color: var(--dark-purple);
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1000;
}

.scroll-btn:hover {
    background-color: var(--primary-purple);
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.scroll-down-btn {
    right: auto;
    left: 30px;
}

/* Modals */
.custom-modal .modal-content {
    background-color: white;
    border-radius: 15px;
    border: 3px solid var(--primary-purple);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: fadeInModal 0.5s ease-out;
}

.custom-modal .modal-header {
    background-color: var(--primary-purple);
    color: white;
    border-bottom: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-modal .modal-title {
    font-weight: bold;
    font-size: 1.7rem;
}

.custom-modal .close-modal-btn {
    background-color: var(--light-yellow);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 1;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.custom-modal .close-modal-btn:hover {
    background-color: white;
    transform: rotate(90deg) scale(1.1);
}

.custom-modal .close-modal-btn::before, .custom-modal .close-modal-btn::after {
    background-color: var(--primary-purple); /* Ensure 'x' is purple */
}


.custom-modal .modal-body {
    padding: 30px;
    color: var(--text-color);
}

.custom-modal .modal-body ul {
    list-style: none;
    padding: 0;
}
.custom-modal .modal-body ul li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(138, 43, 226, 0.2);
    color: var(--dark-purple);
}
.custom-modal .modal-body ul li:last-child {
    border-bottom: none;
}

.modal-backdrop.show {
    opacity: 0.8; /* Make backdrop semi-transparent */
    background-color: var(--dark-purple); /* Dark purple backdrop */
}
/* Animation for modal content itself */
@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-admin-img {
    width: 150px; /* Slightly smaller for modal */
    height: 150px;
    border: 4px solid var(--secondary-yellow);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    border-radius: 5px; /* Square with slight rounding */
}


/* Chat Button & Window */
.chat-btn {
    position: fixed;
    bottom: 30px;
    left: 100px; /* Adjusted to be separate from scroll to main */
    background-color: #28a745; /* Green chat button */
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1001;
}

.chat-btn:hover {
    background-color: #218838;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.chat-window {
    position: fixed;
    bottom: 100px; /* Above the chat button */
    left: 20px;
    width: 320px;
    height: 450px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: none; /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    border: 2px solid var(--primary-purple);
    animation: slideInChat 0.4s ease-out;
}

@keyframes slideInChat {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-window.open {
    display: flex;
}

.chat-header {
    background-color: var(--primary-purple);
    color: white;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.chat-header h4 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

.close-chat-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-chat-btn:hover {
    transform: rotate(90deg);
}

.chat-body {
    flex-grow: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: #f0f0f0;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-message {
    background-color: #e0e0e0;
    align-self: flex-start;
    border-bottom-right-radius: 5px;
    color: #333;
}

.user-message {
    background-color: var(--secondary-yellow); /* User messages in yellow */
    color: var(--dark-purple);
    align-self: flex-end;
    border-bottom-left-radius: 5px;
}

.chat-predefined-questions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.question-btn {
    background-color: var(--light-yellow);
    color: var(--dark-purple);
    border: 1px solid var(--secondary-yellow);
    border-radius: 15px;
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.question-btn:hover {
    background-color: var(--secondary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-input-area {
    display: flex;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.chat-input-area input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 15px;
    margin-left: 10px;
    font-size: 0.9rem;
}

.chat-input-area button {
    background-color: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.chat-input-area button:hover:not(:disabled) {
    background-color: var(--dark-purple);
    transform: scale(1.05);
}
.chat-input-area button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}


/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .custom-navbar {
        opacity: 1; /* Always opaque on smaller screens */
        background-color: var(--primary-purple);
    }
    .navbar-collapse {
        background-color: var(--primary-purple);
        border-top: 1px solid var(--secondary-yellow);
        padding: 15px;
    }
    /* Menu items stack vertically, no specific margin for this on small screens */
    .navbar-nav .nav-item {
        margin: 5px 0;
    }
    .nav-link.nav-btn {
        width: 100%;
        text-align: center;
    }
    /* Contact info on small screens */
    .navbar-contact-info {
        text-align: center;
        width: 100%;
        margin-top: 15px;
        padding-left: 0;
        align-items: center; /* Center items on smaller screens */
        margin-right: 0; /* Override margin-right auto for small screens */
        margin-left: 0; /* Override margin-left for small screens */
        white-space: normal; /* Allow wrapping */
    }
    .navbar-contact-info .phone-address-large {
        font-size: 1.05rem; /* Slightly smaller on mobile */
    }
    .navbar-contact-info .social-links-top {
        text-align: center; /* Center social links on smaller screens */
        width: 100%;
    }
    .navbar-brand {
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
        margin-left: 0; /* No margin on small screens */
    }
    .navbar-brand .navbar-logo {
        height: 50px; /* Adjust for mobile if needed, though 2cm is already small */
    }

    .header-section {
        height: 400px;
        margin-top: 70px;
    }
    .header-title {
        font-size: 3rem;
    }
    .header-subtitle {
        font-size: 1.4rem; /* Adjusted for smaller screens */
    }

    .offer-frame {
        padding: 2rem 1rem;
        margin-top: -30px;
    }
    .offer-slogan {
        font-size: 1.4rem; /* Adjusted for smaller screens */
    }
    .offer-discount {
        font-size: 2rem;
    }

    .main-content .row {
        flex-direction: column-reverse; /* Put about us/admin below main text */
    }
    .sidebar-menu-col, .about-us-section-col {
        margin-top: 30px;
        padding-left: 15px; /* Add some padding back for columns */
        padding-right: 15px;
    }
    .about-us-card {
        min-height: auto;
    }
    .about-us-section-col {
        order: 1; /* Puts it at the top of the columns on mobile */
    }
    .main-text-content {
        order: 2;
    }
    .sidebar-menu-col {
        order: 3;
    }
    .admin-img-square {
        width: 150px;
        height: 150px;
    }
    .commitment-item {
        width: calc(50% - 15px); /* Two columns on medium screens */
    }
    .testimonial-box {
        /* Removed fixed min-height to allow flex-fill */
        width: calc(50% - 15px); /* Two boxes per row on medium screens */
        margin-bottom: 20px;
    }
    .mission-card, .vision-card {
        width: 100%; /* Stack on medium screens */
    }
}

@media (max-width: 767.98px) {
    .header-section {
        height: 300px;
        margin-top: 60px;
    }
    .header-title {
        font-size: 2.5rem;
    }
    .header-subtitle {
        font-size: 1.2rem;
    }

    .offer-frame {
        padding: 1.5rem 0.8rem;
    }
    .offer-slogan {
        font-size: 1.2rem;
    }
    .offer-discount {
        font-size: 1.8rem;
    }

    .service-circle {
        width: 150px;
        height: 150px;
    }
    .service-circle .service-overlay h5 {
        font-size: 1rem;
    }
    .service-circle .service-overlay p {
        font-size: 0.8rem;
    }
    .service-circle.active-service {
        transform: scale(1.1);
    }

    .testimonial-box {
        width: 100%; /* Stack on small screens */
        margin-bottom: 20px;
    }

    .scroll-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
    .scroll-down-btn {
        left: 20px;
    }
    .chat-btn {
        bottom: 20px;
        left: 80px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .chat-window {
        width: 90%;
        left: 5%;
        bottom: 80px;
        height: 400px;
    }
    .commitment-item {
        width: 100%; /* Single column on small screens */
    }
    .info-card {
        margin-top: 20px; /* Adjust margin for small screens */
    }
}

@media (max-width: 575.98px) {
    .header-section {
        height: 250px;
    }
    .header-title {
        font-size: 2rem;
    }
    .header-subtitle {
        font-size: 1rem;
    }

    .offer-discount {
        font-size: 1.5rem;
    }

    .service-circle {
        width: 120px;
        height: 120px;
        border-width: 2px;
    }
    .service-circle .service-overlay h5 {
        font-size: 0.9rem;
    }
    .service-circle .service-overlay p {
        font-size: 0.7rem;
    }
    .service-circle.active-service {
        transform: scale(1.1);
    }

    .map-container iframe {
        height: 300px;
    }
    .footer-logo {
        height: 50px;
    }
    .footer p {
        font-size: 0.9rem;
    }
    .footer .social-icons a {
        font-size: 1.2rem;
    }
    .chat-predefined-questions .question-btn {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}