/* Custom CSS for Maa Sharda Pharmacy College Website */

/* Global Styles */
:root {
    --primary-color: #86bc42;
    --secondary-color: #6ba832;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-color: #e9ecef;
}

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

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

/* Header Styles */
.top-bar {
    font-size: 14px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-text strong {
    font-size: 18px;
    color: var(--primary-color);
}

.brand-text small {
    font-size: 12px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

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

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

.navbar-nav .nav-link:hover::after {
    width: 80%;
    left: 10%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(134, 188, 66, 0.9), rgba(107, 168, 50, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #f8f9fa;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-image {
    animation: fadeInRight 1s ease 0.8s both;
}

/* Quick Info Section */
.quick-info-section {
    background: white;
    margin-top: -50px;
    position: relative;
    z-index: 3;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

.info-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 1rem;
    color: white;
    font-size: 2rem;
}

.info-card h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 3rem;
}

/* About Section */
.about-content {
    padding-right: 2rem;
}

.about-features {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feature-item i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.course-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    position: relative;
}

.course-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.course-duration {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.course-body {
    padding: 2rem;
}

.course-features {
    list-style: none;
    margin-top: 1.5rem;
}

.course-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.course-features i {
    color: var(--primary-color);
    margin-right: 0.75rem;
}

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

/* Footer Styles */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.newsletter-form input {
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
}

.newsletter-form button {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.footer-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-item i {
    margin-right: 1rem;
    margin-top: 0.25rem;
    width: 20px;
}

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

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

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    color: white;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(134, 188, 66, 0.3);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.btn-outline-light {
    border: 2px solid white;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, rgba(134, 188, 66, 0.9), rgba(107, 168, 50, 0.9)), url('../images/page-header-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

/* Table Styles */
.table-modern {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.table-modern thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.table-modern th {
    border: none;
    padding: 1.5rem 1rem;
    font-weight: 600;
}

.table-modern td {
    border: none;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.table-modern tbody tr:hover {
    background-color: rgba(134, 188, 66, 0.05);
}

/* Card Styles */
.card-modern {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .navbar-brand {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .brand-text {
        margin-left: 0 !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .course-header,
    .course-body {
        padding: 1.5rem;
    }
}



/* Custom CSS for improved slider text readability */
.carousel-caption h1,
.carousel-caption h4,
.carousel-caption p {
    color: #fff !important; /* Ensure text is white */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9); /* Stronger text shadow for better contrast */
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.75) !important; /* Slightly darker overlay */
    padding: 30px !important; /* More padding */
}

/* Mobile Navigation Improvements */
@media (max-width: 991.98px) { /* Bootstrap's 'lg' breakpoint */
    .navbar-collapse {
        background-color: var(--dark-color); /* Dark background for mobile menu */
        padding: 15px;
    }

    .navbar-nav .nav-link {
        color: #fff !important; /* White text for mobile links */
        padding: 10px 15px !important;
    }

    .navbar-nav .nav-link:hover {
        background-color: var(--primary-color); /* Highlight on hover */
        border-radius: 5px;
    }

    .dropdown-menu {
        background-color: var(--dark-color); /* Dark background for dropdown */
        border: none;
    }

    .dropdown-item {
        color: #fff !important; /* White text for dropdown items */
        padding: 10px 20px;
    }

    .dropdown-item:hover {
        background-color: var(--primary-color); /* Highlight on hover */
    }
}




/* Desktop Navigation Spacing */
@media (min-width: 1200px) { /* For extra large screens */
    .top-bar .container {
        padding-left: 30px;
        padding-right: 30px;
    }
    .navbar-nav {
        margin-left: auto; /* Push navigation to the right */
    }
}

/* Further Mobile Navigation Improvements */
@media (max-width: 991.98px) { /* Bootstrap's 'lg' breakpoint */
    .navbar-collapse {
        background-color: var(--dark-color); /* Dark background for mobile menu */
        padding: 15px;
        border-radius: 0 0 10px 10px; /* Rounded bottom corners */
    }

    .navbar-nav .nav-link {
        color: #fff !important; /* White text for mobile links */
        padding: 10px 15px !important;
    }

    .navbar-nav .nav-link:hover {
        background-color: var(--primary-color); /* Highlight on hover */
        border-radius: 5px;
    }

    .dropdown-menu {
        background-color: var(--dark-color); /* Dark background for dropdown */
        border: none;
        padding-left: 15px; /* Indent dropdown items */
    }

    .dropdown-item {
        color: #fff !important; /* White text for dropdown items */
        padding: 10px 20px;
    }

    .dropdown-item:hover {
        background-color: var(--primary-color); /* Highlight on hover */
    }
}


