/* Custom CSS for CMC Maritime Academy */

:root {
    --navy-blue: #1e3a8a;
    --light-blue: #3b82f6;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --dark-gray: #64748b;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Custom Navy Background */
.bg-navy {
    background-color: var(--navy-blue) !important;
}

/* Navigation */
.navbar-brand {
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--light-blue) !important;
}

/* Hero Section */
.hero-section {
    margin-top: 76px;
}

.carousel-item {
    height: 70vh;
    position: relative;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
}

.carousel-caption h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.carousel-caption p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Section Titles */
.section-title {
    color: var(--navy-blue);
    font-weight: bold;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--light-blue);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Feature Box */
.feature-box {
    text-align: center;
    padding: 1rem;
}

.feature-box h5 {
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
}

/* Facility Cards */
.facility-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.facility-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.facility-card:hover .facility-image img {
    transform: scale(1.05);
}

.facility-content {
    padding: 2rem;
    text-align: center;
}

.facility-content h5 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.facility-content p {
    color: var(--dark-gray);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Course Cards */
.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.course-card .card-body {
    text-align: center;
    padding: 2rem;
}

.course-card h5 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-item h5 {
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--light-blue);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Buttons */
.btn-primary {
    background-color: var(--light-blue);
    border-color: var(--light-blue);
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--navy-blue);
    border-color: var(--navy-blue);
    transform: translateY(-2px);
}

/* Footer */
footer h5 {
    color: var(--light-blue);
    margin-bottom: 1rem;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--light-blue) !important;
}

.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-item {
        height: 50vh;
    }
    
    .carousel-caption {
        padding: 1rem;
        width: 95%;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .navbar-brand span {
        font-size: 1rem;
    }
    
    .feature-box {
        margin-bottom: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .contact-item i {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .navbar-brand img {
        width: 40px;
        height: 40px;
    }
    
    .course-card .card-body {
        padding: 1.5rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title,
.card,
.feature-box {
    animation: fadeInUp 0.6s ease-out;
}