 :root {
    --primary: #1A237E;       /* Dark blue from Jharkhand High Court */
    --primary-dark: #0D1B69;  /* Darker shade of primary */
    --primary-light: #3949AB; /* Lighter shade of primary */
    --accent-color-1: #C62828; /* Red accent from Jharkhand HC */
    --accent-color-2: #FFC107; /* Amber/gold accent */
    --accent-color-3: #00796B; /* Teal accent */
    --accent-color-4: #0277BD; /* Light blue accent */
    --dark: #263238;          /* Dark blue-grey */
    --dark-bg: #1A1A2E;       /* Dark background */
    --light-bg: #F5F5F5;      /* Light grey background */
    --text-color: #212121;    /* Near black text */
    --text-muted: #757575;    /* Grey text */
    --border-radius: 8px;     /* Slightly less rounded corners */
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 5px;
}

.text-center .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.divider {
    display: none; /* Replaced with the :after pseudo-element on section-title */
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #6a9d8f;
    border-color: #6a9d8f;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-width: 2px;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-dark) !important;
}

.navbar-brand span {
    color: var(--primary);
}

.nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    color: var(--dark) !important;
    position: relative;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover:after {
    width: 70%;
}

.nav-link.active:after {
    width: 70%;
}

/* Hero Section */
.hero-section {
    /*background-color: var(--light-bg);*/
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /*background: linear-gradient(135deg, #BABFF0  0%, #6c942b 100%);*/
}

/* Hero Background Slider */
#heroCarousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
}

/* Testimonials Section */
.testimonial-card {
    border-radius: var(--border-radius-lg);
    border: none;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: var(--box-shadow);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.testimonial-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.testimonial-rating {
    color: var(--accent);
    margin-bottom: 1rem;
}

.testimonial-quote {
    position: relative;
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--gray);
}

.testimonial-quote:before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    left: -10px;
    top: -20px;
    color: rgba(255, 158, 109, 0.2);
}

/* Gallery Section */
.gallery-filter .btn {
    font-weight: 500;
    transition: all 0.3s ease;
    border-width: 2px;
}

.gallery-filter .btn.active {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--box-shadow);
}

.gallery-item {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    height: 300px;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.gallery-item img {
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-category {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    margin-bottom: 0.5rem;
}

/* Footer Section */
footer {
    background-color: var(--dark);
    color: white;
    margin-top: 3rem;
    position: relative;
    width: 100%;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
    color: #fff;
    text-decoration: none;
}

.footer-logo:hover {
    color: var(--primary);
}

.footer-logo i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.footer-links h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    color: #fff;
}

.footer-links h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--primary);
    margin-right: 0.75rem;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Programs Section */
.program-card {
    border-radius: var(--border-radius-lg);
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: var(--box-shadow);
    background-color: #8f6a05;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.program-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.program-card .card-body {
    padding: 1.5rem;
    background-color: #fff;
}

.program-card .program-age {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.8rem;
}

.program-card .card-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.program-features {
    padding-left: 0;
    list-style: none;
}

.program-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.program-features li i {
    color: var(--primary);
    margin-right: 10px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gray);
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 158, 109, 0.15);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.hero-shape {
    position: absolute;
    z-index: 1;
}

.hero-shape-1 {
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 213, 109, 0.2);
    border-radius: 50%;
}

.hero-shape-2 {
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background-color: rgba(126, 181, 166, 0.2);
    border-radius: 50%;
}

.hero-shape-3 {
    top: 30%;
    right: 20%;
    width: 70px;
    height: 70px;
    background-color: rgba(232, 106, 88, 0.15);
    border-radius: 50%;
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.hero-shape {
    position: absolute;
    z-index: -1;
}

.hero-shape-1 {
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background-color: rgba(42, 157, 143, 0.1);
    border-radius: 50%;
}

.hero-shape-2 {
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background-color: rgba(233, 196, 106, 0.1);
    border-radius: 50%;
}

/* About Section */
.about-image-container {
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Programs Section */
.program-card {
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

/* Gallery styles */
.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    height: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-filter .btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.gallery-filter .btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* FAQ Section */
.accordion-button:not(.collapsed) {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

/* Contact Section */
.contact-info-item {
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-5px);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

/* Footer */
footer {
    background-color: var(--dark);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 2s ease infinite;
}

/* Responsive */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.8rem;
    }
}

/* Testimonials */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}