/* Custom CSS for American College of Health & Sciences */

:root {
    --primary-color: #350264;
    --secondary-color: #7cc5f7;
    --accent-color: #50028e;
    --success-color: #0db922;
    --warning-color: #e1dd15;
    --danger-color: #d30404;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    color: #333;
    line-height: 1.6;
}

/* Bootstrap Overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

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

/* Header Styles */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand img {
    max-height: 60px;
}

.navbar .nav-link {
    color: var(--primary-color);
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
}

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

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(53, 2, 100, 0.8), rgba(80, 2, 142, 0.8)), url('../images/college/20150115_171417[1].jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
    margin-top: 76px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Section Styling */
section {
    padding: 80px 0;
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

.section-title h2 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    color: #777;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
}

/* Program Cards */
.program-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

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

.program-card .card-body {
    padding: 25px;
}

.program-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* About Section */
.about-img {
    border-radius: 10px;
    overflow: hidden;
}

.about-content h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

/* Partnership Section */
.partnership-section {
    background-color: #f9f9f9;
}

.partnership-img {
    border-radius: 10px;
    overflow: hidden;
}

/* Admissions Section */
.admission-requirements {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.admission-requirements h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.admission-requirements ul {
    padding-left: 20px;
}

.admission-requirements li {
    margin-bottom: 10px;
}

/* Contact Section */
.contact-info-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-right: 20px;
}

.contact-info-text h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-form {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-control {
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
}

textarea.form-control {
    height: 150px;
}

/* Map */
.map-container {
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 50px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 70px 0 0;
}

.footer-logo img {
    max-height: 80px;
    margin-bottom: 20px;
}

.footer-widget h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
    position: absolute;
    bottom: 0;
    left: 0;
}

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

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

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

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

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

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
}

/* Program Specific Pages */
.program-hero {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.nursing-hero {
    background: linear-gradient(rgba(53, 2, 100, 0.8), rgba(80, 2, 142, 0.8)), url('../images/nursing/midsection-doctor-examining-patient.jpg');
    margin-top: 76px;
}

.hemodialysis-hero {
    background: linear-gradient(rgba(53, 2, 100, 0.8), rgba(80, 2, 142, 0.8)), url('../images/hemodialysis/DSC_0310.jpg');
    margin-top: 76px;
}

.program-details-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.program-details-card i {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.program-details-card h3 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.gallery-item img {
    transition: all 0.5s ease;
}

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

.cta-section {
    background: linear-gradient(rgba(53, 2, 100, 0.9), rgba(80, 2, 142, 0.9)), url('../images/college/20150115_171326[1]_edited.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 0;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Contact Widget */
.contact-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: var(--font-family);
}

.contact-widget-toggle {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.contact-widget-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(53, 2, 100, 0.6);
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(53, 2, 100, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(53, 2, 100, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(53, 2, 100, 0);
    }
}

.contact-widget-toggle i {
    font-size: 26px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-widget-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.contact-widget-content {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 320px;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: scale(0);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    border: 1px solid rgba(124, 197, 247, 0.3);
    overflow: hidden;
}

.contact-widget.active .contact-widget-content {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.contact-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 15px 15px 0 0;
}

.contact-widget-header h5 {
    margin: 0;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-widget-header .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.contact-widget-header .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.contact-widget-body {
    padding: 25px 20px;
    position: relative;
}

.contact-widget-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(124, 197, 247, 0.5), transparent);
}

.contact-widget-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 10px;
}

.contact-widget-item:hover {
    background-color: rgba(124, 197, 247, 0.1);
    transform: translateX(5px);
}

.contact-widget-item i {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    font-size: 18px;
}

.contact-widget-item div {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 12px;
    color: #777;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.contact-widget-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 15px;
}

.contact-widget-item a:hover {
    color: var(--primary-color);
}

.contact-widget-social {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed rgba(124, 197, 247, 0.3);
}

.contact-widget-social a {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(124, 197, 247, 0.2);
}

.contact-widget-social a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 5px 15px rgba(53, 2, 100, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .contact-widget {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info-icon {
        margin: 0 auto 15px;
    }
    
    .contact-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .contact-widget-toggle {
        width: 50px;
        height: 50px;
    }
    
    .contact-widget-content {
        width: 280px;
        bottom: 60px;
    }
}
