:root {
    --primary-color: #2F5233;    /* forest green */
    --secondary-color: #87A878;  /* sage green */
    --accent-color: #8B4513;     /* earth brown */
    --text-color: #363D2F;       /* dark olive */
    --light-bg: #FFF8DC;         /* cream */
    --border-color: #E0E0E0;
}

/* Button Group Styling */
.btn-group {
    display: flex !important;
    align-items: stretch !important;
}

.btn-group > * {
    flex: 1;
    display: flex !important;
    align-items: stretch !important;
}

.btn-group-form {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex: 1;
}

.btn-group-form .btn {
    flex: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    height: auto !important;
}

.btn-group .btn {
    padding: 0.25rem 0.5rem;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 0;
    min-height: 600px;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero h1.display-4,
.hero p.lead {
    text-shadow: 
        0 0 10px rgba(0,0,0,0.8),
        0 0 20px rgba(0,0,0,0.6),
        0 0 30px rgba(0,0,0,0.4);
    font-weight: 600;
}

.hero .container {
    position: relative;
    z-index: 2;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.6) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0) 100%
    );
    padding: 2rem;
    border-radius: 8px;
}

/* Header Backgrounds */
.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.header-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.about-header,
.services-header {
    position: relative;
    padding: 4rem 0;
    background-color: rgba(0, 0, 0, 0.5);
    min-height: 400px;
}

.about-header .container,
.services-header .container {
    position: relative;
    z-index: 2;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.6) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0) 100%
    );
    padding: 2rem;
    border-radius: 8px;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Service Cards */
.card-body {
    padding: 1.5rem;
    height: 100%;
}

.card-body.d-flex.flex-column {
    gap: 0.5rem;
}

.service-card {
    text-align: left;
    background: white;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    backface-visibility: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
}

.service-card h2,
.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-card:hover h2,
.service-card:hover h3 {
    color: var(--secondary-color);
}

.service-card ul {
    margin-top: 1rem;
}

.service-card li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}

.service-card li i {
    margin-top: 0.25rem;
    margin-right: 0.75rem;
    color: var(--primary-color);
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

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

.animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

/* Resource Cards */
.resource-card {
    text-align: center;
    padding: 1.5rem;
}

.resource-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Testimonial Cards */
.testimonial-card {
    background-color: white;
    padding: 1.5rem;
}

.testimonial-content {
    font-style: italic;
    position: relative;
    padding: 0.5rem 0;
}

/* Admin panel star rating */
.admin-content .testimonial-rating {
    color: #FFD700;
}

.testimonial-author {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Forms */
.form-control {
    border-radius: 4px;
    border: 1px solid var(--border-color);
    padding: 0.75rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(47, 82, 51, 0.25);
}

/* Footer */
.footer {
    background-color: var(--light-bg);
    color: var(--text-color);
    padding: 2rem 0;
    margin-top: 3rem;
    position: relative;
    width: 100%;
}

.footer-text {
    margin: 0;
    text-align: center;
}

/* Profile Image Styles */
.profile-image-wrapper {
    max-width: 380px;  /* Base size for desktop */
    width: 100%;
    margin: 0 auto;
}

.profile-image {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: block;
}

.profile-image:hover {
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .profile-image-wrapper {
        max-width: 250px;
    }
}

@media (max-width: 992px) {
    .profile-image-wrapper {
        max-width: 220px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .profile-image-wrapper {
        max-width: 300px;
        margin: 2rem auto;
    }
}

@media (max-width: 576px) {
    .profile-image-wrapper {
        max-width: 180px;
    }
}

@media (max-width: 400px) {
    .profile-image-wrapper {
        max-width: 160px;
    }
}
/* Testimonial Carousel Styles */
.testimonials-swiper {
    padding: 20px 40px;
}

.testimonials-swiper .swiper-slide {
    height: auto;
}

.testimonials-swiper .testimonial-card {
    height: 100%;
    margin: 0;
}

.testimonials-swiper .swiper-button-next,
.testimonials-swiper .swiper-button-prev {
    color: var(--primary-color);
}

.testimonials-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .testimonials-swiper {
        padding: 20px 30px;
    }
    
    .testimonials-swiper .swiper-button-next,
    .testimonials-swiper .swiper-button-prev {
        transform: scale(0.8);
    }
}