:root {
    --primary-color: #005cac;
    /* Deep Blue */
    --secondary-color: #2ecc71;
    /* Vibrant Emerald */
    --accent-color: #f5f5f5;
    /* Light Grey */
    --text-color: #333;
    --font-primary: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-primary);
    background-color: #f8f9fa;
    color: var(--text-color);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary-color);
}

/* Bootstrap Overrides for Colors */
/* .text-primary {
    color: var(--primary-color) !important;
} */

.bg-primary {
    background-color: var(--secondary-color) !important;
}

/* .border-primary {
    border-color: var(--primary-color) !important;
} */
/* Navbar Customization */
.navbar {
    background-color: var(--primary-color) !important;
    /* Deep Blue */
    padding: 0.5rem 0;
    /* Reduced vertical spacing */
}

.navbar-brand span {
    color: #fff !important;
    letter-spacing: 1px;
    font-size: 1.3rem;
    /* Slightly smaller brand */
}

.navbar-brand small {
    color: #ddd !important;
}

.nav-link {
    font-weight: 600;
    /* Bolder */
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 0.5rem 0.6rem !important;
    /* Reduced padding */
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    /* Smaller font to fit all items */
    letter-spacing: 0.3px;
    white-space: nowrap;
    /* Prevent wrapping */
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
    /* Green */
    background-color: transparent;
    transform: translateY(-2px);
    /* more obvious hover */
}

/* Custom Toggler (Hamburger) */
.navbar-toggler {
    border-color: rgba(85, 249, 160, 0.5);
    /* Greenish border */
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(85, 249, 160, 0.25);
}

.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%2885, 249, 160, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-top: 10px;
    background-color: #fff;
    /* Keep white for readability */
}

.dropdown-item {
    color: var(--primary-color);
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 1.8rem;
    /* Slide effect */
    transition: all 0.2s ease;
}

/* Top Bar */
.top-bar {
    background-color: var(--secondary-color) !important;
    /* Green */
    color: #fff !important;
    /* White Text */
    font-weight: 600;
    border-bottom: 3px solid var(--secondary-color);
}

.top-bar a {
    color: #fff !important;
    transition: opacity 0.3s;
}

.top-bar a:hover {
    opacity: 0.7;
}

/* Footer */
footer {
    background-color: var(--primary-color) !important;
    color: #fff;
    text-align: left;
    /* Ensure left alignment */
}

footer h5 {
    color: var(--secondary-color);
    /* Keep Green for contrast */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
}

footer a {
    transition: color 0.3s ease, padding-left 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
    padding-left: 5px;
    /* Subtle movement effect */
    text-decoration: none !important;
}

footer .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

footer .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

footer .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary-color);
    box-shadow: none;
    color: #fff;
}

footer hr {
    opacity: 0.1;
}

/* Footer Styles */
.quick-links {
    padding: 0;
}

.quick-links li {
    margin-bottom: 0.8rem;
}

.quick-links a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.quick-links a:hover {
    color: var(--secondary-color) !important;
    padding-left: 8px;
}

.footer-school-text {
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.6;
}

.social-links-footer .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links-footer .btn-outline-light:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #000;
    transform: translateY(-3px);
}

.text-warning {
    color: var(--secondary-color) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #151b60;
    border-color: #151b60;
}

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #000;
    font-weight: 600;
}

.btn-warning:hover {
    background-color: #fdd835;
    border-color: #fdd835;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Slider */
.carousel-item {
    height: 500px;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    bottom: 20%;
}

.carousel-caption h2 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }

    .carousel-caption h2 {
        font-size: 1.8rem;
    }
}

/* Section Styling */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(26, 35, 126, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover .feature-icon {
    background-color: var(--primary-color);
    color: #fff;
}

.white-text {
    color: #f0f0f0 !important;
}

/* Achievement Marquee */
.achievement-marquee {
    width: 100%;
    overflow: hidden;
    background: #fff;
    padding: 30px 0;
    position: relative;
}

.marquee-content {
    display: flex;
    width: calc(300px * 12);
    /* Width based on item count */
    animation: marquee-scroll 30s linear infinite;
}

.marquee-item {
    width: 300px;
    flex-shrink: 0;
    padding: 0 15px;
}

.marquee-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.marquee-item img:hover {
    transform: scale(1.05);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-300px * 8));
    }

    /* Scroll across first 8 items */
}

/* Pause on hover */
.achievement-marquee:hover .marquee-content {
    animation-play-state: paused;
}

main {
    max-width: 1300px !important;
    margin: 0 auto;
}