/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@500;600;700;800&display=swap');

/* Variables */
:root {
    --primary-color: #0c3c2f;    /* Dark Green */
    --secondary-color: #8bc34a;  /* Light Green */
    --text-color: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --transition: all 0.3s ease-in-out;
    --border-radius: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-color);
}

/* =================================
   HEADER
================================= */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    padding: 10px 0;
    transition: var(--transition);
    z-index: 1050;
}
.navbar-brand {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}
.navbar-brand img {
    max-height: 70px;
    height: 70px;
    width: auto;
    object-fit: contain;
    padding: 5px 0;
}
.nav-link {
    color: var(--primary-color) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    margin: 0 12px;
    padding: 10px 0 !important;
    position: relative;
    transition: var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.navbar-nav {
    align-items: center;
}

/* =================================
   HERO SLIDER SECTION
================================= */
.hero-slider-section {
    position: relative;
    background: var(--bg-dark);
}
.hero-slider-section .carousel-item {
    height: 600px;
}
.hero-slide-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(12, 60, 47, 0.9) 0%, rgba(12, 60, 47, 0.6) 50%, rgba(12, 60, 47, 0.3) 100%);
    z-index: 2;
}
.hero-slider-section .container {
    z-index: 3;
}
.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.banner-description {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #e0e0e0;
}
.banner-description p {
    color: #e0e0e0;
    font-size: 1.25rem;
    margin-bottom: 15px;
}
.banner-description h1, .banner-description h2, .banner-description h3, .banner-description h4 {
    color: #fff;
}
.hero-slider-section .carousel-indicators {
    z-index: 4;
    margin-bottom: 2rem;
}
.hero-slider-section .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid transparent;
    margin: 0 6px;
    transition: var(--transition);
}
.hero-slider-section .carousel-indicators .active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}
.carousel-control-prev, .carousel-control-next {
    z-index: 4;
    width: 5%;
}
.carousel-fade .carousel-item {
    transition-duration: 0.8s;
}

/* =================================
   BUTTONS
================================= */
.btn-custom {
    background: var(--secondary-color);
    color: #fff;
    padding: 14px 35px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: var(--transition);
    display: inline-block;
}
.btn-custom:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(12, 60, 47, 0.2);
}
.btn-outline-custom {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 33px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    display: inline-block;
}
.btn-outline-custom:hover {
    background: var(--primary-color);
    color: #fff;
}

/* =================================
   SECTIONS
================================= */
.section-padding {
    padding: 100px 0;
}
.section-title {
    margin-bottom: 60px;
}
.section-title h5 {
    color: var(--secondary-color);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 15px;
}
.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}
.section-title.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* =================================
   CARDS & GRIDS
================================= */
.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.02);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(12, 60, 47, 0.1);
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-card .icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: var(--transition);
}
.service-card:hover .icon {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Icon Box */
.icon-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}
.icon-box .icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    line-height: 1;
}
.icon-box h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* =================================
   CKEDITOR CONTENT STYLING
================================= */
.ck-content {
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
}
.ck-content h1, .ck-content h2, .ck-content h3, .ck-content h4, .ck-content h5, .ck-content h6 {
    color: var(--primary-color);
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-family: 'Playfair Display', serif;
}
.ck-content h2 { font-size: 32px; }
.ck-content h3 { font-size: 26px; }
.ck-content h4 { font-size: 22px; }
.ck-content p {
    line-height: 1.9;
    margin-bottom: 18px;
    font-size: 16px;
    color: var(--text-muted);
}
.ck-content ul, .ck-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}
.ck-content li {
    line-height: 1.8;
    margin-bottom: 10px;
    color: var(--text-muted);
}
.ck-content ul {
    list-style-type: disc;
}
.ck-content ul li::marker {
    color: var(--secondary-color);
}
.ck-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding: 20px 20px 20px 30px;
    margin: 30px 0;
    background: var(--bg-light);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--primary-color);
    border-radius: 0 8px 8px 0;
}
.ck-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.ck-content figure.image {
    margin: 0;
    text-align: center;
}
.ck-content table {
    width: 100% !important;
    margin-bottom: 1rem;
    color: var(--text-color);
    vertical-align: top;
    border-color: #dee2e6;
    border-collapse: collapse;
}
.ck-content table th, .ck-content table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}
.ck-content table th {
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-weight: 600;
}
.ck-content a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}
.ck-content a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* =================================
   PAGES (Banners, Contact, Footer)
================================= */
.page-header {
    background: linear-gradient(rgba(12, 60, 47, 0.9), rgba(12, 60, 47, 0.9)), url('../images/banners/breadcrumb-overlay.png') center/cover;
    padding: 120px 0 80px;
    text-align: center;
    color: #fff;
}
.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #fff;
}
.breadcrumb {
    justify-content: center;
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}
.breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
}
.breadcrumb-item.active {
    color: #fff;
}

