/* Color Variables */
:root {
    --primary-color: #722992;
    --secondary-color: #1e2180;
    --white-color: #ffffff;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --gray-text: #6c757d;
    --transition: all 0.3s ease;
}

/* Global Styles */ 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    font-family: 'Merriweather', serif;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Top Info Bar */
.top-info-bar {
    background: var(--secondary-color);
    color: var(--white-color);
    padding: 10px 0;
    font-size: 0.9rem;
}

.contact-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info i {
    margin-right: 5px;
    color: var(--white-color);
}

.login-links a {
    color: var(--white-color);
    margin-left: 15px;
    transition: var(--transition);
}

.login-links a:hover {
    color: #ffd700;
}

.dropdown-menu {
    background: var(--white-color);
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1050;
    padding: 0;
    overflow: hidden;
    border-radius: .25rem;
}

.dropdown-toggle {
    color: #ffa8e9 !important;
    font-weight: ;
}

.dropdown-toggle:hover {
    color: #ffed4e !important;
}

.dropdown-item {
    color: #000000 !important;
    padding: 10px 20px;
    transition: var(--transition);
    display: block;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.dropdown-item i {
    margin-right: 8px;
}

/* Navigation */
.navbar {
    padding: 0px 0;
    transition: var(--transition);
}

.navbar-brand img {
    transition: var(--transition);
    
}

.navbar-nav .nav-link {
    color: var(--dark-text);
    font-weight: 600;
    padding: 10px 20px;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 40px);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
}

.carousel-item {
    height: 600px;
}

.carousel-item img {
    height: 600px;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
}

.carousel-caption h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    margin-bottom: 20px;
}

.carousel-caption p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s both;
}

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

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(114, 41, 146, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(114, 41, 146, 0.3);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
}

.stat-card {
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

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

.stat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Title */
.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
}

/* Welcome Section */
.welcome-section {
    padding: 80px 0;
}

.welcome-section img {
    border-radius: 15px;
    transition: var(--transition);
}

.welcome-section img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Programs Section */
.programs-section {
    padding: 80px 0;
}

.program-card {
    background: var(--white-color);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(114, 41, 146, 0.2);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white-color);
}

.program-card h4 {
    color: var(--dark-text);
    margin-bottom: 15px;
}

.program-card p {
    color: var(--gray-text);
    margin-bottom: 20px;
}

/* News Section */
.news-section {
    padding: 80px 0;
}

.news-card {
    background: var(--white-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.news-content h5 {
    color: var(--dark-text);
    margin-bottom: 15px;
}

.news-content p {
    color: var(--gray-text);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
}

.testimonial-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    height: 100%;
}

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

.quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.testimonial-content p {
    color: var(--gray-text);
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author h6 {
    color: var(--dark-text);
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white-color);
    padding: 60px 0 20px;
}

.footer h5 {
    color: var(--white-color);
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.footer p {
    color: rgba(255,255,255,0.8);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white-color);
    margin-right: 10px;
    transition: var(--transition);
}

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

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

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

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
    display: flex;
    align-items: start;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
}

.footer hr {
    border-color: rgba(255,255,255,0.2);
}

.footer a {
    color: rgba(255,255,255,0.8);
}

.footer a:hover {
    color: var(--white-color);
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(114, 41, 146, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 8px;
}
.form-label .required {
    color: #dc3545;
    font-weight: 600;
}

.form-check-input {
    border-color: #dc3545 !important;
    accent-color: #dc3545 !important;
}

.form-check-input:checked {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.form-check-input:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

/* Login Forms */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 40px 0;
}

.login-card {
    background: var(--white-color);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 450px;
    width: 100%;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 120px;
    margin-bottom: 20px;
}

.login-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form .input-group-text {
    background: var(--light-bg);
    border: 2px solid #e0e0e0;
    border-right: none;
}

.login-form .form-control {
    border-left: none;
}

.forgot-password {
    color: var(--primary-color);
    font-size: 0.9rem;
    float: right;
}

.forgot-password:hover {
    color: var(--secondary-color);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    padding: 100px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.breadcrumb {
    background: transparent;
    justify-content: center;
    margin-bottom: 0;
}

.breadcrumb-item {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-item.active {
    color: var(--white-color);
}

.breadcrumb-item a {
    color: var(--white-color);
}

/* Content Section */
.content-section {
    padding: 80px 0;
}

/* Facility Cards */
.facility-card {
    background: var(--white-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    margin-bottom: 30px;
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.facility-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.facility-content {
    padding: 30px;
}

.facility-content h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section,
    .carousel-item,
    .carousel-item img {
        height: 400px;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .login-card {
        padding: 30px;
        margin: 20px;
    }
    
    .contact-info {
        justify-content: center;
        text-align: center;
    }
    
    .login-links {
        text-align: center;
        margin-top: 10px;
    }
}

/* Loader */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.text-primary-custom {
    color: var(--primary-color);
}

.text-secondary-custom {
    color: var(--secondary-color);
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(114, 41, 146, 0.2);
}