/* Contact Details */
.contact-info-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    transition: var(--transition);
}
.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(12, 60, 47, 0.1);
}
.contact-info-card .icon {
    width: 60px;
    height: 60px;
    background: rgba(139, 195, 74, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: #fff;
    padding: 80px 0 30px;
}
.footer-title {
    color: #fff;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    font-family: 'Playfair Display', serif;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px; height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}
.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 8px;
}
.social-links a {
    display: inline-flex;
    width: 45px; height: 45px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 1.1rem;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}
.footer-bottom {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: #888;
}

/* Mobile Media Queries */
@media (max-width: 991px) {
    .navbar-brand img { max-height: 55px; }
    .navbar-collapse {
        background: #fff;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        z-index: 1060;
        margin-top: 5px;
    }
    .nav-link {
        padding: 12px 15px !important;
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    .nav-link::after { display: none; }
    
    /* Hero Slider Tablet */
    .hero-slider-section .carousel-item { height: 500px; }
    .hero-content h1 { font-size: 3rem; }
    .banner-description { font-size: 1.1rem; }
    .banner-description p { font-size: 1.1rem; }
    
    .section-padding { padding: 60px 0; }
    .page-header h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    /* Hero Slider Mobile */
    .hero-slider-section .carousel-item { 
        height: auto; 
        min-height: 450px; 
        padding: 80px 0;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content h1 { font-size: 2.5rem; margin-bottom: 15px; }
    .banner-description { font-size: 1rem; margin-bottom: 30px; }
    .banner-description p { font-size: 1rem; }
    
    .section-title h2 { font-size: 2rem; }
}

/* =================================
   SERVICE SIDEBAR & DETAILS
================================= */
.service-sidebar {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.service-sidebar-item {
    display: block;
    padding: 15px 25px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    background: #f8f9fa;
}
.service-sidebar-item:last-child {
    border-bottom: none;
}
.service-sidebar-item i {
    font-size: 0.85rem;
    margin-right: 10px;
    color: var(--primary-color);
    transition: var(--transition);
}
.service-sidebar-item:hover {
    background: #fff;
    color: var(--primary-color);
    padding-left: 30px;
}
.service-sidebar-item.active {
    background: var(--secondary-color);
    color: #fff;
    font-weight: 600;
}
.service-sidebar-item.active i {
    color: #fff;
}
.service-detail-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* =================================
   FLIP BOX CARDS
================================= */
.flip-box {
    background-color: transparent;
    height: 350px;
    perspective: 1000px;
    border-radius: var(--border-radius);
    text-decoration: none !important;
    display: block;
}
.flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    transform-style: preserve-3d;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Premium soft shadow in normal state */
    transition: box-shadow 0.4s ease;
}
.flip-box:hover .flip-box-inner, .flip-box.mobile-flipped .flip-box-inner {
    transform: rotateY(180deg);
}
.flip-box:hover, .flip-box.mobile-flipped {
    box-shadow: 0 20px 40px rgba(12, 60, 47, 0.15); /* Stronger premium shadow on hover/flip */
}
.flip-box-front, .flip-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.flip-box-front {
    background-color: #ffffff;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 30px;
}
.flip-box-front h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.flip-box-front p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}
.flip-box-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.flip-box-back img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}
.flip-box-back-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(12, 60, 47, 0.75); /* Primary green dark overlay */
    z-index: 2;
}
.flip-box-back-content {
    position: relative;
    z-index: 3;
    padding: 30px;
}
.flip-box-back-content h4 {
    color: #fff;
    margin-bottom: 0;
}

/* =================================
   CONTACT PAGE REVAMP
================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 195, 74, 0.1);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(12, 60, 47, 0.08);
    border-color: rgba(139, 195, 74, 0.3);
}
.glass-card .icon {
    width: 70px;
    height: 70px;
    background: rgba(139, 195, 74, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: var(--transition);
}
.glass-card:hover .icon {
    background: var(--secondary-color);
    color: #fff;
    transform: scale(1.1);
}

.map-container {
    height: 100%;
    min-height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.premium-form-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    padding: 50px;
}

.premium-input {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    height: auto;
    font-size: 1rem;
    transition: var(--transition);
}
.premium-input:focus {
    background-color: #fff;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(139, 195, 74, 0.1);
}
.premium-input::placeholder {
    color: #adb5bd;
}

@media (max-width: 768px) {
    .premium-form-card {
        padding: 30px 20px;
    }
    .map-container {
        min-height: 350px;
        margin-bottom: 30px;
    }
}

/* =================================
   MISSION & VISION CARDS
================================= */
.mission-vision-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 50px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    height: 100%;
}
.mission-vision-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.mission-vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(12, 60, 47, 0.08);
}
.mission-vision-card:hover::before {
    transform: scaleX(1);
}
.mission-vision-icon {
    width: 80px;
    height: 80px;
    background: rgba(139, 195, 74, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 30px;
    transition: var(--transition);
}
.mission-vision-card:hover .mission-vision-icon {
    background: var(--secondary-color);
    color: #ffffff;
    transform: rotateY(180deg);
}